/* ==========================================================================
   HOJA DE ESTILOS: TAWANTINSUYU - EXPOSICIÓN ESCOLAR
   Estilo visual: Inspiración andina e incaica (oro solar, adobe, tierra y verde)
   Responsividad: Compatible con celulares antiguos, modernos, tablets y PC
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES CSS (PALETA DE COLORES Y SISTEMA DE DISEÑO)
   -------------------------------------------------------------------------- */
:root {
  /* Tonos dorados inspirados en Inti (Sol) */
  --gold-primary: #d49a26;
  --gold-light: #f5c451;
  --gold-bright: #ffdf78;
  --gold-dark: #9e6f14;
  --gold-glow: rgba(245, 196, 81, 0.35);

  /* Tonos terrosos y adobe andino */
  --earth-dark: #19120e;
  --earth-card: #251b15;
  --earth-card-hover: #32241d;
  --earth-border: #4a362b;
  --earth-red: #9e361d;
  --earth-red-light: #c04928;

  /* Tonos verdes de los valles andinos */
  --green-andes: #2f6b47;
  --green-andes-light: #3f8a5d;
  --green-glow: rgba(63, 138, 93, 0.35);

  /* Fondo granito / piedra de fortaleza */
  --stone-bg: #120d0a;
  --stone-accent: #3a2e26;

  /* Colores de texto accesibles y legibles */
  --text-main: #f5eedf;
  --text-muted: #c7b9a5;
  --text-gold: #ffd67a;
  --text-dark: #1a120c;

  /* Tipografías */
  --font-title: 'Cinzel', serif, Georgia, 'Times New Roman';
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Radios de borde y transiciones */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Sombras */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 0 25px var(--gold-glow);
}

/* --------------------------------------------------------------------------
   2. REINICIO Y CONFIGURACIÓN BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

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

body {
  background-color: var(--stone-bg);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(212, 154, 38, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(158, 54, 29, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 0% 50%, rgba(47, 107, 71, 0.08) 0%, transparent 50%),
    linear-gradient(to bottom, #140e0b, #0f0a08);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Cenefa decorativa andina escalonada */
.inca-frieze {
  width: 100%;
  height: 8px;
  background: repeating-linear-gradient(
    45deg,
    var(--gold-primary) 0,
    var(--gold-primary) 10px,
    var(--earth-red) 10px,
    var(--earth-red) 20px,
    var(--green-andes) 20px,
    var(--green-andes) 30px,
    var(--earth-dark) 30px,
    var(--earth-dark) 40px
  );
  opacity: 0.9;
}

/* Contenedor centralizado responsivo */
.container {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 4vw, 2rem);
  padding-right: clamp(1rem, 4vw, 2rem);
}

/* --------------------------------------------------------------------------
   3. NAVEGACIÓN Y MENÚ SUPERIOR (DESKTOP + HAMBURGUESA MÓVIL)
   -------------------------------------------------------------------------- */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(25, 18, 14, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--earth-border);
  transition: var(--transition-fast);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Marca / Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  cursor: pointer;
}

.inti-emblem {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px var(--gold-glow));
  animation: rotateSubtle 24s linear infinite;
}

@keyframes rotateSubtle {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.brand-title {
  font-family: var(--font-title);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 800;
  color: var(--gold-light);
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Menú en Computadoras */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-item-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: var(--transition-fast);
}

.nav-item-btn:hover {
  color: var(--gold-bright);
  background: rgba(212, 154, 38, 0.12);
  border-color: rgba(212, 154, 38, 0.3);
}

.nav-item-btn.active {
  color: var(--text-dark);
  background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
  font-weight: 700;
  box-shadow: 0 2px 12px var(--gold-glow);
}

/* Botón Hamburguesa (Móviles) */
.hamburger-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--earth-border);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 1100;
  flex-direction: column;
  justify-content: space-around;
  transition: var(--transition-fast);
}

.hamburger-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--gold-light);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

.hamburger-btn.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger-btn.is-active span:nth-child(2) {
  opacity: 0;
}
.hamburger-btn.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Despliegue de Menú Móvil */
@media (max-width: 820px) {
  .hamburger-btn {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    right: 0;
    bottom: 0;
    width: min(320px, 85vw);
    background: rgba(28, 20, 16, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--earth-border);
    flex-direction: column;
    align-items: stretch;
    padding: 2rem 1.5rem;
    gap: 1rem;
    transform: translateX(105%);
    transition: transform var(--transition-smooth);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.6);
    z-index: 1050;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-item-btn {
    padding: 14px 18px;
    font-size: 1rem;
    justify-content: flex-start;
    border: 1px solid var(--earth-border);
  }
}

.menu-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 1040;
}

.menu-backdrop.open {
  display: block;
}

/* --------------------------------------------------------------------------
   4. HERO BANNER DE PRESENTACIÓN
   -------------------------------------------------------------------------- */
.hero-banner {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 2rem;
  text-align: center;
  position: relative;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(212, 154, 38, 0.15);
  border: 1px solid rgba(212, 154, 38, 0.4);
  border-radius: var(--radius-full);
  color: var(--gold-light);
  font-size: clamp(0.75rem, 2vw, 0.88rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--gold-bright);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 154, 38, 0.3);
  margin-bottom: 1rem;
}

.hero-title span {
  background: linear-gradient(135deg, #ffe9a6 0%, #d49a26 50%, #9e361d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.hero-desc {
  max-width: 680px;
  margin: 0 auto clamp(1.5rem, 3vw, 2.5rem);
  color: var(--text-muted);
  font-size: clamp(0.95rem, 2.2vw, 1.12rem);
}

.stages-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.stage-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--earth-card);
  border: 1px solid var(--earth-border);
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.stage-pill.active {
  background: var(--gold-primary);
  color: var(--text-dark);
  border-color: var(--gold-bright);
  box-shadow: 0 0 15px var(--gold-glow);
}

.stage-pill.completed {
  background: var(--green-andes);
  color: #ffffff;
  border-color: var(--green-andes-light);
}

.divider-chakana {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 2rem 0;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--earth-border), transparent);
}

.chakana-icon {
  width: 28px;
  height: 28px;
  fill: var(--gold-primary);
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   5. SECCIONES Y FLUJO PROGRESIVO
   -------------------------------------------------------------------------- */
.section-stage {
  padding: clamp(2rem, 5vw, 4rem) 0;
  border-bottom: 1px solid rgba(74, 54, 43, 0.4);
  position: relative;
}

.section-stage.locked-content {
  display: none;
}

.section-stage.unlocked {
  display: block;
  animation: fadeInSection 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* --------------------------------------------------------------------------
   6. ETAPA 1: MINIJUEGO GUIADO "EL CAMINO DEL CHASQUI"
   -------------------------------------------------------------------------- */
.card-game {
  background: linear-gradient(145deg, #2b1f18, #1e1511);
  border: 2px solid var(--gold-dark);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(212, 154, 38, 0.1);
  position: relative;
  overflow: hidden;
}

.card-game::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--gold-light), var(--earth-red), var(--green-andes));
}

.game-header {
  text-align: center;
  margin-bottom: 2rem;
}

.game-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--earth-red);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}

.game-title {
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.game-subtitle {
  color: var(--text-muted);
  font-size: clamp(0.9rem, 2vw, 1rem);
  max-width: 620px;
  margin: 0 auto;
}

/* Pista visual del Chasqui */
.chasqui-track-container {
  background: rgba(18, 13, 10, 0.85);
  border: 1px solid var(--earth-border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
  margin-bottom: 2.25rem;
  position: relative;
}

.track-status-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.track-road {
  position: relative;
  height: 14px;
  background: #352820;
  border-radius: var(--radius-full);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
  margin: 2.2rem 1rem 1rem;
}

.track-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--green-andes), var(--gold-primary));
  border-radius: var(--radius-full);
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 10px var(--gold-glow);
}

.chasqui-runner {
  position: absolute;
  top: -36px;
  left: 0%;
  transform: translateX(-50%);
  transition: left 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
}

.chasqui-avatar {
  width: 38px;
  height: 38px;
  background: var(--gold-bright);
  border: 2px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5), 0 0 12px var(--gold-light);
  animation: bounceRunner 1s ease-in-out infinite alternate;
}

@keyframes bounceRunner {
  from { transform: translateY(0); }
  to { transform: translateY(-5px); }
}

.chasqui-label-bubble {
  background: #110c0a;
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  margin-top: 3px;
}

.tambo-checkpoints {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: -24px;
  padding: 0 6px;
}

.tambo-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 5;
}

.tambo-point {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #423229;
  border: 2px solid var(--earth-border);
  transition: var(--transition-fast);
}

.tambo-node.reached .tambo-point {
  background: var(--gold-light);
  border-color: #fff;
  box-shadow: 0 0 10px var(--gold-light);
}

.tambo-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 8px;
  text-align: center;
}

.tambo-node.reached .tambo-name {
  color: var(--gold-light);
  font-weight: 700;
}

/* Área de Preguntas del Juego Pedagógico */
.game-question-area {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--earth-border);
  border-radius: var(--radius-md);
  padding: clamp(1rem, 3vw, 1.75rem);
  margin-bottom: 1.5rem;
}

.question-count {
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.question-prompt {
  font-family: var(--font-title);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: #fff;
  margin-bottom: 1.25rem;
  line-height: 1.35;
}

.options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.option-btn {
  background: var(--earth-card);
  border: 1px solid var(--earth-border);
  color: var(--text-main);
  padding: clamp(0.75rem, 2vw, 1rem) 1.25rem;
  border-radius: var(--radius-md);
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition-fast);
  width: 100%;
}

.option-letter {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold-light);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.option-btn:hover:not(:disabled) {
  background: var(--earth-card-hover);
  border-color: var(--gold-primary);
  transform: translateX(4px);
}

.option-btn:hover:not(:disabled) .option-letter {
  background: var(--gold-primary);
  color: var(--text-dark);
}

/* Lógica Pedagógica de Botones: Éxito vs Error Guiado */
.option-btn.correct {
  background: rgba(47, 107, 71, 0.45) !important;
  border-color: #4ade80 !important;
  color: #ecfdf5 !important;
  box-shadow: 0 0 16px var(--green-glow);
}
.option-btn.correct .option-letter {
  background: #4ade80;
  color: #064e3b;
}

.option-btn.incorrect {
  background: rgba(158, 54, 29, 0.35) !important;
  border-color: #f87171 !important;
  color: #fca5a5 !important;
  opacity: 0.65;
  cursor: not-allowed !important;
  text-decoration: line-through;
  transform: none !important;
}
.option-btn.incorrect .option-letter {
  background: #f87171;
  color: #450a0a;
}

/* Mensaje Pedagógico de Pista y Refuerzo */
.game-feedback-msg {
  margin-top: 1.25rem;
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  display: none;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.game-feedback-msg.show {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.game-feedback-msg.is-correct {
  background: rgba(47, 107, 71, 0.3);
  border: 1px solid var(--green-andes-light);
  color: #a7f3d0;
}

.game-feedback-msg.is-wrong {
  background: rgba(158, 54, 29, 0.3);
  border: 1px solid var(--earth-red-light);
  color: #fecaca;
}

/* Tarjeta de Victoria del Minijuego */
.game-victory-card {
  display: none;
  text-align: center;
  padding: 2.25rem 1.5rem;
  background: radial-gradient(circle at center, rgba(212, 154, 38, 0.22), transparent 70%), var(--earth-card);
  border: 2px solid var(--gold-light);
  border-radius: var(--radius-md);
  animation: scalePop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes scalePop {
  0% { opacity: 0; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}

.game-victory-card.show {
  display: block;
}

.victory-badge-icon {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 0 15px var(--gold-glow));
}

.victory-title {
  font-family: var(--font-title);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--gold-bright);
  margin-bottom: 0.5rem;
}

.victory-desc {
  color: var(--text-main);
  max-width: 520px;
  margin: 0 auto 1.5rem;
  font-size: 1rem;
}

/* Botón Brillante CTA (Call to Action) */
.btn-glowing-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: clamp(0.9rem, 2.5vw, 1.2rem) clamp(1.5rem, 4vw, 2.5rem);
  background: linear-gradient(135deg, #ffd56b 0%, #d49a26 50%, #9e361d 100%);
  color: #120b06;
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(212, 154, 38, 0.6), 0 0 35px var(--gold-glow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.btn-glowing-cta::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: rgba(255, 255, 255, 0.4);
  transform: rotate(25deg);
  animation: shineLoop 3s infinite ease-in-out;
}

@keyframes shineLoop {
  0% { left: -60%; }
  30%, 100% { left: 140%; }
}

.btn-glowing-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(212, 154, 38, 0.8), 0 0 45px var(--gold-glow);
}

.btn-glowing-cta:active {
  transform: translateY(1px);
}

/* --------------------------------------------------------------------------
   7. ETAPA 2: INFORMACIÓN Y RESUMEN DETALLADO (TARJETAS TEMÁTICAS)
   -------------------------------------------------------------------------- */
.section-header-badge {
  text-align: center;
  margin-bottom: 2.5rem;
}

.sub-eyebrow {
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  color: var(--gold-bright);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.section-intro {
  max-width: 720px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
}

/* Grid de tarjetas informativas */
.info-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
  margin-bottom: 2.5rem;
}

@media (max-width: 480px) {
  .info-cards-grid {
    grid-template-columns: 1fr;
  }
}

.info-card {
  background: var(--earth-card);
  border: 1px solid var(--earth-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 1.85rem);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.info-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-md), 0 0 20px rgba(212, 154, 38, 0.15);
  background: var(--earth-card-hover);
}

.card-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.card-num-tag {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--gold-light);
  background: rgba(212, 154, 38, 0.15);
  border: 1px solid rgba(212, 154, 38, 0.3);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
}

.card-icon {
  font-size: 1.5rem;
}

.card-heading {
  font-family: var(--font-title);
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  color: var(--gold-light);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.card-body-text {
  color: var(--text-main);
  font-size: clamp(0.92rem, 1.8vw, 1rem);
  line-height: 1.65;
  flex-grow: 1;
}

/* Resaltadores visuales dentro del texto */
.highlight-pill {
  background: rgba(212, 154, 38, 0.18);
  color: var(--gold-bright);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.highlight-green {
  background: rgba(47, 107, 71, 0.28);
  color: #7ee7a6;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.highlight-red {
  background: rgba(158, 54, 29, 0.28);
  color: #ffa48f;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.sub-points-list {
  list-style: none;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--earth-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sub-points-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.sub-points-list li::before {
  content: "◆";
  color: var(--gold-primary);
  font-size: 0.7rem;
  margin-top: 4px;
  flex-shrink: 0;
}

/* Tarjeta especial 6: En una sola idea */
.card-synthesis {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(43, 31, 24, 0.95), rgba(30, 21, 16, 0.95));
  border: 2px solid var(--gold-primary);
  box-shadow: var(--shadow-md), 0 0 25px rgba(212, 154, 38, 0.2);
}

.synthesis-content {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
}

@media (max-width: 768px) {
  .synthesis-content {
    flex-direction: column;
    text-align: center;
  }
}

.synthesis-icon-box {
  width: clamp(60px, 10vw, 84px);
  height: clamp(60px, 10vw, 84px);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--earth-red));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(2rem, 4vw, 2.8rem);
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.synthesis-text-block h3 {
  font-family: var(--font-title);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  color: var(--gold-bright);
  margin-bottom: 0.5rem;
}

.synthesis-text-block p {
  font-size: clamp(0.95rem, 2vw, 1.08rem);
  color: var(--text-main);
  line-height: 1.7;
}

.stage2-action-wrapper {
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
}

/* --------------------------------------------------------------------------
   8. ETAPA 3: QUIZ DE 10 PREGUNTAS
   -------------------------------------------------------------------------- */
.quiz-container {
  max-width: 860px;
  margin: 0 auto;
}

.quiz-header-status {
  background: var(--earth-card);
  border: 1px solid var(--earth-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 2rem;
}

.quiz-progress-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-light);
}

.quiz-counter-pill {
  background: rgba(212, 154, 38, 0.15);
  border: 1px solid rgba(212, 154, 38, 0.4);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--gold-bright);
  font-weight: 700;
}

.quiz-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

.quiz-item-card {
  background: var(--earth-card);
  border: 1px solid var(--earth-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 1.85rem);
  transition: border-color var(--transition-fast);
  position: relative;
}

.quiz-item-card.answered {
  border-color: rgba(212, 154, 38, 0.5);
}

.quiz-item-card.has-error {
  border-color: var(--earth-red);
  background: rgba(158, 54, 29, 0.1);
}

.quiz-q-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 1.25rem;
}

.quiz-q-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--gold-primary);
  color: var(--text-dark);
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.quiz-q-title {
  font-family: var(--font-title);
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: #ffffff;
  line-height: 1.4;
}

.quiz-options-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-radio-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: clamp(0.75rem, 2vw, 0.95rem) 1.2rem;
  background: rgba(18, 13, 10, 0.6);
  border: 1px solid var(--earth-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: clamp(0.88rem, 1.8vw, 0.98rem);
  color: var(--text-main);
  user-select: none;
}

.quiz-radio-label:hover {
  background: rgba(212, 154, 38, 0.12);
  border-color: var(--gold-primary);
}

.quiz-radio-input {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--gold-primary);
  border-radius: 50%;
  outline: none;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.quiz-radio-input:checked {
  background-color: var(--gold-light);
  border-color: #ffffff;
  box-shadow: 0 0 8px var(--gold-light);
}

.quiz-radio-input:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background-color: var(--text-dark);
  border-radius: 50%;
}

.quiz-radio-label.selected {
  border-color: var(--gold-light);
  background: rgba(212, 154, 38, 0.16);
  color: #ffffff;
  font-weight: 600;
}

/* Evaluación post-envío */
.quiz-item-card.eval-correct {
  border-color: #34d399;
  background: rgba(47, 107, 71, 0.2);
}
.quiz-item-card.eval-incorrect {
  border-color: #f87171;
  background: rgba(158, 54, 29, 0.2);
}

.quiz-feedback-box {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: none;
}

.quiz-item-card.eval-correct .quiz-feedback-box {
  display: block;
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #a7f3d0;
}

.quiz-item-card.eval-incorrect .quiz-feedback-box {
  display: block;
  background: rgba(248, 113, 113, 0.15);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #fecaca;
}

.quiz-actions {
  text-align: center;
  padding: 1.5rem 0;
}

/* Tarjeta / Modal de Resultados Finales */
.results-modal-card {
  display: none;
  background: linear-gradient(145deg, #2b1f18, #18100d);
  border: 2px solid var(--gold-light);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 5vw, 3rem);
  text-align: center;
  box-shadow: var(--shadow-lg), 0 0 40px var(--gold-glow);
  margin-top: 2rem;
  animation: scalePop 0.5s ease forwards;
}

.results-modal-card.show {
  display: block;
}

.trophy-icon {
  font-size: clamp(3.5rem, 8vw, 5rem);
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 0 20px var(--gold-glow));
}

.results-title {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--gold-bright);
  margin-bottom: 0.5rem;
}

.results-score-display {
  display: inline-block;
  font-family: var(--font-title);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  color: #ffffff;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0.5rem 0 1rem;
}

.results-message {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: var(--text-main);
  max-width: 620px;
  margin: 0 auto 1.75rem;
  line-height: 1.6;
}

.results-btn-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover {
  background: rgba(212, 154, 38, 0.15);
  border-color: var(--gold-bright);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   9. PIE DE PÁGINA (FOOTER)
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: auto;
  background: #110c09;
  border-top: 1px solid var(--earth-border);
  padding: 2.5rem 0 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-chakana {
  width: 24px;
  height: 24px;
  fill: var(--gold-primary);
  opacity: 0.6;
  margin-bottom: 0.75rem;
}

.footer-quote {
  font-family: var(--font-title);
  color: var(--gold-light);
  margin-bottom: 0.5rem;
  font-style: italic;
}
