/*
Theme Name: STCECYTEN Institucional
Theme URI: https://www.stcecyten.org
Author: Soporte Técnico STCECYTEN
Description: Plantilla personalizada, ultra ligera y totalmente responsiva para el Sindicato de Trabajadores del CECYTEN.
Version: 1.0.0
Text Domain: stcecyten
*/

:root {
  --primary-color: #1B365D;    /* Azul Marino Sindical */
  --secondary-color: #800020;  /* Guinda / Vino */
  --accent-color: #D4AF37;     /* Dorado Acento */
  --bg-light: #F8F9FA;
  --text-dark: #212529;
  --text-muted: #6C757D;
  --white: #FFFFFF;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--secondary-color);
}

.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Header & Navegación */
.site-header {
  background-color: var(--white);
  border-bottom: 4px solid var(--secondary-color);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.brand-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.brand-subtitle {
  font-size: 0.8rem;
  color: var(--secondary-color);
  display: block;
  font-weight: 600;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-menu a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary-color);
  padding: 0.5rem 0;
}

.nav-menu a:hover {
  color: var(--secondary-color);
  border-bottom: 2px solid var(--accent-color);
}

/* Banner Principal / Hero */
.hero-banner {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  padding: 3.5rem 0;
  text-align: center;
}

.hero-banner h1 {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
}

.hero-banner p {
  font-size: 1.1rem;
  color: #E2E8F0;
  max-width: 700px;
  margin: 0 auto;
}

/* Sección de Contenido Grid */
.main-content {
  padding: 3rem 0;
}

.grid-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

/* Tarjetas y Posts */
.card {
  background: var(--white);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.04);
  border-left: 4px solid var(--primary-color);
}

.card-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.card-title a {
  color: var(--primary-color);
}

.card-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Sidebar Widgets */
.sidebar-widget {
  background: var(--white);
  padding: 1.2rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border-top: 3px solid var(--accent-color);
  box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.sidebar-widget h3 {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #EEE;
}

/* Acceso Rápido / Documentos */
.quick-link-btn {
  display: block;
  background: var(--primary-color);
  color: var(--white) !important;
  text-align: center;
  padding: 0.75rem;
  border-radius: 5px;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.quick-link-btn:hover {
  background: var(--secondary-color);
}

/* Footer */
.site-footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 2.5rem 0 1rem 0;
  margin-top: 3rem;
  border-top: 4px solid var(--accent-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-column h4 {
  color: var(--accent-color);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.copyright {
  text-align: center;
  font-size: 0.85rem;
  color: #A0AEC0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive / Mobile First adjustments */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
  }

  .grid-layout {
    grid-template-columns: 1fr;
  }

  .hero-banner h1 {
    font-size: 1.6rem;
  }
}