/* ============================================================
   FERIA DEL LIBRO UAT 2026 - ESTILOS PRINCIPALES
   Identidad visual: Universidad Autónoma de Tamaulipas
   Colores: Azul UAT (#0a304d, #00223d), Terracota/Naranja (#de752b, #c55e17),
            Cálido crema/marfil (#fbf9f5, #f3ede2), Acentos (#e6a15c, #1f5f8b)
   ============================================================ */

:root {
  --uat-blue-900: #051a2b;
  --uat-blue-800: #0a304d;
  --uat-blue-700: #0f4269;
  --uat-blue-600: #1a5685;
  --uat-blue-100: #e2ecf5;
  --uat-blue-50:  #f0f5fa;

  --uat-orange-700: #b54f10;
  --uat-orange-600: #c55e17;
  --uat-orange-500: #de752b;
  --uat-orange-400: #ea8b44;
  --uat-orange-100: #faebd9;
  --uat-orange-50:  #fdf5ec;

  --uat-peach: #f5b08c;
  --uat-sand:  #f4ede2;
  --uat-bg:    #faf8f5;
  --uat-card:  #ffffff;
  --uat-text:  #1e293b;
  --uat-muted: #64748b;
  --uat-border:#e2d9cd;

  --font-display: 'Outfit', sans-serif;
  --font-serif:   'Fraunces', Georgia, serif;
  --font-sans:    'Inter', sans-serif;

  --shadow-sm: 0 2px 8px rgba(10, 48, 77, 0.06);
  --shadow-md: 0 8px 24px rgba(10, 48, 77, 0.08);
  --shadow-lg: 0 16px 40px rgba(10, 48, 77, 0.12);
  --shadow-xl: 0 24px 60px rgba(10, 48, 77, 0.18);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);

  --book-scale: 1;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ================= UTILITIES & LAYOUT ================= */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  padding: 96px 0;
  position: relative;
}

.kicker {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--uat-orange-500);
  margin-bottom: 12px;
  display: inline-block;
}

.kicker.light {
  color: var(--uat-peach);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--uat-blue-800);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-title.light {
  color: #ffffff;
}

.section-title .accent {
  color: var(--uat-orange-500);
}

.section-title .accent-peach {
  color: var(--uat-peach);
}

.section-sub {
  font-size: 1.1rem;
  color: var(--uat-muted);
  max-width: 600px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  gap: 24px;
}

.section-head.center {
  text-align: center;
  justify-content: center;
}

.section-head.center .section-sub {
  margin-left: auto;
  margin-right: auto;
}

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease;
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn-primary {
  background: var(--uat-orange-500);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(222, 117, 43, 0.35);
}

.btn-primary:hover {
  background: var(--uat-orange-600);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(222, 117, 43, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--uat-blue-800);
  border: 1.5px solid var(--uat-border);
}

.btn-ghost:hover {
  border-color: var(--uat-blue-800);
  background: rgba(10, 48, 77, 0.04);
}

.btn-peach {
  background: var(--uat-orange-500);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(222, 117, 43, 0.3);
}

.btn-peach:hover {
  background: #ffffff;
  color: var(--uat-blue-800);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.85rem;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--uat-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--uat-blue-800);
  background: #ffffff;
  transition: var(--transition);
}

.icon-btn:hover {
  border-color: var(--uat-blue-800);
  background: var(--uat-blue-800);
  color: #ffffff;
  transform: scale(1.05);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ================= HEADER ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(251, 249, 245, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 217, 205, 0.6);
  transition: var(--transition);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 20px rgba(10, 48, 77, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-logo {
  height: 46px;
  width: auto;
  transition: transform 0.25s ease;
}

.brand:hover .brand-logo {
  transform: scale(1.03);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a:not(.btn) {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--uat-blue-800);
  position: relative;
  transition: color 0.2s ease;
}

.main-nav a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--uat-orange-500);
  transition: width 0.25s ease;
  border-radius: 2px;
}

.main-nav a:not(.btn):hover,
.main-nav a:not(.btn).active {
  color: var(--uat-orange-500);
}

.main-nav a:not(.btn):hover::after,
.main-nav a:not(.btn).active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--uat-blue-800);
  border-radius: 2px;
  transition: var(--transition);
}

/* ================= HERO ================= */
.hero {
  position: relative;
  padding: 60px 0 90px;
  overflow: hidden;
  background: linear-gradient(175deg, #faf7f2 0%, #f4ede2 60%, #faede1 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg .shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
}

.hero-bg .c1 {
  width: 500px;
  height: 500px;
  background: var(--uat-orange-500);
  top: -150px;
  right: -100px;
}

.hero-bg .c2 {
  width: 380px;
  height: 380px;
  background: var(--uat-blue-800);
  bottom: -100px;
  left: -80px;
}

.hero-bg .r1 {
  width: 420px;
  height: 420px;
  border: 40px solid var(--uat-orange-500);
  top: 30%;
  right: 15%;
  opacity: 0.05;
}

.hero-bg .dot-grid {
  width: 220px;
  height: 220px;
  top: 10%;
  left: 5%;
  opacity: 0.18;
  background-image: radial-gradient(var(--uat-blue-800) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  border-radius: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--uat-orange-600);
  background: var(--uat-orange-100);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.pulse {
  width: 8px;
  height: 8px;
  background: var(--uat-orange-500);
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(222, 117, 43, 0.4);
  animation: pulseAnim 2s infinite;
}

@keyframes pulseAnim {
  0%   { box-shadow: 0 0 0 0 rgba(222, 117, 43, 0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(222, 117, 43, 0); }
  100% { box-shadow: 0 0 0 0 rgba(222, 117, 43, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 5vw, 4.25rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--uat-blue-800);
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-title .accent {
  color: var(--uat-orange-500);
}

.hero-lema {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  color: var(--uat-blue-600);
  margin-top: 12px;
  letter-spacing: normal;
}

.hero-lema em {
  color: var(--uat-orange-600);
  font-style: italic;
}

.hero-date {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.date-block {
  background: #ffffff;
  border: 1.5px solid var(--uat-border);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  box-shadow: var(--shadow-sm);
}

.date-block strong {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--uat-orange-500);
  line-height: 1;
}

.date-block span {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--uat-blue-800);
  text-transform: uppercase;
}

.date-sep {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--uat-muted);
}

.date-free {
  display: flex;
  flex-direction: column;
  margin-left: 6px;
}

.date-free .tag {
  background: var(--uat-blue-800);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-block;
}

.date-free small {
  font-size: 0.82rem;
  color: var(--uat-muted);
  margin-top: 3px;
}

.hero-place {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--uat-blue-800);
  margin-bottom: 32px;
}

.hero-place svg {
  width: 20px;
  height: 20px;
  fill: var(--uat-orange-500);
  flex-shrink: 0;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

/* Countdown */
.countdown {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--uat-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: inline-block;
  box-shadow: var(--shadow-sm);
}

.countdown-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--uat-muted);
  margin-bottom: 8px;
}

.countdown-grid {
  display: flex;
  gap: 18px;
}

.countdown-grid > div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-grid strong {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--uat-blue-800);
  line-height: 1;
}

.countdown-grid span {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--uat-muted);
  margin-top: 2px;
}

/* ================= TURN.JS FLIPBOOK (CATÁLOGO EDITORIAL INTERACTIVO) ================= */
:root {
  --book-w: 640px;
  --book-h: 440px;
  --page-w: 320px;
  --page-h: 440px;
  --book-scale: 1;
}

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.turnjs-stage {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Contenedor escalable para el libro con dimensiones exactas */
.book-scaler {
  position: relative;
  width: calc(var(--book-w) * var(--book-scale, 1));
  height: calc(var(--book-h) * var(--book-scale, 1));
  margin: 0 auto;
  perspective: 2200px;
  transition: width 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), height 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Sombra ambiental difusa y realista en la base */
.book-desk-shadow {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc((var(--book-w) - 30px) * var(--book-scale, 1));
  height: calc(42px * var(--book-scale, 1));
  background: radial-gradient(ellipse at center, rgba(10, 48, 77, 0.26) 0%, rgba(10, 48, 77, 0.10) 50%, transparent 75%);
  filter: blur(14px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  transition: left 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), width 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.35s ease, filter 0.35s ease, opacity 0.35s ease;
}

.turnjs-stage.is-turning .book-desk-shadow {
  transform: translateX(-50%) scale(1.04);
  filter: blur(17px);
  opacity: 0.92;
}

.turnjs-stage.is-cover .book-desk-shadow {
  left: 75%;
  width: calc((var(--page-w) - 20px) * var(--book-scale, 1));
}

.turnjs-stage.is-back .book-desk-shadow {
  left: 25%;
  width: calc((var(--page-w) - 20px) * var(--book-scale, 1));
}

.turnjs-stage.is-open .book-desk-shadow {
  left: 50%;
  width: calc((var(--book-w) - 30px) * var(--book-scale, 1));
}

/* Base elegante de encuadernación (soporte del libro) */
.book-base-plate {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--book-w);
  height: var(--book-h);
  transform-origin: top left;
  transform: scale(var(--book-scale, 1));
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  border-radius: 8px;
  z-index: 2;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Contenedor principal de Turn.js */
#flipbook {
  width: var(--book-w);
  height: var(--book-h);
  position: relative;
  background-color: transparent;
  transition: box-shadow 0.3s ease;
}

#flipbook.book-is-open {
  box-shadow:
    0 24px 55px -12px rgba(10, 48, 77, 0.22),
    0 8px 20px -4px rgba(10, 48, 77, 0.12),
    0 1px 3px rgba(10, 48, 77, 0.08);
  border-radius: 6px;
}

/* Estilo de cada página individual */
.turn-page {
  width: var(--page-w);
  height: var(--page-h);
  background-color: #fdfbf8;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
  cursor: pointer;
}

/* Bordes exteriores y curvatura suave en pliego abierto */
.turn-page.even {
  border-radius: 6px 0 0 6px;
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.7), inset -1px 0 3px rgba(10, 48, 77, 0.03);
}

.turn-page.odd {
  border-radius: 0 6px 6px 0;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.7), inset 1px 0 3px rgba(10, 48, 77, 0.03);
}

/* Pliegue natural del lomo central (curvatura simétrica realista) */
.turn-page.even::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 32px;
  background: linear-gradient(to right, transparent 0%, rgba(10, 48, 77, 0.02) 55%, rgba(10, 48, 77, 0.12) 100%);
  pointer-events: none;
  z-index: 10;
}

.turn-page.odd::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 32px;
  background: linear-gradient(to left, transparent 0%, rgba(10, 48, 77, 0.02) 55%, rgba(10, 48, 77, 0.12) 100%);
  pointer-events: none;
  z-index: 10;
}

/* Estructura interior universal de páginas */
.page-inner {
  height: 100%;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

/* Barra superior de página (Kicker + Número de página) */
.page-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(10, 48, 77, 0.08);
  padding-bottom: 6px;
  margin-bottom: 10px;
}

.page-kicker {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--uat-orange-600);
}

.page-num {
  font-family: var(--font-display);
  font-size: 0.70rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.06em;
}

/* Cuerpo de página editorial */
.page-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.page-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--uat-blue-800);
  line-height: 1.2;
  margin: 0 0 8px 0;
  letter-spacing: -0.015em;
}

/* Insignias de metadatos de eventos (Fecha, Hora, Sede) */
.event-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.event-badge-item {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--uat-blue-800);
  background: var(--uat-blue-50);
  border: 1px solid var(--uat-blue-100);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.event-subtitle {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--uat-orange-700);
  line-height: 1.35;
  margin: 0 0 6px 0;
}

.page-desc {
  font-family: var(--font-sans);
  font-size: 0.79rem;
  line-height: 1.5;
  color: #475569;
  margin: 0 0 10px 0;
}

/* Mini estadísticas editoriales */
.page-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
}

.stat-mini {
  background: #ffffff;
  border: 1px solid var(--uat-border);
  border-radius: var(--radius-sm);
  padding: 6px 4px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(10, 48, 77, 0.04);
}

.stat-mini strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.10rem;
  font-weight: 900;
  color: var(--uat-orange-500);
  line-height: 1;
  margin-bottom: 2px;
}

.stat-mini span {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--uat-blue-800);
}

/* Barra inferior de página */
.page-bottom-bar {
  border-top: 1px solid rgba(10, 48, 77, 0.08);
  padding-top: 6px;
  margin-top: 6px;
  font-size: 0.68rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.04em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.page-bottom-bar span:first-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 62%;
}

.page-bottom-bar span:last-child {
  white-space: nowrap;
  flex-shrink: 0;
}

/* Página de póster/cartel (lado derecho del pliego) */
.page-poster {
  background-color: #faf8f5;
}

.poster-card-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.poster-image-box {
  width: 100%;
  max-width: 236px;
  aspect-ratio: 1;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    0 10px 24px -5px rgba(10, 48, 77, 0.16),
    0 2px 5px rgba(10, 48, 77, 0.06);
  border: 1px solid rgba(10, 48, 77, 0.09);
  padding: 4px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poster-image-box:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 28px -5px rgba(10, 48, 77, 0.20),
    0 3px 7px rgba(10, 48, 77, 0.08);
}

.poster-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
  display: block;
}

.poster-caption {
  text-align: center;
}

.poster-caption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.80rem;
  font-weight: 800;
  color: var(--uat-blue-800);
}

.poster-caption small {
  font-size: 0.70rem;
  color: #64748b;
}

.poster-pill-badge {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--uat-blue-800);
  background: #ffffff;
  border: 1px solid var(--uat-border);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 5px rgba(10, 48, 77, 0.06);
  letter-spacing: 0.02em;
}

/* Portada exterior (Pág 1) */
.page-cover-front {
  background: linear-gradient(150deg, #07243c 0%, #0a3556 60%, #061c2e 100%);
  color: #ffffff;
  border-radius: 0 6px 6px 0;
  box-shadow:
    0 20px 48px -10px rgba(10, 48, 77, 0.32),
    0 6px 16px -2px rgba(10, 48, 77, 0.14);
}

.cover-inner {
  height: 100%;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
  border: 1.5px solid rgba(222, 117, 43, 0.45);
  border-radius: 5px;
  background: radial-gradient(circle at center, rgba(222, 117, 43, 0.06) 0%, transparent 75%);
}

.cover-top-badge span {
  font-family: var(--font-display);
  font-size: 0.70rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--uat-orange-400);
  background: rgba(222, 117, 43, 0.15);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(222, 117, 43, 0.3);
}

.cover-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.cover-logo {
  height: 52px;
  width: auto;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}

.cover-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.22;
  margin: 0;
  letter-spacing: -0.01em;
}

.cover-lema {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.86rem;
  color: var(--uat-peach);
  margin: 0;
}

.cover-bottom {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cover-info-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 8px;
}

.cover-info-item {
  text-align: left;
}

.cover-info-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.80rem;
  font-weight: 800;
  color: #ffffff;
}

.cover-info-item small {
  font-size: 0.66rem;
  color: var(--uat-sand);
}

.cover-pill-free {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--uat-orange-500);
  background: #ffffff;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}


/* Contraportada (Pág 22) */
.page-cover-back {
  background: linear-gradient(150deg, #061c2e 0%, #0a3556 60%, #07243c 100%);
  color: #ffffff;
  border-radius: 6px 0 0 6px;
  box-shadow:
    0 20px 48px -10px rgba(10, 48, 77, 0.32),
    0 6px 16px -2px rgba(10, 48, 77, 0.14);
}

.cover-logo-back {
  height: 48px;
  width: auto;
  margin-bottom: 10px;
}

.back-title {
  font-family: var(--font-display);
  font-size: 0.90rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px 0;
}

.back-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--uat-sand);
  margin: 0;
  padding: 0 8px;
}

.back-social-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  font-size: 0.70rem;
  color: #ffffff;
  text-align: center;
  width: 100%;
}

.back-social-box strong {
  display: block;
  font-size: 0.85rem;
  color: var(--uat-orange-400);
  margin-top: 2px;
}

.back-footer-tag {
  font-size: 0.66rem;
  color: var(--uat-muted);
  text-align: center;
  padding-top: 4px;
}

/* Tarjeta final de llamada a la acción (Pág 21) */
.final-action-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #ffffff;
  border-radius: 8px;
  padding: 14px 12px;
  box-sizing: border-box;
  box-shadow: 0 8px 20px rgba(10, 48, 77, 0.08);
  border: 1px solid rgba(10, 48, 77, 0.08);
  width: 100%;
}

.final-action-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  width: 100%;
  max-width: 154px;
  margin: 0 auto 8px;
}

.final-action-preview-grid .thumb-mini {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(10, 48, 77, 0.12);
  border: 1px solid rgba(10, 48, 77, 0.08);
}

.final-action-title {
  font-family: var(--font-display);
  font-size: 1.10rem;
  font-weight: 800;
  color: var(--uat-blue-800);
  line-height: 1.25;
  margin: 0 0 4px 0;
}

.final-action-desc {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  color: #64748b;
  line-height: 1.38;
  margin: 0 0 10px 0;
}

.btn-book-actividades {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 8px 10px;
  font-size: 0.80rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--uat-orange-500) 0%, var(--uat-orange-600) 100%);
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(222, 117, 43, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  user-select: none;
}

.btn-book-actividades:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(222, 117, 43, 0.45);
}

.btn-book-actividades svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Barra de controles interactivos (diseño flotante limpio y nítido) */
.book-controls {
  position: relative;
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid rgba(10, 48, 77, 0.14);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px rgba(10, 48, 77, 0.08);
  z-index: 25;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}

.book-nav-btn {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--uat-blue-800);
  background: var(--uat-bg);
  border: 1px solid var(--uat-border);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.book-nav-btn:hover,
.book-nav-btn:active {
  background: var(--uat-orange-500);
  color: #ffffff;
  border-color: var(--uat-orange-500);
}

@media (hover: hover) and (pointer: fine) {
  .book-nav-btn:hover {
    transform: scale(1.08);
  }
}

.book-nav-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
  shape-rendering: geometricPrecision;
}

.book-btn-jump {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--uat-blue-800);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.book-btn-jump:hover {
  color: var(--uat-orange-600);
  background: var(--uat-orange-100);
}

.book-counter {
  font-family: var(--font-display);
  font-size: 0.80rem;
  font-weight: 700;
  color: var(--uat-blue-800);
  letter-spacing: 0.02em;
  min-width: 104px;
  text-align: center;
  white-space: nowrap;
  user-select: none;
}

.book-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--uat-blue-800);
  background: var(--uat-blue-50);
  border: 1px solid var(--uat-blue-100);
  padding: 4px 11px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.book-play-btn:hover {
  background: var(--uat-blue-100);
  color: var(--uat-blue-900);
}



/* ================= TICKER ================= */
.ticker {
  background: var(--uat-orange-500);
  color: #ffffff;
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.ticker-track {
  display: inline-flex;
  gap: 28px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  animation: tickerAnim 35s linear infinite;
}

.ticker-track i {
  font-style: normal;
  font-size: 0.55rem;
  opacity: 0.6;
  vertical-align: middle;
}

@keyframes tickerAnim {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ================= STATS ================= */
.stats {
  background: #ffffff;
  padding: 44px 0;
  border-bottom: 1px solid var(--uat-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  text-align: center;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  font-weight: 900;
  color: var(--uat-blue-800);
  line-height: 1;
  margin-bottom: 6px;
}

.stat strong small {
  font-size: 0.6em;
  color: var(--uat-orange-500);
}

.stat span {
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--uat-muted);
}

/* ================= LA FERIA (ABOUT) ================= */
.about {
  background: #ffffff;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 72px;
}

.about-copy .lead {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--uat-blue-800);
  margin-bottom: 18px;
  line-height: 1.65;
}

.about-copy p {
  color: var(--uat-text);
  margin-bottom: 18px;
}

.quote {
  border-left: 4px solid var(--uat-orange-500);
  padding: 16px 24px;
  margin-top: 28px;
  background: var(--uat-orange-50);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--uat-blue-800);
  line-height: 1.4;
}

.quote cite {
  display: block;
  font-family: var(--font-display);
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--uat-orange-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 8px;
}

/* Collage */
.about-collage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.about-collage img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease;
}

.about-collage img:nth-child(2) {
  margin-top: 32px;
}

.about-collage img:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Pillars (Misión / Visión / Objetivo) */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pillar-card {
  background: var(--uat-bg);
  border: 1.5px solid var(--uat-border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--uat-border);
  transition: background 0.3s ease;
}

.pillar-card:hover {
  transform: translateY(-6px);
  background: #ffffff;
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.pillar-card:hover::before {
  background: var(--uat-orange-500);
}

.pillar-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--uat-orange-100);
  color: var(--uat-orange-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.pillar-icon svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.pillar-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--uat-blue-800);
  margin-bottom: 12px;
}

.pillar-text {
  font-size: 0.95rem;
  color: var(--uat-text);
  line-height: 1.6;
}

/* ================= CARTELERA ================= */
.cartelera {
  background: var(--uat-sand);
  overflow: hidden;
}

.slider-controls {
  display: flex;
  gap: 10px;
}

.rail {
  display: flex;
  gap: 20px;
  padding: 10px 24px 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.rail::-webkit-scrollbar {
  display: none;
}

.cartel-item {
  flex: 0 0 280px;
  scroll-snap-align: start;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.cartel-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.cartel-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.cartel-item:hover img {
  transform: scale(1.04);
}

.cartel-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(10, 48, 77, 0.85);
  color: #ffffff;
  backdrop-filter: blur(6px);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
}

.rail-progress {
  height: 4px;
  background: var(--uat-border);
  border-radius: 2px;
  margin-top: 24px;
  overflow: hidden;
}

.rail-progress span {
  display: block;
  height: 100%;
  width: 20%;
  background: var(--uat-orange-500);
  border-radius: 2px;
  transition: width 0.15s ease;
}

/* ================= PROGRAMA ================= */
.programa {
  background: #ffffff;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--uat-border);
  color: var(--uat-blue-800);
  background: #ffffff;
  transition: var(--transition);
}

.tab-btn small {
  font-weight: 500;
  font-size: 0.8em;
  opacity: 0.7;
  margin-left: 6px;
}

.tab-btn:hover {
  border-color: var(--uat-blue-800);
}

.tab-btn.active {
  background: var(--uat-blue-800);
  color: #ffffff;
  border-color: var(--uat-blue-800);
  box-shadow: 0 4px 16px rgba(10, 48, 77, 0.25);
}

.programa-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 992px) {
  .programa-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .programa-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
    gap: 20px;
  }
}

.programa-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #ffffff;
  border: 1.5px solid var(--uat-border);
  box-shadow: 0 4px 16px rgba(10, 48, 77, 0.08);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.programa-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(10, 48, 77, 0.16);
  border-color: var(--uat-orange-400);
}

.programa-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  background: #ffffff;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
  transition: transform 0.4s ease;
}

.programa-card:hover img {
  transform: scale(1.02);
}

.programa-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10, 48, 77, 0.85) 100%);
  display: flex;
  align-items: flex-end;
  padding: 18px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.programa-overlay span {
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ================= ZONAS ================= */
.zonas {
  background: var(--uat-bg);
}

.zonas-wrap {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 32px;
  background: #ffffff;
  border: 1.5px solid var(--uat-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.zonas-map {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--uat-sand);
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zonas-map a {
  display: block;
  width: 100%;
  height: 100%;
}

.zonas-map img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.zona-chip {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--uat-orange-500);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
}

.zonas-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.zonas-panel h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--uat-blue-800);
  margin-bottom: 20px;
}

.zonas-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.zona-btn {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--uat-border);
  background: var(--uat-bg);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--uat-blue-800);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 12px;
}

.zona-btn .num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid var(--uat-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--uat-muted);
  flex-shrink: 0;
  transition: var(--transition);
}

.zona-btn:hover {
  border-color: var(--uat-orange-500);
  background: #ffffff;
}

.zona-btn.active {
  border-color: var(--uat-orange-500);
  background: var(--uat-orange-500);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(222, 117, 43, 0.3);
}

.zona-btn.active .num {
  background: #ffffff;
  color: var(--uat-orange-600);
  border-color: #ffffff;
}

.zonas-social {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--uat-border);
  margin-top: 24px;
}

.zonas-social span {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--uat-muted);
}

.zonas-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--uat-bg);
  border: 1px solid var(--uat-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--uat-blue-800);
  transition: var(--transition);
}

.zonas-social a:hover {
  background: var(--uat-orange-500);
  color: #ffffff;
  border-color: var(--uat-orange-500);
  transform: translateY(-2px);
}

.zonas-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ================= VISITA ================= */
.visita {
  background: var(--uat-blue-800);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.visita::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(222, 117, 43, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.visita-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.visita-card {
  position: relative;
  z-index: 1;
}

.visita-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 32px 0 36px;
}

.visita-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.vi-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--uat-peach);
}

.vi-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.visita-list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--uat-peach);
  margin-bottom: 2px;
}

.visita-list span {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
}

.visita-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-xl);
  border: 6px solid rgba(255, 255, 255, 0.15);
  background: #000;
}

.visita-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ================= EDITORIALES (MARQUEE) ================= */
.editoriales {
  background: #ffffff;
  overflow: hidden;
}

.marquee {
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
  overflow: hidden;
  user-select: none;
}

.marquee-track {
  display: flex;
  gap: 24px;
  animation: marqueeAnim 45s linear infinite;
  flex-shrink: 0;
}

.marquee.reverse .marquee-track {
  animation-direction: reverse;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marqueeAnim {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ed-item {
  width: 180px;
  height: 90px;
  background: var(--uat-bg);
  border: 1.5px solid var(--uat-border);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.ed-item:hover {
  background: #ffffff;
  border-color: var(--uat-orange-500);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.ed-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ================= PATROCINADORES & AGRADECIMIENTOS ================= */
.patrocinadores {
  background: var(--uat-bg);
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 18px;
  margin-bottom: 60px;
}

.logo-card {
  background: #ffffff;
  border: 1.5px solid var(--uat-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.logo-card:hover {
  border-color: var(--uat-blue-800);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.logo-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.agradecimientos {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid var(--uat-border);
}

.sub-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--uat-blue-800);
  margin-bottom: 28px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.agr-grid {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.agr-card {
  background: #ffffff;
  border: 1.5px solid var(--uat-border);
  border-radius: var(--radius-md);
  padding: 20px 36px;
  max-width: 320px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.agr-card img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

/* ================= GALERÍA ================= */
.galeria {
  background: #ffffff;
}

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

.masonry-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--uat-sand);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.masonry-item:nth-child(5n+1) {
  aspect-ratio: 16 / 11;
}

.masonry-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.masonry-item:hover img {
  transform: scale(1.05);
}

.masonry-item .zoom-icon {
  position: absolute;
  inset: 0;
  background: rgba(10, 48, 77, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  color: #ffffff;
}

.masonry-item:hover .zoom-icon {
  opacity: 1;
}

.zoom-icon svg {
  width: 36px;
  height: 36px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* ================= BOTÓN OBTÉN TU GAFETE ================= */
.btn-gafete, .btn-calendar {
  background: var(--uat-blue-800);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(10, 48, 77, 0.25);
  font-weight: 700;
}

.btn-gafete:hover, .btn-calendar:hover {
  background: var(--uat-blue-700);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10, 48, 77, 0.35);
}

.btn-gafete svg, .btn-calendar svg {
  width: 19px;
  height: 19px;
}

.btn-gafete:hover svg, .btn-calendar:hover svg {
  transform: scale(1.08);
}

/* ================= FAQ ================= */
.faq {
  background: var(--uat-sand);
}

.faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: start;
}

.faq-head {
  position: sticky;
  top: 110px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #ffffff;
  border: 1.5px solid var(--uat-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.open {
  border-color: var(--uat-orange-500);
  box-shadow: var(--shadow-md);
}

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--uat-blue-800);
}

.faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--uat-orange-100);
  color: var(--uat-orange-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.3rem;
  line-height: 1;
  transition: var(--transition);
}

.faq-item.open .faq-icon {
  background: var(--uat-orange-500);
  color: #ffffff;
  transform: rotate(45deg);
}

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.faq-item.open .faq-a {
  grid-template-rows: 1fr;
}

.faq-a > div {
  overflow: hidden;
}

.faq-a p {
  padding: 0 24px 22px;
  color: var(--uat-text);
}

@media (max-width: 1024px) {
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .faq-head {
    position: static;
  }
}

/* ================= FOOTER ================= */
.site-footer {
  background: var(--uat-blue-900);
  color: #ffffff;
  position: relative;
}

.footer-hero {
  padding: 72px 24px 60px;
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr;
  align-items: flex-end;
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto;
}

.footer-deco {
  max-width: 240px;
  width: 100%;
  opacity: 0.85;
}

.footer-deco.left {
  justify-self: start;
}

.footer-deco.right {
  justify-self: end;
}

.footer-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo {
  max-width: 360px;
  width: 100%;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.4));
}

.footer-lema {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--uat-peach);
}

.footer-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-uat img {
  height: 52px;
  width: auto;
  opacity: 0.9;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--uat-orange-500);
  margin-bottom: 14px;
}

.footer-col p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--uat-orange-500);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer-copy {
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ================= LIGHTBOX ================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(5, 26, 43, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  animation: fadeIn 0.25s ease;
}

.lightbox[hidden] {
  display: none !important;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lb-close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 2.5rem;
  color: #ffffff;
  line-height: 1;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.lb-close:hover {
  background: var(--uat-orange-500);
  transform: rotate(90deg);
}

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lb-nav:hover {
  background: var(--uat-orange-500);
  transform: translateY(-50%) scale(1.1);
}

.lb-nav.prev { left: 24px; }
.lb-nav.next { right: 24px; }

.lb-nav svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

.lb-figure {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lb-figure img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xl);
}

.lb-figure figcaption {
  margin-top: 14px;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
}

/* ================= TO TOP BUTTON ================= */
.to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--uat-blue-800);
  color: #ffffff;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: var(--transition);
}

.to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.to-top:hover {
  background: var(--uat-orange-500);
  transform: translateY(-3px);
}

.to-top svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

/* ================= REVEAL ANIMATIONS ================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: none;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
  .hero {
    padding: 100px 0 50px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }
  .eyebrow, .hero-date, .hero-place, .hero-actions, .countdown {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-visual {
    margin-top: 14px;
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .pillars {
    grid-template-columns: 1fr;
  }
  .zonas-wrap {
    grid-template-columns: 1fr;
  }
  .visita-grid {
    grid-template-columns: 1fr;
  }
  .footer-hero {
    grid-template-columns: 1fr;
  }
  .footer-deco {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .hero {
    padding: 85px 0 36px;
  }
  .header-inner {
    height: 64px;
  }
  .hero-title {
    font-size: clamp(2rem, 7.5vw, 2.75rem);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
  }
  .hero-lema {
    font-size: clamp(1.02rem, 3.8vw, 1.25rem);
    margin-top: 8px;
  }
  .hero-date {
    gap: 8px;
    margin-bottom: 16px;
    justify-content: center;
  }
  .date-block {
    padding: 8px 12px;
  }
  .date-block strong {
    font-size: 1.5rem;
  }
  .date-sep {
    font-size: 1rem;
  }
  .date-free {
    width: 100%;
    align-items: center;
    margin-left: 0;
    margin-top: 6px;
  }
  .hero-place {
    font-size: 0.92rem;
    margin-bottom: 20px;
    padding: 0 10px;
    text-align: center;
    justify-content: center;
  }
  .hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    width: 100%;
    max-width: 320px;
  }
  .hero-actions .btn {
    width: 100%;
    padding: 12px 18px;
    font-size: 0.9rem;
    justify-content: center;
  }
  .hero-actions .btn-calendar {
    width: 100%;
  }
  .countdown {
    padding: 12px 14px;
    margin-bottom: 18px;
  }
  .countdown-grid {
    gap: 12px;
  }
  .countdown-grid strong {
    font-size: 1.45rem;
  }
  .main-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    border-bottom: 1px solid var(--uat-border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }
  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 76px 0 28px;
  }
  .hero-title {
    font-size: 1.95rem;
  }
  .hero-actions {
    flex-direction: column;
    max-width: 290px;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .date-free {
    width: 100%;
    margin-left: 0;
    margin-top: 4px;
  }
  .countdown-grid {
    gap: 8px;
  }
  .countdown-grid strong {
    font-size: 1.25rem;
  }
  .countdown-grid span {
    font-size: 0.65rem;
  }
  .book-controls {
    gap: 4px;
    padding: 5px 8px;
    max-width: calc(100vw - 24px);
    flex-wrap: nowrap;
  }
  .book-nav-btn {
    width: 28px;
    height: 28px;
  }
  .book-btn-jump {
    font-size: 0.68rem;
    padding: 4px 5px;
  }
  .book-counter {
    font-size: 0.72rem;
    min-width: 0;
    padding: 0 3px;
  }
  .book-play-btn {
    padding: 4px 7px;
    font-size: 0.68rem;
    gap: 3px;
  }
}
