/* ============================================================
   FICAJALI 2026 — Design System Foundation
   Arquitectura: Mobile-First SPA
   ============================================================ */

/* ------------------------------------------------------------
   1. FUENTES LOCALES — @font-face declarations
   ------------------------------------------------------------ */

/* Crimson Pro — Familia tipográfica para cabeceras (h1, h2, h3) */
@font-face {
  font-family: 'Crimson Pro';
  src: url('./Tipografía/CrimsonPro-LightItalic.otf') format('opentype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Crimson Pro';
  src: url('./Tipografía/CrimsonPro-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Crimson Pro';
  src: url('./Tipografía/CrimsonPro-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* General Sans — Familia tipográfica para cuerpo de texto (body, p) */
@font-face {
  font-family: 'General Sans';
  src: url('./Tipografía/GeneralSans-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'General Sans';
  src: url('./Tipografía/GeneralSans-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'General Sans';
  src: url('./Tipografía/GeneralSans-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'General Sans';
  src: url('./Tipografía/GeneralSans-Semibold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'General Sans';
  src: url('./Tipografía/GeneralSans-SemiboldItalic.otf') format('opentype');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}


/* ------------------------------------------------------------
   2. CUSTOM PROPERTIES — Tokens del sistema de diseño
   ------------------------------------------------------------ */
:root {

  /* -- Paleta oficial FICAJALI 2026 -- */
  --negro-patrimonio:  #0A0A0A;
  --oro-ficajali:      #B88C4A;
  --oro-claro:         #D6B47A;
  --bronce-cultural:   #9C7341;
  --marfil-festival:   #F3EFE6;
  --gris-piedra:       #C9C2B7;

  /* -- Paleta extendida -- */
  --cafe-mezquite:     #5D4630;
  --arena-altena:      #DCC9A0;

  /* -- Aliases semánticos de color -- */
  --color-bg:          var(--negro-patrimonio);
  --color-surface:     #111111;
  --color-surface-2:   #1A1A1A;
  --color-border:      rgba(184, 140, 74, 0.20);   /* --oro-ficajali al 20% */
  --color-text:        var(--marfil-festival);
  --color-text-muted:  var(--gris-piedra);
  --color-accent:      var(--oro-ficajali);
  --color-accent-hover: var(--oro-claro);

  /* -- Gradientes de marca -- */
  --gradient-oro:
    linear-gradient(
      135deg,
      var(--bronce-cultural) 0%,
      var(--oro-ficajali)    50%,
      var(--oro-claro)       100%
    );
  --gradient-hero:
    linear-gradient(
      180deg,
      transparent            0%,
      rgba(10, 10, 10, 0.60) 60%,
      var(--negro-patrimonio) 100%
    );

  /* -- Tipografía -- */
  --font-heading:      'Crimson Pro', Georgia, 'Times New Roman', serif;
  --font-body:         'General Sans', system-ui, -apple-system, sans-serif;

  /* Escala tipográfica — Mobile (base 16px) */
  --fs-xs:    0.75rem;   /*  12px */
  --fs-sm:    0.875rem;  /*  14px */
  --fs-base:  1rem;      /*  16px */
  --fs-md:    1.125rem;  /*  18px */
  --fs-lg:    1.25rem;   /*  20px */
  --fs-xl:    1.5rem;    /*  24px */
  --fs-2xl:   2rem;      /*  32px */
  --fs-3xl:   2.5rem;    /*  40px */
  --fs-4xl:   3rem;      /*  48px */
  --fs-5xl:   3.75rem;   /*  60px */

  /* Altura de línea */
  --lh-tight:   1.15;
  --lh-snug:    1.35;
  --lh-normal:  1.6;
  --lh-relaxed: 1.75;

  /* Espaciado — escala 4pt */
  --space-1:   0.25rem;  /*  4px  */
  --space-2:   0.5rem;   /*  8px  */
  --space-3:   0.75rem;  /* 12px  */
  --space-4:   1rem;     /* 16px  */
  --space-5:   1.25rem;  /* 20px  */
  --space-6:   1.5rem;   /* 24px  */
  --space-8:   2rem;     /* 32px  */
  --space-10:  2.5rem;   /* 40px  */
  --space-12:  3rem;     /* 48px  */
  --space-16:  4rem;     /* 64px  */
  --space-20:  5rem;     /* 80px  */
  --space-24:  6rem;     /* 96px  */

  /* Layout */
  --container-max:    1200px;
  --container-px:     var(--space-6);  /* padding lateral mobile */

  /* Bordes */
  --radius-sm:    4px;
  --radius-md:    8px;
  --radius-lg:   16px;
  --radius-full:  9999px;

  /* Sombras */
  --shadow-sm:
    0 1px 3px rgba(0, 0, 0, 0.4),
    0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md:
    0 4px 12px rgba(0, 0, 0, 0.5),
    0 2px 6px  rgba(0, 0, 0, 0.4);
  --shadow-lg:
    0 12px 40px rgba(0, 0, 0, 0.6),
    0 4px 16px  rgba(0, 0, 0, 0.5);
  --shadow-oro:
    0 0 24px rgba(184, 140, 74, 0.25),
    0 0  8px rgba(184, 140, 74, 0.15);

  /* Sombra cálida multicapa — cantera de Los Altos */
  --shadow-cantera:
    0 2px 8px  rgba(156, 115, 65, 0.08),
    0 8px 24px rgba(156, 115, 65, 0.06),
    0 16px 48px rgba(156, 115, 65, 0.04);

  /* Curva cinemática — aceleración de celuloide */
  --ease-celuloide: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Transiciones */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;
  --transition-spring: 350ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-index */
  --z-base:    0;
  --z-raised:  10;
  --z-overlay: 100;
  --z-modal:   200;
  --z-nav:     300;
  --z-toast:   400;
}


/* ------------------------------------------------------------
   3. RESET & BASE STYLES
   ------------------------------------------------------------ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family:       var(--font-body);
  font-weight:       400;
  font-size:         var(--fs-base);
  line-height:       var(--lh-normal);
  color:             var(--color-text);
  background-color:  var(--color-bg);
  min-height:        100dvh;
  -webkit-font-smoothing:  antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Viñeta cinemática — foco de proyector */
body::after {
  content:        '';
  position:       fixed;
  inset:          0;
  pointer-events: none;
  z-index:        9999;
  background:
    radial-gradient(
      ellipse 70% 65% at 50% 50%,
      transparent           0%,
      transparent           55%,
      rgba(10, 10, 10, 0.12) 72%,
      rgba(10, 10, 10, 0.30) 88%,
      rgba(10, 10, 10, 0.50) 100%
    );
}

/* Imágenes responsivas */
img,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Listas sin estilo por defecto (se restauran donde se necesiten) */
ul,
ol {
  list-style: none;
}

/* Anclas sin decoración */
a {
  color: inherit;
  text-decoration: none;
}

/* Botones sin estilo de navegador */
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Inputs */
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}


/* ------------------------------------------------------------
   4. TIPOGRAFÍA — Cabeceras (Crimson Pro)
   ------------------------------------------------------------ */

h1,
h2,
h3 {
  font-family:    var(--font-heading);
  font-weight:    400;           /* Regular por defecto */
  line-height:    var(--lh-tight);
  color:          var(--color-text);
  letter-spacing: -0.01em;
}

h1 {
  font-size:    var(--fs-3xl);   /* 40px mobile */
  font-weight:  500;             /* Medium — peso dominante en el H1 */
  letter-spacing: -0.02em;
}

h2 {
  font-size:    var(--fs-2xl);   /* 32px mobile */
}

h3 {
  font-size:    var(--fs-xl);    /* 24px mobile */
}

/* Variante estilística — subtítulo en cursiva ligera */
.heading-italic {
  font-family:  var(--font-heading);
  font-weight:  300;
  font-style:   italic;
}

/* Gradiente de texto dorado */
.heading-gold {
  background:            var(--gradient-oro);
  -webkit-background-clip: text;
  background-clip:       text;
  -webkit-text-fill-color: transparent;
  color: transparent;            /* fallback */
}


/* ------------------------------------------------------------
   5. TIPOGRAFÍA — Cuerpo (General Sans)
   ------------------------------------------------------------ */

p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size:   var(--fs-base);
  line-height: var(--lh-normal);
  color:       var(--color-text);
}

.text-muted {
  color: var(--color-text-muted);
}

.text-light {
  font-weight: 300;
}

.text-medium {
  font-weight: 500;
}

.text-semibold {
  font-weight: 600;
}

.text-semibold-italic {
  font-weight: 600;
  font-style: italic;
}

.text-accent {
  color: var(--color-accent);
}

.text-sm  { font-size: var(--fs-sm);  }
.text-xs  { font-size: var(--fs-xs);  }
.text-lg  { font-size: var(--fs-lg);  }
.text-xl  { font-size: var(--fs-xl);  }
.text-uppercase {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: var(--fs-sm);
  font-weight: 600;
}

/* Etiqueta de categoría / label de sección */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family:    var(--font-body);
  font-size:      var(--fs-xs);
  font-weight:    600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color:          var(--oro-ficajali);
}

.section-label::before {
  content: '';
  display: inline-block;
  width:  24px;
  height: 1px;
  background: var(--gradient-oro);
}

.section-label::after {
  content: '';
  display: inline-block;
  width:  24px;
  height: 1px;
  background: var(--gradient-oro);
}


/* ------------------------------------------------------------
   6. LAYOUT — Contenedor y grilla
   ------------------------------------------------------------ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

.section {
  padding-block: var(--space-16);
}

.section--lg {
  padding-block: var(--space-24);
}

/* Grid base — mobile: 1 col, desktop: hasta 12 col */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Stack utilitario */
.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.flex-col    { flex-direction: column; }
.gap-2       { gap: var(--space-2); }
.gap-4       { gap: var(--space-4); }
.gap-6       { gap: var(--space-6); }
.gap-8       { gap: var(--space-8); }


/* ------------------------------------------------------------
   7. COMPONENTES BASE — Botones
   ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family:    var(--font-body);
  font-size:      var(--fs-sm);
  font-weight:    600;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  padding:        var(--space-3) var(--space-6);
  border-radius:  var(--radius-sm);
  border:         1px solid transparent;
  cursor:         pointer;
  transition:     all 0.4s var(--ease-celuloide);
  white-space:    nowrap;
  user-select:    none;
}

/* Botón principal — dorado */
.btn-primary {
  background:   var(--gradient-oro);
  color:        var(--negro-patrimonio);
  border:       1px solid transparent;
  box-shadow:
    0 0 20px rgba(184, 140, 74, 0.30),
    0 4px 12px rgba(0, 0, 0, 0.40);
  transition:
    background 0.4s var(--ease-celuloide),
    color 0.4s var(--ease-celuloide),
    border-color 0.4s var(--ease-celuloide),
    box-shadow 0.4s var(--ease-celuloide),
    transform 0.4s var(--ease-celuloide),
    gap 0.4s var(--ease-celuloide);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background:   var(--oro-claro);
  color:        var(--negro-patrimonio);
  border-color: var(--oro-claro);
  transform:    translateY(-5px);
  box-shadow:
    0 0 36px rgba(214, 180, 122, 0.45),
    0 6px 20px rgba(0, 0, 0, 0.50),
    0 0 0 1px rgba(184, 140, 74, 0.30);
}

.btn-primary:active {
  transform: translateY(0);
  background: var(--bronce-cultural);
  border-color: var(--bronce-cultural);
  box-shadow: var(--shadow-sm);
}

/* Botón secundario — contorno dorado */
.btn-outline {
  background:   transparent;
  color:        var(--oro-ficajali);
  border-color: var(--oro-ficajali);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background:   rgba(184, 140, 74, 0.08);
  color:        var(--oro-claro);
  border-color: var(--oro-claro);
  transform:    translateY(-5px);
  box-shadow:   0 0 0 1px rgba(184, 140, 74, 0.20), var(--shadow-cantera);
}

/* Botón fantasma — solo texto */
.btn-ghost {
  background:   transparent;
  color:        var(--color-text-muted);
  border-color: transparent;
  padding-inline: var(--space-4);
}

.btn-ghost:hover {
  color: var(--color-text);
}

/* Tamaño grande */
.btn-lg {
  font-size: var(--fs-base);
  padding:   var(--space-4) var(--space-10);
}

/* Tamaño pequeño */
.btn-sm {
  font-size: var(--fs-xs);
  padding:   var(--space-2) var(--space-4);
}


/* ------------------------------------------------------------
   8. COMPONENTES BASE — Tarjetas (Card)
   ------------------------------------------------------------ */

.card {
  background:     var(--color-surface);
  border:         1px solid var(--color-border);
  border-radius:  var(--radius-lg);
  overflow:       hidden;
  box-shadow:     var(--shadow-cantera);
  transition:     transform 0.4s var(--ease-celuloide),
                  box-shadow 0.4s var(--ease-celuloide),
                  border-color 0.4s var(--ease-celuloide);
}

.card:hover {
  transform:    translateY(-5px);
  box-shadow:   var(--shadow-lg), var(--shadow-oro),
                0 0 0 1px rgba(184, 140, 74, 0.25);
  border-color: rgba(184, 140, 74, 0.40);
}

.card__body {
  padding: var(--space-6);
}

.card__image {
  width:  100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}


/* ------------------------------------------------------------
   9. COMPONENTES BASE — Separadores y líneas decorativas
   ------------------------------------------------------------ */

.divider {
  width:  100%;
  height: 1px;
  background: var(--color-border);
  border: none;
  margin-block: var(--space-8);
}

.divider--gold {
  background: var(--gradient-oro);
  height: 2px;
}

/* Línea decorativa centrada con texto */
.divider-text {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.divider-text::before,
.divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}


/* ------------------------------------------------------------
   10. UTILIDADES GENERALES
   ------------------------------------------------------------ */

/* Visibilidad */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Espaciado */
.mt-4  { margin-top:    var(--space-4);  }
.mt-8  { margin-top:    var(--space-8);  }
.mb-4  { margin-bottom: var(--space-4);  }
.mb-8  { margin-bottom: var(--space-8);  }

/* Texto */
.text-center { text-align: center; }
.text-right  { text-align: right;  }

/* Fondo de superficie */
.surface   { background: var(--color-surface);   }
.surface-2 { background: var(--color-surface-2); }

/* Overflow */
.overflow-hidden { overflow: hidden; }

/* Aspecto de imagen */
.aspect-square    { aspect-ratio: 1 / 1;   }
.aspect-video     { aspect-ratio: 16 / 9;  }
.aspect-portrait  { aspect-ratio: 3 / 4;   }

/* Objeto de imagen */
.object-cover  { object-fit: cover; }
.object-center { object-position: center; }

/* Accesibilidad — Focus visible */
:focus-visible {
  outline: 2px solid var(--oro-ficajali);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Selección de texto */
::selection {
  background-color: rgba(184, 140, 74, 0.30);
  color:            var(--marfil-festival);
}

/* Scrollbar personalizada (webkit) */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--negro-patrimonio);
}
::-webkit-scrollbar-thumb {
  background: var(--bronce-cultural);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--oro-ficajali);
}


/* ------------------------------------------------------------
   11. RESPONSIVE — Breakpoints ascendentes (Mobile First)
   ------------------------------------------------------------ */

/* Tablet — ≥ 640px */
@media (min-width: 640px) {
  :root {
    --container-px: var(--space-8);

    --fs-3xl: 3rem;      /* h1: 48px */
    --fs-2xl: 2.25rem;   /* h2: 36px */
    --fs-xl:  1.5rem;    /* h3: 24px */
  }

  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet landscape — ≥ 768px */
@media (min-width: 768px) {
  :root {
    --container-px: var(--space-10);
  }

  .section    { padding-block: var(--space-20); }
  .section--lg{ padding-block: var(--space-24); }

  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Desktop — ≥ 1024px */
@media (min-width: 1024px) {
  :root {
    --container-px: var(--space-12);

    --fs-4xl: 3.5rem;    /* h1 hero */
    --fs-3xl: 3.25rem;   /* h1: 52px */
    --fs-2xl: 2.5rem;    /* h2: 40px */
    --fs-xl:  1.75rem;   /* h3: 28px */
  }

  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Wide — ≥ 1280px */
@media (min-width: 1280px) {
  :root {
    --fs-5xl: 4.5rem;    /* Display heading */
    --fs-4xl: 4rem;
    --fs-3xl: 3.5rem;
  }
}

/* ------------------------------------------------------------
   12. NAVEGACIÓN — Header sticky glassmorphism
   ------------------------------------------------------------ */

#site-header {
  position:   fixed;
  top:        0;
  left:       0;
  right:      0;
  z-index:    var(--z-nav);

  /* Inicialmente transparente — flota sobre el Hero Portada */
  background:      transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom:   1px solid transparent;
  transition:      background 0.3s ease,
                   backdrop-filter 0.3s ease,
                   -webkit-backdrop-filter 0.3s ease,
                   border-color 0.3s ease;
}

/* Clase añadida por JS al bajar > 50px: fondo sólido cinemático */
#site-header.nav-scrolled {
  background:      rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-bottom:   1px solid rgba(214, 180, 122, 0.10);
}

/* Altura y padding de la barra de navegación */
#main-nav {
  height:         72px;
  padding-block:  var(--space-3);
}

/* Logo en el nav — tamaño reducido con blend para fondo blanco */
#nav-logo {
  display:    flex;
  align-items: center;
  flex-shrink: 0;
}

.nav__logo-img {
  height:         52px;
  width:          auto;
  object-fit:     contain;
  mix-blend-mode: screen;
  transition:     opacity var(--transition-base),
                  filter  var(--transition-base);
}

#nav-logo:hover .nav__logo-img {
  opacity: 0.85;
  filter:  drop-shadow(0 0 8px rgba(184, 140, 74, 0.40));
}

/* Menú desktop — oculto en mobile */
#nav-links {
  display: none;
}

/* Botón hamburguesa — visible en mobile */
#nav-toggle {
  display: flex;
  color:   var(--gris-piedra);
}

#nav-toggle:hover {
  color: var(--oro-ficajali);
}

/* Offset del main para que el header fijo no tape el hero */
#main-content {
  padding-top: 72px;
}

/* Mobile Navigation State */
.nav-open #nav-links {
  display:         flex;
  flex-direction:  column;
  position:        absolute;
  top:             72px;
  left:            0;
  width:           100%;
  background:      var(--color-bg);
  padding:         var(--space-6) var(--space-4);
  border-bottom:   1px solid rgba(184, 140, 74, 0.12);
  box-shadow:      var(--shadow-xl);
  animation:       slide-down 0.3s ease forwards;
}

@keyframes slide-down {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-open {
  overflow: hidden; /* Prevent scrolling when mobile menu is open */
}

/* ≥ 768px: mostrar menú, ocultar hamburguesa */
@media (min-width: 768px) {
  #nav-links, .nav-open #nav-links  { 
    display:        flex; 
    flex-direction: row;
    position:       static;
    width:          auto;
    background:     transparent;
    padding:        0;
    border-bottom:  none;
    box-shadow:     none;
    animation:      none;
  }
  #nav-toggle { display: none; }
}


/* ------------------------------------------------------------
   12b. HERO PORTADA — Pantalla completa con imagen de fondo
   Fotografía: Glorieta del Huevo, Tepatitlán de Morelos
   ------------------------------------------------------------ */

/* Contenedor principal — ocupa todo el viewport */
.hero-portada {
  position:   relative;
  width:      100%;
  height:     100vh;
  overflow:   hidden;

  /* Fondo de respaldo mientras cargan las imágenes */
  background-color: var(--negro-patrimonio);

  /* Centrado vertical y horizontal del contenido */
  display:         flex;
  align-items:     center;
  justify-content: center;
}

/* Contenedor de las diapositivas de fondo */
.hero-portada__slides {
  position: absolute;
  inset:    0;
  z-index:  0;
}

/* Cada imagen de fondo — apiladas con position absolute */
.hero-portada__slide {
  position:   absolute;
  inset:      0;
  width:      100%;
  height:     100%;
  object-fit: cover;
  object-position: center;

  /* Invisible por defecto */
  opacity:    0;
  transform:  scale(1.05);

  /* Transición cinematográfica de fundido cruzado + efecto Ken Burns */
  transition: opacity 1.8s ease-in-out,
              transform 8s ease-out;
}

/* Diapositiva activa — visible con zoom sutil */
.hero-portada__slide--active {
  opacity:   1;
  transform: scale(1);
}

/* Capa de oscurecimiento cinematográfico (Overlay) */
.hero-portada__overlay {
  position:  absolute;
  inset:     0;
  z-index:   1;
  /* Degradado multicapa para reforzar legibilidad arriba y abajo */
  background:
    linear-gradient(
      180deg,
      rgba(10, 10, 10, 0.7)  0%,
      rgba(10, 10, 10, 0.4) 40%,
      rgba(10, 10, 10, 0.4) 60%,
      rgba(10, 10, 10, 0.8) 100%
    );
}

/* Contenedor del contenido: logo + botón */
.hero-portada__content {
  position:       relative;
  z-index:        2;
  display:        flex;
  flex-direction: column;
  align-items:    center;
  gap:            var(--space-10);
  text-align:     center;
  animation:      hero-portada-appear 1.2s var(--ease-celuloide) both;
}

/* Logo del festival — centrado y con resplandor cinematográfico */
.hero-portada__logo {
  width:          min(80vw, 320px);
  height:         auto;
  object-fit:     contain;
  mix-blend-mode: screen;
  filter:         drop-shadow(0 0 24px rgba(0, 0, 0, 0.6))
                  drop-shadow(0 0 60px rgba(184, 140, 74, 0.15));
  transition:     filter var(--transition-slow),
                  transform var(--transition-slow);
}

.hero-portada__logo:hover {
  filter: drop-shadow(0 0 30px rgba(184, 140, 74, 0.5))
          drop-shadow(0 0 80px rgba(184, 140, 74, 0.2));
  transform: scale(1.03);
}

/* Botón CTA dentro del hero — con efecto vidrio sutil */
.hero-portada__btn {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Animación de entrada del contenido del hero */
@keyframes hero-portada-appear {
  from {
    opacity:   0;
    transform: translateY(40px) scale(0.96);
  }
  to {
    opacity:   1;
    transform: translateY(0) scale(1);
  }
}

/* Responsivo: logo más grande en desktop */
@media (min-width: 768px) {
  .hero-portada__logo {
    width: min(60vw, 400px);
  }
}

@media (min-width: 1024px) {
  .hero-portada__logo {
    width: min(50vw, 480px);
  }
}


/* ------------------------------------------------------------
   12c. SECCIÓN INFO — Logo + título + convocatoria
   Conservada exactamente como la versión original del sitio
   ------------------------------------------------------------ */

/* Contenedor principal */
.hero-info {
  position:      relative;
  overflow:      hidden;
  padding-block: var(--space-16) var(--space-20);
  min-height:    100svh;
  display:       flex;
  align-items:   center;
}

/* Fondo de partículas / orbs de luz ambiental */
.hero-info__bg {
  position:       absolute;
  inset:          0;
  pointer-events: none;
  z-index:        var(--z-base);
  overflow:       hidden;
}

.hero-info__orb {
  position:      absolute;
  border-radius: var(--radius-full);
  filter:        blur(90px);
  opacity:       0.18;
  animation:     hero-info-orb-drift 14s ease-in-out infinite alternate;
}

.hero-info__orb--1 {
  width:      520px;
  height:     520px;
  background: var(--oro-ficajali);
  top:        -160px;
  left:       -120px;
  animation-duration: 16s;
}

.hero-info__orb--2 {
  width:      380px;
  height:     380px;
  background: var(--bronce-cultural);
  bottom:     -80px;
  right:      -80px;
  animation-duration: 20s;
  animation-delay:    -6s;
}

.hero-info__orb--3 {
  width:      260px;
  height:     260px;
  background: var(--oro-claro);
  top:        40%;
  left:       55%;
  opacity:    0.10;
  animation-duration: 12s;
  animation-delay:    -3s;
}

@keyframes hero-info-orb-drift {
  from { transform: translate(0,   0)   scale(1);    }
  to   { transform: translate(30px, 20px) scale(1.08); }
}

/* Layout interno — mobile: apilado centrado */
.hero-info__inner {
  position:       relative;
  z-index:        var(--z-raised);
  display:        flex;
  flex-direction: column;
  align-items:    center;
  gap:            var(--space-10);
  text-align:     center;
}

/* Contenedor del logo */
.hero-info__logo-wrap {
  flex-shrink: 0;
  display:     flex;
  align-items: center;
  justify-content: center;
  width:   min(80vw, 280px);
  height:  min(80vw, 280px);
  padding: var(--space-6);
  animation: hero-info-appear 0.8s var(--transition-spring) both;
}

@keyframes hero-info-appear {
  from {
    opacity:   0;
    transform: scale(0.88) translateY(16px);
  }
  to {
    opacity:   1;
    transform: scale(1) translateY(0);
  }
}

/* Logo */
.hero-info__logo {
  width:      100%;
  height:     100%;
  object-fit: contain;
  mix-blend-mode: screen;
  filter:     drop-shadow(0 0 16px rgba(184, 140, 74, 0.3));
  transition: filter var(--transition-slow);
}

.hero-info__logo-wrap:hover .hero-info__logo {
  filter: drop-shadow(0 0 24px rgba(212, 175, 55, 0.6));
}

/* Contenido textual */
.hero-info__content {
  display:        flex;
  flex-direction: column;
  align-items:    center;
  gap:            var(--space-6);
  animation:      hero-info-content-appear 0.9s 0.2s var(--transition-spring) both;
}

@keyframes hero-info-content-appear {
  from {
    opacity:   0;
    transform: translateY(24px);
  }
  to {
    opacity:   1;
    transform: translateY(0);
  }
}

/* Título FICAJALI 2026 */
.hero-info__title {
  font-size:      var(--fs-4xl);
  line-height:    1.05;
  letter-spacing: -0.03em;
}

/* Subtítulo "Historias que nacen..." */
.hero-info__subtitle {
  font-weight:    700;
  font-size:      var(--fs-lg);
  color:          var(--marfil-festival);
}

/* Párrafo descriptivo */
.hero-info__description {
  font-size:   var(--fs-md);
  line-height: var(--lh-relaxed);
  color:       var(--gris-piedra);
  max-width:   540px;
}

/* Desktop: layout horizontal (logo izq, texto der) */
@media (min-width: 1024px) {
  .hero-info__inner {
    flex-direction: row;
    text-align:     left;
    align-items:    center;
    gap:            var(--space-16);
  }

  .hero-info__content {
    align-items: flex-start;
  }

  .hero-info__logo-wrap {
    width:  340px;
    height: 340px;
  }
}

/* ------------------------------------------------------------
   13. BOTÓN CTA — btn-cta
   ------------------------------------------------------------ */

.btn-cta {
  /* Hereda de .btn los resets de display, font, cursor, etc. */
  display:        inline-flex;
  align-items:    center;
  justify-content: center;
  gap:            var(--space-3);

  font-family:    var(--font-body);
  font-size:      var(--fs-base);
  font-weight:    600;
  text-transform: uppercase;
  letter-spacing: 0.12em;

  padding:        var(--space-4) var(--space-10);
  border-radius:  var(--radius-sm);
  border:         1px solid transparent;
  user-select:    none;
  white-space:    nowrap;

  /* Estado normal: color sólido --oro-ficajali */
  background-color: var(--oro-ficajali);
  color:            var(--negro-patrimonio);
  border-color:     var(--oro-ficajali);
  box-shadow:
    0 0 20px rgba(184, 140, 74, 0.30),
    0 4px 12px rgba(0, 0, 0, 0.40);

  /* Transición suave entre estados — curva cinemática */
  transition:
    background-color 0.4s var(--ease-celuloide),
    color            0.4s var(--ease-celuloide),
    border-color     0.4s var(--ease-celuloide),
    box-shadow       0.4s var(--ease-celuloide),
    transform        0.4s var(--ease-celuloide),
    gap              0.4s var(--ease-celuloide);
}

/* Estado :hover — transición a --oro-claro */
.btn-cta:hover,
.btn-cta:focus-visible {
  background-color: var(--oro-claro);
  color:            var(--negro-patrimonio);
  border-color:     var(--oro-claro);
  box-shadow:
    0 0 36px rgba(214, 180, 122, 0.45),
    0 6px 20px rgba(0, 0, 0, 0.50),
    0 0 0 1px rgba(184, 140, 74, 0.30);
  transform: translateY(-5px);
  gap: var(--space-4);   /* el ícono se separa levemente */
}

/* Estado :active */
.btn-cta:active {
  transform:        translateY(0);
  background-color: var(--bronce-cultural);
  border-color:     var(--bronce-cultural);
  box-shadow:       var(--shadow-sm);
}

.btn-cta__text {
  /* El texto no necesita estilos extra; los hereda del botón */
}

.btn-cta__icon {
  flex-shrink: 0;
  transition:  transform var(--transition-base);
}

.btn-cta:hover .btn-cta__icon,
.btn-cta:focus-visible .btn-cta__icon {
  transform: translateX(4px);
}


/* ------------------------------------------------------------
   14. SECCIÓN MANIFIESTO
   ------------------------------------------------------------ */

.manifiesto {
  /* hereda .section: padding-block */
  text-align: center;
}

.manifiesto__inner {
  display:        flex;
  flex-direction: column;
  align-items:    center;
  gap:            var(--space-6);
  max-width:      760px;
  margin-inline:  auto;
}

.manifiesto__label {
  /* hereda .section-label */
}

.manifiesto__title {
  /* hereda h2 + Crimson Pro */
  font-size:   var(--fs-2xl);
  line-height: var(--lh-snug);
  color:       var(--marfil-festival);
}

.manifiesto__title em {
  /* hereda .heading-italic: Crimson Pro light italic */
  font-family:  var(--font-heading);
  font-weight:  300;
  font-style:   italic;
  color:        var(--oro-claro);
}

/* Cita con línea de acento lateral */
.manifiesto__quote {
  position:     relative;
  padding:      var(--space-8) var(--space-8);

  /* Superficie glass sutil */
  text-align:   center;
}

.manifiesto__quote p {
  font-family:  var(--font-body);
  font-size:    var(--fs-md);
  font-weight:  300;
  line-height:  var(--lh-relaxed);
  color:        var(--gris-piedra);
  font-style:   normal;
}

/* Ornamento tipográfico centrado */
.manifiesto__ornament {
  display:     block;
  font-size:   var(--fs-xl);
  color:       var(--oro-ficajali);
  opacity:     0.60;
  line-height: 1;
  letter-spacing: 0.3em;
  animation:   ornament-pulse 3s ease-in-out infinite;
}

@keyframes ornament-pulse {
  0%,  100% { opacity: 0.60; }
  50%        { opacity: 1.00; }
}


/* ------------------------------------------------------------
   15. RESPONSIVE HERO + MANIFIESTO (Mobile First)
   ------------------------------------------------------------ */

/* Tablet ≥ 640px — logo y texto en fila */
@media (min-width: 640px) {
  .hero__glass-card {
    width:  300px;
    height: 300px;
  }

  .hero__title {
    font-size: var(--fs-4xl);
  }

  .manifiesto__title {
    font-size: var(--fs-3xl);
  }
}

/* Tablet landscape ≥ 768px — layout de dos columnas en hero */
@media (min-width: 768px) {
  .hero {
    padding-block: var(--space-20);
    min-height:    90svh;
  }

  .hero__inner {
    flex-direction: row;
    text-align:     left;
    align-items:    center;
    gap:            var(--space-16);
  }

  .hero__glass-card {
    width:     340px;
    height:    340px;
    flex-shrink: 0;
  }

  .hero__content {
    align-items: flex-start;
  }

  .hero__eyebrow {
    align-self: center;
  }

  .hero__title {
    font-size: var(--fs-5xl);
  }

  .manifiesto__quote {
    text-align: center;
  }
}

/* Desktop ≥ 1024px */
@media (min-width: 1024px) {
  .hero {
    min-height: 100svh;
  }

  .hero__glass-card {
    width:  400px;
    height: 400px;
    padding: var(--space-8);
  }

  .manifiesto__inner {
    max-width: 860px;
  }

  .manifiesto__title {
    font-size: var(--fs-3xl);
  }
}

/* Wide ≥ 1280px */
@media (min-width: 1280px) {
  .hero__title {
    font-size: 5rem;   /* 80px — máximo display en wide */
  }
}

/* ------------------------------------------------------------
   16. UTILIDAD COMPARTIDA — Section Header
   ------------------------------------------------------------ */

.section-header {
  text-align:    center;
  margin-bottom: var(--space-12);
}

.section-header__title {
  font-family:    var(--font-heading);
  font-size:      var(--fs-2xl);
  font-weight:    400;
  line-height:    var(--lh-snug);
  color:          var(--marfil-festival);
  margin-top:     var(--space-3);
  margin-bottom:  var(--space-4);
}

.section-header__title em {
  font-family: var(--font-heading);
  font-weight: 300;
  font-style:  italic;
  color:       var(--oro-claro);
}

.section-header__sub {
  font-size:    var(--fs-md);
  line-height:  var(--lh-relaxed);
  color:        var(--gris-piedra);
  max-width:    580px;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .section-header__title { font-size: var(--fs-3xl); }
}


/* ------------------------------------------------------------
   17. SECCIÓN CONVOCATORIA
   ------------------------------------------------------------ */

/* === LÍNEA DE TIEMPO — Fechas clave === */
.conv__timeline {
  display:         flex;
  align-items:     center;
  justify-content: center;
  gap:             0;
  flex-wrap:       wrap;
  margin-bottom:   var(--space-16);
  row-gap:         var(--space-6);
}

/* Línea conectora entre tarjetas */
.conv__timeline-line {
  flex:            0 0 48px;
  height:          2px;
  background:      var(--gradient-oro);
  opacity:         0.50;
  display:         none; /* visible solo en ≥ 768px */
}

/* Tarjeta de fecha */
.conv__date-card {
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  justify-content: center;
  min-height:      160px;
  gap:             var(--space-1);
  padding:         var(--space-6) var(--space-8);
  border:          1px solid var(--color-border);
  border-radius:   32px 0 32px 0;
  background:      var(--color-surface);
  box-shadow:      var(--shadow-cantera);
  min-width:       160px;
  text-align:      center;
  position:        relative;
  transition:      transform 0.4s var(--ease-celuloide),
                   box-shadow 0.4s var(--ease-celuloide),
                   border-color 0.4s var(--ease-celuloide);
}

.conv__date-card:hover {
  transform:    translateY(-5px);
  box-shadow:   var(--shadow-lg), var(--shadow-oro),
                0 0 0 1px rgba(184, 140, 74, 0.25);
  border-color: rgba(184, 140, 74, 0.45);
}

/* Variante de color por tipo de fecha */
.conv__date-card--open   { border-top: 3px solid var(--oro-ficajali);   }
.conv__date-card--close  { border-top: 3px solid var(--bronce-cultural); }
.conv__date-card--notify { border-top: 3px solid var(--oro-claro);       }

/* Ícono SVG */
.conv__date-icon {
  color:         var(--oro-ficajali);
  margin-bottom: var(--space-2);
  line-height:   1;
}
.conv__date-card--close  .conv__date-icon { color: var(--bronce-cultural); }
.conv__date-card--notify .conv__date-icon { color: var(--oro-claro);       }

/* Etiqueta superior */
.conv__date-label {
  font-family:    var(--font-body);
  font-size:      var(--fs-xs);
  font-weight:    600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color:          var(--gris-piedra);
}

/* Número del día — cifra grande */
.conv__date-day {
  font-family:    var(--font-heading);
  font-size:      var(--fs-4xl);
  font-weight:    500;
  line-height:    1;
  background:     var(--gradient-oro);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-block:  var(--space-1);
}

.conv__date-month {
  font-family: var(--font-body);
  font-size:   var(--fs-md);
  font-weight: 600;
  color:       var(--marfil-festival);
  letter-spacing: 0.04em;
}

.conv__date-year {
  font-size:   var(--fs-xs);
  color:       var(--gris-piedra);
  font-weight: 300;
  letter-spacing: 0.08em;
}


/* === CUADRÍCULA DE CATEGORÍAS === */
.conv__categories {
  display:               grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-auto-rows:        1fr;
  gap:                   var(--space-4);
  margin-bottom:         var(--space-12);
}

/* Tarjeta de categoría */
.conv__cat-card {
  position:       relative;
  display:        flex;
  flex-direction: column;
  height:         100%;
  gap:            var(--space-2);
  padding:        var(--space-4) var(--space-5);
  background:     var(--color-surface);
  border:         1px solid var(--color-border);
  border-radius:  32px 0 32px 0;
  box-shadow:     var(--shadow-cantera);
  overflow:       hidden;
  transition:     transform        0.4s var(--ease-celuloide),
                  box-shadow       0.4s var(--ease-celuloide),
                  border-color     0.4s var(--ease-celuloide);
}

.conv__cat-card::before {
  content:   '';
  position:  absolute;
  bottom:    0;
  left:      0;
  right:     0;
  height:    3px;
  background: var(--gradient-oro);
  transform:  scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-celuloide);
}

.conv__cat-card:hover {
  transform:    translateY(-5px);
  box-shadow:   var(--shadow-md), var(--shadow-oro),
                0 0 0 1px rgba(184, 140, 74, 0.25);
  border-color: rgba(184, 140, 74, 0.35);
}

.conv__cat-card:hover::before {
  transform: scaleX(1);
}

/* Variante especial — Cineminuto (removida para igualar fondo) */

/* Ícono de categoría */
.conv__cat-icon {
  color:        var(--oro-ficajali);
  margin-bottom: var(--space-2);
  line-height:  1;
  width:        48px;
  height:       48px;
  flex-shrink:  0;
  display:      flex;
  align-items:  center;
  justify-content: center;
  overflow:     hidden;
  border-radius: var(--radius-sm);
}

.conv__cat-icon img {
  width:          100%;
  height:         100%;
  object-fit:     contain;
  mix-blend-mode: lighten;
  display:        block;
}

.conv__cat-card--special .conv__cat-icon {
  flex-shrink: 0;
}

/* Número ordinal tenue */
.conv__cat-num {
  font-family:    var(--font-body);
  font-size:      var(--fs-xs);
  font-weight:    300;
  color:          var(--bronce-cultural);
  letter-spacing: 0.10em;
  line-height:    1;
}

/* Título de categoría */
.conv__cat-title {
  font-family:  var(--font-heading);
  font-size:    var(--fs-xl);
  font-weight:  500;
  color:        var(--marfil-festival);
  line-height:  1.1;
  margin:       0;
}

/* Subtítulo */
.conv__cat-sub {
  font-size:  var(--fs-sm);
  color:      var(--gris-piedra);
  font-weight: 300;
}

/* Pastilla de duración */
.conv__cat-duration {
  display:        inline-flex;
  align-items:    center;
  justify-content: center;
  text-align:     center;
  gap:            var(--space-2);
  margin-top:     auto;
  padding:        var(--space-1) var(--space-2);
  background:     rgba(184, 140, 74, 0.10);
  border:         1px solid rgba(184, 140, 74, 0.20);
  border-radius:  var(--radius-full);
  width:          fit-content;
  max-width:      100%;
  flex-wrap:      wrap;
}

.conv__cat-dur-label {
  font-size:      var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color:          var(--gris-piedra);
  font-weight:    600;
}

.conv__cat-dur-val {
  font-family: var(--font-heading);
  font-size:   var(--fs-sm);
  font-weight: 500;
  color:       var(--oro-ficajali);
}

/* Pastilla especial para duración exacta */
.conv__cat-duration--exact .conv__cat-dur-val {
  color: var(--oro-claro);
}

/* CTA al pie de la sección */
.conv__cta {
  display:         flex;
  justify-content: center;
  padding-top:     var(--space-4);
}


/* Responsive Convocatoria */
@media (min-width: 640px) {
  /* Auto-fit takes care of the grid naturally */
}

@media (min-width: 768px) {
  .conv__timeline-line { display: block; }
  .conv__timeline      { flex-wrap: nowrap; }
}

@media (min-width: 1024px) {
  /* Auto-fit handles desktop perfectly, allowing up to 5 items in a row if space permits */
}


/* ------------------------------------------------------------
   18. SECCIÓN SEDES
   ------------------------------------------------------------ */

/* Grid principal de sedes */
.sedes__grid {
  display:               grid;
  grid-template-columns: 1fr;
  gap:                   var(--space-6);
  align-items:           start;
}

/* === TARJETA SEDE PRINCIPAL — Tepatitlán === */
.sede-card--featured {
  position:     relative;
  display:      flex;
  flex-direction: column;
  gap:          var(--space-6);
  padding:      var(--space-4);
  overflow:     hidden;

  /* Superficie con gradiente premium */
  background:
    linear-gradient(
      135deg,
      rgba(184, 140, 74, 0.10) 0%,
      rgba(10, 10, 10, 0.95)   60%
    ),
    var(--color-surface);

  border:        1px solid rgba(184, 140, 74, 0.35);
  border-radius: var(--radius-lg);
  box-shadow:
    var(--shadow-lg),
    var(--shadow-cantera),
    inset 0 1px 0 rgba(184, 140, 74, 0.15);

  transition: transform 0.4s var(--ease-celuloide), box-shadow 0.4s var(--ease-celuloide);
}

.sede-card--featured:hover {
  transform:  translateY(-6px);
  box-shadow: var(--shadow-lg), var(--shadow-oro),
              var(--shadow-cantera),
              0 0 0 1px rgba(184, 140, 74, 0.25),
              inset 0 1px 0 rgba(184, 140, 74, 0.25);
}

/* Línea dorada vertical a la izquierda */
.sede-card--featured::before {
  content:       '';
  position:      absolute;
  top:           0;
  left:          0;
  width:         4px;
  height:        100%;
  background:    var(--gradient-oro);
  border-radius: 0 2px 2px 0;
}

/* Badge "Sede Principal" */
.sede-card__badge {
  display:        inline-flex;
  align-items:    center;
  width:          fit-content;
  padding:        var(--space-1) var(--space-4);
  background:     var(--gradient-oro);
  color:          var(--negro-patrimonio);
  font-family:    var(--font-body);
  font-size:      var(--fs-xs);
  font-weight:    700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border-radius:  var(--radius-full);
}

/* Imagen de la Sede Principal que reemplaza al badge */
.sede-card__img-featured {
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
  border: 1px solid rgba(184, 140, 74, 0.2);
}

@media (min-width: 1024px) {
  .sede-card__img-featured {
    width: 220px;
    height: auto;
    margin: 0;
  }
}

/* Ocultar ícono en la tarjeta destacada para ahorrar espacio */
.sede-card--featured .sede-card__icon {
  display: none;
}

/* Ícono grande (para las demás tarjetas) */
.sede-card__icon {
  color:   var(--oro-ficajali);
  opacity: 0.80;
  align-self: flex-start;
}

/* Bloque de cuerpo */
.sede-card__body {
  display:        flex;
  flex-direction: column;
  gap:            var(--space-3);
}

/* Ciudad */
.sede-card__city {
  font-family:    var(--font-heading);
  font-size:      var(--fs-2xl);
  font-weight:    500;
  line-height:    var(--lh-tight);
  color:          var(--marfil-festival);
  margin:         0;
}

/* Estado */
.sede-card__state {
  font-size:   var(--fs-sm);
  font-weight: 300;
  color:       var(--gris-piedra);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Dirección */
.sede-card__address {
  font-style:  normal;
  font-size:   var(--fs-md);
  font-weight: 400;
  color:       var(--marfil-festival);
  line-height: var(--lh-relaxed);
  padding-top: var(--space-2);
  border-top:  1px solid var(--color-border);
}

/* Evento — fecha y hora */
.sede-card__event {
  display:     flex;
  align-items: center;
  gap:         var(--space-3);
  padding:     var(--space-3) var(--space-4);
  background:  rgba(184, 140, 74, 0.08);
  border:      1px solid rgba(184, 140, 74, 0.20);
  border-radius: var(--radius-md);
  width:       fit-content;
}

.sede-card__event-icon {
  color:       var(--oro-ficajali);
  flex-shrink: 0;
  line-height: 1;
}

.sede-card__event time {
  font-family:    var(--font-body);
  font-size:      var(--fs-md);
  font-weight:    600;
  color:          var(--oro-claro);
  letter-spacing: 0.02em;
}

/* Acento decorativo — brillo en esquina superior derecha */
.sede-card__accent {
  position:   absolute;
  top:        -60px;
  right:      -60px;
  width:      180px;
  height:     180px;
  background: radial-gradient(
    circle,
    rgba(184, 140, 74, 0.15) 0%,
    transparent 70%
  );
  border-radius: var(--radius-full);
  pointer-events: none;
}

/* Placeholder — Próximas Sedes */
.sedes__coming-soon {
  display:        flex;
  flex-direction: column;
  align-items:    center;
  justify-content: center;
  gap:            var(--space-3);
  padding:        var(--space-10) var(--space-6);
  text-align:     center;
  border:         2px dashed rgba(184, 140, 74, 0.18);
  border-radius:  var(--radius-lg);
  background:     rgba(10, 10, 10, 0.40);
}

.sedes__cs-icon {
  font-size:   var(--fs-2xl);
  color:       var(--bronce-cultural);
  opacity:     0.50;
  line-height: 1;
}

.sedes__cs-title {
  font-family: var(--font-heading);
  font-size:   var(--fs-xl);
  font-weight: 400;
  color:       var(--gris-piedra);
}

.sedes__cs-sub {
  font-size:    var(--fs-sm);
  color:        var(--bronce-cultural);
  font-weight:  300;
  max-width:    280px;
}

/* Responsive Sedes */
@media (min-width: 768px) {
  .sedes__grid {
    grid-template-columns: 2fr 1fr;
    align-items:           stretch;
  }

  .sede-card--featured {
    flex-direction: column;
  }

  .sede-card__city {
    font-size: var(--fs-3xl);
  }
}

@media (min-width: 1024px) {
  .sede-card--featured {
    flex-direction: row;
    align-items:    center;
    gap:            var(--space-10);
  }

  .sede-card__icon {
    flex-shrink: 0;
  }
}


/* ------------------------------------------------------------
   19. FOOTER
   ------------------------------------------------------------ */

#site-footer {
  background:  var(--color-surface-2);
  border-top:  1px solid var(--color-border);
  margin-top:  var(--space-8);
}

/* Banda principal del footer */
.footer__inner {
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  gap:             var(--space-8);
  padding:         var(--space-12) var(--space-6);
  max-width:       var(--container-max);
  margin-inline:   auto;
  text-align:      center;
}

/* Logo en el footer */
.footer__logo {
  height:         72px;
  width:          auto;
  mix-blend-mode: screen;
  opacity:        0.90;
  transition:     opacity var(--transition-base);
}

.footer__logo:hover {
  opacity: 1;
}

/* Tagline bajo el logo */
.footer__tagline {
  font-size:      var(--fs-sm);
  font-weight:    300;
  color:          var(--gris-piedra);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top:     var(--space-20);
}

/* Separador vertical (desktop) / horizontal (mobile) */
.footer__divider {
  width:      100%;
  height:     1px;
  background: var(--gradient-oro);
  opacity:    0.25;
}

/* Bloque de contacto */
.footer__contact {
  display:        flex;
  flex-direction: column;
  align-items:    center;
  gap:            var(--space-3);
}

/* Links de contacto */
.footer__link {
  display:         inline-flex;
  align-items:     center;
  gap:             var(--space-3);
  font-family:     var(--font-body);
  font-size:       var(--fs-base);
  font-weight:     400;
  color:           var(--gris-piedra);
  padding:         var(--space-2) var(--space-4);
  border-radius:   var(--radius-md);
  border:          1px solid transparent;
  transition:      color        var(--transition-base),
                   border-color var(--transition-base),
                   background   var(--transition-base),
                   transform    var(--transition-base);
}

.footer__link:hover {
  color:        var(--oro-claro);
  border-color: rgba(184, 140, 74, 0.35);
  background:   rgba(184, 140, 74, 0.15);
  transform:    translateX(3px);
  filter:       drop-shadow(0 0 8px rgba(255, 223, 153, 0.6));
}

.footer__link-icon {
  color:       var(--oro-ficajali);
  flex-shrink: 0;
  line-height: 1;
  transition:  color var(--transition-base);
}

.footer__link:hover .footer__link-icon {
  color: var(--oro-claro);
}

/* Instagram — variante de color ligeramente diferente */
.footer__link--instagram:hover {
  color: var(--arena-altena);
}

/* Copyright strip */
.footer__copy {
  background:    rgba(0, 0, 0, 0.40);
  border-top:    1px solid rgba(184, 140, 74, 0.08);
  padding:       var(--space-4) var(--space-6);
  text-align:    center;
}

.footer__copy p {
  font-size:  var(--fs-xs);
  color:      var(--bronce-cultural);
  font-weight: 300;
  letter-spacing: 0.04em;
}

/* Footer en desktop */
@media (min-width: 768px) {
  .footer__inner {
    flex-direction: row;
    text-align:     left;
    align-items:    flex-start;
    padding:        var(--space-16) var(--space-12);
  }

  .footer__divider {
    width:     1px;
    height:    auto;
    min-height: 120px;
    align-self: stretch;
  }

  .footer__brand {
    flex:     1;
    min-width: 0;
  }

  .footer__contact {
    align-items: flex-start;
  }

  .footer__contact .section-label {
    margin-left: var(--space-4);
  }
}


/* ------------------------------------------------------------
   20. SECCIÓN PROGRAMA Y ARTISTAS (Placeholders)
   ------------------------------------------------------------ */

.glass-panel {
  background: rgba(10, 10, 10, 0.45);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(214, 180, 122, 0.10);
  box-shadow: var(--shadow-cantera);
}

.artista-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  box-shadow: var(--shadow-cantera);
  transition: transform 0.4s var(--ease-celuloide), box-shadow 0.4s var(--ease-celuloide), border-color 0.4s var(--ease-celuloide);
}

.artista-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md), var(--shadow-oro),
              0 0 0 1px rgba(184, 140, 74, 0.25);
  border-color: rgba(184, 140, 74, 0.35);
}

.artista-card__img-ph {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto var(--space-4);
  background: linear-gradient(110deg, var(--color-surface) 8%, rgba(184, 140, 74, 0.1) 18%, var(--color-surface) 33%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite linear;
  border: 1px solid rgba(184, 140, 74, 0.2);
}

@keyframes shimmer {
  to { background-position-x: -200%; }
}

.artista-card__name {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  color: var(--marfil-festival);
  margin-bottom: var(--space-1);
}

.artista-card__role {
  font-size: var(--fs-sm);
  color: var(--bronce-cultural);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}


/* ------------------------------------------------------------
   21. SELECCIÓN OFICIAL (Inyectada vía JS)
   ------------------------------------------------------------ */

/* --- Carousel Styles --- */
.carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: var(--space-8);
  width: 100%;
}

.carousel-wrapper {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  gap: var(--space-6);
  transition: transform 0.5s ease-in-out;
}

.carousel-btn {
  background: rgba(184, 140, 74, 0.1);
  color: var(--oro-ficajali);
  border: 1px solid var(--oro-ficajali);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  transition: all 0.4s var(--ease-celuloide);
  position: absolute;
  z-index: 10;
  top: 50%;
  transform: translateY(-50%);
}

.carousel-btn:hover {
  background: var(--oro-ficajali);
  color: var(--negro-patrimonio);
  box-shadow: 0 0 20px rgba(184, 140, 74, 0.35);
  transform: translateY(-50%) scale(1.08);
}

.carousel-prev {
  left: -20px;
}

.carousel-next {
  right: -20px;
}

/* Responsividad botones */
@media (max-width: 768px) {
  .carousel-prev { left: 0; }
  .carousel-next { right: 0; }
  .carousel-btn { width: 40px; height: 40px; }
}

.film-card {
  flex: 0 0 280px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-cantera);
  transition: transform 0.4s var(--ease-celuloide), box-shadow 0.4s var(--ease-celuloide), border-color 0.4s var(--ease-celuloide);
  opacity: 0; /* Para la animación de entrada desde JS */
  animation: fade-up 0.6s ease forwards;
}

/* En tablets: mostrar 2 items */
@media (max-width: 1024px) {
  @media(max-width: 768px) { .film-card { flex: 0 0 220px; } }
}

/* En móviles: mostrar 1 item */
@media (max-width: 600px) {
  @media(max-width: 480px) { .film-card { flex: 0 0 200px; } }
}

.film-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg), var(--shadow-oro),
              0 0 0 1px rgba(184, 140, 74, 0.25);
  border-color: rgba(184, 140, 74, 0.40);
}

.film-card__poster {
  position: relative;
  aspect-ratio: 2 / 3;
  width: 100%;
  background: #111;
  overflow: hidden;
}

.film-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.film-card:hover .film-card__img {
  transform: scale(1.05);
}

.film-card__overlay {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 2;
}

.film-card__badge {
  background: var(--gradient-oro);
  color: var(--negro-patrimonio);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}

.film-card__info {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.film-card__title {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  color: var(--marfil-festival);
  margin-bottom: var(--space-1);
  line-height: var(--lh-snug);
}

.film-card__director {
  font-size: var(--fs-sm);
  color: var(--bronce-cultural);
  font-weight: 400;
  margin-top: auto;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ------------------------------------------------------------
   22. CARPETA DE VENTAS
   ------------------------------------------------------------ */

.ventas__container {
  background: linear-gradient(135deg, rgba(10,10,10,0.9) 0%, rgba(10,10,10,0.7) 100%), 
              radial-gradient(circle at top right, rgba(184,140,74,0.15), transparent 60%);
  border: 1px dashed rgba(184, 140, 74, 0.4);
  border-radius: var(--radius-xl);
  padding: var(--space-12) var(--space-6);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-cantera);
}

.ventas__content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}

.ventas__title {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  color: var(--marfil-festival);
  margin-bottom: var(--space-4);
}

.ventas__desc {
  font-size: var(--fs-md);
  color: var(--gris-piedra);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-8);
}

/* Botón Inactivo / Disabled */
.btn--disabled {
  opacity: 0.6;
  cursor: not-allowed;
  filter: grayscale(80%);
  pointer-events: none;
  background: var(--color-surface-2);
  border-color: var(--color-border);
  color: var(--gris-piedra);
}


/* ============================================================
   Fin de FICAJALI 2026 — style.css
   ============================================================ */


/* BASE NODO STYLES (Moved from inline) */
.nodo {
  flex: 0 0 170px;
  width: 170px;
  min-height: 180px;
  height: auto;
  background: #121212;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  padding: 16px 12px;
  position: relative;
  box-sizing: border-box;
  overflow: visible;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nodo:hover {
  border-color: #D4AF37;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
  transform: translateY(-2px);
  z-index: 5;
}

/* FIX CATEGORIAS DE CINE HEIGHT */
.conv__cat-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.conv__cat-duration {
  margin-top: auto;
}

/* ============================================================
   RESPONSIVE MOBILE FIXES - Programa (2 cols) & Jurado (1 col)
   ============================================================ */

@media screen and (max-width: 768px) {
  /* Grid Responsive Fix for Jurado / Artistas Invitados */
  #artistas .grid, #artistas .grid-3 {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    gap: 1.5rem !important;
  }
  
  .artista-card {
    max-width: 320px !important;
    width: 100% !important;
    margin: 0 auto !important;
  }

  /* Programa Mosaic Calendar Fix - 2 tarjetas por fila */
  .mosaic-calendar {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 0 4px !important;
    max-width: 100% !important;
  }

  .nodo {
    flex: 0 0 calc(50% - 8px) !important;
    width: calc(50% - 8px) !important;
    min-width: 130px !important;
    max-width: 175px !important;
    min-height: 160px !important;
    padding: 12px 6px !important;
    box-sizing: border-box !important;
  }

  .nodo.active .nodo-date {
    font-size: 0.95rem !important;
  }

  .nodo.active .nodo-desc {
    font-size: 0.72rem !important;
    line-height: 1.25 !important;
  }
}





.nodo-urgent, .nodo-desc, .nodo-date, .nodo .btn {
  word-break: break-word;
  white-space: normal;
}
.nodo-urgent {
  font-size: 0.85rem !important;
  line-height: 1.1;
  margin-bottom: 5px;
}

/* ==========================================================================
   RESTORED PREMIUM STYLES (COORDINADORES, SEDES, CONVOCATORIAS)
   ========================================================================== */

/* 1. COORDINADORES DE ARTE */
.directivos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.director-card {
  background: rgba(18, 18, 18, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(10px);
}

.director-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(212, 175, 55, 0.15);
}

.director-card__img-wrapper {
  width: 140px;
  height: 140px;
  margin: 0 auto 1.5rem auto;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #D4AF37;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.director-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.director-card:hover .director-card__img {
  transform: scale(1.1);
}

.director-card__bio {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 0.75rem;
  padding: 10px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
}

.director-card:hover .director-card__bio {
  transform: translateY(0);
  opacity: 1;
}

.director-card__name {
  color: #D4AF37;
  font-family: var(--font-heading, serif);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.director-card__role {
  color: #ccc;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* 2. SEDES DEL FESTIVAL */
.sedes__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.sede-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.sede-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.6), 0 0 20px rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.3);
}

.sede-card__image-wrapper {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background-color: #0a0a0a;
}

.sede-card__image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  transition: transform 0.7s ease;
}

.sede-card:hover .sede-card__image-wrapper img {
  transform: scale(1.05);
}

.sede-card__body {
  padding: 2rem;
  position: relative;
  z-index: 2;
}

.sede-card__city {
  font-family: var(--font-heading, serif);
  font-size: 1.5rem;
  color: #D4AF37;
  margin-bottom: 0.5rem;
}

.sede-card__state {
  color: #aaa;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sede-card__address {
  font-style: normal;
  color: #fff;
  line-height: 1.6;
  font-size: 0.95rem;
  opacity: 0.9;
}

.sede-card__accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, #D4AF37, transparent);
  opacity: 0.5;
}

.sedes__coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  border: 1px dashed rgba(212, 175, 55, 0.4);
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.03);
  text-align: center;
  min-height: 300px;
}

.sedes__cs-icon {
  color: #D4AF37;
  font-size: 2rem;
  margin-bottom: 1rem;
  animation: pulse-glow 2s infinite;
}

.sedes__cs-title {
  font-family: var(--font-heading, serif);
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.sedes__cs-sub {
  color: #aaa;
  font-size: 0.95rem;
  line-height: 1.5;
}

@keyframes pulse-glow {
  0% { opacity: 0.5; text-shadow: 0 0 10px rgba(212, 175, 55, 0); }
  50% { opacity: 1; text-shadow: 0 0 20px rgba(212, 175, 55, 0.5); }
  100% { opacity: 0.5; text-shadow: 0 0 10px rgba(212, 175, 55, 0); }
}

/* 3. CONVOCATORIAS ABIERTAS (TABS) */
.conv__tabs-container {
  max-width: 1000px;
  margin: 0 auto;
}

.conv__subnav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.conv__tab {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ccc;
  padding: 12px 24px;
  border-radius: 30px;
  font-family: var(--font-primary, sans-serif);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.conv__tab:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.4);
  color: #fff;
}

.conv__tab.active {
  background: #D4AF37;
  color: #000;
  border-color: #D4AF37;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.conv__panel {
  display: none;
  animation: fadeIn 0.5s ease forwards;
}

.conv__panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.conv__cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* ==========================================================================
   PROGRAMA OFICIAL (NODOS) - STRICT GRID LAYOUT
   ========================================================================== */
.mosaic-calendar {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 20px !important;
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
}

.nodo {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  flex: none !important;
  height: 100% !important; /* Make all nodes in a row the same height */
  min-height: 180px !important;
  overflow: visible !important; /* Prevent text cut-off */
  padding: 20px 15px !important;
}

/* Mobile Strict 2 Columns */
@media (max-width: 768px) {
  .mosaic-calendar {
    grid-template-columns: 1fr 1fr !important; /* 2 columns strictly */
    gap: 12px !important;
  }
  .nodo {
    min-height: 160px !important;
    padding: 15px 10px !important;
  }
  .nodo-date {
    font-size: 0.9rem !important;
  }
  .nodo-desc {
    font-size: 0.75rem !important;
  }
}

/* ==========================================================================
   GLOBAL FIXES
   ========================================================================== */
body {
  overflow-x: hidden !important; /* Fixes horizontal scroll that ruins mobile experience */
  width: 100% !important;
  position: relative;
}

#artistas .grid-3 {
  max-width: 100vw !important;
  box-sizing: border-box !important;
  padding: 0 1rem !important;
}

.artista-card {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  text-align: center;
}

/* ==========================================================================
   DROPDOWN MENU FIXES
   ========================================================================== */
.nav-item-dropdown {
  position: relative;
}
.dropdown-menu {
  display: none !important; /* Hide by default */
  position: absolute;
  top: 100%;
  right: 0;
  background: rgba(18, 18, 18, 0.95);
  border: 1px solid rgba(212, 175, 55, 0.3);
  min-width: 200px;
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  backdrop-filter: blur(10px);
}
@media (min-width: 993px) {
  .nav-item-dropdown:hover .dropdown-menu {
    display: block !important;
  }
}
.nav-item-dropdown.active .dropdown-menu {
  display: block !important;
}
.dropdown-menu li { padding: 0; }
.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}
.dropdown-menu a:hover {
  background: rgba(212, 175, 55, 0.1);
  color: #D4AF37;
  padding-left: 1.75rem;
}

/* ==========================================================================
   MODAL FIXES
   ========================================================================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999 !important;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.modal.active {
  display: flex !important;
  opacity: 1;
}
.modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
}
.modal__content {
  position: relative;
  background: #111;
  border: 1px solid var(--oro-ficajali, #D4AF37);
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 8px;
  padding: 2rem;
  z-index: 100000 !important;
}
.modal__close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  z-index: 10;
}
.modal__close:hover { color: #D4AF37; }

/* ==========================================================================
   DIRECTOR/COORDINADOR CARD FORCED FIX
   ========================================================================== */
.director-card__img-wrapper {
  width: 140px !important;
  height: 140px !important;
  margin: 0 auto 1.5rem auto !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  border: 3px solid #D4AF37 !important;
  position: relative !important;
}
.director-card__img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}


/* ==========================================================================
   COORDINADORES RESTORE (SQUARE IMAGES)
   ========================================================================== */
.directivos-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 2rem !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
}

@media (max-width: 992px) {
  .directivos-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 576px) {
  .directivos-grid { grid-template-columns: 1fr !important; }
}

.director-card {
  text-align: center !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.director-card__img-wrapper {
  width: 160px !important;
  height: 160px !important;
  margin: 0 auto 1.5rem auto !important;
  border-radius: 4px !important; 
  border: 1px solid rgba(212, 175, 55, 0.6) !important; 
  overflow: hidden !important;
  position: relative !important;
}

.director-card__name {
  color: #D4AF37 !important;
  font-family: var(--font-heading, serif) !important;
  font-size: 1.1rem !important;
  margin-bottom: 0.5rem !important;
}

.director-card__role {
  color: #ccc !important;
  font-size: 0.85rem !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
}

.director-card__bio {
  display: none !important;
}

/* ==========================================================================
   CONVOCATORIAS TABS (TEXT + UNDERLINE)
   ========================================================================== */
.conv__subnav {
  display: flex !important;
  justify-content: center !important;
  gap: 2rem !important;
  margin-bottom: 3rem !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.conv__tab {
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  color: #888 !important;
  padding: 10px 15px !important;
  font-family: var(--font-primary, sans-serif) !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
}

.conv__tab.active {
  color: #D4AF37 !important;
  border-bottom: 2px solid #D4AF37 !important;
}

/* ==========================================================================
   CONVOCATORIAS GRID (4 COLUMNS + WATERMARKS)
   ========================================================================== */
.conv__categories-otras {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 1.5rem !important;
}

@media (max-width: 992px) {
  .conv__categories-otras { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 576px) {
  .conv__categories-otras { grid-template-columns: 1fr !important; }
}

.conv__cat-card--otras {
  background-color: rgba(18, 18, 18, 0.6) !important;
  border: 1px solid rgba(212, 175, 55, 0.4) !important;
  border-radius: 8px !important;
  padding: 1.5rem !important;
  position: relative !important;
  overflow: hidden !important;
  min-height: 180px !important;
  background-position: right bottom !important;
  background-repeat: no-repeat !important;
  background-size: 55% !important;
}

.conv__cat-card--canto { background-image: url('./imagenes_de_las_artes/Canto.png') !important; }
.conv__cat-card--danza { background-image: url('./imagenes_de_las_artes/Danza.png') !important; }
.conv__cat-card--foto { background-image: url('./imagenes_de_las_artes/Foto.png') !important; }
.conv__cat-card--pintura { background-image: url('./imagenes_de_las_artes/Pintura.png') !important; }

.conv__cat-card--otras .conv__cat-num {
  color: #D4AF37 !important;
  font-size: 0.9rem !important;
  margin-bottom: 0.25rem !important;
}

.conv__cat-card--otras .conv__cat-title {
  color: #fff !important;
  font-family: var(--font-heading, serif) !important;
  font-size: 1.5rem !important;
  margin-bottom: 0.5rem !important;
  z-index: 2 !important;
  position: relative !important;
}

.conv__cat-card--otras .conv__cat-sub {
  color: #aaa !important;
  font-size: 0.85rem !important;
  z-index: 2 !important;
  position: relative !important;
}

/* ==========================================================================
   RESTORE COORDINATOR BIO TEXT (HOVER ANIMATION)
   ========================================================================== */
.director-card__bio {
  display: block !important; /* Override previous display: none */
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  background: rgba(0, 0, 0, 0.8) !important;
  color: #fff !important;
  padding: 10px !important;
  font-size: 0.8rem !important;
  text-align: center !important;
  transform: translateY(100%) !important; /* Hidden below */
  transition: transform 0.3s ease !important;
}

.director-card:hover .director-card__bio {
  transform: translateY(0) !important; /* Slide up on hover */
}

/* ==========================================================================
   RESTORE COORDINATOR BIO TEXT (WHITE BG, CENTERED)
   ========================================================================== */
.director-card__bio {
  display: flex !important; 
  align-items: center !important;
  justify-content: center !important;
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  background: rgba(255, 255, 255, 0.9) !important; /* White translucent background */
  color: #111 !important; /* Dark text */
  padding: 15px !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  text-align: center !important;
  transform: translateY(100%) !important;
  transition: transform 0.3s ease !important;
}

.director-card:hover .director-card__bio {
  transform: translateY(0) !important;
}

/* ==========================================================================
   1. DIFUMINAR FONDO TEXTO COORDINADORES
   ========================================================================== */
.director-card__bio {
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(5px) !important;
  -webkit-backdrop-filter: blur(5px) !important;
}

/* ==========================================================================
   2. FOTOS DE SEDES (Completas y más grandes)
   ========================================================================== */
.sede-card__image-wrapper img {
  aspect-ratio: auto !important;
  height: auto !important;
  max-height: 500px !important;
  object-fit: cover !important;
}

/* ==========================================================================
   3. CONTENEDOR EXPRESIONES MULTIDISCIPLINARIAS (TABS)
   ========================================================================== */
.conv__subnav {
  background-color: rgba(20, 20, 20, 0.6) !important;
  border-radius: 8px !important;
  padding: 8px 15px !important;
  display: inline-flex !important;
  border-bottom: none !important;
}

/* ==========================================================================
   4. ICONOS DE CATEGORÍAS DE CINE (Centrados y más opacos)
   ========================================================================== */
.conv__cat-card--bg {
  background-position: center center !important;
  background-size: 60% !important;
  background-color: rgba(15, 15, 15, 0.95) !important; /* Más oscuro/opaco para tapar un poco el icono */
  background-blend-mode: multiply !important; /* Mezcla el color oscuro con la imagen */
}

/* ==========================================================================
   5. TARJETAS "PRÓXIMAMENTE" MÁS GRANDES
   ========================================================================== */
#seleccion-grid .film-card {
  min-width: 300px !important;
  flex: 1 1 300px !important;
  max-width: 350px !important;
}

/* ==========================================================================
   6 & 7. PROGRAMA (Efecto oscurecimiento, botones en hold, tipografía)
   ========================================================================== */
.nodo {
  position: relative !important;
  overflow: hidden !important;
  transition: all 0.3s ease !important;
}

/* Oscurecer el fondo al apuntar */
.nodo::after {
  content: "" !important;
  position: absolute !important;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7) !important;
  opacity: 0 !important;
  transition: opacity 0.3s ease !important;
  z-index: 1 !important;
}
.nodo:hover::after, .nodo:active::after {
  opacity: 1 !important;
}

/* Aplicar tipografía */
.nodo-date {
  font-family: var(--font-heading, serif) !important;
  font-size: 1.2rem !important;
  color: #D4AF37 !important;
  position: relative !important;
  z-index: 2 !important;
}
.nodo-desc {
  font-family: var(--font-primary, sans-serif) !important;
  font-size: 1rem !important;
  color: #fff !important;
  position: relative !important;
  z-index: 2 !important;
}

/* Ocultar botones/texto urgente hasta hover/hold */
.nodo-hidden {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 3 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: all 0.3s ease !important;
  width: 90% !important;
  text-align: center !important;
}

/* En dispositivos táctiles, el hover actúa como 'hold/tap' */
.nodo:hover .nodo-hidden, .nodo:active .nodo-hidden {
  opacity: 1 !important;
  visibility: visible !important;
}

/* ==========================================================================
   1. SEDES - REPAIR IMAGES
   ========================================================================== */
.sede-card__image-wrapper {
  height: 250px !important;
  width: 100% !important;
  display: block !important;
}
.sede-card__image-wrapper img {
  height: 100% !important;
  width: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* ==========================================================================
   2. COORDINADORES - MORE BLUR, LESS WHITE
   ========================================================================== */
.director-card__bio {
  background: rgba(255, 255, 255, 0.3) !important; /* Very translucent */
  backdrop-filter: blur(10px) !important; /* Strong blur */
  -webkit-backdrop-filter: blur(10px) !important;
  color: #000 !important;
  text-shadow: 0px 0px 8px rgba(255, 255, 255, 1) !important; /* Readability boost */
}

/* ==========================================================================
   3 & 4. CONVOCATORIAS CINE & OTRAS - CENTER ICONS, DIM (OPAQUE) BG
   ========================================================================== */
.conv__cat-card {
  background-position: center !important;
  background-size: auto 60% !important;
  background-repeat: no-repeat !important;
  background-color: rgba(18, 18, 18, 0.92) !important;
  background-blend-mode: multiply !important; /* This dims the inline background images for Cine */
}

/* For "Otras", use a hard gradient over the image to guarantee it dims heavily */
.conv__cat-card--canto { background-image: linear-gradient(rgba(18, 18, 18, 0.88), rgba(18, 18, 18, 0.88)), url('./imagenes_de_las_artes/Canto.png') !important; }
.conv__cat-card--danza { background-image: linear-gradient(rgba(18, 18, 18, 0.88), rgba(18, 18, 18, 0.88)), url('./imagenes_de_las_artes/Danza.png') !important; }
.conv__cat-card--foto { background-image: linear-gradient(rgba(18, 18, 18, 0.88), rgba(18, 18, 18, 0.88)), url('./imagenes_de_las_artes/Foto.png') !important; }
.conv__cat-card--pintura { background-image: linear-gradient(rgba(18, 18, 18, 0.88), rgba(18, 18, 18, 0.88)), url('./imagenes_de_las_artes/Pintura.png') !important; }

/* Ensure text stays on top */
.conv__cat-card .conv__cat-title,
.conv__cat-card .conv__cat-sub,
.conv__cat-card .conv__cat-num {
  position: relative !important;
  z-index: 5 !important;
}

/* ==========================================================================
   5. PROGRAMA - FIX OVERLAPPING TEXT ON HOVER
   ========================================================================== */
.nodo::after {
  background: rgba(18, 18, 18, 0.98) !important; /* Solid almost black overlay */
  z-index: 10 !important;
}

.nodo-hidden {
  z-index: 20 !important; /* Keep above the overlay */
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important; /* Spacing between urgent text and button */
}

.nodo-urgent {
  margin: 0 !important;
  padding: 0 !important;
  font-weight: bold !important;
  color: #fff !important;
}

.nodo-hidden .btn {
  margin-top: 0 !important; /* Remove old margin */
}

/* ==========================================================================
   1. SEDES - REPAIR IMAGES (AGAIN)
   ========================================================================== */
.sede-card__image-wrapper {
  height: auto !important;
  aspect-ratio: 4/3 !important; /* Perfect aspect ratio for the photos */
  width: 100% !important;
  display: block !important;
}
.sede-card__image-wrapper img {
  height: 100% !important;
  width: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* ==========================================================================
   2. COORDINADORES - DARKER TRANSLUCENT BG FOR BLUR
   ========================================================================== */
.director-card__bio {
  background: rgba(18, 18, 18, 0.6) !important; /* Dark instead of white */
  backdrop-filter: blur(8px) !important; 
  -webkit-backdrop-filter: blur(8px) !important;
  color: #fff !important; /* White text */
  text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.8) !important;
}

/* ==========================================================================
   3. CONVOCATORIAS CINE - FIX ICONS BEING HIDDEN
   ========================================================================== */
.conv__cat-card--bg {
  background-size: auto 65% !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-color: rgba(18, 18, 18, 0.5) !important; /* Light enough to see the icon */
  background-blend-mode: normal !important; /* Crucial to NOT destroy the icon */
}

/* ==========================================================================
   4. CONVOCATORIAS OTRAS - FIX BLACK STRIPE (SEPARATE BG SIZES)
   ========================================================================== */
.conv__cat-card--otras {
  /* The first is the gradient (100%), the second is the image (85%) */
  background-size: 100% 100%, auto 85% !important;
  background-position: center, center !important;
  background-repeat: no-repeat, no-repeat !important;
  background-color: transparent !important;
  background-blend-mode: normal !important;
}

.conv__cat-card--canto { background-image: linear-gradient(rgba(18, 18, 18, 0.82), rgba(18, 18, 18, 0.82)), url('./imagenes_de_las_artes/Canto.png') !important; }
.conv__cat-card--danza { background-image: linear-gradient(rgba(18, 18, 18, 0.82), rgba(18, 18, 18, 0.82)), url('./imagenes_de_las_artes/Danza.png') !important; }
.conv__cat-card--foto { background-image: linear-gradient(rgba(18, 18, 18, 0.82), rgba(18, 18, 18, 0.82)), url('./imagenes_de_las_artes/Foto.png') !important; }
.conv__cat-card--pintura { background-image: linear-gradient(rgba(18, 18, 18, 0.82), rgba(18, 18, 18, 0.82)), url('./imagenes_de_las_artes/Pintura.png') !important; }

/* ==========================================================================
   5. PROGRAMA - HIDE ORIGINAL TEXT ON HOVER TO PREVENT OVERLAP
   ========================================================================== */
.nodo-date, .nodo-desc {
  transition: opacity 0.3s ease !important;
}
.nodo:hover .nodo-date,
.nodo:hover .nodo-desc,
.nodo:active .nodo-date,
.nodo:active .nodo-desc {
  opacity: 0 !important; /* Completely hide the text underneath */
}

/* ==========================================================================
   CONVOCATORIAS - UNIFIED ICON TREATMENT (CINE & OTRAS)
   ========================================================================== */

/* 1. Reset backgrounds for ALL cards to position right bottom */
.conv__cat-card {
  background-position: right bottom !important;
  background-size: auto 65% !important; /* Good balance for both Cine and Otras */
  background-repeat: no-repeat !important;
  background-color: #121212 !important;
  background-blend-mode: normal !important; /* Remove any previous blend mode */
  position: relative !important;
  overflow: hidden !important;
}

/* 2. Remove previous gradient hacks from Otras */
.conv__cat-card--canto { background-image: url('./imagenes_de_las_artes/Canto.png') !important; }
.conv__cat-card--danza { background-image: url('./imagenes_de_las_artes/Danza.png') !important; }
.conv__cat-card--foto { background-image: url('./imagenes_de_las_artes/Foto.png') !important; }
.conv__cat-card--pintura { background-image: url('./imagenes_de_las_artes/Pintura.png') !important; }

/* 3. Universal darkening overlay (this gives the exact same treatment to all icons) */
.conv__cat-card::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
  background: rgba(18, 18, 18, 0.75) !important; /* Dim the icons uniformly */
  z-index: 1 !important;
  pointer-events: none !important;
}

/* 4. Ensure text is above the dark overlay */
.conv__cat-card .conv__cat-content,
.conv__cat-card .conv__cat-title,
.conv__cat-card .conv__cat-sub,
.conv__cat-card .conv__cat-num {
  position: relative !important;
  z-index: 5 !important;
}

/* ==========================================================================
   CONVOCATORIAS - RESTORE CENTERED, LARGE ICONS FOR ALL
   ========================================================================== */

/* 1. Reset backgrounds for ALL cards to be CENTERED and LARGE */
.conv__cat-card {
  background-position: center !important; /* CENTER the icons */
  background-size: auto 95% !important;   /* Make them LARGE, filling the height */
  background-repeat: no-repeat !important;
  background-color: #121212 !important;
  background-blend-mode: normal !important; 
  position: relative !important;
  overflow: hidden !important;
}

/* 2. Remove previous gradient hacks from Otras */
.conv__cat-card--canto { background-image: url('./imagenes_de_las_artes/Canto.png') !important; }
.conv__cat-card--danza { background-image: url('./imagenes_de_las_artes/Danza.png') !important; }
.conv__cat-card--foto { background-image: url('./imagenes_de_las_artes/Foto.png') !important; }
.conv__cat-card--pintura { background-image: url('./imagenes_de_las_artes/Pintura.png') !important; }

/* 3. Universal darkening overlay (this gives the exact same dimming to all icons) */
.conv__cat-card::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
  background: rgba(18, 18, 18, 0.75) !important; /* Dim the icons uniformly */
  z-index: 1 !important;
  pointer-events: none !important;
}

/* 4. Ensure text is above the dark overlay */
.conv__cat-card .conv__cat-content,
.conv__cat-card .conv__cat-title,
.conv__cat-card .conv__cat-sub,
.conv__cat-card .conv__cat-num {
  position: relative !important;
  z-index: 5 !important;
}

/* ==========================================================================
   CONVOCATORIAS - BULLETPROOF DIMMING
   ========================================================================== */

/* Overwrite previous attempts and use blend mode for perfect dimming */
.conv__cat-card {
  background-position: center !important;
  background-size: auto 95% !important;
  background-repeat: no-repeat !important;
  background-color: rgba(18, 18, 18, 0.85) !important; /* Extremely dark overlay color */
  background-blend-mode: multiply !important; /* Dims the bright gold icons heavily */
  position: relative !important;
}

/* Remove the ::before pseudo element just in case it was causing issues */
.conv__cat-card::before {
  display: none !important;
}

/* Ensure text is above everything */
.conv__cat-card .conv__cat-content,
.conv__cat-card .conv__cat-title,
.conv__cat-card .conv__cat-sub,
.conv__cat-card .conv__cat-num {
  position: relative !important;
  z-index: 5 !important;
}

/* ==========================================================================
   SEDES - REVERT TO 250px HEIGHT
   ========================================================================== */
.sede-card__image-wrapper {
  height: 250px !important;
  width: 100% !important;
  display: block !important;
  aspect-ratio: auto !important; /* Remove the problematic aspect-ratio */
}
.sede-card__image-wrapper img {
  height: 100% !important;
  width: 100% !important;
  object-fit: cover !important;
}

/* ==========================================================================
   PROGRAMA - SPOTLIGHT EFFECT & TEXT FIX
   ========================================================================== */
/* 1. Restore the primary text visibility on hover so everything is visible */
.nodo:hover .nodo-date,
.nodo:hover .nodo-desc,
.nodo:active .nodo-date,
.nodo:active .nodo-desc {
  opacity: 1 !important; 
}

/* 2. Position the secondary text at the bottom so it doesn't overlap the primary text */
.nodo-hidden {
  position: absolute !important;
  bottom: 15px !important;
  top: auto !important; 
  left: 0 !important;
  right: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
}

/* 3. Ensure the background darkens enough to read the newly visible text */
.nodo::after {
  background: rgba(18, 18, 18, 0.95) !important;
}

/* 4. THE SPOTLIGHT EFFECT */
.mosaic-calendar:hover .nodo {
  opacity: 0.25 !important;
  filter: grayscale(80%) !important;
  transition: all 0.4s ease !important;
}

.mosaic-calendar .nodo:hover {
  opacity: 1 !important;
  filter: grayscale(0%) !important;
  transform: scale(1.05) !important;
  z-index: 50 !important;
  box-shadow: 0 15px 35px rgba(0,0,0,0.8) !important;
}

/* ==========================================================================
   PROGRAMA - SPOTLIGHT & TEXT FIX V3
   ========================================================================== */
/* Fix the text cutoff issue by ensuring the node is relative */
.nodo {
  position: relative !important;
}

/* Fix the hidden text position and ensure perfect centering */
.nodo-hidden {
  position: absolute !important;
  bottom: 15px !important;
  left: 0 !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 0 10px !important;
  box-sizing: border-box !important;
}

/* Make the hover darkening more subtle (was 0.95) */
.nodo::after {
  background: rgba(18, 18, 18, 0.75) !important;
}

/* ==========================================================================
   SPOTLIGHT EFFECT FIX (ONLY TRIGGER ON NODE HOVER)
   ========================================================================== */
/* 1. Cancel the previous overzealous container hover */
.mosaic-calendar:hover .nodo {
  opacity: 1 !important; 
  filter: none !important;
}

/* 2. Apply proper spotlight only when a specific node is actively hovered */
.mosaic-calendar:has(.nodo:hover) .nodo:not(:hover) {
  opacity: 0.35 !important; /* Less aggressive dimming for neighbors */
  filter: grayscale(60%) !important;
  transition: all 0.4s ease !important;
}

/* 3. Ensure the hovered node pops properly */
.mosaic-calendar .nodo:hover {
  opacity: 1 !important;
  filter: none !important;
  transform: scale(1.05) !important;
  z-index: 50 !important;
  box-shadow: 0 15px 35px rgba(0,0,0,0.8) !important;
}

/* ==========================================================================
   PROGRAMA - FIX TEXT ALIGNMENT (REMOVE TRANSLATE)
   ========================================================================== */
.nodo-hidden {
  transform: none !important; /* This stops it from shifting to the left */
}

/* ==========================================================================
   SEDES - DESKTOP LAYOUT FIX
   ========================================================================== */
/* The featured class was forcing flex-row on desktop, squishing the images in a grid */
.sede-card {
  display: flex !important;
  flex-direction: column !important;
}
.sede-card__image-wrapper {
  flex-shrink: 0 !important; /* Prevent it from being squished */
}

/* ==========================================================================
   SEDES - IMAGE CROP FIX (SHOW FULL IMAGE)
   ========================================================================== */
.sede-card__image-wrapper {
  background-color: #1a1a1a !important; /* Match the card's background color */
}
.sede-card__image-wrapper img {
  object-fit: contain !important; /* Prevents the image from being cropped */
  background-color: #1a1a1a !important; 
}

/* ==========================================================================
   PROGRAMA - SMALLER NODES BUT PERFECT FIT
   ========================================================================== */
.nodo {
  min-height: 140px !important; /* Make the boxes smaller */
  padding: 15px 12px 65px 12px !important; /* Big bottom padding protects the hidden text */
}

/* Compact the hidden text and button so they fit nicely at the bottom */
.nodo-hidden {
  bottom: 10px !important;
  gap: 4px !important;
}

.nodo-hidden .nodo-urgent {
  font-size: 0.75rem !important;
  margin: 0 !important;
  line-height: 1.1 !important;
}

.nodo-hidden .btn {
  padding: 5px 10px !important;
  font-size: 0.7rem !important;
  margin-top: 0 !important;
}

/* ==========================================================================
   PROGRAMA - NARROWER NODES
   ========================================================================== */
.nodo {
  flex: 0 0 145px !important;
  width: 145px !important;
  max-width: 145px !important;
  min-width: 145px !important; /* Force them to be narrow so they all fit on screen */
  padding-left: 5px !important;
  padding-right: 5px !important;
}

/* Make sure the text and button can fit inside the narrower width */
.nodo-hidden .btn {
  white-space: normal !important; /* Allow button text to wrap if it needs to */
  text-align: center !important;
  line-height: 1.1 !important;
  padding: 4px 6px !important;
  font-size: 0.65rem !important;
}

.nodo-hidden .nodo-urgent {
  font-size: 0.65rem !important;
  text-align: center !important;
  width: 100% !important;
}

/* ==========================================================================
   PROGRAMA - ADJUST WIDTH (NOT TOO NARROW)
   ========================================================================== */
.nodo {
  flex: 0 0 160px !important;
  width: 160px !important;
  max-width: 160px !important;
  min-width: 160px !important;
}

/* ==========================================================================
   PROGRAMA - JUNTAR NODOS (MENOS ESPACIO VERTICAL GLOBAL)
   ========================================================================== */
.mosaic-calendar {
  gap: 8px !important; /* Juntarlos mucho más */
  max-width: 1300px !important; /* Expandir un poco el contenedor para que quepan más por fila */
}

/* ==========================================================================
   PROGRAMA - MAXIMUM COMPACT HORIZONTAL
   ========================================================================== */
.mosaic-calendar {
  justify-content: center !important;
  align-content: center !important;
  column-gap: 4px !important; /* Extremely tight horizontal gap */
  row-gap: 8px !important;
}

.nodo {
  margin: 0 !important; /* Remove any stray margins pushing them apart */
}

/* ==========================================================================
   PROGRAMA - TRUE COMPACT (OVERRIDE GRID)
   ========================================================================== */
.mosaic-calendar {
  display: flex !important; /* This is the key! It was still a grid before */
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-content: flex-start !important;
  gap: 8px !important;
  max-width: 1400px !important;
  width: 100% !important;
}

.nodo {
  flex: 0 0 160px !important;
  width: 160px !important;
  max-width: 160px !important;
  min-width: 160px !important;
  margin: 0 !important;
}

/* ==========================================================================
   PROGRAMA - SAME HEIGHT & BIGGER SECONDARY TEXT
   ========================================================================== */
.nodo {
  height: 185px !important; /* Force exact same height for all */
  min-height: 185px !important;
  max-height: 185px !important;
  padding-bottom: 75px !important; /* Ensure secondary text doesn't overlap */
}

/* Make secondary text larger and use institutional font */
.nodo-hidden .nodo-urgent {
  font-family: var(--font-heading, serif) !important;
  font-size: 0.85rem !important;
  font-weight: bold !important;
  color: #fff !important;
}

.nodo-hidden .btn {
  font-family: var(--font-heading, serif) !important;
  font-size: 0.75rem !important;
  padding: 6px 12px !important;
}

/* ==========================================================================
   PROGRAMA - FIX OVERLAP (COLCHON DE ESPACIO)
   ========================================================================== */
.nodo {
  height: 210px !important; /* Increase height to give more breathing room */
  min-height: 210px !important;
  max-height: 210px !important;
  padding-bottom: 90px !important; /* Huge bottom padding to protect secondary text */
}

/* ==========================================================================
   PROGRAMA - FIX OVERLAP FOR LONGEST TEXT
   ========================================================================== */
.nodo {
  height: 235px !important; /* Increased again to fit the absolute longest text */
  min-height: 235px !important;
  max-height: 235px !important;
  padding-bottom: 95px !important; /* Increase the cushion further */
}

/* ==========================================================================
   PROGRAMA - LARGER TEXT FOR NODES WITHOUT BUTTONS
   ========================================================================== */
.nodo-hidden:not(:has(.btn)) {
  bottom: 30px !important; /* Push it up to center it visually in the bottom cushion */
}

.nodo-hidden:not(:has(.btn)) .nodo-urgent {
  font-size: 1.15rem !important; /* Make it significantly larger */
  text-align: center !important;
  width: 100% !important;
  line-height: 1.3 !important;
}

/* ==========================================================================
   MOBILE FIXES: MODAL, OVERLAYS, BAR, DROPDOWN
   ========================================================================== */

/* 1. Modal Responsive */
@media (max-width: 768px) {
  .modal__body {
    flex-direction: column !important;
    align-items: center !important;
    gap: 1rem !important;
  }
  .modal__poster-container {
    width: 60% !important; /* Smaller poster */
    margin: 0 auto !important;
  }
  .modal__info {
    padding-top: 0 !important;
    text-align: center !important;
  }
  #modal-title {
    text-align: center !important;
    font-size: 1.5rem !important;
  }
  #modal-synopsis {
    font-size: 0.9rem !important;
    margin-bottom: 1rem !important;
    text-align: center !important;
  }
  .modal__content {
    padding: 1.5rem !important;
    max-height: 85vh !important;
    overflow-y: auto !important;
  }
}

/* 2. Programa Nodes: Don't darken main text, and support mobile tap */
.nodo-date, .nodo-desc {
  z-index: 15 !important; /* Keep above the dark overlay */
}
/* Re-force opacity 1 on hover/active/mobile-focus for main text */
.nodo:hover .nodo-date, 
.nodo:hover .nodo-desc,
.nodo:active .nodo-date, 
.nodo:active .nodo-desc,
.nodo.mobile-focus .nodo-date, 
.nodo.mobile-focus .nodo-desc {
  opacity: 1 !important; 
}
/* Mobile focus states */
.nodo.mobile-focus {
  opacity: 1 !important;
  filter: none !important;
  transform: scale(1.05) !important;
  z-index: 50 !important;
  box-shadow: 0 15px 35px rgba(0,0,0,0.8) !important;
}
.nodo.mobile-focus::after {
  opacity: 1 !important;
}
.nodo.mobile-focus .nodo-hidden {
  opacity: 1 !important;
  visibility: visible !important;
}



/* 4. Dropdown cutoff fix for mobile menu */
@media (max-width: 992px) {
  .nav-item-dropdown .dropdown-menu {
    position: static !important; /* Flows naturally in the menu so it expands height */
    box-shadow: none !important;
    background: transparent !important;
    padding: 0.5rem 0 0 1rem !important;
    border: none !important;
    width: 100% !important;
  }
}


/* ==========================================================================
   DEFINITIVE MOBILE FIXES (v7 - Final) — NO DESKTOP CHANGES
   ========================================================================== */

@media (max-width: 768px) {
  /* Hero section gap fix */
  .hero-portada {
    height: 100vh !important; /* using vh instead of dvh to avoid jumpy gaps on iOS */
    min-height: 100vh !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
  .hero-info {
    margin-top: -2px !important; /* bridge any sub-pixel gap */
    padding-top: 2px !important;
  }

  /* Tarjetas Proximamente: slightly smaller on mobile */
  #seleccion-grid .film-card {
    flex: 0 0 200px !important;
    min-width: 200px !important;
    max-width: 200px !important;
  }
  
  #seleccion-grid .film-card__title {
    font-size: 0.85rem !important;
  }
  
  /* Programa nodes: reduce height and padding */
  .nodo {
    height: 185px !important; /* Reduce from 235px to save vertical space */
    min-height: 185px !important;
    max-height: 185px !important;
    padding: 12px 12px 75px 12px !important;
  }
  .nodo-date {
    font-size: 0.95rem !important;
  }
  .nodo-desc {
    font-size: 0.75rem !important;
  }
  .nodo-hidden .btn-ghost {
    padding: 6px 12px !important;
    font-size: 0.7rem !important;
  }
  
  /* Spotlight effect */
  .programa-grid.has-focus .nodo:not(.mobile-focus) {
    opacity: 0.2 !important;
    filter: grayscale(80%) brightness(0.4) !important;
    transition: all 0.3s ease !important;
  }
  .programa-grid.has-focus .nodo.mobile-focus {
    opacity: 1 !important;
    filter: none !important;
    border-color: #D4AF37 !important;
    z-index: 10 !important;
    transition: all 0.3s ease !important;
  }
  .nodo.mobile-focus .nodo-hidden {
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* ==========================================================================
     CONVERT DROPDOWN TO MODAL (MOBILE ONLY)
     ========================================================================== */
  .nav-item-dropdown .dropdown-menu {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 90% !important;
    max-width: 340px !important;
    background: rgba(18, 18, 18, 0.98) !important;
    border: 1px solid #D4AF37 !important;
    border-radius: 12px !important;
    padding: 2rem 1.5rem !important;
    z-index: 9999 !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8) !important;
    display: none !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  .nav-item-dropdown.active .dropdown-menu {
    display: flex !important;
  }

  .nav-item-dropdown .dropdown-menu li {
    width: 100% !important;
    text-align: center !important;
  }

  .nav-item-dropdown .dropdown-menu a {
    display: block !important;
    padding: 14px !important;
    border: 1px solid rgba(212, 175, 55, 0.4) !important;
    border-radius: 8px !important;
    color: #fff !important;
    background: transparent !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
  }

  .nav-item-dropdown .dropdown-menu a:active {
    background: rgba(212, 175, 55, 0.2) !important;
  }

  /* Modal Overlay Background */
  .dropdown-overlay {
    display: none;
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0,0,0,0.8) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    z-index: 9998 !important;
    width: 100vw !important;
    height: 100vh !important;
    left: 0 !important;
    top: 0 !important;
  }
  .dropdown-overlay.active {
    display: block !important;
  }
}
