/* ==========================================================================
   STAUAEM - SITIO WEB INSTITUCIONAL OFICIAL
   Sistema de Diseño Armónico: Múltiples Tonalidades de Rojo, Negro y Blanco
   ========================================================================== */

:root {
  /* ==========================================================================
     Paleta Oficial STAUAEM (Manual de Identidad Visual)
     ========================================================================== */
  --red-darkest: #2E0407;       /* Vino Profundo Base */
  --red-deep-wine: #4A060C;     /* Borgoña Profundo */
  --red-crimson-dark: #66070E;  /* Vino Tinto / Granate */
  --red-crimson: #8F0E17;       /* Rojo Granate Intenso */
  --red-primary-dark: #B9131A;  /* Rojo Carmesí Oscuro */
  --red-primary: #E31B23;       /* Rojo Insignia STAUAEM (Oficial) */
  --red-ruby: #EF233C;          /* Rojo Rubí Brillante */
  --red-coral: #F87171;         /* Rojo Coral / Acento */
  --red-salmon-light: #FCA5A5;  /* Salmón Suave */
  --red-soft-border: #FECACA;   /* Borde Rosa Suave */
  --red-soft-bg: #FEE2E2;       /* Rosa / Acento Claro */
  --red-tint-bg: #FFF5F5;       /* Marfil Rosado (Fondo Secciones) */
  
  /* Colores Neutros y de Contraste */
  --color-primary: #0F172A;        /* Negro Carbón (Tipografía principal) */
  --color-primary-dark: #09090B;   /* Negro Puro (Glassmorphism y contraste) */
  --color-primary-light: #1E293B;  /* Gris Grafito (Textos secundarios) */
  --color-white: #FFFFFF;          /* Blanco Puro */
  
  --color-secondary: #E31B23;      
  --color-secondary-hover: #ff2a34;
  --color-secondary-dark: #b9131a; 
  --color-secondary-light: #fef2f2;
  --color-secondary-border: #fecaca;
  
  --color-accent: #E31B23;         
  --color-accent-light: #fee2e2;   
  
  /* Escala de Grises y Fondos */
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-subtle: #fbf0f0;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-color: #e2e8f0;
  --border-focus: #E31B23;
  
  /* Sombras y Elevaciones */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(185, 19, 26, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(185, 19, 26, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 25px rgba(227, 27, 35, 0.4);
  
  /* Tipografía y Espaciado */
  --font-heading: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset y Bases */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  transition: var(--transition);
}

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ==========================================================================
   TOP BAR INSTITUCIONAL (BORGOÑA / VINO TINTO PROFUNDO)
   ========================================================================== */
.topbar {
  background: linear-gradient(90deg, #4a060c 0%, #66070e 50%, #52050a 100%);
  color: #fecaca;
  font-size: 0.85rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.topbar-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #ffffff;
}

.topbar-item i {
  color: var(--red-coral);
}

.topbar-badge {
  background: rgba(227, 27, 35, 0.35);
  color: #ffffff;
  border: 1px solid rgba(254, 202, 202, 0.5);
  padding: 0.18rem 0.7rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.75rem;
}

/* ==========================================================================
   HEADER Y NAVEGACIÓN PRINCIPAL
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(185, 19, 26, 0.08);
  border-bottom: 3px solid var(--red-primary);
  transition: var(--transition);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-logo img {
  height: 54px;
  width: auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(185, 19, 26, 0.2);
  border: 1px solid rgba(185, 19, 26, 0.15);
}

.brand-text h1 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--red-primary);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.brand-text span {
  font-size: 0.75rem;
  color: #1e293b;
  font-weight: 600;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: #0f172a;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link:hover, .nav-link.active {
  color: var(--red-primary-dark);
  background: var(--red-soft-bg);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--red-soft-border);
  border-top: 3px solid var(--red-primary);
  min-width: 270px;
  padding: 0.5rem 0;
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 1001;
  list-style: none;
}

.nav-dropdown:hover .dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-item a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.1rem;
  font-size: 0.85rem;
  color: var(--text-main);
  font-weight: 500;
}

.dropdown-item a:hover {
  background: var(--red-soft-bg);
  color: var(--red-primary);
}

.dropdown-item a i {
  color: var(--red-primary);
  width: 18px;
  text-align: center;
}

/* CTA Header */
.btn-cta-permisos {
  background: linear-gradient(135deg, var(--red-primary) 0%, var(--red-primary-dark) 100%);
  color: #ffffff;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(227, 27, 35, 0.4);
}

.btn-cta-permisos:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(227, 27, 35, 0.6);
  color: #ffffff;
  background: linear-gradient(135deg, var(--red-ruby) 0%, var(--red-primary) 100%);
}

.hamburger {
  display: none;
  font-size: 1.5rem;
  color: var(--red-primary);
}

/* ==========================================================================
   BANNER DE TRÁMITE DIRECTO (DEGRADADO ROJO CARMESÍ / RUBÍ)
   ========================================================================== */
.alert-tramite-banner {
  background: linear-gradient(90deg, #4a060c 0%, #8f0e17 50%, #b9131a 100%);
  color: #ffffff;
  padding: 1.25rem 0;
  border-bottom: 3px solid var(--red-ruby);
  box-shadow: 0 4px 15px rgba(143, 14, 23, 0.25);
}

.tramite-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.tramite-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tramite-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--red-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.tramite-text h4 {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: #ffffff;
}

.tramite-text p {
  font-size: 0.86rem;
  color: #fecaca;
}

.tramite-btn {
  background: #ffffff;
  color: var(--red-primary);
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

.tramite-btn:hover {
  background: var(--red-darkest);
  color: #ffffff;
  transform: scale(1.04);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   HERO SECTION (DEGRADADO ROJO CARMESÍ A SALMÓN / ROSA SUAVE)
   ========================================================================== */
.hero {
  position: relative;
  background: linear-gradient(135deg, #B9131A 0%, #c9232c 40%, #fca5a5 80%, #FEF2F2 100%);
  color: #ffffff;
  padding: 5rem 0 4.5rem;
  overflow: hidden;
  border-bottom: 4px solid #B9131A;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(254, 242, 242, 0.35), transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(185, 19, 26, 0.25), transparent 50%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #09090b;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1.35rem;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.45);
}

.hero-title span {
  color: #09090b;
  background: linear-gradient(90deg, #09090b 0%, #1e293b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: #09090b;
  text-shadow: none;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: #ffffff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
  margin-bottom: 2rem;
  max-width: 620px;
  font-weight: 500;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--red-primary) 0%, var(--red-primary-dark) 100%);
  color: #ffffff;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 16px rgba(227, 27, 35, 0.45);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--red-ruby) 0%, var(--red-primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(227, 27, 35, 0.65);
  color: #ffffff;
}

.btn-outline {
  background: rgba(9, 9, 11, 0.25);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.7);
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(6px);
}

.btn-outline:hover {
  background: #09090b;
  border-color: #09090b;
  color: #ffffff;
}

/* Card Hero Destacada */
.hero-card {
  background: rgba(9, 9, 11, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(185, 19, 26, 0.4);
  border-top: 3px solid var(--red-primary);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--red-primary) 0%, var(--red-primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(227, 27, 35, 0.4);
}

.hero-card-header h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.hero-card-header p {
  font-size: 0.82rem;
  color: #94a3b8;
}

.hero-quick-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.hero-quick-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  color: #f1f5f9;
  font-size: 0.88rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-quick-item a:hover {
  background: rgba(227, 27, 35, 0.2);
  border-color: var(--red-primary);
  color: #ffffff;
  transform: translateX(4px);
}

/* ==========================================================================
   SECCIONES GENERALES
   ========================================================================== */
.section {
  padding: 5rem 0;
}

.section-alt {
  background-color: var(--red-tint-bg); /* Fondo sutilmente rosado */
  border-top: 1px solid var(--red-soft-border);
  border-bottom: 1px solid var(--red-soft-border);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}

.section-subtitle {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--red-primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: inline-block;
  background: var(--red-soft-bg);
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.65rem;
  border: 1px solid var(--red-soft-border);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1rem;
  color: var(--text-muted);
}

/* ==========================================================================
   COMITÉ EJECUTIVO: TABS Y CARTERAS INTERACTIVAS
   ========================================================================== */
.carteras-wrapper {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--red-soft-border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.carteras-nav {
  background: linear-gradient(180deg, #2b0407 0%, #4a060d 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 680px;
  overflow-y: auto;
}

.cartera-nav-btn {
  text-align: left;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: #fecaca;
  font-size: 0.88rem;
  font-weight: 600;
  position: relative;
  transition: var(--transition);
}

.cartera-nav-btn i {
  font-size: 1.1rem;
  color: var(--red-coral);
  width: 22px;
  text-align: center;
}

.cartera-nav-btn:hover {
  background: rgba(227, 27, 35, 0.25);
  color: #ffffff;
}

.cartera-nav-btn.active {
  background: linear-gradient(135deg, var(--red-primary) 0%, var(--red-primary-dark) 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(227, 27, 35, 0.45);
}

.cartera-nav-btn.active i {
  color: #ffffff;
}

.carteras-content {
  padding: 2.5rem;
  position: relative;
}

.cartera-panel {
  display: none;
  animation: fadeIn 0.4s ease;
}

.cartera-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.cartera-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--red-soft-bg);
}

.cartera-title-group h3 {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.cartera-titular {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--red-primary);
}

.cartera-badge-art {
  background: var(--red-soft-bg);
  color: var(--red-primary-dark);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.8rem;
  border: 1px solid var(--red-soft-border);
}

.cartera-body-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
}

.cartera-full-width {
  grid-column: 1 / -1;
}

.cartera-responsabilidades h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.responsabilidades-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.responsabilidades-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: var(--text-main);
  line-height: 1.5;
}

.responsabilidades-list li i {
  color: var(--red-primary);
  margin-top: 0.25rem;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.cartera-sidebar-card {
  background: #fff8f8;
  border: 1px solid var(--red-soft-border);
  border-top: 3px solid var(--red-primary);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.cartera-sidebar-card h5 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.75rem;
}

.cartera-sidebar-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.cartera-gallery-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 1rem;
}

.cartera-gallery-preview img {
  border-radius: var(--radius-sm);
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid var(--red-soft-border);
}

.cartera-gallery-preview img:hover {
  transform: scale(1.05);
  border-color: var(--red-primary);
}

/* ==========================================================================
   SECCIÓN CONSEJO GENERAL DE DELEGADOS (ARTS. 32-34)
   ========================================================================== */
.delegados-hero-banner {
  background: linear-gradient(135deg, #7a0810 0%, #a8101a 40%, #c91823 75%, #E31B23 100%);
  color: #ffffff;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  margin-bottom: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  border-left: 6px solid #ffffff;
  box-shadow: 0 12px 30px rgba(185, 19, 26, 0.35);
}

.delegados-hero-text h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.delegados-hero-text p {
  font-size: 0.92rem;
  color: #fee2e2;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.delegados-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.stat-item {
  background: rgba(43, 4, 7, 0.45);
  backdrop-filter: blur(8px);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.25);
  text-align: center;
  transition: var(--transition);
}

.stat-item:hover {
  background: rgba(43, 4, 7, 0.65);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.5);
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 900;
  color: #ffffff;
  display: block;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.stat-lbl {
  font-size: 0.8rem;
  color: #fee2e2;
  font-weight: 500;
}

/* Buscador y Directorio Seccional */
.delegados-controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.search-box {
  flex: 1;
  min-width: 260px;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  font-size: 0.9rem;
  background: #ffffff;
}

.search-box input:focus {
  outline: none;
  border-color: var(--red-primary);
  box-shadow: 0 0 0 3px rgba(227, 27, 35, 0.15);
}

.search-box i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--red-primary);
}

.filter-btn-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.filter-chip.active, .filter-chip:hover {
  background: var(--red-primary);
  color: #ffffff;
  border-color: var(--red-primary);
}

.delegados-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.delegado-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.delegado-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--red-primary);
}

.delegado-seccion-badge {
  display: inline-block;
  background: var(--red-soft-bg);
  color: var(--red-primary-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  border: 1px solid var(--red-soft-border);
}

.delegado-card h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.35rem;
}

.delegado-dependencia {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.delegado-footer {
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ==========================================================================
   COMISIONES AUTÓNOMAS (CAPÍTULO VI Y VII)
   ========================================================================== */
.comisiones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.comision-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.comision-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red-primary), var(--red-deep-wine));
}

.comision-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--red-soft-border);
}

.comision-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--red-soft-bg);
  color: var(--red-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.comision-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.comision-art {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--red-primary-dark);
  margin-bottom: 1rem;
  display: block;
}

.comision-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   GALERÍA DE EVENTOS Y VIDA SINDICAL
   ========================================================================== */
.galeria-controls {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.galeria-filter-chip {
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
  cursor: pointer;
}

.galeria-filter-chip:hover, .galeria-filter-chip.active {
  background: linear-gradient(135deg, var(--red-primary) 0%, var(--red-primary-dark) 100%);
  color: #ffffff;
  border-color: var(--red-primary);
  box-shadow: 0 4px 12px rgba(227, 27, 35, 0.35);
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.galeria-card {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.galeria-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(185, 19, 26, 0.18);
  border-color: var(--red-primary);
}

.galeria-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #0f172a;
}

.galeria-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.galeria-card:hover .galeria-img-wrap img {
  transform: scale(1.08);
}

.galeria-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(102, 7, 14, 0.9) 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.galeria-card:hover .galeria-overlay {
  opacity: 1;
}

.galeria-zoom-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--red-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.galeria-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.galeria-badge {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.galeria-badge.trabajo {
  background: var(--red-soft-bg);
  color: var(--red-primary-dark);
  border: 1px solid var(--red-soft-border);
}

.galeria-badge.deportes {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.galeria-badge.kids {
  background: #fdf4ff;
  color: #a21caf;
  border: 1px solid #f0abfc;
}

.galeria-info h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
}

.galeria-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 1.5rem;
  box-sizing: border-box;
}

.lightbox-modal.active {
  display: flex !important;
}

.lightbox-container {
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  animation: zoomIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox-img-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 70vh;
  width: 100%;
}

.lightbox-img {
  max-height: 70vh;
  max-width: 100%;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
}

.lightbox-nav-btn:hover {
  background: var(--red-primary);
  border-color: var(--red-primary);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-nav-btn.prev {
  left: -70px;
}

.lightbox-nav-btn.next {
  right: -70px;
}

@media (max-width: 1080px) {
  .lightbox-nav-btn.prev {
    left: 10px;
  }
  .lightbox-nav-btn.next {
    right: 10px;
  }
}

.lightbox-caption {
  margin-top: 1.25rem;
  text-align: center;
  color: #ffffff;
  max-width: 750px;
}

.lightbox-caption h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: #ffffff;
}

.lightbox-caption p {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.4;
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  color: #ffffff;
  font-size: 2.2rem;
  background: rgba(0, 0, 0, 0.5);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.lightbox-close:hover {
  background: var(--red-primary);
  color: #ffffff;
  transform: rotate(90deg);
}

/* ==========================================================================
   CENTRO DE TRANSPARENCIA Y DESCARGAS (CCT Y ESTATUTOS)
   ========================================================================== */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.doc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.doc-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--red-primary);
  transform: translateY(-3px);
}

.doc-pdf-icon {
  width: 60px;
  height: 60px;
  background: var(--red-soft-bg);
  color: var(--red-primary);
  border: 1px solid var(--red-soft-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.doc-info h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.35rem;
}

.doc-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.doc-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-doc-view {
  background: linear-gradient(135deg, var(--red-primary-dark) 0%, var(--red-crimson-dark) 100%);
  color: #ffffff;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 2px 8px rgba(185, 19, 26, 0.25);
}

.btn-doc-view:hover {
  background: var(--red-primary);
  color: #ffffff;
}

.btn-doc-download {
  background: #ffffff;
  color: var(--red-primary-dark);
  border: 1px solid var(--red-soft-border);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-doc-download:hover {
  background: var(--red-soft-bg);
  border-color: var(--red-primary);
}

/* ==========================================================================
   CONTACTO Y UBICACIÓN
   ========================================================================== */
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--red-soft-border);
  border-top: 4px solid var(--red-primary);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
}

.contacto-info h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1rem;
}

.contacto-info p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.contacto-items {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contacto-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contacto-item-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--red-soft-bg);
  color: var(--red-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  border: 1px solid var(--red-soft-border);
}

.contacto-item-text h5 {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.2rem;
}

.contacto-item-text p, .contacto-item-text a {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Formulario Contacto */
.contacto-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-family: inherit;
  font-size: 0.9rem;
  background: #ffffff;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--red-primary);
  box-shadow: 0 0 0 3px rgba(227, 27, 35, 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ==========================================================================
   FOOTER (DEGRADADO ROJO CARMESÍ / VINO INSTITUCIONAL)
   ========================================================================== */
.footer {
  background: linear-gradient(180deg, #66070e 0%, #4a060c 50%, #2e0407 100%);
  color: #fee2e2;
  padding: 4.5rem 0 2rem;
  border-top: 5px solid #ef233c;
  box-shadow: 0 -10px 30px rgba(102, 7, 14, 0.3);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand h4 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: #fecaca;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.social-btn:hover {
  background: #ffffff;
  color: var(--red-primary);
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.4);
}

.footer-links h5 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.25rem;
  border-left: 3px solid #ff8087;
  padding-left: 0.5rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: #fee2e2;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  font-size: 0.82rem;
  color: #fca5a5;
}

/* ==========================================================================
   MODAL PARA VISOR DE MENSAJES
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-container {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, var(--red-primary-dark) 0%, var(--red-deep-wine) 100%);
  color: #ffffff;
  border-bottom: 3px solid var(--red-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
}

.modal-close-btn {
  color: #ffffff;
  font-size: 1.3rem;
  opacity: 0.8;
}

.modal-close-btn:hover {
  opacity: 1;
  color: var(--red-coral);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

/* ==========================================================================
   SECCIÓN RECEPCIÓN (ATENCIÓN AL AFILIADO)
   ========================================================================== */
.recepcion-banner {
  background: linear-gradient(135deg, #2e0407 0%, #4a060c 60%, #66070e 100%);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
  border: 1px solid rgba(227, 27, 35, 0.35);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.recepcion-banner::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(227, 27, 35, 0.25), transparent 70%);
  pointer-events: none;
}

.recepcion-banner-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red-primary) 0%, var(--red-primary-dark) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(227, 27, 35, 0.5);
}

.recepcion-banner-text h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.recepcion-banner-text p {
  font-size: 0.95rem;
  color: #fecaca;
  line-height: 1.6;
}

.recepcion-shifts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.recepcion-shift-column {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--red-soft-border);
  box-shadow: var(--shadow-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: var(--transition);
}

.recepcion-shift-column:hover {
  box-shadow: var(--shadow-xl);
  border-color: var(--red-primary);
  transform: translateY(-3px);
}

.recepcion-shift-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--red-soft-border);
}

.recepcion-shift-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.recepcion-shift-badge-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.recepcion-shift-badge-icon.matutino {
  background: #fef3c7;
  color: #d97706;
}

.recepcion-shift-badge-icon.vespertino {
  background: #e0e7ff;
  color: #4338ca;
}

.recepcion-shift-title h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-primary);
}

.recepcion-shift-tag {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.recepcion-shift-tag.matutino {
  background: #fef3c7;
  color: #b45309;
}

.recepcion-shift-tag.vespertino {
  background: #e0e7ff;
  color: #3730a3;
}

.recepcion-person-card {
  background: var(--bg-card-subtle);
  border: 1px solid var(--red-soft-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: var(--transition);
}

.recepcion-person-card:hover {
  background: #ffffff;
  border-color: var(--red-primary);
  box-shadow: 0 4px 12px rgba(185, 19, 26, 0.08);
}

.recepcion-person-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.recepcion-person-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red-soft-bg) 0%, #fee2e2 100%);
  color: var(--red-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  border: 2px solid #ffffff;
  box-shadow: var(--shadow-sm);
}

.recepcion-person-details h5 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.2rem;
}

.recepcion-person-details span {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.recepcion-ext-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--red-primary) 0%, var(--red-primary-dark) 100%);
  color: #ffffff;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(227, 27, 35, 0.3);
  transition: var(--transition);
}

.recepcion-ext-badge:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(227, 27, 35, 0.5);
  color: #ffffff;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .carteras-wrapper {
    grid-template-columns: 1fr;
  }
  
  .carteras-nav {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    max-height: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
  
  .contacto-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .topbar {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: var(--shadow-xl);
    border-bottom: 3px solid var(--red-primary);
    display: none;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-link {
    width: 100%;
    padding: 0.75rem 1rem;
  }

  .dropdown-menu {
    position: static;
    display: block;
    box-shadow: none;
    border: none;
    padding-left: 1.5rem;
    opacity: 1;
    transform: none;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .cartera-body-grid {
    grid-template-columns: 1fr;
  }

  .delegados-hero-banner {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .recepcion-banner {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }

  .recepcion-shifts-grid {
    grid-template-columns: 1fr;
  }

  .recepcion-person-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .recepcion-ext-badge {
    align-self: flex-start;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
