/* ═══════════════════════════════════════════════════════════
   MÓNICA MAGAÑA · Diputada Local Jalisco
   Paleta: Naranja MC (#FF6600) + Blanco + Negro profundo
   Fuentes: Playfair Display (display) + Outfit (cuerpo)
═══════════════════════════════════════════════════════════ */

/* ─── VARIABLES ─────────────────────────────────────────── */
:root {
  --orange:       #FF6600;
  --orange-dark:  #CC4E00;
  --orange-light: #FF8C3A;
  --orange-glow:  rgba(255, 102, 0, 0.25);
  --black:        #0D0D0D;
  --black-soft:   #181818;
  --white:        #FFFFFF;
  --gray-100:     #F5F5F5;
  --gray-200:     #E0E0E0;
  --gray-500:     #888888;
  --text-dark:    #1A1A1A;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Outfit', sans-serif;

  --radius-sm:  6px;
  --radius-md:  14px;
  --radius-lg:  28px;
  --shadow-card: 0 8px 40px rgba(0,0,0,0.12);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--text-dark);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }

/* ─── UTILIDADES ─────────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.75rem;
}
.section-label.light { color: var(--orange-light); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--black);
}
.section-title.light { color: var(--white); }

.btn-primary {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.85rem 2.2rem;
  border-radius: 50px;
  border: 2px solid var(--orange);
  transition: var(--transition);
  letter-spacing: 0.04em;
}
.btn-primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--orange-glow);
}
.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.85rem 2.2rem;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.6);
  transition: var(--transition);
  letter-spacing: 0.04em;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

/* ═══════════════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.navbar.scrolled {
  background: rgba(13, 13, 13, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
}
.logo-text {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.04em;
  max-width: 140px;
  line-height: 1.3;
}
.navbar-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.navbar-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  transition: color var(--transition);
  letter-spacing: 0.03em;
}
.navbar-links a:hover { color: var(--orange-light); }
.btn-nav {
  background: var(--orange) !important;
  color: var(--white) !important;
  padding: 0.55rem 1.4rem;
  border-radius: 50px;
  font-size: 0.85rem !important;
}
.btn-nav:hover {
  background: var(--orange-dark) !important;
  color: var(--white) !important;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ═══════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  /* Reemplaza con un fallback de color si el video no carga */
  background: var(--black);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(13,13,13,0.82) 0%,
    rgba(13,13,13,0.60) 50%,
    rgba(255,102,0,0.18) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 800px;
  animation: fadeUp 1s ease both;
}
.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange-light);
  margin-bottom: 1.2rem;
}
.hero-name {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 0.92;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.name-first {
  display: block;
  font-size: clamp(3.5rem, 10vw, 8rem);
  letter-spacing: -0.02em;
}
.name-last {
  display: block;
  font-size: clamp(3.5rem, 10vw, 8rem);
  letter-spacing: -0.02em;
  -webkit-text-stroke: 2px var(--white);
  color: transparent;
}
.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  font-weight: 300;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,102,0,0.8), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════════════════ */
.about {
  padding: 7rem 2rem;
  background: var(--white);
}
.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9rem;
  align-items: center;
}
.about-image-wrap {
  position: relative;
}
.about-photo {
  width: 100%;
  max-width: 460px;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-card);
  /* Fallback si no hay foto aún */
  background: linear-gradient(145deg, var(--gray-200), var(--gray-100));
  min-height: 400px;
}
.about-photo-accent {
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 60%;
  height: 60%;
  border-radius: var(--radius-lg);
  background: var(--orange);
  z-index: 0;
  opacity: 0.18;
}
.about-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.about-text .section-title { margin-bottom: 1.5rem; }
.about-body {
  font-size: 1rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 1.2rem;
}
.about-badges {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
}
.about-badges li {
  font-size: 0.9rem;
  color: var(--black-soft);
  font-weight: 500;
  padding-left: 0.25rem;
}

/* ─── ABOUT REVERSE (imagen a la derecha) ──────────────────── */
.about-reverse .about-inner {
  grid-template-columns: 1fr 1fr;
}
.about-reverse .about-inner > div:first-child {
  order: 2;
}
.about-reverse .about-inner > div:last-child {
  order: 1;
}

/* ═══════════════════════════════════════════════════════════
   LOGROS / CARRUSEL
═══════════════════════════════════════════════════════════ */
.logros {
  padding: 7rem 2rem;
  background: var(--black);
  position: relative;
  overflow: hidden;
}
/* Decoración de fondo */
.logros::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--orange-glow) 0%, transparent 70%);
  pointer-events: none;
}
.logros-header {
  text-align: center;
  margin-bottom: 4rem;
}
.logros-header .section-title { margin-top: 0; }

/* Contenedor del carrusel */
.carousel-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  padding: 0 60px;
}
.carousel-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Tarjetas */
.card {
  flex: 0 0 calc(33.333% - 1rem);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.card:hover { 
  background: rgba(255,255,255,0.08);
  transform: translateY(-6px);
  border-color: rgba(255,102,0,0.3);
  box-shadow: 0 20px 50px rgba(255,102,0,0.15);
}
.card:hover::before { transform: scaleX(1); }
.card-icon { font-size: 2.2rem; margin-bottom: 1rem; }
.card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.card-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--orange-light);
  background: rgba(255,102,0,0.12);
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
}

/* Botones carrusel */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--orange);
  color: var(--white);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-btn:hover {
  background: var(--orange-dark);
  transform: translateY(-50%) scale(1.1);
}
.prev { left: 0; }
.next { right: 0; }
.carousel-btn:disabled { opacity: 0.3; cursor: default; }
.carousel-btn:disabled:hover { transform: translateY(-50%) scale(1); }

/* Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.dot.active {
  background: var(--orange);
  transform: scale(1.3);
}

/* ═══════════════════════════════════════════════════════════
   WHATSAPP / QR
═══════════════════════════════════════════════════════════ */
.whatsapp-section {
  padding: 7rem 2rem;
  background: var(--gray-100);
}
.whatsapp-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5rem;
  align-items: center;
}
.wa-text .section-title { color: var(--black); margin-bottom: 1.2rem; }
.wa-body {
  font-size: 1rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 480px;
}
.wa-btn { background: #25D366; border-color: #25D366; }
.wa-btn:hover { background: #1DAE55; border-color: #1DAE55; }

.wa-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.qr-img {
  width: 200px;
  height: 200px;
  border-radius: var(--radius-md);
  padding: 1rem;
  background: var(--white);
  box-shadow: var(--shadow-card);
  /* Fallback placeholder visual si no hay QR aún */
  background: var(--white);
  min-height: 200px;
  border: 2px solid var(--gray-200);
}
.qr-hint {
  font-size: 0.78rem;
  color: var(--gray-500);
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.footer {
  background: var(--black);
  color: rgba(255,255,255,0.75);
  padding: 5rem 2rem 2rem;
}
.footer-top {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .footer-logo {
  height: 48px;
  width: auto;
  margin-bottom: 1.2rem;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
.footer-desc {
  font-size: 0.88rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.5);
}
.footer-col-title {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange-light);
  margin-bottom: 1.2rem;
}
.footer-links li { margin-bottom: 0.65rem; }
.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--orange-light); }

/* Social links con íconos */
.social-links a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.social-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity var(--transition);
}
.social-links a:hover .social-icon { opacity: 1; }

.footer-address p {
  font-size: 0.88rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.75rem;
}
.footer-address strong {
  color: rgba(255,255,255,0.85);
  font-weight: 600;
}
.map-link {
  font-size: 0.83rem;
  color: var(--orange-light);
  font-weight: 500;
  transition: color var(--transition);
}
.map-link:hover { color: var(--orange); }

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}
.footer-credit { color: rgba(255,255,255,0.4) !important; }

/* ═══════════════════════════════════════════════════════════
   ANIMACIONES
═══════════════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.15); }
}

/* Animación en scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .card { flex: 0 0 calc(50% - 0.75rem); }
}

@media (max-width: 900px) {
  .about-inner { grid-template-columns: 1fr; gap: 3rem; }
  .about-image-wrap { display: flex; justify-content: center; }
  .about-photo { max-width: 340px; }
  .whatsapp-inner { grid-template-columns: 1fr; text-align: center; }
  .wa-qr-wrap { align-items: center; }
  .wa-body { max-width: 100%; }
}

@media (max-width: 768px) {
  .navbar-links { display: none; }
  .hamburger { display: flex; }
  .navbar-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(13,13,13,0.98);
    padding: 1.5rem 2rem;
    gap: 1.2rem;
  }
  .card { flex: 0 0 calc(100% - 0px); }
  .carousel-wrapper { padding: 0 50px; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { justify-content: center; text-align: center; }
  .name-first, .name-last { font-size: clamp(3rem, 14vw, 5rem); }
}

@media (max-width: 480px) {
  .carousel-wrapper { padding: 0 40px; }
  .hero-ctas { flex-direction: column; align-items: center; }
}

/* ═══════════════════════════════════════════════════════════
   CRUCIGRAMA INTERACTIVO (VISUAL)
═══════════════════════════════════════════════════════════ */
.crossword-section {
  padding: 7rem 2rem;
  background: var(--white);
  position: relative;
}
.crossword-section::before {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--orange-glow) 0%, transparent 70%);
  pointer-events: none;
}
.crossword-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}
.crossword-header .section-title { margin-bottom: 0.5rem; }
.crossword-subtitle {
  font-size: 1rem;
  color: var(--gray-500);
  margin-top: 1rem;
  line-height: 1.6;
}

.crossword-container {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.crossword-main {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  background: linear-gradient(135deg, #f9f9f9 0%, var(--gray-100) 100%);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.06);
  margin-bottom: 2rem;
}

/* ─── CUADRÍCULA VISUAL ──────────────────────────────────── */
.crossword-grid-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.crossword-grid {
  display: inline-grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(7, 1fr);
  gap: 0;
  padding: 2px;
  background: var(--text-dark);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.cell {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  position: relative;
  background: var(--white);
  border: 1px solid #ddd;
  margin: 1px;
  border-radius: 4px;
  font-family: 'Arial', sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: text;
  transition: all 0.2s ease;
  overflow: hidden;
}

.cell:hover:not(.blocked) {
  background: rgba(255,102,0,0.05);
  border-color: var(--orange);
  box-shadow: inset 0 0 8px rgba(255,102,0,0.1);
}

.cell.blocked {
  background: var(--text-dark);
  cursor: default;
  border-color: var(--text-dark);
}

.cell input {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--text-dark);
  font-family: 'Arial', sans-serif;
  letter-spacing: 0.05em;
  outline: none;
  padding: 0;
}

.cell input::placeholder { color: transparent; }

.cell.selected {
  background: rgba(255,102,0,0.12);
  border: 2px solid var(--orange);
  box-shadow: inset 0 0 0 1px var(--orange);
}

.cell .cell-number {
  position: absolute;
  top: 1px;
  left: 1px;
  font-size: 0.55rem;
  font-weight: 700;
  color: #666;
  line-height: 1;
  background: rgba(255,255,255,0.7);
  padding: 1px 2px;
  border-radius: 2px;
}

/* ─── PISTAS ──────────────────────────────────────────────── */
.crossword-clues {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.clues-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.clues-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--black);
  margin: 0;
  padding: 0.75rem 0;
  border-bottom: 2px solid var(--orange);
}

.clues-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.clues-list li {
  font-size: 0.9rem;
  color: #333;
  line-height: 1.5;
  padding: 0.6rem 0.8rem;
  background: rgba(255,102,0,0.05);
  border-left: 3px solid var(--orange);
  border-radius: 4px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.clues-list li:hover {
  background: rgba(255,102,0,0.12);
  transform: translateX(4px);
}

.clues-list li strong {
  color: var(--orange);
  font-weight: 700;
  margin-right: 0.5rem;
}

/* ─── ACCIONES ────────────────────────────────────────────── */
.crossword-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.crossword-actions .btn-primary,
.crossword-actions .btn-secondary {
  min-width: 200px;
  text-align: center;
}

.crossword-actions .btn-secondary {
  cursor: pointer;
  transition: all var(--transition);
}

.crossword-actions .btn-secondary:hover {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

.crossword-feedback {
  margin-top: 1rem;
  padding: 1.2rem;
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  min-width: 200px;
  display: none;
  animation: slideDown 0.4s ease;
}

.crossword-feedback.show {
  display: block;
}

.crossword-feedback.success {
  background: rgba(76, 175, 80, 0.15);
  color: #2E7D32;
  border: 2px solid #4CAF50;
}

.crossword-feedback.error {
  background: rgba(244, 67, 54, 0.15);
  color: #C62828;
  border: 2px solid #F44336;
}

.crossword-feedback.warning {
  background: rgba(255, 193, 7, 0.15);
  color: #F57F17;
  border: 2px solid #FBC02D;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── RECOMPENSA ─────────────────────────────────────────── */
.crossword-reward {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: var(--white);
  text-align: center;
  box-shadow: 0 20px 60px rgba(255,102,0,0.3);
  animation: slideUp 0.6s ease;
  margin-top: 2rem;
}

.reward-content {
  max-width: 600px;
  margin: 0 auto;
}

.reward-badge {
  display: inline-block;
  background: rgba(255,255,255,0.25);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
  letter-spacing: 0.05em;
  animation: bounce 0.6s ease;
}

@keyframes bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.reward-content h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.reward-content p {
  font-size: 0.95rem;
  line-height: 1.7;
  opacity: 0.95;
}

.share-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.share-btn {
  display: inline-block;
  background: rgba(255,255,255,0.25);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
}

.share-btn:hover {
  background: rgba(255,255,255,0.4);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

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

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .crossword-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .cell {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }
  
  .clues-list {
    columns: 2;
    column-gap: 1rem;
  }
}

@media (max-width: 600px) {
  .crossword-section {
    padding: 4rem 1.5rem;
  }
  
  .crossword-main {
    padding: 1.5rem;
    gap: 1.5rem;
  }
  
  .cell {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
    margin: 0.5px;
  }
  
  .cell .cell-number {
    font-size: 0.5rem;
    padding: 1px;
  }
  
  .clues-list {
    columns: 1;
  }
  
  .crossword-clues {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .reward-content h3 {
    font-size: 1.5rem;
  }
}
.wheel-section {
  padding: 7rem 2rem;
  background: linear-gradient(135deg, var(--black) 0%, var(--black-soft) 100%);
  position: relative;
  overflow: hidden;
}
.wheel-section::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--orange-glow) 0%, transparent 70%);
  pointer-events: none;
}
.wheel-section::after {
  content: '';
  position: absolute;
  bottom: -150px; left: -150px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,140,58,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.wheel-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}
.wheel-header .section-title.light { margin-bottom: 0.5rem; }
.wheel-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  margin-top: 1rem;
  line-height: 1.6;
}
.wheel-container {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.wheel-canvas-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
#wheelCanvas {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 50px rgba(255,102,0,0.3));
}
.wheel-pointer {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 20px solid var(--orange);
  z-index: 10;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3));
}
.wheel-spin-btn {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: var(--white);
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 10px 30px rgba(255,102,0,0.3);
  z-index: 5;
}
.wheel-spin-btn:hover:not(:disabled) {
  background: var(--orange-dark);
  transform: translateX(-50%) scale(1.05);
  box-shadow: 0 15px 40px rgba(255,102,0,0.4);
}
.wheel-spin-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.wheel-spin-btn.spinning {
  animation: buttonPulse 0.6s ease infinite;
}

@keyframes buttonPulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(255,102,0,0.3); }
  50% { box-shadow: 0 10px 50px rgba(255,102,0,0.6); }
}

.wheel-result {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,102,0,0.3);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(10px);
  animation: slideIn 0.5s ease;
}
.result-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.result-proposal {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--orange);
  line-height: 1.2;
  text-align: center;
}
.proposal-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  text-align: center;
}
.result-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
}
.result-actions .btn-primary,
.result-actions .btn-secondary {
  flex: 1;
  min-width: 150px;
  text-align: center;
}
.result-actions .btn-secondary {
  color: var(--orange);
  border-color: var(--orange);
}
.result-actions .btn-secondary:hover {
  background: var(--orange);
  color: var(--white);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Responsive */
@media (max-width: 900px) {
  .wheel-container { grid-template-columns: 1fr; gap: 2rem; }
  .wheel-result { margin-top: 2rem; }
  .crossword-board { padding: 2rem; }
  .crossword-clue { flex-direction: column; align-items: flex-start; }
  .crossword-input { width: 100%; }
}

@media (max-width: 480px) {
  #wheelCanvas { max-width: 280px; }
  .wheel-spin-btn { padding: 0.9rem 2rem; font-size: 0.9rem; }
  .crossword-section { padding: 4rem 1.5rem; }
  .wheel-section { padding: 4rem 1.5rem; }
  .result-actions { flex-direction: column; }
  .result-actions .btn-primary,
  .result-actions .btn-secondary { width: 100%; }
}

/* ═══════════════════════════════════════════════════════════
   LÍNEA DEL TIEMPO INTERACTIVA (ESTILO APPLE)
═══════════════════════════════════════════════════════════ */
.timeline-section {
  padding: 7rem 2rem;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.timeline-section::before {
  content: '';
  position: absolute;
  top: -300px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--orange-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.timeline-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;
}

.timeline-header .section-title {
  margin-bottom: 0.5rem;
  margin-top: 0;
}

.timeline-subtitle {
  font-size: 1rem;
  color: var(--gray-500);
  margin-top: 1rem;
  line-height: 1.6;
  font-weight: 300;
}

.timeline-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.timeline-track {
  position: relative;
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* Línea vertical central */
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--orange), var(--orange), transparent);
  transform: translateX(-50%);
}

/* Items individuales */
.timeline-item {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.timeline-item:nth-child(even) {
  grid-template-columns: 1fr 1fr;
  direction: rtl;
}

.timeline-item:nth-child(even) > * {
  direction: ltr;
}

/* Punto central (dot) */
.timeline-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 24px;
  background: var(--white);
  border: 3px solid var(--orange);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 0 0 8px rgba(255, 102, 0, 0.1);
}

.timeline-item:hover .timeline-dot {
  width: 32px;
  height: 32px;
  box-shadow: 0 0 0 12px rgba(255, 102, 0, 0.2);
  transform: translate(-50%, -50%) scale(1.1);
}

/* Contenido del timeline */
.timeline-content {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  position: relative;
}

.timeline-item:hover .timeline-content {
  background: rgba(255, 102, 0, 0.05);
  transform: translateY(-4px);
}

.timeline-year {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--orange);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.timeline-preview {
  font-size: 0.95rem;
  color: var(--gray-500);
  line-height: 1.6;
  margin: 0;
}

/* Modal Popup */
.timeline-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--white);
  border-radius: 2rem;
  max-width: 600px;
  width: 90%;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s ease;
  z-index: 2001;
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(0, 0, 0, 0.08);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.12);
  transform: scale(1.1);
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.modal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 300px;
}

.modal-text {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-text h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--black);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.modal-text p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.7;
  margin: 0 0 1.5rem 0;
}

.modal-impact {
  background: rgba(255, 102, 0, 0.08);
  padding: 1rem;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--orange);
}

.modal-impact strong {
  color: var(--orange);
  display: block;
  margin-bottom: 0.5rem;
}

.modal-impact p {
  font-size: 0.9rem;
  margin: 0;
  color: #333;
}

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

/* Responsive Timeline */
@media (max-width: 768px) {
  .timeline-track {
    gap: 2rem;
    padding: 1rem 0;
  }

  .timeline-item {
    grid-template-columns: 1fr !important;
    direction: ltr !important;
    gap: 1.5rem;
  }

  .timeline-item > * {
    direction: ltr !important;
  }

  .timeline-line {
    left: 20px;
  }

  .timeline-dot {
    left: 20px;
  }

  .timeline-content {
    padding: 1.5rem;
    margin-left: 60px;
  }

  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 60px;
  }

  .modal-body {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .modal-image {
    height: 200px;
  }

  .modal-text {
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  .timeline-section {
    padding: 4rem 1.5rem;
  }

  .timeline-header .section-title {
    font-size: 2rem;
  }

  .timeline-subtitle {
    font-size: 0.9rem;
  }

  .timeline-year {
    font-size: 1.4rem;
  }

  .timeline-title {
    font-size: 1.1rem;
  }

  .timeline-preview {
    font-size: 0.85rem;
  }

  .modal-content {
    width: 95%;
    border-radius: 1.5rem;
  }

  .modal-text {
    padding: 1.5rem;
  }

  .modal-text h3 {
    font-size: 1.3rem;
  }
}
