* /* Estilo base para celulares (por defecto) */
.contenedor-principal {
    display: grid;
    grid-template-columns: 1fr; /* Una sola columna en el móvil */
    gap: 20px;
    padding: 15px;
}

/* Imagen que se adapta */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* MEDIA QUERY: Para tablets y computadoras (más de 768px) */
@media (min-width: 768px) {
    .contenedor-principal {
        grid-template-columns: repeat(2, 1fr); /* Se divide en 2 columnas */
        padding: 40px;
    }
    
    .seccion-hero {
        grid-column: span 2; /* El título principal ocupa todo el ancho */
    }
}

/* MEDIA QUERY: Para pantallas muy grandes (más de 1200px) */
@media (min-width: 1200px) {
    .contenedor-principal {
        grid-template-columns: repeat(3, 1fr); /* Se divide en 3 columnas */
    }
}

    /* ===== HEADER ===== */
    .hd {
      display: flex; justify-content: space-between; align-items: center;
      padding: 14px 36px; background: #fff;
      box-shadow: 0 2px 12px rgba(0,0,0,0.08);
      position: sticky; top: 0; z-index: 100;
    }
    .logo { display: flex; align-items: center; gap: 10px; cursor: pointer; }
    
    /* Ajuste para que el logo (imagen) se vea bien */
    .logo-img-file { height: 50px; width: auto; object-fit: contain; }

    .logo { display: flex; align-items: center; gap: 10px; cursor: pointer; }
    .logo-ic { width: 42px; height: 42px; background: #FF6B35; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; }
    .logo-tx { font-size: 19px; font-weight: 900; color: #2D2D6B; }
    .logo-tx span { color: #FF6B35; }
    .logo-sub { font-size: 10px; color: #999; font-weight: 700; letter-spacing: 1px; }
    .nav { display: flex; list-style: none; gap: 6px; }
    .nav li { font-size: 12px; font-weight: 800; color: #555; cursor: pointer; padding: 8px 14px; border-radius: 22px; transition: all 0.2s; border: 2px solid transparent; }
    .nav li:hover { background: #F0F5FF; color: #2D2D6B; }
    .nav li.act { background: #2D2D6B; color: #FFE566; border-color: #2D2D6B; }
    .btn-don { background: #FF6B35; color: #fff; border: none; padding: 10px 22px; border-radius: 26px; font-weight: 800; font-size: 12px; cursor: pointer; box-shadow: 0 4px 14px rgba(255,107,53,0.35); transition: transform 0.18s; font-family: 'Nunito', sans-serif; }
    .btn-don:hover { transform: translateY(-2px); }

    /* ===== HERO ===== */
    .hero { background: #1A9FE0; padding: 48px 36px 0; position: relative; overflow: hidden; }
    .hero-wave { width: 100%; height: 60px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='%23ffffff' d='M0,60L0,35Q80,10,160,30Q240,50,320,28Q400,8,480,30Q560,52,640,30Q720,8,800,28Q880,48,960,30Q1040,12,1120,28Q1200,44,1280,30Q1360,16,1440,32L1440,60Z'/%3E%3C/svg%3E") no-repeat bottom/cover; }
    .hero-inner { display: flex; justify-content: space-between; align-items: flex-end; max-width: 960px; margin: 0 auto; }
    .hero-text { color: #fff; max-width: 460px; padding-bottom: 60px; }
    .hero-badge { display: inline-block; background: rgba(255,255,255,0.2); border: 2px solid rgba(255,255,255,0.4); font-size: 11px; font-weight: 800; letter-spacing: 1.5px; color: #fff; padding: 5px 14px; border-radius: 20px; margin-bottom: 14px; }
    .hero h1 { font-size: 30px; font-weight: 900; line-height: 1.18; margin-bottom: 12px; }
    .hero h1 em { color: #FFE566; font-style: normal; }
    .hero p { font-size: 14px; opacity: 0.92; line-height: 1.7; margin-bottom: 22px; }
    .hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }
    .btn-wh { background: #fff; color: #1A9FE0; border: none; padding: 12px 24px; border-radius: 28px; font-weight: 800; font-size: 13px; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,0.15); transition: transform 0.18s; font-family: 'Nunito', sans-serif; }
    .btn-wh:hover { transform: translateY(-2px); }
    .btn-ol { background: rgba(255,255,255,0.18); color: #fff; border: 2px solid rgba(255,255,255,0.6); padding: 12px 24px; border-radius: 28px; font-weight: 800; font-size: 13px; cursor: pointer; transition: all 0.18s; font-family: 'Nunito', sans-serif; }
    .btn-ol:hover { background: rgba(255,255,255,0.3); }
    .hero-lion { font-size: 100px; line-height: 1; align-self: flex-end; }
/* Estilo para el león grande del hero */
    .hero-lion-img { width: 200px; height: auto; align-self: flex-end; margin-bottom: -10px; }
    /* ===== STATS ===== */
    .stats { background: #2D2D6B; display: flex; justify-content: center; }
    .stat { flex: 1; max-width: 220px; text-align: center; padding: 16px 10px; border-right: 1px solid rgba(255,255,255,0.1); }
    .stat:last-child { border: none; }
    .stat-n { font-size: 24px; font-weight: 900; color: #FFE566; }
    .stat-l { font-size: 11px; color: rgba(255,255,255,0.7); font-weight: 700; margin-top: 2px; }

    /* ===== SECTIONS ===== */
    .sect { max-width: 960px; margin: 0 auto; padding: 52px 24px 0; }
    .stag { display: inline-block; background: #FFF0E6; color: #CC4A1A; font-size: 11px; font-weight: 800; letter-spacing: 1.5px; padding: 5px 14px; border-radius: 18px; margin-bottom: 10px; }
    .stitle { font-size: 24px; font-weight: 900; color: #2D2D6B; line-height: 1.25; margin-bottom: 4px; }
    .stitle em { color: #FF6B35; font-style: normal; }
    .agrid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 26px; }
    /* ARREGLO DE LA FOTO DEL EQUIPO */
/* El contenedor de la foto */
.team-box { 
    background: #EBF6FF; 
    border: 2px solid #BDE5FF; 
    border-radius: 22px; 
    width: 100%; /* O el ancho que prefieras */
    max-width: 450px;
    display: flex; 
    flex-direction: column; /* Alinea los elementos uno debajo del otro */
    overflow: hidden; 
}

.team-photo { 
    width: 100%; 
    height: auto; 
    display: block; /* Elimina espacios vacíos debajo de la imagen */
    /* IMPORTANTE: No usar position: absolute aquí */
}

.team-lbl { 
    background-color: #1a3a5f !important; /* Azul oscuro */
    color: #ffffff !important;
    text-align: center;
    padding: 15px 0; 
    font-weight: bold;
    letter-spacing: 2px;
    font-size: 1.2rem;
    text-transform: uppercase;
    width: 100%;
    margin: 0; /* Asegura que no haya separación con la foto */
}
/* Busca esta clase en tus estilos actuales */
.logo-img-file {
  /* Cambia '50px' por '70px' o la medida que prefieras */
  height: 70px; 
  width: auto; /* Mantén esto para no deformarlo */
  object-fit: contain; /* Mantén esto para que se ajuste bien */
  transition: height 0.3s ease; /* Opcional: añade suavidad al cargar */
}
    .team-box { background: #EBF6FF; border: 2px solid #BDE5FF; border-radius: 22px; min-height: 210px; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; overflow: hidden; }
    .team-emoji { font-size: 64px; margin-bottom: 8px; }
    .team-lbl { background: #2D2D6B; color: #FFE566; font-size: 11px; font-weight: 800; letter-spacing: 1.5px; padding: 7px 20px; border-radius: 20px; }
    .side-cards { display: flex; flex-direction: column; gap: 14px; }
    .card { border-radius: 20px; padding: 20px 24px; }
    .cp { background: #FFF4E6; border: 2px solid #FFE0BB; }
    .cb { background: #EBF6FF; border: 2px solid #BDE5FF; }
    .card h3 { font-size: 13px; font-weight: 900; color: #2D2D6B; margin-bottom: 6px; display: flex; align-items: center; gap: 7px; }
    .card p { font-size: 13px; color: #444; line-height: 1.6; margin-bottom: 12px; }
    .bto { background: #FF6B35; color: #fff; border: none; padding: 8px 20px; border-radius: 20px; font-weight: 800; font-size: 12px; cursor: pointer; font-family: 'Nunito', sans-serif; }
    .btb { background: #1A9FE0; color: #fff; border: none; padding: 8px 20px; border-radius: 20px; font-weight: 800; font-size: 12px; cursor: pointer; font-family: 'Nunito', sans-serif; }

    /* ===== MISSION ===== */
    .miss { background: #2D2D6B; margin-top: 40px; padding: 36px 24px; text-align: center; }
    .miss-in { max-width: 680px; margin: 0 auto; }
    .miss-ic { font-size: 36px; margin-bottom: 8px; }
    .miss h3 { font-size: 13px; font-weight: 900; color: #FFE566; letter-spacing: 2px; margin-bottom: 10px; }
    .miss p { font-size: 15px; color: #fff; line-height: 1.8; font-weight: 700; }
    .miss p em { color: #FFE566; font-style: normal; }

    /* ===== OBJECTIVES ===== */
    .objs { max-width: 960px; margin: 0 auto; padding: 48px 24px 60px; }
    .objs-hd { text-align: center; margin-bottom: 28px; }
    .ogrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .ob { border-radius: 22px; padding: 26px 20px; text-align: center; transition: transform 0.2s; cursor: default; }
    .ob:hover { transform: translateY(-4px); }
    .ob1 { background: #E6F4FF; border: 2px solid #A8D8FF; }
    .ob2 { background: #EDFFF5; border: 2px solid #9EEDC4; }
    .ob3 { background: #FFF5E6; border: 2px solid #FFCB8A; }
    .ob-emoji { font-size: 32px; display: block; margin-bottom: 8px; }
    .ob-n { font-size: 11px; font-weight: 900; letter-spacing: 2px; margin-bottom: 5px; }
    .ob1 .ob-n { color: #1A9FE0; }
    .ob2 .ob-n { color: #16A34A; }
    .ob3 .ob-n { color: #CC4A1A; }
    .ob h3 { font-size: 13px; font-weight: 900; color: #2D2D6B; margin-bottom: 7px; }
    .ob p { font-size: 13px; color: #555; line-height: 1.5; }

    /* ===== IA PAGE ===== */
    .ia-hero { background: #2D2D6B; padding: 44px 36px 48px; text-align: center; position: relative; overflow: hidden; }
    .ia-badge { display: inline-block; background: rgba(255,230,102,0.18); border: 2px solid rgba(255,230,102,0.4); color: #FFE566; font-size: 11px; font-weight: 800; letter-spacing: 1.5px; padding: 5px 16px; border-radius: 20px; margin-bottom: 14px; position: relative; z-index: 1; }
    .ia-hero h1 { font-size: 28px; font-weight: 900; color: #fff; line-height: 1.2; margin-bottom: 10px; position: relative; z-index: 1; }
    .ia-hero h1 em { color: #FFE566; font-style: normal; }
    .ia-hero p { font-size: 14px; color: rgba(255,255,255,0.88); max-width: 500px; margin: 0 auto 24px; line-height: 1.7; position: relative; z-index: 1; }

    /* ===== LEO SECTION WRAPPER ===== */
    .leo-wrap { background: #fdf6ec; padding: 32px 16px 40px; }
    .leo-wrap main { max-width: 900px; margin: 0 auto; display: grid; gap: 20px; position: relative; z-index: 5; }

    /* ===== LEO SCOPED CSS ===== */

.leo-wrap .leo-wrap {
    --leo-teal: #d4832a;
    --leo-teal-dark: #a85e18;
    --leo-teal-light: #e8a855;
    --leo-green: #e8bf6a;
    --leo-green-light: #f5dfa8;
    --blue-light: #fdf0d8;
    --leo-yellow: #ffe066;
    --leo-cream: #fdf6ec;
    --leo-white: #ffffff;
    --leo-text-dark: #3a2010;
    --leo-text-mid: #7a4a1a;
    --leo-shadow: 0 8px 32px rgba(212,131,42,0.15);
    --leo-radius: 20px;
}
.leo-wrap /* Background pattern */
  

  .deco-letters {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
  }
.leo-wrap .deco-letters span {
    position: absolute;
    font-family: 'Baloo 2', cursive;
    font-weight: 900;
    color: rgba(212,131,42,0.06);
    font-size: clamp(2rem, 5vw, 4rem);
    user-select: none;
  }
.leo-wrap /* === HEADER === */
  header {
    position: relative;
    z-index: 10;
    background: linear-gradient(135deg, var(--leo-teal-dark) 0%, var(--leo-teal) 60%, var(--leo-teal-light) 100%);
    padding: 20px 24px 28px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(168,94,24,0.3);
  }
.leo-wrap header::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 0; right: 0;
    height: 32px;
    background: var(--leo-cream);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  }
.leo-wrap .header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
  }
.leo-wrap .lion-logo {
    width: 72px; height: 72px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 42px;
    backdrop-filter: blur(8px);
    border: 3px solid rgba(255,255,255,0.3);
    animation: float 3s ease-in-out infinite;
    flex-shrink: 0;
  }

  @keyframes float {
    0%,100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
  }
.leo-wrap .header-title h1 {
    font-family: 'Baloo 2', cursive;
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
  }
.leo-wrap .header-title h1 span {
    color: var(--leo-yellow);
    display: block;
  }
.leo-wrap .header-title p {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    margin-top: 4px;
    font-weight: 600;
  }
.leo-wrap /* === MAIN === */
  main {
    position: relative;
    z-index: 5;
    max-width: 900px;
    margin: 0 auto;
    padding: 36px 16px 40px;
    display: grid;
    gap: 20px;
  }
.leo-wrap /* === CARDS GRID === */
  .cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
  }
.leo-wrap .card {
    background: white;
    border-radius: var(--leo-radius);
    padding: 22px;
    box-shadow: var(--leo-shadow);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
  }
.leo-wrap .card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.25s;
    border-radius: inherit;
  }
.leo-wrap .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(212,131,42,0.2);
    border-color: var(--leo-teal-light);
  }
.leo-wrap .card:hover::before { opacity: 1; }
.leo-wrap .card.blue { background: linear-gradient(135deg, #fdf3e3 0%, #fbe0b8 100%); }
.leo-wrap .card.green { background: linear-gradient(135deg, #fef9e7 0%, #fdeab8 100%); }
.leo-wrap .card.teal { background: linear-gradient(135deg, #fdf0d8 0%, #f9dca0 100%); }
.leo-wrap .card-icon {
    font-size: 44px;
    margin-bottom: 12px;
    display: block;
    animation: bounce-icon 2s ease-in-out infinite;
  }
  @keyframes bounce-icon {
    0%,100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.08) rotate(3deg); }
  }
.leo-wrap .card h3 {
    font-family: 'Baloo 2', cursive;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--leo-text-dark);
    margin-bottom: 6px;
  }
.leo-wrap .card p {
    font-size: 0.88rem;
    color: var(--leo-text-mid);
    line-height: 1.5;
  }
.leo-wrap .card-badge {
    position: absolute;
    top: 14px; right: 14px;
    background: var(--leo-teal-dark);
    color: white;
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
.leo-wrap /* === SECTION MODAL === */
  .modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    backdrop-filter: blur(4px);
  }
.leo-wrap .modal-overlay.active {
    opacity: 1;
    pointer-events: all;
  }
.leo-wrap .modal {
    background: white;
    border-radius: 24px;
    max-width: 680px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0,0,0,0.25);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s;
  }
.leo-wrap .modal-overlay.active .modal {
    transform: scale(1) translateY(0);
  }
.leo-wrap .modal-header {
    background: linear-gradient(135deg, var(--leo-teal) 0%, var(--leo-teal-dark) 100%);
    padding: 20px 24px;
    border-radius: 24px 24px 0 0;
    display: flex;
    align-items: center;
    gap: 12px;
  }
.leo-wrap .modal-header h2 {
    font-family: 'Baloo 2', cursive;
    color: white;
    font-size: 1.3rem;
    font-weight: 800;
    flex: 1;
  }
.leo-wrap .modal-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 36px; height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
  }
.leo-wrap .modal-close:hover { background: rgba(255,255,255,0.35); }
.leo-wrap .modal-

  /* === STORIES === */
  .stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
  }
.leo-wrap .story-card {
    background: linear-gradient(135deg, #fdf3e3, #fbe0b8);
    border-radius: 16px;
    padding: 18px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    text-align: center;
  }
.leo-wrap .story-card:hover {
    border-color: var(--leo-teal);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(42,157,143,0.2);
  }
.leo-wrap .story-card .story-emoji { font-size: 36px; margin-bottom: 8px; display: block; }
.leo-wrap .story-card h4 { font-family: 'Baloo 2',cursive; color: var(--leo-text-dark); font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.leo-wrap .story-card p { font-size: 0.78rem; color: var(--leo-text-mid); }
.leo-wrap /* Story reader */
  .story-reader { display: none; }
.leo-wrap .story-reader.active { display: block; }
.leo-wrap .story-text-box {
    background: #fafaf7;
    border: 2px solid #e0ede9;
    border-radius: 16px;
    padding: 20px;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--leo-text-dark);
    margin-bottom: 20px;
    max-height: 260px;
    overflow-y: auto;
  }
.leo-wrap .story-text-box p { margin-bottom: 12px; }
.leo-wrap .quiz-section h4 {
    font-family: 'Baloo 2',cursive;
    color: var(--leo-teal-dark);
    margin-bottom: 14px;
    font-size: 1.1rem;
  }
.leo-wrap .quiz-question { margin-bottom: 20px; }
.leo-wrap .quiz-question p { font-weight: 700; color: var(--leo-text-dark); margin-bottom: 10px; }
.leo-wrap .quiz-options { display: flex; flex-direction: column; gap: 8px; }
.leo-wrap .quiz-btn {
    background: white;
    border: 2px solid #dde8e5;
    border-radius: 12px;
    padding: 10px 16px;
    text-align: left;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    color: var(--leo-text-dark);
    transition: all 0.2s;
  }
.leo-wrap .quiz-btn:hover { border-color: var(--leo-teal); background: #e8f6fa; }
.leo-wrap .quiz-btn.correct { background: #d4f0da; border-color: #6cbf82; color: #1a5c2a; }
.leo-wrap .quiz-btn.wrong { background: #fde8e8; border-color: #e88; color: #7a1a1a; }
.leo-wrap .quiz-feedback {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 700;
    display: none;
  }
.leo-wrap .quiz-feedback.show { display: block; }
.leo-wrap .quiz-feedback.good { background: #d4f0da; color: #1a5c2a; }
.leo-wrap .quiz-feedback.bad { background: #fde8e8; color: #7a1a1a; }

.leo-wrap .progress-stat .stat-icon { font-size: 36px; }
.leo-wrap .progress-stat .stat-info { flex: 1; }
.leo-wrap .progress-stat h4 { font-weight: 800; color: var(--leo-text-dark); margin-bottom: 6px; }
.leo-wrap .progress-bar-bg {
    background: rgba(255,255,255,0.6);
    border-radius: 20px;
    height: 12px;
    overflow: hidden;
  }
.leo-wrap .progress-bar-fill {
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(90deg, var(--leo-teal), var(--leo-teal-light));
    transition: width 1.5s cubic-bezier(0.4,0,0.2,1);
    width: 0%;
  }
.leo-wrap .progress-stat .stat-label { font-size: 0.8rem; color: var(--leo-text-mid); margin-top: 4px; }
.leo-wrap .goals-list { margin-top: 8px; }
.leo-wrap .goal-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 8px;
    background: white;
    border: 2px solid #e0ede9;
    cursor: pointer;
    transition: all 0.2s;
  }
.leo-wrap .goal-item:hover { border-color: var(--leo-teal-light); }
.leo-wrap .goal-item.done { background: #fdeab8; border-color: #d4832a; }
.leo-wrap .goal-check {
    width: 28px; height: 28px;
    border: 2px solid #ccc;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: all 0.2s;
  }
.leo-wrap .goal-item.done .goal-check { background: var(--leo-green); border-color: var(--leo-green); color: white; }
.leo-wrap .goal-text { font-size: 0.9rem; color: var(--leo-text-dark); font-weight: 600; }
.leo-wrap /* === PARENTS INFO === */
  .parents-features { display: grid; gap: 12px; }
.leo-wrap .parent-feature {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: linear-gradient(135deg, #fef9e7, #fdeab8);
    border-radius: 16px;
    align-items: flex-start;
  }
.leo-wrap .parent-feature .feat-icon { font-size: 28px; flex-shrink: 0; margin-top: 2px; }
.leo-wrap .parent-feature h4 { font-weight: 800; color: var(--leo-text-dark); margin-bottom: 4px; }
.leo-wrap .parent-feature p { font-size: 0.88rem; color: var(--leo-text-mid); line-height: 1.5; }
.leo-wrap /* === CHATBOT === */
  .chat-widget {
    background: white;
    border-radius: var(--leo-radius);
    box-shadow: var(--leo-shadow);
    overflow: hidden;
    border: 2px solid var(--leo-teal-light);
  }
.leo-wrap .chat-header {
    background: linear-gradient(135deg, var(--leo-teal) 0%, var(--leo-teal-dark) 100%);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
  }
.leo-wrap .chat-avatar {
    width: 48px; height: 48px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
    border: 2px solid rgba(255,255,255,0.4);
    animation: float 3s ease-in-out infinite;
  }
.leo-wrap .chat-info h3 {
    font-family: 'Baloo 2',cursive;
    color: white;
    font-size: 1.1rem;
    font-weight: 800;
  }
.leo-wrap .chat-status {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.78rem; color: rgba(255,255,255,0.85);
  }
.leo-wrap .status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #6cbf82;
    animation: pulse-dot 2s infinite;
  }
  @keyframes pulse-dot {
    0%,100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.8); }
  }
.leo-wrap .quick-btns {
    padding: 12px 16px;
    background: #fdf5e8;
    border-bottom: 1px solid #dde8e5;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }
.leo-wrap .quick-btn {
    background: white;
    border: 2px solid var(--leo-teal-light);
    color: var(--leo-teal-dark);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 0.78rem;
    font-family: 'Nunito',sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
  }
.leo-wrap .quick-btn:hover {
    background: var(--leo-teal-dark);
    color: white;
    border-color: var(--leo-teal);
    transform: translateY(-2px);
  }
.leo-wrap .chat-messages {
    height: 340px;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
  }
.leo-wrap .chat-messages::-webkit-scrollbar { width: 4px; }
.leo-wrap .chat-messages::-webkit-scrollbar-track { background: #f0f4f3; }
.leo-wrap .chat-messages::-webkit-scrollbar-thumb { background: #e8a855; border-radius: 4px; }
.leo-wrap .msg {
    max-width: 82%;
    animation: msg-in 0.3s cubic-bezier(0.4,0,0.2,1);
  }
  @keyframes msg-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }
.leo-wrap .msg.bot { align-self: flex-start; }
.leo-wrap .msg.user { align-self: flex-end; }
.leo-wrap .msg-bubble {
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.92rem;
    line-height: 1.55;
    white-space: pre-wrap;
  }
.leo-wrap .msg.bot .msg-bubble {
    background: linear-gradient(135deg, #fdf3e3, #fbe0b8);
    color: var(--leo-text-dark);
    border-bottom-left-radius: 6px;
  }
.leo-wrap .msg.user .msg-bubble {
    background: linear-gradient(135deg, var(--leo-teal), var(--leo-teal-dark));
    color: white;
    border-bottom-right-radius: 6px;
  }
.leo-wrap .msg-sender {
    font-size: 0.72rem;
    color: var(--leo-text-mid);
    font-weight: 700;
    margin-bottom: 4px;
  }
.leo-wrap .msg.user .msg-sender { text-align: right; }
.leo-wrap .typing-indicator {
    display: none;
    align-self: flex-start;
  }
.leo-wrap .typing-indicator.active { display: flex; align-items: center; gap: 6px; }
.leo-wrap .typing-bubble {
    background: linear-gradient(135deg, #fdf3e3, #fbe0b8);
    border-radius: 18px;
    border-bottom-left-radius: 6px;
    padding: 12px 16px;
    display: flex;
    gap: 4px;
    align-items: center;
  }
.leo-wrap .typing-dot {
    width: 8px; height: 8px;
    background: var(--leo-teal-dark);
    border-radius: 50%;
    animation: typing-bounce 1.2s infinite;
  }
.leo-wrap .typing-dot:nth-child(2) { animation-delay: 0.2s; }
.leo-wrap .typing-dot:nth-child(3) { animation-delay: 0.4s; }
  @keyframes typing-bounce {
    0%,60%,100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
  }
.leo-wrap .chat-input-row {
    padding: 14px 16px;
    background: #f8fafa;
    border-top: 1px solid #dde8e5;
    display: flex;
    gap: 10px;
    align-items: center;
  }
.leo-wrap .chat-input {
    flex: 1;
    border: 2px solid #dde8e5;
    border-radius: 24px;
    padding: 10px 18px;
    font-family: 'Nunito',sans-serif;
    font-size: 0.92rem;
    color: var(--leo-text-dark);
    outline: none;
    transition: border-color 0.2s;
    background: white;
  }
.leo-wrap .chat-input:focus { border-color: var(--leo-teal); }
.leo-wrap .chat-input::placeholder { color: #9cb8b2; }
.leo-wrap .send-btn {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--leo-teal), var(--leo-teal-dark));
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    transition: all 0.2s;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(212,131,42,0.35);
  }
.leo-wrap .send-btn:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(212,131,42,0.5); }
.leo-wrap .send-btn:active { transform: scale(0.95); }
.leo-wrap /* === FOOTER === */
  footer {
    position: relative;
    z-index: 5;
    text-align: center;
    padding: 20px;
    color: var(--leo-text-mid);
    font-size: 0.85rem;
    font-weight: 600;
  }
.leo-wrap /* === STARS decoration === */
  .stars-deco {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 1rem;
  }

  @media (max-width: 600px) {
    .cards-grid { grid-template-columns: 1fr 1fr; }
    .stories-grid { grid-template-columns: 1fr 1fr; }
    main { padding: 28px 12px 32px; }
  }


    /* ===== GENERIC PAGES ===== */
    .generic-page { padding: 60px 24px; text-align: center; max-width: 760px; margin: 0 auto; }
    .generic-page .big-ic { font-size: 60px; margin-bottom: 16px; }
    .generic-page h2 { font-size: 22px; font-weight: 900; color: #2D2D6B; margin-bottom: 10px; }
    .generic-page p { font-size: 14px; color: #555; line-height: 1.7; max-width: 480px; margin: 0 auto 24px; }
    .btn-back { background: #2D2D6B; color: #FFE566; border: none; padding: 12px 28px; border-radius: 26px; font-weight: 800; font-size: 13px; cursor: pointer; font-family: 'Nunito', sans-serif; }

    /* ===== FOOTER ===== */
    .ft { background: #2D2D6B; padding: 28px 36px; }
    .ft-in { max-width: 960px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
    .ft-brand { font-size: 17px; font-weight: 900; color: #FFE566; }
    .ft-brand small { display: block; font-size: 10px; color: rgba(255,255,255,0.45); font-weight: 700; letter-spacing: 1px; margin-top: 2px; }
    .ft-links { display: flex; gap: 18px; }
    .ft-links span { color: rgba(255,255,255,0.65); font-size: 12px; font-weight: 700; cursor: pointer; }
    .ft-links span:hover { color: #FFE566; }
    .ft-mail { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #fff; padding: 9px 18px; border-radius: 18px; font-size: 12px; font-weight: 700; }
    .ft-copy { text-align: center; color: rgba(255,255,255,0.3); font-size: 11px; padding-top: 18px; margin-top: 18px; border-top: 1px solid rgba(255,255,255,0.08); max-width: 960px; margin-left: auto; margin-right: auto; }
    /* === CARDS GRID === */
  .cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
  }

  .card {
    background: white;
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
  }
  .card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.25s;
    border-radius: inherit;
  }
  .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(212,131,42,0.2);
    border-color: var(--teal-light);
  }
  .card:hover::before { opacity: 1; }

  .card.blue { background: linear-gradient(135deg, #fdf3e3 0%, #fbe0b8 100%); }
  .card.green { background: linear-gradient(135deg, #fef9e7 0%, #fdeab8 100%); }
  .card.teal { background: linear-gradient(135deg, #fdf0d8 0%, #f9dca0 100%); }

  .card-icon {
    font-size: 44px;
    margin-bottom: 12px;
    display: block;
    animation: bounce-icon 2s ease-in-out infinite;
  }
  @keyframes bounce-icon {
    0%,100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.08) rotate(3deg); }
  }

  .card h3 {
    font-family: 'Baloo 2', cursive;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 6px;
  }
  .card p {
    font-size: 0.88rem;
    color: var(--text-mid);
    line-height: 1.5;
  }

  .card-badge {
    position: absolute;
    top: 14px; right: 14px;
    background: var(--teal-dark);
    color: white;
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  /* === SECTION MODAL === */
  .modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    backdrop-filter: blur(4px);
  }
  .modal-overlay.active {
    opacity: 1;
    pointer-events: all;
  }

  .modal {
    background: white;
    border-radius: 24px;
    max-width: 680px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0,0,0,0.25);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s;
  }
  .modal-overlay.active .modal {
    transform: scale(1) translateY(0);
  }

  .modal-header {
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
    padding: 20px 24px;
    border-radius: 24px 24px 0 0;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .modal-header h2 {
    font-family: 'Baloo 2', cursive;
    color: white;
    font-size: 1.3rem;
    font-weight: 800;
    flex: 1;
  }
  .modal-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 36px; height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
  }
  .modal-close:hover { background: rgba(255,255,255,0.35); }

  .modal-body { padding: 24px; }

  /* === STORIES === */
  .stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
  }
  .story-card {
    background: linear-gradient(135deg, #fdf3e3, #fbe0b8);
    border-radius: 16px;
    padding: 18px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    text-align: center;
  }
  .story-card:hover {
    border-color: var(--teal);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(42,157,143,0.2);
  }
  .story-card .story-emoji { font-size: 36px; margin-bottom: 8px; display: block; }
  .story-card h4 { font-family: 'Baloo 2',cursive; color: var(--text-dark); font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
  .story-card p { font-size: 0.78rem; color: var(--text-mid); }

  /* Story reader */
  .story-reader { display: none; }
  .story-reader.active { display: block; }
  .story-text-box {
    background: #fafaf7;
    border: 2px solid #e0ede9;
    border-radius: 16px;
    padding: 20px;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 20px;
    max-height: 260px;
    overflow-y: auto;
  }
  .story-text-box p { margin-bottom: 12px; }

  .quiz-section h4 {
    font-family: 'Baloo 2',cursive;
    color: var(--teal-dark);
    margin-bottom: 14px;
    font-size: 1.1rem;
  }
  .quiz-question { margin-bottom: 20px; }
  .quiz-question p { font-weight: 700; color: var(--text-dark); margin-bottom: 10px; }
  .quiz-options { display: flex; flex-direction: column; gap: 8px; }
  .quiz-btn {
    background: white;
    border: 2px solid #dde8e5;
    border-radius: 12px;
    padding: 10px 16px;
    text-align: left;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    color: var(--text-dark);
    transition: all 0.2s;
  }
  .quiz-btn:hover { border-color: var(--teal); background: #e8f6fa; }
  .quiz-btn.correct { background: #d4f0da; border-color: #6cbf82; color: #1a5c2a; }
  .quiz-btn.wrong { background: #fde8e8; border-color: #e88; color: #7a1a1a; }
  .quiz-feedback {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 700;
    display: none;
  }
  .quiz-feedback.show { display: block; }
  .quiz-feedback.good { background: #d4f0da; color: #1a5c2a; }
  .quiz-feedback.bad { background: #fde8e8; color: #7a1a1a; }

  
  .progress-stat .stat-icon { font-size: 36px; }
  .progress-stat .stat-info { flex: 1; }
  .progress-stat h4 { font-weight: 800; color: var(--text-dark); margin-bottom: 6px; }
  .progress-bar-bg {
    background: rgba(255,255,255,0.6);
    border-radius: 20px;
    height: 12px;
    overflow: hidden;
  }
  .progress-bar-fill {
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(90deg, var(--teal), var(--teal-light));
    transition: width 1.5s cubic-bezier(0.4,0,0.2,1);
    width: 0%;
  }
  .progress-stat .stat-label { font-size: 0.8rem; color: var(--text-mid); margin-top: 4px; }

  .goals-list { margin-top: 8px; }
  .goal-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 8px;
    background: white;
    border: 2px solid #e0ede9;
    cursor: pointer;
    transition: all 0.2s;
  }
  .goal-item:hover { border-color: var(--teal-light); }
  .goal-item.done { background: #fdeab8; border-color: #d4832a; }
  .goal-check {
    width: 28px; height: 28px;
    border: 2px solid #ccc;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: all 0.2s;
  }
  .goal-item.done .goal-check { background: var(--green); border-color: var(--green); color: white; }
  .goal-text { font-size: 0.9rem; color: var(--text-dark); font-weight: 600; }

  /* === PARENTS INFO === */
  .parents-features { display: grid; gap: 12px; }
  .parent-feature {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: linear-gradient(135deg, #fef9e7, #fdeab8);
    border-radius: 16px;
    align-items: flex-start;
  }
  .parent-feature .feat-icon { font-size: 28px; flex-shrink: 0; margin-top: 2px; }
  .parent-feature h4 { font-weight: 800; color: var(--text-dark); margin-bottom: 4px; }
  .parent-feature p { font-size: 0.88rem; color: var(--text-mid); line-height: 1.5; }

  

  /* === FOOTER === */
  footer {
    position: relative;
    z-index: 5;
    text-align: center;
    padding: 20px;
    color: var(--text-mid);
    font-size: 0.85rem;
    font-weight: 600;
  }

  /* === STARS decoration === */
  .stars-deco {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 1rem;
  }

  @media (max-width: 600px) {
    .cards-grid { grid-template-columns: 1fr 1fr; }
    .stories-grid { grid-template-columns: 1fr 1fr; }
    main { padding: 28px 12px 32px; }
  }
  /* Esto es vital para que la navegación funcione */
.page {
  display: none; /* Escondidas por defecto */
}

.page.active {
  display: block; /* Solo se ve la que tiene la clase 'active' */
}

  /* Barra inferior azul oscuro */
  .members-section {
    padding: 50px 0;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-top: 30px;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-item {
    flex: 0 0 calc(100% / 3); /* 3 fotos en PC */
    display: flex;
    justify-content: center;
    padding: 0 10px;
    box-sizing: border-box;
}

.carousel-item img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* Botones */
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #1a237e; /* Azul oscuro */
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    z-index: 5;
    font-size: 1.2rem;
}

.carousel-button:hover { background: #ffca28; color: #1a237e; } /* Cambio a amarillo al pasar el mouse */
.prev { left: 10px; }
.next { right: 10px; }

/* Puntos */
.carousel-pagination {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.pagination-dot {
    width: 12px;
    height: 12px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.pagination-dot.active { background: #1a237e; width: 25px; border-radius: 10px; }

/* Responsivo para celulares */
@media (max-width: 768px) {
    .carousel-item { flex: 0 0 100%; padding: 0 40px; }
}
/* PARENT SECTION */
  .chat-box {
    background: var(--card);
    border-radius: var(--radius);
    border: 2px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
  }
  .chat-messages {
    min-height: 280px;
    max-height: 420px;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .msg {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: .93rem;
    line-height: 1.6;
  }
  .msg.ai {
    background: #F0EAF9;
    color: var(--text);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
  }
  .msg.user {
    background: var(--plum);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
  }
  .msg .sender { font-size: .75rem; font-weight: 700; margin-bottom: 4px; opacity: .65; }
  .chat-input-row {
    display: flex;
    gap: 10px;
    padding: 1rem;
    border-top: 1.5px solid var(--border);
  }
  .chat-input-row input {
    flex: 1;
    border: 2px solid var(--border);
    border-radius: 50px;
    padding: 10px 18px;
    font-family: 'Nunito', sans-serif;
    font-size: .95rem;
    color: var(--text);
    background: var(--cream);
    outline: none;
    transition: border-color .2s;
  }
  .chat-input-row input:focus { border-color: var(--plum); }
  .send-btn {
    background: var(--plum);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 10px 22px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: .93rem;
    cursor: pointer;
    transition: background .2s;
  }
  .send-btn:hover { background: #5C3D9F; }
  .send-btn:disabled { opacity: .5; cursor: not-allowed; }

  /* QUICK TOPICS */
  .quick-topics { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.2rem; }
  .topic-pill {
    background: #EDE8F5;
    color: var(--plum);
    border-radius: 50px;
    padding: 6px 16px;
    font-size: .83rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: background .2s;
  }
  .topic-pill:hover { background: var(--plum); color: #fff; }

  /* CHILD SECTION */
  .level-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 1.5rem; }
  .level-btn {
    background: var(--card);
    border: 2.5px solid var(--border);
    border-radius: 50px;
    padding: 8px 20px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: .88rem;
    cursor: pointer;
    color: var(--muted);
    transition: all .2s;
  }
  .level-btn.active, .level-btn:hover {
    border-color: var(--rose);
    color: var(--rose);
    background: #FFF0F4;
  }

  .story-card {
    background: var(--card);
    border-radius: var(--radius);
    border: 2px solid var(--border);
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 1.5rem;
  }
  .story-title {
    font-family: 'Bubblegum Sans', cursive;
    font-size: 1.4rem;
    color: var(--plum);
    margin-bottom: 1rem;
  }
  .story-text {
    font-size: 1.08rem;
    line-height: 1.85;
    color: var(--text);
    white-space: pre-wrap;
  }
  .story-emoji { font-size: 2.5rem; margin-bottom: .8rem; display: block; }

  .generate-btn {
    background: linear-gradient(135deg, var(--rose), #FF9BBB);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 13px 30px;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(255,107,138,0.35);
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .generate-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,107,138,0.45); }
  .generate-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

  /* QUIZ */
  .quiz-section { margin-top: 1.5rem; }
  .quiz-title {
    font-family: 'Bubblegum Sans', cursive;
    font-size: 1.2rem;
    color: var(--plum);
    margin-bottom: 1rem;
  }
  .question-card {
    background: var(--card);
    border-radius: var(--radius);
    border: 2px solid var(--border);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
  }
  .question-text { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; line-height: 1.5; }
  .options { display: flex; flex-direction: column; gap: 8px; }
  .option-btn {
    background: var(--cream);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 10px 16px;
    text-align: left;
    font-family: 'Nunito', sans-serif;
    font-size: .93rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    color: var(--text);
  }
  .option-btn:hover:not(:disabled) { border-color: var(--sky); background: #EEF7FF; }
  .option-btn.correct { background: #E8F7EE; border-color: var(--leaf); color: #2A7A4B; }
  .option-btn.wrong { background: #FFF0F0; border-color: #FF6B6B; color: #C0392B; }
  .option-btn:disabled { cursor: default; }
  .feedback {
    margin-top: 10px;
    font-size: .9rem;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 10px;
  }
  .feedback.ok { background: #E8F7EE; color: #2A7A4B; }
  .feedback.fail { background: #FFF0F0; color: #C0392B; }

  /* SCORE */
  .score-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card);
    border-radius: 50px;
    padding: 8px 20px;
    border: 2px solid var(--border);
    width: fit-content;
    margin-bottom: 1.5rem;
  }
  .score-bar span { font-weight: 800; color: var(--plum); }

  /* SPINNER */
  .spinner {
    display: inline-block;
    width: 20px; height: 20px;
    border: 3px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
    vertical-align: middle;
  }
  @keyframes spin { to { transform: rotate(360deg); } }

  /* BACK BTN */
  .back-btn {
    background: none;
    border: none;
    color: var(--plum);
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: .9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 1.2rem;
    padding: 0;
  }
  .back-btn:hover { opacity: .7; }

  .loading-text { color: var(--muted); font-size: .9rem; font-style: italic; }

  @media(max-width: 560px) {
    .welcome-grid { grid-template-columns: 1fr; }
    header { padding: 1rem; }
    .logo { font-size: 1.4rem; }
    .mode-btn { padding: 6px 14px; font-size: .8rem; }
  }
