/* ============================================================
   AVENTURA EDUCATIVA — HOJA DE ESTILOS PRINCIPAL
   Versión 5.0 — Arquitectura Profesional Definitiva
   ------------------------------------------------------------
   - Header oscuro de alto contraste (glassmorphism premium)
   - Hero cinematográfico nocturno
   - Secciones BeeBot / Rayet / Ludio con escenarios ricos
   - Transiciones ambientales fluidas entre mundos
   - Recursos y Sobre nosotros con estética unificada
   ============================================================ */

/* ------------------------------------------------------------
   1. VARIABLES GLOBALES Y SISTEMA DE DISEÑO
   ------------------------------------------------------------ */
:root {
    /* Superficies y Neutros */
    --c-blanco: #ffffff;
    --c-negro: #0b1020;
    --c-texto-principal: #0f172a;
    --c-texto-secundario: #475569;
    --c-texto-suave: #64748b;
    --c-fondo-base: #eef3fb;

    /* Identidad BeeBot (Jardín) */
    --c-bee-primario: #7ed957;
    --c-bee-secundario: #4ec0e0;
    --c-bee-acento: #ffd93d;
    --c-bee-oscuro: #082e14;
    --c-bee-sombra: rgba(126, 217, 87, 0.4);

    /* Identidad Rayet (Ciudad) */
    --c-ray-primario: #ff8c42;
    --c-ray-secundario: #f7c948;
    --c-ray-acento: #ff5e7e;
    --c-ray-oscuro: #3d1f00;
    --c-ray-sombra: rgba(255, 140, 66, 0.4);

    /* Identidad Ludio (Cyber) */
    --c-lud-primario: #00e5ff;
    --c-lud-secundario: #b14aed;
    --c-lud-acento: #7fd7ff;
    --c-lud-oscuro: #0a0e27;
    --c-lud-sombra: rgba(0, 229, 255, 0.45);

    /* Radios */
    --r-sm: 10px;
    --r-md: 18px;
    --r-lg: 28px;
    --r-xl: 36px;
    --r-full: 9999px;

    /* Sombras */
    --sh-sm: 0 4px 12px rgba(15, 23, 42, 0.08);
    --sh-md: 0 10px 28px rgba(15, 23, 42, 0.12);
    --sh-lg: 0 22px 55px rgba(15, 23, 42, 0.18);
    --sh-xl: 0 30px 80px rgba(15, 23, 42, 0.25);
    --sh-header: 0 12px 35px rgba(6, 10, 31, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);

    /* Transiciones */
    --t-fast: 0.2s cubic-bezier(0.22, 0.61, 0.36, 1);
    --t-mid: 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
    --t-slow: 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);

    /* Layout */
    --header-h: 88px;
    --header-margin: 16px;

    /* Tipografías */
    --font-title: "Fredoka", "Baloo 2", system-ui, sans-serif;
    --font-body: "Nunito", "Segoe UI", system-ui, sans-serif;
}

/* ------------------------------------------------------------
   2. RESETEO ESTRUCTURAL Y BASES
   ------------------------------------------------------------ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 24px);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--c-texto-principal);
    background-color: var(--c-lud-oscuro);
    line-height: 1.55;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
}

img, video, svg { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

h1, h2, h3, h4 {
    font-family: var(--font-title);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ------------------------------------------------------------
   3. BOTÓN FLOTANTE DE CONTROL DE SONIDO
   ------------------------------------------------------------ */
.sound-toggle {
    position: fixed;
    top: calc(var(--header-h) + 28px);
    right: 24px;
    z-index: 1100;
    width: 58px;
    height: 58px;
    border-radius: var(--r-full);
    background: rgba(10, 14, 39, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--sh-md), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--t-mid), box-shadow var(--t-mid), border-color var(--t-mid);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    color: var(--c-lud-primario);
}

.sound-toggle:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 0 24px rgba(0, 229, 255, 0.45);
    border-color: rgba(0, 229, 255, 0.5);
}

.sound-toggle:active { transform: scale(0.92); }

.sound-toggle .sound-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sound-toggle .sound-off { display: none; }
.sound-toggle.is-muted .sound-on { display: none; }
.sound-toggle.is-muted .sound-off { display: flex; }
.sound-toggle.is-muted { color: var(--c-texto-suave); }

/* ------------------------------------------------------------
   4. ENCABEZADO — BARRA FLOTANTE DE ALTO CONTRASTE
   ------------------------------------------------------------ */
.site-header {
    position: fixed;
    top: var(--header-margin);
    left: var(--header-margin);
    right: var(--header-margin);
    z-index: 1000;
    background: rgba(10, 14, 39, 0.82);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--r-full);
    box-shadow: var(--sh-header);
    transition: transform var(--t-mid), background var(--t-mid), border-color var(--t-mid), box-shadow var(--t-mid);
    overflow: hidden;
}

.site-header.is-scrolled {
    background: rgba(6, 10, 31, 0.94);
    border-color: rgba(0, 229, 255, 0.35);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.65), 0 0 25px rgba(0, 229, 255, 0.2);
}

.header-inner {
    max-width: 1780px;
    margin: 0 auto;
    height: var(--header-h);
    padding: 0 20px 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* Marca / Logo */
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    transition: transform var(--t-mid);
}
.brand:hover { transform: translateY(-1px); }

.brand-logo {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--c-bee-primario) 0%, var(--c-ray-primario) 50%, var(--c-lud-secundario) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.35), inset 0 2px 4px rgba(255, 255, 255, 0.4);
    overflow: hidden;
    flex-shrink: 0;
}

.brand-logo-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.65), transparent 60%);
    animation: logoGlow 4s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}

.brand-logo-emoji {
    position: relative;
    width: 26px;
    height: 26px;
    color: var(--c-blanco);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.brand-text { display: flex; flex-direction: column; }

.brand-name {
    font-family: var(--font-title);
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.05;
    background: linear-gradient(90deg, #ffffff 0%, var(--c-lud-primario) 50%, var(--c-lud-secundario) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-tagline {
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    margin-top: 2px;
}

/* Navegación Principal */
.main-nav {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--r-full);
}

.nav-indicator {
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 5px;
    width: 0;
    border-radius: var(--r-full);
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.22), rgba(177, 74, 237, 0.22));
    border: 1px solid rgba(0, 229, 255, 0.4);
    box-shadow: 0 4px 12px rgba(0, 229, 255, 0.2);
    transition: all var(--t-mid);
    pointer-events: none;
    z-index: 0;
    opacity: 0;
}
.nav-indicator.is-active { opacity: 1; }

.nav-btn {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--r-full);
    font-size: 0.88rem;
    font-weight: 800;
    color: #cbd5e1;
    transition: color var(--t-fast), transform var(--t-fast);
    white-space: nowrap;
    user-select: none;
}

.nav-btn-ico {
    width: 17px;
    height: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--t-mid);
    flex-shrink: 0;
}

.nav-btn:hover .nav-btn-ico,
.nav-btn.is-active .nav-btn-ico {
    transform: scale(1.15) rotate(-4deg);
}

.nav-btn:hover { color: var(--c-blanco); }
.nav-btn:active { transform: scale(0.96); }
.nav-btn.is-active { color: var(--c-blanco); }

/* Colores de resaltado por robot */
.nav-btn.nav-beebot.is-active { color: var(--c-bee-primario); text-shadow: 0 0 12px rgba(126, 217, 87, 0.6); }
.nav-btn.nav-rayet.is-active  { color: var(--c-ray-primario); text-shadow: 0 0 12px rgba(255, 140, 66, 0.6); }
.nav-btn.nav-ludio.is-active  { color: var(--c-lud-primario); text-shadow: 0 0 12px rgba(0, 229, 255, 0.6); }
.nav-btn.nav-recursos.is-active { color: #38bdf8; text-shadow: 0 0 12px rgba(56, 189, 248, 0.6); }
.nav-btn.nav-ayuda.is-active { color: #f472b6; text-shadow: 0 0 12px rgba(244, 114, 182, 0.6); }

/* Menú hamburguesa móvil */
.menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    transition: transform var(--t-fast), background var(--t-fast);
}
.menu-toggle:active { transform: scale(0.94); }
.menu-toggle span {
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--c-lud-primario);
    transition: var(--t-mid);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.scroll-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--c-bee-primario), var(--c-bee-acento), var(--c-ray-primario), var(--c-lud-primario), var(--c-lud-secundario));
    transition: width 0.1s linear;
}

/* ------------------------------------------------------------
   5. SISTEMA PROPORCIONAL DE BOTONES
   ------------------------------------------------------------ */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--r-full);
    font-family: var(--font-title);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    overflow: hidden;
    transition: transform var(--t-mid), box-shadow var(--t-mid), filter var(--t-fast);
    border: none;
    user-select: none;
    isolation: isolate;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2), inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.btn-glow {
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: inherit;
    filter: blur(14px);
    opacity: 0.5;
    z-index: -1;
    transition: opacity var(--t-mid);
}

.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn:hover .btn-glow { opacity: 0.85; }
.btn:active { transform: translateY(1px) scale(0.98); }

.btn-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-arrow {
    font-size: 1.4rem;
    line-height: 0.8;
    transition: transform var(--t-mid);
}
.btn:hover .btn-arrow { transform: translateX(4px); }

/* Botón Hero */
.btn-hero {
    background: linear-gradient(135deg, var(--c-ray-primario) 0%, var(--c-ray-acento) 50%, var(--c-lud-secundario) 100%);
    color: var(--c-blanco);
    font-size: 1.15rem;
    padding: 18px 42px;
    box-shadow: 0 15px 35px rgba(255, 94, 126, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.35);
}

/* Botones de mundo */
.btn-world {
    width: 100%;
    font-size: 1.05rem;
    padding: 16px 24px;
}

.btn-inicial {
    background: linear-gradient(135deg, var(--c-bee-primario), var(--c-bee-secundario));
    color: var(--c-bee-oscuro);
    box-shadow: 0 12px 28px var(--c-bee-sombra), inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

.btn-primaria {
    background: linear-gradient(135deg, var(--c-ray-secundario), var(--c-ray-primario));
    color: var(--c-ray-oscuro);
    box-shadow: 0 12px 28px var(--c-ray-sombra), inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

.btn-secundaria {
    background: linear-gradient(135deg, var(--c-lud-primario), var(--c-lud-secundario));
    color: var(--c-blanco);
    box-shadow: 0 12px 28px var(--c-lud-sombra), inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

/* ------------------------------------------------------------
   6. SECCIÓN HERO CINEMATOGRÁFICA
   ------------------------------------------------------------ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--header-h) + 50px) 24px 80px;
    background: radial-gradient(ellipse at 50% 30%, #172042 0%, #0a0e27 80%);
    overflow: hidden;
}

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

.hero-aurora {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 40% at 20% 30%, rgba(126, 217, 87, 0.18), transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 25%, rgba(255, 140, 66, 0.15), transparent 60%),
        radial-gradient(ellipse 60% 40% at 50% 85%, rgba(177, 74, 237, 0.15), transparent 60%);
    animation: auroraShift 14s ease-in-out infinite;
}

@keyframes auroraShift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(2%, -2%) scale(1.03); }
}

.star-field { position: absolute; inset: 0; }
.star {
    position: absolute;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
    animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

.cloud {
    position: absolute;
    background: #ffffff;
    border-radius: 50%;
    opacity: 0.12;
    box-shadow: 40px 12px 0 -6px #fff, 80px 2px 0 -10px #fff;
}
.cloud-1 { width: 100px; height: 50px; top: 15%; left: -10%; animation: cloudMove 50s linear infinite; }
.cloud-2 { width: 130px; height: 60px; top: 35%; left: -20%; animation: cloudMove 70s linear infinite 5s; }
.cloud-3 { width: 80px; height: 40px; top: 55%; left: -15%; animation: cloudMove 60s linear infinite 10s; }

@keyframes cloudMove {
    from { transform: translateX(0); }
    to { transform: translateX(130vw); }
}

.float-icon {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--s, 2rem);
    height: var(--s, 2rem);
    opacity: 0.85;
    animation: floatY var(--d) ease-in-out infinite;
    color: var(--c-lud-secundario);
}
.float-icon svg { stroke: currentColor; }

@keyframes floatY {
    0%, 100% { transform: translateY(0) rotate(-6deg); }
    50% { transform: translateY(-18px) rotate(8deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 880px;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    border-radius: var(--r-full);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--c-lud-primario);
    font-family: var(--font-title);
    font-size: 0.88rem;
    margin-bottom: 24px;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--c-lud-primario);
    box-shadow: 0 0 10px var(--c-lud-primario);
}

.hero-title {
    font-size: clamp(2.4rem, 5.5vw, 4.8rem);
    line-height: 1.02;
    margin-bottom: 18px;
}

.hero-title-line { display: block; color: var(--c-blanco); }
.hero-title-accent {
    background: linear-gradient(120deg, var(--c-bee-primario), var(--c-ray-secundario), var(--c-ray-primario), var(--c-lud-primario), var(--c-lud-secundario));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleShimmer 6s ease infinite;
}

@keyframes titleShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    color: #94a3b8;
    margin-bottom: 12px;
}
.sub-dot { color: var(--c-lud-secundario); margin: 0 4px; }

.hero-quote {
    font-style: italic;
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 36px;
}

/* Preview de Robots */
.hero-worlds {
    display: flex;
    justify-content: center;
    gap: clamp(20px, 4vw, 50px);
    margin-top: 48px;
}

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

.wp-orb {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--t-mid), border-color var(--t-mid), box-shadow var(--t-mid);
    overflow: hidden;
}

.wp-inicial:hover .wp-orb {
    border-color: var(--c-bee-primario);
    box-shadow: 0 0 20px rgba(126, 217, 87, 0.4);
}
.wp-primaria:hover .wp-orb {
    border-color: var(--c-ray-primario);
    box-shadow: 0 0 20px rgba(255, 140, 66, 0.4);
}
.wp-secundaria:hover .wp-orb {
    border-color: var(--c-lud-primario);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
}

.world-preview:hover .wp-orb { transform: scale(1.1) translateY(-4px); }

.wp-robot-img {
    width: 72%;
    height: 72%;
    object-fit: contain;
}

.wp-label {
    font-family: var(--font-title);
    font-size: 0.78rem;
    color: #cbd5e1;
    letter-spacing: 0.1em;
}

.scroll-hint {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.scroll-txt {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: #64748b;
    text-transform: uppercase;
}

.scroll-mouse {
    width: 22px;
    height: 36px;
    border-radius: 12px;
    border: 2px solid rgba(100, 116, 139, 0.5);
    position: relative;
}

.scroll-wheel {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 6px;
    border-radius: 2px;
    background: var(--c-lud-primario);
    animation: scrollWheel 1.8s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%, 100% { transform: translate(-50%, 0); opacity: 1; }
    50% { transform: translate(-50%, 8px); opacity: 0.3; }
}

/* ------------------------------------------------------------
   7. TRANSICIONES AMBIENTALES ENTRE SECCIONES
   ------------------------------------------------------------ */
.transition {
    position: relative;
    height: 260px;
    width: 100%;
    overflow: hidden;
    z-index: 2;
}

/* Degradado 1: Hero nocturno → Jardín BeeBot */
.transition-1 {
    background: linear-gradient(180deg,
        #0a0e27 0%,
        #172042 20%,
        #2b4a4d 45%,
        #5ba862 70%,
        #a8dba0 88%,
        #d6efff 100%);
}
.t1-sky {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 70% 20%, rgba(255, 240, 180, 0.4), transparent 55%);
}
.t1-mountains-far {
    position: absolute;
    bottom: 60px; left: 0; right: 0;
    height: 120px;
    background:
        radial-gradient(ellipse at 20% 100%, rgba(168, 200, 232, 0.6) 0 12%, transparent 13%),
        radial-gradient(ellipse at 55% 100%, rgba(150, 186, 217, 0.6) 0 15%, transparent 16%),
        radial-gradient(ellipse at 85% 100%, rgba(168, 200, 232, 0.6) 0 13%, transparent 14%);
}
.t1-mountains-near {
    position: absolute;
    bottom: 30px; left: 0; right: 0;
    height: 100px;
    background:
        radial-gradient(ellipse at 30% 100%, rgba(127, 178, 135, 0.85) 0 18%, transparent 19%),
        radial-gradient(ellipse at 70% 100%, rgba(111, 165, 118, 0.85) 0 20%, transparent 21%);
}
.t1-hills {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 70px;
    background:
        radial-gradient(ellipse at 15% 100%, #86c76a 0 30%, transparent 31%),
        radial-gradient(ellipse at 50% 100%, #6fb356 0 35%, transparent 36%),
        radial-gradient(ellipse at 88% 100%, #86c76a 0 30%, transparent 31%);
}
.t1-houses {
    position: absolute;
    bottom: 20px; left: 0; right: 0;
    height: 60px;
    background-image:
        linear-gradient(90deg, transparent 0 8%, #6a8fb5 8% 12%, transparent 12% 20%,
                        #5a7da3 20% 26%, transparent 26% 38%, #7d99b8 38% 45%, transparent 45% 60%,
                        #5a7da3 60% 67%, transparent 67% 78%, #6a8fb5 78% 85%, transparent 85%);
    opacity: 0.75;
}
.t1-road {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 24px;
    background:
        repeating-linear-gradient(90deg, #ffe066 0 30px, transparent 30px 60px) center/100% 4px no-repeat,
        linear-gradient(180deg, #64748b, #334155);
}

/* Degradado 2: Jardín BeeBot → Ciudad Rayet */
.transition-2 {
    background: linear-gradient(180deg,
        #b8e0a0 0%,
        #a5c9b0 20%,
        #7da2a9 45%,
        #52749c 70%,
        #8fb4d4 88%,
        #b8d4f0 100%);
}
.t2-sky {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 40% 30%, rgba(255, 180, 120, 0.25), transparent 60%);
}
.t2-skyline-back {
    position: absolute;
    bottom: 60px; left: 0; right: 0;
    height: 150px;
    background-image:
        linear-gradient(90deg, transparent 0 4%, #3d5a80 4% 9%, transparent 9% 14%,
                        #4a6a92 14% 20%, transparent 20% 27%, #3d5a80 27% 34%, transparent 34% 41%,
                        #4a6a92 41% 48%, transparent 48% 55%, #3d5a80 55% 62%, transparent 62%);
    opacity: 0.55;
}
.t2-skyline-mid {
    position: absolute;
    bottom: 40px; left: 0; right: 0;
    height: 120px;
    background-image:
        linear-gradient(90deg, transparent 0 6%, #24324f 6% 12%, transparent 12% 18%,
                        #2b3f60 18% 26%, transparent 26% 32%, #1f2a44 32% 40%, transparent 40% 48%,
                        #2b3f60 48% 56%, transparent 56% 64%, #24324f 64% 72%, transparent 72%);
    opacity: 0.85;
}
.t2-skyline-front {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 90px;
    background-color: #0f172a;
    background-image:
        radial-gradient(circle, #ffe066 1.5px, transparent 2px),
        linear-gradient(90deg,
            transparent 0 3%, #0f172a 3% 10%, transparent 10% 15%,
            #0f172a 15% 24%, transparent 24% 30%, #0f172a 30% 42%,
            transparent 42% 50%, #0f172a 50% 62%, transparent 62% 68%,
            #0f172a 68% 80%, transparent 80% 86%, #0f172a 86% 96%, transparent 96%);
    background-size: 26px 26px, 100% 100%;
    background-blend-mode: screen;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.5);
}
.t2-lights {
    position: absolute;
    bottom: 20px; left: 0; right: 0;
    height: 40px;
    background-image: radial-gradient(circle, #ffe066 1.5px, transparent 2.5px);
    background-size: 24px 24px;
    opacity: 0.55;
    animation: lightsBlink 3.6s ease-in-out infinite;
}
@keyframes lightsBlink {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.85; }
}
.t2-digital {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(90deg, rgba(0, 229, 255, 0.18) 0 1px, transparent 1px 60px),
        repeating-linear-gradient(0deg, rgba(177, 74, 237, 0.14) 0 1px, transparent 1px 60px);
    mask-image: linear-gradient(180deg, transparent 0%, #000 70%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 70%);
}

/* Degradado 3: Ciudad Rayet → Cyber Ludio */
.transition-3 {
    background: linear-gradient(180deg,
        #a8bfd9 0%,
        #7b92b3 22%,
        #4a5d87 48%,
        #182046 75%,
        #0a0e27 100%);
}
.t3-sky {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 100%, rgba(0, 229, 255, 0.25), transparent 60%);
}
.t3-neon-city {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 110px;
    background-image:
        linear-gradient(90deg, transparent 0 5%, #1a1f4a 5% 12%, transparent 12% 20%,
                        #252b5c 20% 28%, transparent 28% 36%, #1a1f4a 36% 44%,
                        transparent 44% 52%, #252b5c 52% 60%, transparent 60% 68%,
                        #1a1f4a 68% 76%, transparent 76% 84%, #252b5c 84% 92%, transparent 92%);
    opacity: 0.9;
}
.t3-neon-city::after {
    content: "";
    position: absolute;
    inset: 20px 0 0;
    background-image:
        radial-gradient(circle, #00e5ff 1.5px, transparent 2px),
        radial-gradient(circle, #b14aed 1px, transparent 1.5px);
    background-size: 34px 34px, 22px 22px;
    background-position: 0 0, 11px 11px;
    opacity: 0.8;
    animation: lightsBlink 3s ease-in-out infinite;
}
.t3-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 229, 255, 0.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.18) 1px, transparent 1px);
    background-size: 48px 48px;
    animation: gridMove 8s linear infinite;
    mask-image: linear-gradient(180deg, transparent 30%, #000 100%);
    -webkit-mask-image: linear-gradient(180deg, transparent 30%, #000 100%);
}
@keyframes gridMove {
    from { background-position: 0 0, 0 0; }
    to { background-position: 0 48px, 48px 0; }
}
.t3-neon-lines {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent, rgba(177, 74, 237, 0.6) 50%, transparent) center/100% 2px no-repeat,
        linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.6) 50%, transparent) center/100% 2px no-repeat;
    background-position: center 30%, center 70%;
    opacity: 0.7;
    filter: blur(0.4px);
}

/* ------------------------------------------------------------
   8. ESTRUCTURA COMÚN DE MUNDOS
   ------------------------------------------------------------ */
.world {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 24px 80px;
    overflow: hidden;
    isolation: isolate;
}

.world-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.layer { position: absolute; inset: 0; pointer-events: none; }

.world-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1400px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* ------------------------------------------------------------
   9. MUNDO BEEBOT — JARDÍN MÁGICO
   ------------------------------------------------------------ */
.world-inicial {
    background: linear-gradient(180deg, #d6efff 0%, #e6f7d8 45%, #b8e0a0 100%);
    color: var(--c-texto-principal);
}

.garden-bg .layer-sky { z-index: 1; }
.garden-bg .layer-mountains { z-index: 2; }
.garden-bg .layer-trees { z-index: 3; }
.garden-bg .layer-deco { z-index: 4; }
.garden-bg .layer-ground { z-index: 5; }

/* Sol con rayos */
.sun {
    position: absolute;
    top: 8%;
    right: 9%;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff7b0 0%, #ffd93d 55%, #ffae00 100%);
    box-shadow: 0 0 70px #ffe066, 0 0 150px rgba(255, 217, 61, 0.55);
    animation: sunGlow 5s ease-in-out infinite;
}
.sun-rays {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0%, rgba(255, 255, 180, 0.45) 50%, transparent 100%);
    animation: sunRays 20s linear infinite;
    opacity: 0.65;
}
@keyframes sunGlow {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}
@keyframes sunRays {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Nubes del jardín */
.cloud-a { width: 110px; height: 54px; top: 12%; left: -10%; animation: cloudMove 60s linear infinite; }
.cloud-b { width: 90px;  height: 46px; top: 24%; left: -18%; animation: cloudMove 75s linear infinite 5s; opacity: 0.75; }
.cloud-c { width: 130px; height: 62px; top: 6%;  left: -25%; animation: cloudMove 85s linear infinite 10s; opacity: 0.65; }

/* Montañas del jardín */
.mountains-far {
    position: absolute;
    bottom: 22%; left: 0; right: 0;
    height: 220px;
    background:
        radial-gradient(ellipse at 20% 100%, #b8d9e8 0 14%, transparent 15%),
        radial-gradient(ellipse at 55% 100%, #a3c8dc 0 18%, transparent 19%),
        radial-gradient(ellipse at 85% 100%, #b8d9e8 0 15%, transparent 16%);
    opacity: 0.55;
}
.mountains-near {
    position: absolute;
    bottom: 15%; left: 0; right: 0;
    height: 180px;
    background:
        radial-gradient(ellipse at 30% 100%, #86b894 0 20%, transparent 21%),
        radial-gradient(ellipse at 70% 100%, #79ab86 0 22%, transparent 23%);
    opacity: 0.75;
}

/* Árboles frondosos */
.tree {
    position: absolute;
    bottom: 15%;
    width: 16px;
    background: linear-gradient(90deg, #6b4423, #8b5a2b 50%, #6b4423);
    border-radius: 8px;
    box-shadow: inset -2px 0 0 rgba(0, 0, 0, 0.25);
}
.tree::before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 100%;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #b8e89a 0%, #7ec96a 40%, #4b8a3b 100%);
    box-shadow:
        0 12px 30px rgba(60, 120, 60, 0.35),
        inset -8px -8px 20px rgba(0, 0, 0, 0.15);
}
.tree::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 100%;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.55), transparent 60%);
    pointer-events: none;
}
.tree-1 { left: 5%;  height: 150px; }
.tree-1::before { width: 180px; height: 180px; }
.tree-2 { right: 5%; height: 170px; }
.tree-2::before { width: 200px; height: 200px; }
.tree-3 { left: 42%; height: 100px; opacity: 0.7; }
.tree-3::before { width: 120px; height: 120px; }

/* Arbustos */
.bush {
    position: absolute;
    bottom: 12%;
    height: 60px;
    width: 120px;
    border-radius: 50% 50% 30% 30%;
    background: radial-gradient(circle at 40% 30%, #a8e08a, #5fb84b 70%, #3d8b3d);
    box-shadow: inset -6px -6px 12px rgba(0, 0, 0, 0.15);
}
.bush-1 { left: 22%; }
.bush-2 { right: 20%; width: 90px; height: 50px; opacity: 0.8; }

/* Flores SVG */
.flower {
    position: absolute;
    bottom: 12%;
    width: 44px;
    height: 44px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: flowerSway 3.4s ease-in-out infinite;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.2));
    pointer-events: none;
}
.flower-1 { left: 10%; animation-delay: 0s; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'><circle cx='20' cy='20' r='6' fill='%23ffd93d'/><circle cx='20' cy='9' r='7' fill='%23ff8fb1'/><circle cx='31' cy='20' r='7' fill='%23ff8fb1'/><circle cx='20' cy='31' r='7' fill='%23ff8fb1'/><circle cx='9' cy='20' r='7' fill='%23ff8fb1'/></svg>"); }
.flower-2 { left: 20%; animation-delay: .5s; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'><circle cx='20' cy='20' r='6' fill='%23d97706'/><circle cx='20' cy='9' r='7' fill='%23fbbf24'/><circle cx='31' cy='20' r='7' fill='%23fbbf24'/><circle cx='20' cy='31' r='7' fill='%23fbbf24'/><circle cx='9' cy='20' r='7' fill='%23fbbf24'/></svg>"); }
.flower-3 { left: 34%; animation-delay: 1s; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'><circle cx='20' cy='20' r='6' fill='%23ffd93d'/><circle cx='20' cy='9' r='7' fill='%23ffffff'/><circle cx='31' cy='20' r='7' fill='%23ffffff'/><circle cx='20' cy='31' r='7' fill='%23ffffff'/><circle cx='9' cy='20' r='7' fill='%23ffffff'/></svg>"); }
.flower-4 { left: 60%; animation-delay: .3s; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'><circle cx='20' cy='20' r='6' fill='%23ffd93d'/><circle cx='20' cy='9' r='7' fill='%23ff8fb1'/><circle cx='31' cy='20' r='7' fill='%23ff8fb1'/><circle cx='20' cy='31' r='7' fill='%23ff8fb1'/><circle cx='9' cy='20' r='7' fill='%23ff8fb1'/></svg>"); }
.flower-5 { left: 74%; animation-delay: .8s; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'><circle cx='20' cy='20' r='6' fill='%23d97706'/><circle cx='20' cy='9' r='7' fill='%23fbbf24'/><circle cx='31' cy='20' r='7' fill='%23fbbf24'/><circle cx='20' cy='31' r='7' fill='%23fbbf24'/><circle cx='9' cy='20' r='7' fill='%23fbbf24'/></svg>"); }
.flower-6 { left: 86%; animation-delay: 1.3s; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'><circle cx='20' cy='20' r='6' fill='%23ffd93d'/><circle cx='20' cy='9' r='7' fill='%23c084fc'/><circle cx='31' cy='20' r='7' fill='%23c084fc'/><circle cx='20' cy='31' r='7' fill='%23c084fc'/><circle cx='9' cy='20' r='7' fill='%23c084fc'/></svg>"); }

@keyframes flowerSway {
    0%, 100% { transform: rotate(-8deg) translateY(0); }
    50% { transform: rotate(8deg) translateY(-6px); }
}

/* Mariposas SVG */
.butterfly {
    position: absolute;
    width: 42px;
    height: 36px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 40'><ellipse cx='16' cy='20' rx='12' ry='15' fill='%23ff8fb1' opacity='0.9'/><ellipse cx='32' cy='20' rx='12' ry='15' fill='%23ff8fb1' opacity='0.9'/><ellipse cx='16' cy='12' rx='6' ry='7' fill='%23ffd93d' opacity='0.85'/><ellipse cx='32' cy='12' rx='6' ry='7' fill='%23ffd93d' opacity='0.85'/><ellipse cx='24' cy='22' rx='1.6' ry='10' fill='%23333333'/><path d='M23 12l-4-6M25 12l4-6' stroke='%23333333' stroke-width='1.2' fill='none'/></svg>");
    background-size: contain;
    background-repeat: no-repeat;
    animation: butterflyFly 16s ease-in-out infinite;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.2));
    pointer-events: none;
}
.bf-1 { top: 34%; left: 4%; animation-duration: 18s; }
.bf-2 { top: 42%; left: 62%; animation-duration: 22s; animation-delay: 2s; }
.bf-3 { top: 20%; left: 44%; animation-duration: 20s; animation-delay: 4s; }

@keyframes butterflyFly {
    0%   { transform: translate(0, 0) rotate(0); }
    25%  { transform: translate(90px, -50px) rotate(15deg); }
    50%  { transform: translate(180px, 25px) rotate(-10deg); }
    75%  { transform: translate(70px, 70px) rotate(10deg); }
    100% { transform: translate(0, 0) rotate(0); }
}

/* Abejas SVG */
.bee {
    position: absolute;
    width: 40px;
    height: 32px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 32'><ellipse cx='20' cy='16' rx='14' ry='10' fill='%23ffd93d' stroke='%232b2b2b' stroke-width='1.5'/><rect x='14' y='7' width='4' height='18' fill='%232b2b2b'/><rect x='22' y='7' width='4' height='18' fill='%232b2b2b'/><ellipse cx='12' cy='9' rx='6' ry='4' fill='rgba(255,255,255,0.85)' stroke='%232b2b2b' stroke-width='1.2' transform='rotate(-25 12 9)'/><ellipse cx='28' cy='9' rx='6' ry='4' fill='rgba(255,255,255,0.85)' stroke='%232b2b2b' stroke-width='1.2' transform='rotate(25 28 9)'/></svg>");
    background-size: contain;
    background-repeat: no-repeat;
    animation: beeBuzz 9s ease-in-out infinite;
    pointer-events: none;
}
.bee-1 { top: 55%; left: 70%; }
.bee-2 { top: 68%; left: 22%; animation-delay: 2s; }

@keyframes beeBuzz {
    0%, 100% { transform: translate(0, 0) rotate(0); }
    25% { transform: translate(50px, -25px) rotate(-8deg); }
    50% { transform: translate(90px, 12px) rotate(5deg); }
    75% { transform: translate(35px, 35px) rotate(-3deg); }
}

/* Césped curvo */
.grass-strip {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 22%;
    background:
        radial-gradient(ellipse at 50% 0%, #a4d87e 0%, transparent 60%),
        linear-gradient(180deg, #8fd46b 0%, #4f9a3a 100%);
    border-radius: 40% 40% 0 0 / 40px 40px 0 0;
    box-shadow:
        inset 0 15px 30px rgba(255, 255, 255, 0.15),
        inset 0 -20px 40px rgba(0, 0, 0, 0.1);
}

/* Caminito */
.garden-path {
    position: absolute;
    bottom: 6%;
    left: 0; right: 0;
    height: 60px;
    background: radial-gradient(ellipse at center, #f4d8a8 0 40%, transparent 42%);
    background-size: 80px 100%;
    background-repeat: repeat-x;
    opacity: 0.75;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.1));
}

/* ------------------------------------------------------------
   10. MUNDO RAYET — CIUDAD DINÁMICA
   ------------------------------------------------------------ */
.world-primaria {
    background: linear-gradient(180deg, #b8d4f0 0%, #d4e0ee 45%, #a8bfd9 100%);
    color: var(--c-texto-principal);
}

.city-bg .layer-sky { z-index: 1; }
.city-bg .layer-mountains { z-index: 2; }
.city-bg .layer-trees { z-index: 3; }
.city-bg .layer-deco { z-index: 4; }
.city-bg .layer-ground { z-index: 5; }

.city-sun {
    position: absolute;
    top: 12%; right: 15%;
    width: 120px; height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff7b0 0%, #ffb347 60%, #ff7e3a 100%);
    box-shadow: 0 0 70px #ffb347, 0 0 140px rgba(255, 140, 66, 0.45);
    animation: sunGlow 6s ease-in-out infinite;
}

/* Skyline doble */
.city-skyline-back {
    position: absolute;
    bottom: 24%; left: 0; right: 0;
    height: 220px;
    background-image:
        linear-gradient(90deg,
            transparent 0 3%, #4a6a92 3% 6%, transparent 6% 9%,
            #3d5a80 9% 14%, transparent 14% 17%, #4a6a92 17% 22%,
            transparent 22% 26%, #3d5a80 26% 32%, transparent 32% 36%,
            #4a6a92 36% 42%, transparent 42% 46%, #3d5a80 46% 52%,
            transparent 52% 56%, #4a6a92 56% 62%, transparent 62% 66%,
            #3d5a80 66% 72%, transparent 72% 76%, #4a6a92 76% 82%,
            transparent 82% 86%, #3d5a80 86% 92%, transparent 92%);
    opacity: 0.55;
}

.city-skyline-front {
    position: absolute;
    bottom: 20%; left: 0; right: 0;
    height: 260px;
    background-color: #1f2a44;
    background-image:
        linear-gradient(90deg,
            transparent 0 5%, #1f2a44 5% 12%, transparent 12% 17%,
            #2b3f60 17% 26%, transparent 26% 32%, #1f2a44 32% 42%,
            transparent 42% 48%, #2b3f60 48% 58%, transparent 58% 64%,
            #1f2a44 64% 74%, transparent 74% 80%, #2b3f60 80% 90%, transparent 90%);
    background-blend-mode: screen;
    box-shadow: 0 -10px 40px rgba(15, 23, 42, 0.35);
}
.city-skyline-front::before {
    content: "";
    position: absolute;
    inset: 24px 0 0;
    background-image:
        radial-gradient(circle, #ffe066 1.5px, transparent 2px),
        radial-gradient(circle, #ffd93d 1px, transparent 1.5px);
    background-size: 28px 28px, 18px 18px;
    background-position: 0 0, 10px 10px;
    opacity: 0.5;
    animation: lightsBlink 4s ease-in-out infinite;
}

/* Árboles urbanos */
.urban-tree {
    position: absolute;
    bottom: 22%;
    width: 14px;
    height: 120px;
    background: linear-gradient(90deg, #4a2a14, #6b4423 50%, #4a2a14);
    border-radius: 7px;
    box-shadow: inset -3px 0 0 rgba(0, 0, 0, 0.3);
}
.urban-tree::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #a8e08a, #6fb356 60%, #3d8b3d);
    box-shadow: 0 12px 26px rgba(60, 120, 60, 0.4);
}
.ut-1 { left: 6%; }
.ut-2 { right: 6%; height: 140px; }
.ut-3 { left: 78%; height: 100px; opacity: 0.85; }

/* Señales de tránsito SVG */
.road-sign {
    position: absolute;
    bottom: 30%;
    width: 54px;
    height: 54px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
    animation: signBounce 3s ease-in-out infinite;
    pointer-events: none;
}
.sign-1 {
    left: 14%;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 54 54'><polygon points='27,4 50,27 27,50 4,27' fill='%23ffd93d' stroke='%232b2b2b' stroke-width='2.5' stroke-linejoin='round'/><circle cx='27' cy='18' r='3.2' fill='%232b2b2b'/><path d='M27 22v10M21 30l6-4 6 4M21 38l6-5 6 5' stroke='%232b2b2b' stroke-width='2.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}
.sign-2 {
    left: 82%;
    animation-delay: 1.5s;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 54 54'><circle cx='27' cy='27' r='23' fill='%232563eb' stroke='%23ffffff' stroke-width='2.5'/><path d='M27 41V15M18 24l9-9 9 9' stroke='%23ffffff' stroke-width='4' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}
@keyframes signBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Semáforo */
.traffic-light {
    position: absolute;
    bottom: 22%; left: 62%;
    width: 32px;
    padding: 6px;
    border-radius: 12px;
    background: linear-gradient(180deg, #1f2937, #0f172a);
    border: 2px solid #334155;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.traffic-light span {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.4);
}
.tl-red    { background: radial-gradient(circle at 35% 30%, #ff8a80, #b71c1c); }
.tl-yellow { background: radial-gradient(circle at 35% 30%, #fff59d, #f57f17); }
.tl-green  {
    background: radial-gradient(circle at 35% 30%, #a5d6a7, #1b5e20);
    box-shadow: 0 0 14px #4caf50, inset 0 -2px 4px rgba(0, 0, 0, 0.4);
    animation: greenGlow 2s ease-in-out infinite;
}
@keyframes greenGlow {
    0%, 100% { box-shadow: 0 0 8px #4caf50, inset 0 -2px 4px rgba(0, 0, 0, 0.4); }
    50% { box-shadow: 0 0 22px #4caf50, 0 0 32px #4caf50, inset 0 -2px 4px rgba(0, 0, 0, 0.4); }
}

/* Acera y carretera */
.sidewalk {
    position: absolute;
    bottom: 22%; left: 0; right: 0;
    height: 40px;
    background: repeating-linear-gradient(90deg, #94a3b8 0 80px, #64748b 80px 84px);
    box-shadow: inset 0 6px 12px rgba(0, 0, 0, 0.2), inset 0 -6px 12px rgba(0, 0, 0, 0.25);
}
.road {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 22%;
    background: linear-gradient(180deg, #4a5568 0%, #2d3748 60%, #1a2332 100%);
    box-shadow: inset 0 8px 20px rgba(0, 0, 0, 0.5);
}
.road-lines {
    position: absolute;
    top: 50%;
    left: 0; right: 0;
    height: 8px;
    background: repeating-linear-gradient(90deg, #ffe066 0 70px, transparent 70px 140px);
    transform: translateY(-50%);
    animation: roadMove 2.2s linear infinite;
    box-shadow: 0 0 12px rgba(255, 224, 102, 0.6);
}
@keyframes roadMove {
    from { background-position: 0 0; }
    to { background-position: 140px 0; }
}

/* ------------------------------------------------------------
   11. MUNDO LUDIO — CYBER FUTURISTA
   ------------------------------------------------------------ */
.world-secundaria {
    background:
        radial-gradient(circle at 20% 30%, rgba(0, 229, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(177, 74, 237, 0.18) 0%, transparent 45%),
        linear-gradient(180deg, #0a0e27 0%, #131a3d 50%, #060a1f 100%);
    color: var(--c-blanco);
}

.cyber-bg .layer-sky { z-index: 1; }
.cyber-bg .layer-mountains { z-index: 2; }
.cyber-bg .layer-trees { z-index: 3; }
.cyber-bg .layer-deco { z-index: 4; }
.cyber-bg .layer-ground { z-index: 5; }

.cyber-nebula {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: nebulaFloat 18s ease-in-out infinite;
}
.nebula-1 { top: 10%; left: 5%;  width: 400px; height: 400px; background: radial-gradient(circle, rgba(0, 229, 255, 0.35), transparent 70%); }
.nebula-2 { bottom: 10%; right: 5%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(177, 74, 237, 0.35), transparent 70%); animation-delay: 5s; }
@keyframes nebulaFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -40px) scale(1.15); }
}

.cyber-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 229, 255, 0.14) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.14) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridPulse 6s ease-in-out infinite;
    mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 100%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 100%);
}
@keyframes gridPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.9; }
}

.circuit-lines {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent 0%, rgba(0, 229, 255, 0.5) 50%, transparent 100%) center/100% 1px no-repeat,
        linear-gradient(0deg, transparent 0%, rgba(177, 74, 237, 0.5) 50%, transparent 100%) center/1px 100% no-repeat;
    opacity: 0.35;
    animation: circuitMove 10s linear infinite;
}
@keyframes circuitMove {
    0% { background-position: 0 20%, 20% 0; }
    100% { background-position: 0 80%, 80% 0; }
}

.particles { position: absolute; inset: 0; }

/* Hologramas giratorios */
.holo {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(0, 229, 255, 0.45);
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.4), inset 0 0 30px rgba(0, 229, 255, 0.2);
    animation: holoSpin 14s linear infinite;
}
.holo-1 { top: 12%; left: 8%;  width: 160px; height: 160px; }
.holo-2 {
    bottom: 20%; right: 8%; width: 220px; height: 220px;
    animation-duration: 20s;
    border-color: rgba(177, 74, 237, 0.5);
    box-shadow: 0 0 40px rgba(177, 74, 237, 0.45), inset 0 0 30px rgba(177, 74, 237, 0.25);
}
.holo-3 { top: 58%; left: 45%; width: 90px; height: 90px; animation-duration: 11s; }
.holo::after {
    content: "";
    position: absolute;
    inset: 30%;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 229, 255, 0.6);
}
@keyframes holoSpin {
    from { transform: rotate(0deg) scale(1); }
    to { transform: rotate(360deg) scale(1.08); }
}

/* Paneles digitales */
.data-panel {
    position: absolute;
    padding: 12px 18px;
    border: 1px solid rgba(0, 229, 255, 0.4);
    border-radius: 14px;
    background: rgba(0, 229, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #00e5ff;
    font-family: "Courier New", monospace;
    font-size: 0.82rem;
    line-height: 1.5;
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.9);
    display: flex;
    flex-direction: column;
    gap: 2px;
    box-shadow: 0 0 24px rgba(0, 229, 255, 0.15), inset 0 0 16px rgba(0, 229, 255, 0.08);
    animation: panelFlicker 3s ease-in-out infinite;
}
.panel-header {
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    opacity: 0.7;
    border-bottom: 1px dashed rgba(0, 229, 255, 0.3);
    padding-bottom: 4px;
    margin-bottom: 4px;
}
.panel-1 { top: 16%; right: 12%; }
.panel-2 {
    bottom: 22%; left: 8%;
    animation-delay: 1.4s;
    border-color: rgba(177, 74, 237, 0.4);
    color: #c28aff;
    text-shadow: 0 0 8px rgba(177, 74, 237, 0.9);
    box-shadow: 0 0 24px rgba(177, 74, 237, 0.15), inset 0 0 16px rgba(177, 74, 237, 0.08);
}
@keyframes panelFlicker {
    0%, 100% { opacity: 0.85; }
    50% { opacity: 1; }
}

.cyber-floor {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 16%;
    background:
        linear-gradient(180deg, transparent 0%, rgba(0, 229, 255, 0.08) 30%, rgba(177, 74, 237, 0.12) 100%),
        repeating-linear-gradient(90deg, transparent 0 60px, rgba(0, 229, 255, 0.15) 60px 61px);
    border-top: 2px solid rgba(0, 229, 255, 0.4);
    box-shadow: 0 -10px 60px rgba(0, 229, 255, 0.25);
}

/* ------------------------------------------------------------
   12. ESCENARIO DEL ROBOT (común)
   ------------------------------------------------------------ */
.robot-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 520px;
}

/* Portal luminoso detrás del robot */
.robot-portal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 460px;
    height: 460px;
    max-width: 92%;
    max-height: 92%;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    animation: portalPulse 6s ease-in-out infinite;
}
.robot-portal::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, var(--portal-glow, rgba(126, 217, 87, 0.45)) 0%, transparent 65%);
    filter: blur(22px);
}
.robot-portal::after {
    content: "";
    position: absolute;
    inset: 12%;
    border-radius: 50%;
    border: 2px dashed var(--portal-ring, rgba(126, 217, 87, 0.6));
    animation: portalSpin 22s linear infinite;
}
@keyframes portalPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.85; }
    50% { transform: translate(-50%, -50%) scale(1.06); opacity: 1; }
}
@keyframes portalSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.portal-garden { --portal-glow: rgba(126, 217, 87, 0.55); --portal-ring: rgba(126, 217, 87, 0.7); }
.portal-road   { --portal-glow: rgba(255, 140, 66, 0.5); --portal-ring: rgba(255, 140, 66, 0.65); }
.portal-cyber  { --portal-glow: rgba(0, 229, 255, 0.55); --portal-ring: rgba(177, 74, 237, 0.7); }

.robot-display {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.robot-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 24px 44px rgba(15, 23, 42, 0.3));
    animation: robotFloat 4s ease-in-out infinite;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}
@keyframes robotFloat {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-18px) rotate(1deg); }
}

/* Plataforma bajo el robot */
.robot-platform {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    width: 74%;
    max-width: 380px;
    height: 55px;
    border-radius: 50%;
    z-index: 1;
}
.platform-garden {
    background: radial-gradient(ellipse, rgba(60, 120, 60, 0.4), transparent 70%);
    filter: blur(12px);
}
.platform-road {
    background: radial-gradient(ellipse, rgba(15, 23, 42, 0.5), transparent 70%);
    filter: blur(12px);
}
.platform-cyber {
    background: radial-gradient(ellipse, rgba(0, 229, 255, 0.5), rgba(177, 74, 237, 0.25) 50%, transparent 70%);
    filter: blur(10px);
    animation: platformGlow 3s ease-in-out infinite;
}
@keyframes platformGlow {
    0%, 100% { opacity: 0.8; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}

/* ------------------------------------------------------------
   13. TARJETAS HUD DE MUNDO
   ------------------------------------------------------------ */
.world-card {
    position: relative;
    background: rgba(255, 255, 255, 0.94);
    border-radius: var(--r-lg);
    padding: 36px 40px;
    box-shadow:
        0 24px 60px rgba(15, 23, 42, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    overflow: hidden;
}
.world-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--c1, #7ed957), var(--c2, #4ec0e0));
    border-radius: var(--r-lg) var(--r-lg) 0 0;
}

.card-inicial { --c1: #7ed957; --c2: #4ec0e0; }
.card-primaria { --c1: #ff8c42; --c2: #f7c948; }

.card-secundaria {
    --c1: #00e5ff;
    --c2: #b14aed;
    background: rgba(15, 22, 58, 0.88);
    border-color: rgba(0, 229, 255, 0.3);
    color: var(--c-blanco);
    box-shadow:
        0 24px 60px rgba(0, 229, 255, 0.18),
        0 0 80px rgba(177, 74, 237, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.card-hud {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.hud-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--c1, var(--c-bee-primario));
    box-shadow: 0 0 12px var(--c1, var(--c-bee-primario));
    animation: hudPulse 1.8s ease-in-out infinite;
}
@keyframes hudPulse {
    0%, 100% { transform: scale(1); opacity: 0.85; }
    50% { transform: scale(1.3); opacity: 1; }
}

.hud-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.15), transparent);
    border-radius: 1px;
}
.card-secundaria .hud-line { background: linear-gradient(90deg, rgba(0, 229, 255, 0.3), transparent); }

.hud-level {
    font-size: 0.75rem;
    font-family: var(--font-title);
    letter-spacing: 0.15em;
    font-weight: 600;
    color: var(--c-texto-suave);
}
.card-secundaria .hud-level { color: var(--c-lud-acento); }

.card-level {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px 8px 12px;
    border-radius: var(--r-full);
    font-size: 0.8rem;
    font-family: var(--font-title);
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 18px;
    background: linear-gradient(135deg, var(--c1, var(--c-bee-primario)), var(--c2, var(--c-bee-secundario)));
    color: var(--c-bee-oscuro);
    box-shadow:
        0 8px 20px rgba(126, 217, 87, 0.35),
        inset 0 -2px 0 rgba(0, 0, 0, 0.15),
        inset 0 2px 0 rgba(255, 255, 255, 0.4);
}
.card-primaria .card-level {
    color: var(--c-ray-oscuro);
    box-shadow:
        0 8px 20px rgba(255, 140, 66, 0.35),
        inset 0 -2px 0 rgba(0, 0, 0, 0.15),
        inset 0 2px 0 rgba(255, 255, 255, 0.4);
}
.card-secundaria .card-level {
    color: var(--c-blanco);
    box-shadow:
        0 8px 20px rgba(0, 229, 255, 0.4),
        0 0 30px rgba(177, 74, 237, 0.35),
        inset 0 -2px 0 rgba(0, 0, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.25);
}

.level-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-title {
    font-size: clamp(1.6rem, 2.4vw, 2.3rem);
    line-height: 1.1;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: #0f172a;
}
.card-secundaria .card-title { color: var(--c-blanco); }

.card-title-main {
    display: block;
    font-size: 0.68em;
    letter-spacing: 0.12em;
    color: var(--c-texto-secundario);
    font-weight: 600;
    text-transform: uppercase;
}
.card-secundaria .card-title-main { color: #94a3b8; }

.card-title-accent {
    background: linear-gradient(120deg, var(--c1), var(--c2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 14px rgba(126, 217, 87, 0.4));
}
.card-primaria .card-title-accent {
    filter: drop-shadow(0 4px 14px rgba(255, 140, 66, 0.4));
}
.card-secundaria .card-title-accent {
    filter: drop-shadow(0 4px 14px rgba(0, 229, 255, 0.5));
}

.card-desc {
    font-size: 1.02rem;
    color: var(--c-texto-secundario);
    margin-bottom: 22px;
    line-height: 1.6;
}
.card-secundaria .card-desc { color: #cbd5e1; }

/* Tags */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--r-full);
    font-size: 0.85rem;
    font-weight: 700;
    background: rgba(15, 23, 42, 0.05);
    border: 2px solid rgba(15, 23, 42, 0.06);
    color: #15803d;
    transition: transform var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
    cursor: default;
}
.card-primaria .tag { color: #c2410c; }
.card-secundaria .tag {
    background: rgba(0, 229, 255, 0.08);
    border-color: rgba(0, 229, 255, 0.2);
    color: var(--c-lud-acento);
}
.tag:hover {
    transform: translateY(-2px);
    border-color: var(--c1);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.tag-ico {
    width: 15px;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Card stats */
.card-stats {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px dashed rgba(15, 23, 42, 0.12);
}
.card-secundaria .card-stats { border-top-color: rgba(0, 229, 255, 0.15); }

.stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.stat-num {
    font-size: 1.4rem;
    font-weight: 700;
    font-family: var(--font-title);
    color: #0f172a;
    line-height: 1;
}
.card-secundaria .stat-num {
    color: var(--c-blanco);
    text-shadow: 0 0 12px rgba(0, 229, 255, 0.4);
}
.stat-lbl {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--c-texto-suave);
}
.card-secundaria .stat-lbl { color: var(--c-lud-acento); }

.stat-sep {
    width: 1px;
    height: 24px;
    background: rgba(15, 23, 42, 0.12);
}
.card-secundaria .stat-sep { background: rgba(0, 229, 255, 0.2); }

/* ------------------------------------------------------------
   14. SECCIÓN RECURSOS
   ------------------------------------------------------------ */
.recursos {
    position: relative;
    padding: 90px 24px;
    background:
        radial-gradient(circle at 15% 20%, rgba(0, 229, 255, 0.14) 0%, transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(177, 74, 237, 0.16) 0%, transparent 45%),
        linear-gradient(180deg, #060a1f 0%, #0d1230 50%, #1a2148 100%);
    color: var(--c-blanco);
    overflow: hidden;
}
.recursos::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 229, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.06) 1px, transparent 1px);
    background-size: 70px 70px;
    mask-image: linear-gradient(180deg, #000 0%, transparent 80%);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 80%);
    pointer-events: none;
}

.recursos-inner, .about-inner {
    position: relative;
    z-index: 2;
    max-width: 1140px;
    margin: 0 auto;
}

.section-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 52px;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-family: var(--font-title);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-lud-primario);
    padding: 8px 18px;
    border-radius: var(--r-full);
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.25);
    box-shadow: 0 0 24px rgba(0, 229, 255, 0.2), inset 0 0 12px rgba(0, 229, 255, 0.08);
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 14px;
    background: linear-gradient(120deg, #ffffff 0%, #c9d6f5 50%, #94e8ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.02rem;
    color: #a6b4d4;
    line-height: 1.6;
}

.recursos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    max-width: 900px;
    margin: 0 auto;
}

.resource-card {
    position: relative;
    padding: 44px 36px 36px;
    background: linear-gradient(160deg, rgba(30, 40, 80, 0.85), rgba(15, 22, 58, 0.9));
    border: 1px solid rgba(0, 229, 255, 0.25);
    border-radius: var(--r-lg);
    box-shadow:
        0 22px 55px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(0, 229, 255, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    transition: transform var(--t-mid), box-shadow var(--t-mid), border-color var(--t-mid);
    text-align: center;
}
.resource-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00e5ff, #b14aed);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.6);
}
.resource-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(0, 229, 255, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    border-color: rgba(0, 229, 255, 0.5);
}

.resource-icon-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.resource-icon {
    width: 88px;
    height: 88px;
    border-radius: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00e5ff 0%, #b14aed 100%);
    box-shadow:
        0 16px 40px rgba(0, 229, 255, 0.45),
        0 0 50px rgba(177, 74, 237, 0.35),
        inset 0 -4px 0 rgba(0, 0, 0, 0.2),
        inset 0 4px 0 rgba(255, 255, 255, 0.25);
    color: var(--c-blanco);
    transition: transform var(--t-mid), box-shadow var(--t-mid);
}
.resource-icon svg { width: 42px; height: 42px; }

.resource-card:hover .resource-icon {
    transform: scale(1.06) rotate(-3deg);
    box-shadow:
        0 20px 50px rgba(0, 229, 255, 0.55),
        0 0 70px rgba(177, 74, 237, 0.5),
        inset 0 -4px 0 rgba(0, 0, 0, 0.2),
        inset 0 4px 0 rgba(255, 255, 255, 0.28);
}

.resource-title {
    font-family: var(--font-title);
    font-size: 1.5rem;
    color: var(--c-blanco);
    margin-bottom: 12px;
}

.resource-desc {
    font-size: 0.98rem;
    color: #a6b4d4;
    line-height: 1.6;
    margin-bottom: 26px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.btn-resource {
    background: linear-gradient(135deg, #00e5ff 0%, #b14aed 100%);
    color: var(--c-blanco);
    width: 100%;
    font-size: 1rem;
    padding: 16px 24px;
    box-shadow:
        0 14px 34px rgba(0, 229, 255, 0.4),
        0 0 30px rgba(177, 74, 237, 0.3),
        inset 0 -4px 0 rgba(0, 0, 0, 0.25),
        inset 0 4px 0 rgba(255, 255, 255, 0.22);
}

.btn-resource-alt {
    background: linear-gradient(135deg, #7ed957 0%, #00e5ff 100%);
    color: var(--c-bee-oscuro);
    box-shadow:
        0 14px 34px rgba(126, 217, 87, 0.4),
        0 0 30px rgba(0, 229, 255, 0.3),
        inset 0 -4px 0 rgba(0, 0, 0, 0.25),
        inset 0 4px 0 rgba(255, 255, 255, 0.22);
}

.resource-card:nth-child(2) .resource-icon {
    background: linear-gradient(135deg, #7ed957 0%, #00e5ff 100%);
    box-shadow:
        0 16px 40px rgba(126, 217, 87, 0.45),
        0 0 50px rgba(0, 229, 255, 0.35),
        inset 0 -4px 0 rgba(0, 0, 0, 0.2),
        inset 0 4px 0 rgba(255, 255, 255, 0.25);
}
.resource-card:nth-child(2)::before {
    background: linear-gradient(90deg, #7ed957, #00e5ff);
}

/* ------------------------------------------------------------
   15. SECCIÓN SOBRE NOSOTROS
   ------------------------------------------------------------ */
.about {
    position: relative;
    padding: 90px 24px;
    background:
        radial-gradient(circle at 12% 15%, rgba(126, 217, 87, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 88% 85%, rgba(43, 94, 156, 0.14) 0%, transparent 45%),
        linear-gradient(180deg, #1a2148 0%, #eef3fb 25%, #eef3fb 100%);
    overflow: hidden;
}

.about .section-eyebrow {
    color: #2b5e9c;
    background: rgba(43, 94, 156, 0.08);
    border-color: rgba(43, 94, 156, 0.2);
    box-shadow: 0 0 24px rgba(43, 94, 156, 0.12), inset 0 0 12px rgba(43, 94, 156, 0.05);
}

.about .section-title {
    background: linear-gradient(120deg, #1e3a8a 0%, #2b5e9c 50%, #b14aed 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about .section-subtitle {
    color: #475569;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 26px;
    margin-bottom: 56px;
}

.about-card {
    position: relative;
    padding: 34px 30px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: var(--r-lg);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 22px 50px rgba(15, 23, 42, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform var(--t-mid), box-shadow var(--t-mid);
    overflow: hidden;
}
.about-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, #7ed957, #4ec0e0);
}
.about-card:nth-child(2)::before { background: linear-gradient(90deg, #ff8c42, #f7c948); }
.about-card:nth-child(3)::before { background: linear-gradient(90deg, #00e5ff, #b14aed); }

.about-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 30px 65px rgba(15, 23, 42, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.about-icon {
    width: 68px;
    height: 68px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #7ed957, #4ec0e0);
    color: var(--c-blanco);
    box-shadow:
        0 12px 26px rgba(126, 217, 87, 0.35),
        inset 0 -3px 0 rgba(0, 0, 0, 0.15),
        inset 0 3px 0 rgba(255, 255, 255, 0.3);
    margin-bottom: 22px;
}
.about-card:nth-child(2) .about-icon {
    background: linear-gradient(135deg, #ff8c42, #f7c948);
    box-shadow: 0 12px 26px rgba(255, 140, 66, 0.35), inset 0 -3px 0 rgba(0, 0, 0, 0.15), inset 0 3px 0 rgba(255, 255, 255, 0.3);
}
.about-card:nth-child(3) .about-icon {
    background: linear-gradient(135deg, #00e5ff, #b14aed);
    box-shadow: 0 12px 26px rgba(0, 229, 255, 0.4), inset 0 -3px 0 rgba(0, 0, 0, 0.15), inset 0 3px 0 rgba(255, 255, 255, 0.3);
}
.about-icon svg { width: 32px; height: 32px; }

.about-title {
    font-family: var(--font-title);
    font-size: 1.28rem;
    color: #0f172a;
    margin-bottom: 12px;
}

.about-desc {
    font-size: 0.96rem;
    color: #475569;
    line-height: 1.65;
}

/* Barra de evolución */
.about-evolution {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px 20px;
    border-radius: var(--r-lg);
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-wrap: wrap;
}

.evo-step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.06em;
    color: #334155;
    padding: 8px 16px;
    border-radius: var(--r-full);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06), inset 0 -2px 0 rgba(0, 0, 0, 0.04);
}

.evo-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}
.evo-nature .evo-dot { background: linear-gradient(135deg, #7ed957, #4ec0e0); box-shadow: 0 0 12px rgba(126, 217, 87, 0.6); }
.evo-city   .evo-dot { background: linear-gradient(135deg, #ff8c42, #f7c948); box-shadow: 0 0 12px rgba(255, 140, 66, 0.6); }
.evo-tech   .evo-dot { background: linear-gradient(135deg, #00e5ff, #b14aed); box-shadow: 0 0 12px rgba(0, 229, 255, 0.6); }

.evo-line {
    flex: 1;
    min-width: 30px;
    max-width: 80px;
    height: 2px;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.15), rgba(15, 23, 42, 0.25), rgba(15, 23, 42, 0.15));
    border-radius: 1px;
    position: relative;
}
.evo-line::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -3px;
    width: 6px;
    height: 6px;
    border-top: 2px solid rgba(15, 23, 42, 0.3);
    border-right: 2px solid rgba(15, 23, 42, 0.3);
    transform: translateY(-50%) rotate(45deg);
}

/* ------------------------------------------------------------
   16. PIE DE PÁGINA PROFESIONAL
   ------------------------------------------------------------ */
.site-footer {
    background: linear-gradient(180deg, #0a0e27, #060a1f);
    color: #b6c4dc;
    padding: 64px 24px 32px;
    position: relative;
    overflow: hidden;
}
.site-footer::before {
    content: "";
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 70%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.4), rgba(177, 74, 237, 0.4), transparent);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 60px;
    padding-bottom: 44px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 28px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-title);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--c-blanco);
    margin-bottom: 14px;
}
.footer-brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00e5ff 0%, #b14aed 100%);
    color: var(--c-blanco);
    box-shadow: 0 8px 20px rgba(0, 229, 255, 0.35), inset 0 -3px 0 rgba(0, 0, 0, 0.2), inset 0 3px 0 rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
}
.footer-brand-logo svg { width: 22px; height: 22px; }

.footer-brand-txt {
    background: linear-gradient(90deg, #00e5ff 0%, #b14aed 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.02em;
}

.footer-msg {
    font-size: 0.98rem;
    color: #94a3b8;
    margin-bottom: 18px;
    line-height: 1.6;
    max-width: 380px;
}

.footer-levels {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 0.88rem;
    color: #cbd5e1;
}
.footer-dot { color: var(--c-lud-primario); opacity: 0.5; }

.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col-title {
    font-family: var(--font-title);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-lud-primario);
    margin-bottom: 18px;
    text-shadow: 0 0 16px rgba(0, 229, 255, 0.4);
}

.footer-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-list li a {
    display: inline-flex;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: #b6c4dc;
    padding: 6px 0;
    min-height: 34px;
    transition: color var(--t-fast), transform var(--t-fast);
    position: relative;
}
.footer-list li a::before {
    content: "";
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00e5ff, #b14aed);
    border-radius: 2px;
    transition: width var(--t-mid), margin-right var(--t-mid);
}
.footer-list li a:hover {
    color: var(--c-blanco);
    transform: translateX(2px);
}
.footer-list li a:hover::before {
    width: 16px;
    margin-right: 8px;
}

.footer-bottom {
    padding-top: 4px;
    text-align: center;
}
.footer-copy {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.6;
}
.footer-copy #year { color: var(--c-lud-primario); font-weight: 700; }

/* ------------------------------------------------------------
   17. ANIMACIONES DE REVEAL
   ------------------------------------------------------------ */
.reveal-child {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 0.9s cubic-bezier(0.22, 0.61, 0.36, 1),
        transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal-child[data-reveal="2"] { transition-delay: 0.12s; }
.reveal-child[data-reveal="3"] { transition-delay: 0.22s; }
.reveal-child[data-reveal="4"] { transition-delay: 0.32s; }
.reveal-child[data-reveal="5"] { transition-delay: 0.42s; }
.reveal-child.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ------------------------------------------------------------
   18. UTILIDADES
   ------------------------------------------------------------ */
.ripple { pointer-events: none; }
.cyber-particle { pointer-events: none; }
.is-hidden { display: none !important; }

/* ------------------------------------------------------------
   19. RESPONSIVE
   ------------------------------------------------------------ */

/* Laptops grandes */
@media (min-width: 1700px) {
    .world-content { gap: 80px; max-width: 1520px; }
    .robot-display { max-width: 540px; }
    .card-title { font-size: 2.6rem; }
}

/* Tablets horizontales y laptops */
@media (max-width: 1024px) {
    .world-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .robot-stage {
        order: -1;
        min-height: 400px;
    }

    .robot-display { max-width: 380px; }
    .robot-portal { width: 380px; height: 380px; }

    .tag-list { justify-content: center; }
    .world-card {
        text-align: left;
        max-width: 640px;
        margin: 0 auto;
    }

    /* Menú móvil */
    .main-nav {
        position: fixed;
        top: calc(var(--header-h) + var(--header-margin) + 10px);
        left: 16px;
        right: 16px;
        flex-direction: column;
        padding: 16px;
        background: rgba(10, 14, 39, 0.96);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 20px;
        transform: translateY(-160%);
        opacity: 0;
        transition: all var(--t-mid);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
        max-height: calc(100vh - 200px);
        overflow-y: auto;
    }
    .main-nav.is-open { transform: translateY(0); opacity: 1; }
    .nav-indicator { display: none; }
    .nav-btn { width: 100%; justify-content: center; padding: 12px; }
    .menu-toggle { display: flex; }

    .transition { height: 200px; }

    .recursos, .about { padding: 70px 24px; }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-nav { max-width: 640px; margin: 0 auto; width: 100%; }
}

/* Tablets verticales */
@media (max-width: 720px) {
    :root { --header-h: 76px; --header-margin: 12px; }

    .brand-tagline { display: none; }
    .brand-logo { width: 44px; height: 44px; border-radius: 14px; }
    .brand-logo-emoji { width: 22px; height: 22px; }
    .brand-name { font-size: 1rem; }

    .sound-toggle {
        top: calc(var(--header-h) + var(--header-margin) + 12px);
        right: 12px;
        width: 50px; height: 50px;
    }
    .sound-toggle .sound-icon { width: 22px; height: 22px; }

    .hero { padding: calc(var(--header-h) + 40px) 18px 60px; }
    .hero-title { font-size: 2.4rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-quote { font-size: 0.95rem; margin-bottom: 28px; }
    .btn-hero { font-size: 1rem; padding: 16px 28px; }

    .hero-worlds { gap: 20px; margin-top: 36px; }
    .wp-orb { width: 64px; height: 64px; }
    .wp-label { font-size: 0.7rem; }

    .transition { height: 160px; }

    .world { padding: 80px 18px 60px; }
    .world-card { padding: 28px 22px; }

    .robot-stage { min-height: 320px; }
    .robot-display { max-width: 300px; }
    .robot-portal { width: 300px; height: 300px; }

    .card-title { font-size: 1.6rem; }
    .card-desc { font-size: 0.95rem; }
    .tag { font-size: 0.78rem; padding: 6px 12px; }

    /* Ocultar decoraciones pesadas en móvil */
    .holo-1, .holo-2, .data-panel { display: none; }

    .sun { width: 90px; height: 90px; }
    .city-sun { width: 80px; height: 80px; }

    /* Reducir flores y bichos */
    .flower { width: 32px; height: 32px; }
    .butterfly { width: 30px; height: 26px; }
    .bee { width: 30px; height: 24px; }
    .road-sign { width: 40px; height: 40px; }

    /* Cards y secciones */
    .recursos, .about { padding: 60px 18px; }
    .recursos-grid { grid-template-columns: 1fr; max-width: 480px; }
    .resource-card { padding: 34px 24px 28px; }
    .resource-icon { width: 72px; height: 72px; border-radius: 22px; }
    .resource-icon svg { width: 34px; height: 34px; }

    .about-evolution { gap: 10px; padding: 18px 14px; }
    .evo-step { font-size: 0.8rem; padding: 6px 12px; }
    .evo-line { max-width: 40px; }

    /* Footer */
    .site-footer { padding: 48px 18px 24px; }
    .footer-nav { grid-template-columns: 1fr; gap: 24px; }
}

/* Móviles pequeños */
@media (max-width: 420px) {
    .brand-name { font-size: 0.88rem; }
    .brand-logo { width: 40px; height: 40px; border-radius: 12px; }
    .brand-logo-emoji { width: 20px; height: 20px; }

    .hero-title { font-size: 2rem; }
    .hero-badge { font-size: 0.75rem; padding: 6px 14px; }

    .wp-orb { width: 56px; height: 56px; }
    .wp-label { font-size: 0.62rem; letter-spacing: 0.08em; }

    .card-title { font-size: 1.4rem; }
    .btn-world { font-size: 0.95rem; padding: 14px 20px; }

    .recursos, .about { padding: 50px 16px; }
    .resource-card { padding: 28px 20px 22px; }
}

/* ------------------------------------------------------------
   20. ACCESIBILIDAD
   ------------------------------------------------------------ */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--c-ray-primario);
    outline-offset: 3px;
    border-radius: 12px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .reveal-child { opacity: 1; transform: none; }
    .robot-img { animation: none; }
    .robot-portal { animation: none; }
}

/* === Rediseño integrado: navegación, portales y uniones suaves === */
:root { --header-h: 76px; --c-ray-primario:#a78bfa; --c-ray-secundario:#7dd3fc; --c-ray-acento:#b9a0ff; --c-ray-sombra:rgba(147,125,239,.24); }
.site-header {border-radius:26px; border-color:rgba(125,211,252,.3);box-shadow:0 12px 36px rgba(5,8,28,.35),0 0 22px rgba(104,132,241,.09)}
.header-inner{max-width:1920px;gap:14px}.main-nav{gap:5px;flex-wrap:nowrap}.nav-btn{border:1px solid transparent; padding:9px 13px;transition:background .25s,border-color .25s,color .25s,box-shadow .25s}
.nav-btn.nav-beebot{border-color:rgba(255,221,99,.36);background:rgba(255,221,99,.07)}
.nav-btn.nav-rayet{border-color:rgba(172,154,255,.43);background:rgba(144,121,255,.09)}
.nav-btn.nav-ludio{border-color:rgba(107,192,255,.4);background:rgba(97,141,255,.09)}
.nav-btn.nav-recursos{border-color:rgba(111,228,199,.3);background:rgba(111,228,199,.07)}
.nav-btn.nav-beebot:hover,.nav-btn.nav-beebot.is-active{border-color:#ffe78b;color:#ffe78b;box-shadow:0 0 16px rgba(255,224,120,.16)}
.nav-btn.nav-rayet:hover,.nav-btn.nav-rayet.is-active{border-color:#a5b4fc;color:#c4b5fd;box-shadow:0 0 17px rgba(165,180,252,.2)}
.nav-btn.nav-ludio:hover,.nav-btn.nav-ludio.is-active{border-color:#7dd3fc;color:#93c5fd;box-shadow:0 0 17px rgba(125,211,252,.18)}
.nav-indicator{display:none}
.hero-worlds{display:flex;justify-content:center;align-items:start;flex-wrap:wrap;gap:clamp(18px,3vw,54px);max-width:980px;margin-inline:auto}
.world-preview{cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:14px;min-width:140px;text-decoration:none;transition:transform .3s ease}
.world-preview:focus-visible{outline:3px solid #fff;border-radius:22px;outline-offset:7px}
.wp-orb{transition:transform .35s,border-color .35s,box-shadow .35s}
.wp-inicial .wp-orb{border-color:rgba(255,224,105,.52);box-shadow:0 0 26px rgba(255,224,105,.1)}
.wp-primaria .wp-orb{border-color:rgba(169,162,255,.58);box-shadow:0 0 28px rgba(155,154,255,.13)}
.wp-secundaria .wp-orb{border-color:rgba(125,211,252,.57);box-shadow:0 0 28px rgba(125,211,252,.13)}
.wp-recursos .wp-orb{border-color:rgba(110,231,183,.57);box-shadow:0 0 28px rgba(110,231,183,.12)}
.wp-teacher-icon{display:flex;align-items:center;justify-content:center;font-size:clamp(2.8rem,5vw,4.3rem);background:radial-gradient(circle at 30% 25%,rgba(118,233,194,.22),rgba(35,45,79,.82))}
.world-preview:hover{transform:translateY(-5px)}.world-preview:hover .wp-orb{box-shadow:0 0 28px rgba(182,201,255,.28)}
.wp-label{letter-spacing:.11em}.wp-recursos .wp-label{color:#a7f3d0}
/* Transiciones atmosféricas: sin carreteras ni edificios cortados */
.transition{height:clamp(180px,20vw,310px);overflow:hidden;z-index:2;isolation:isolate}
.transition>div{display:none!important}
.transition::before,.transition::after{content:"";position:absolute;inset:0;pointer-events:none}
.transition-1{background:linear-gradient(180deg,#171b38 0%,#252d4a 18%,#465e69 42%,#91b8b6 68%,#d6efff 100%)}
.transition-1::before{background:radial-gradient(ellipse 55% 70% at 24% 55%,rgba(255,231,156,.2),transparent 80%)}
.transition-2{background:linear-gradient(180deg,#b8e0a0 0%,#b7dfbd 16%,#abcfc9 36%,#a6c5d6 67%,#b8d4f0 100%)}
.transition-2::before{background:radial-gradient(ellipse 55% 70% at 70% 48%,rgba(194,175,255,.16),transparent 85%)}
.transition-3{background:linear-gradient(180deg,#a8bfd9 0%,#94aecf 15%,#7384af 38%,#414e82 61%,#1b2755 83%,#0a0e27 100%)}
.transition-3::before{background:radial-gradient(ellipse 60% 70% at 65% 68%,rgba(125,211,252,.19),transparent 82%),radial-gradient(ellipse 45% 65% at 25% 40%,rgba(171,137,250,.17),transparent 85%)}
.transition::after{background:linear-gradient(90deg,transparent,rgba(255,255,255,.055) 47%,transparent);opacity:.65}
.card-inicial{--c1:#f4d86d;--c2:#a6d89a;border:1px solid rgba(230,193,69,.42);box-shadow:0 24px 60px rgba(15,23,42,.13),0 0 36px rgba(245,215,98,.14)}
.card-primaria{--c1:#aa9af9;--c2:#80d9ef;border:1px solid rgba(161,148,248,.45);box-shadow:0 24px 60px rgba(15,23,42,.13),0 0 40px rgba(145,143,239,.16)}
.card-secundaria{--c1:#70c7f9;--c2:#a78bfa;border:1px solid rgba(130,166,255,.46);box-shadow:0 24px 65px rgba(4,8,36,.38),0 0 42px rgba(120,116,255,.13)}
.btn-primaria{background:linear-gradient(125deg,#c4b5fd,#86d6f3);color:#242445;box-shadow:0 12px 28px rgba(130,143,240,.23)}
section[id]{scroll-margin-top:110px}
@media(max-width:850px){.hero-worlds{gap:20px}.world-preview{min-width:115px}.site-header{border-radius:20px}.nav-btn{padding:10px 12px}.transition{height:170px}}
@media(prefers-reduced-motion:reduce){.world-preview,.wp-orb{transition:none}}

/* Tarjeta Robots del Aula: tercer recurso del profesor */
@media (min-width: 1050px) {
    .recursos-grid { max-width: 1240px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.resource-card-robots .resource-icon {
    background: linear-gradient(135deg, #819bff, #ae7df0);
    box-shadow: 0 16px 40px rgba(129,155,255,.32), 0 0 40px rgba(174,125,240,.22);
}
.resource-card-robots::before { background: linear-gradient(90deg, #819bff, #ae7df0); }
.btn-resource-robots {
    background: linear-gradient(135deg, #718ef1, #a77bea);
    box-shadow: 0 12px 30px rgba(113,142,241,.28), inset 0 2px 0 rgba(255,255,255,.2);
}
\n\n/* === Ajuste recursos profesor: tarjetas y botones perfectamente alineados === */
.recursos-grid { align-items: stretch; }
.resource-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.resource-icon-wrap { flex: 0 0 auto; }
.resource-title { flex: 0 0 auto; }
.resource-desc {
    flex: 1 1 auto;
    min-height: 76px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}
.resource-card > .btn-resource {
    margin-top: auto;
    flex: 0 0 auto;
}
.resource-card-robots .resource-icon {
    box-shadow:
        0 16px 40px rgba(129,155,255,.45),
        0 0 50px rgba(174,125,240,.35),
        inset 0 -4px 0 rgba(0,0,0,.20),
        inset 0 4px 0 rgba(255,255,255,.25);
}
.btn-resource-robots {
    background: linear-gradient(135deg, #718ef1 0%, #a77bea 100%);
    color: var(--c-blanco);
    box-shadow:
        0 14px 34px rgba(113,142,241,.45),
        0 0 34px rgba(167,123,234,.38),
        inset 0 -4px 0 rgba(0,0,0,.22),
        inset 0 4px 0 rgba(255,255,255,.24);
}
.resource-card-robots:hover .btn-resource-robots {
    box-shadow:
        0 18px 42px rgba(113,142,241,.58),
        0 0 48px rgba(167,123,234,.52),
        inset 0 -4px 0 rgba(0,0,0,.22),
        inset 0 4px 0 rgba(255,255,255,.28);
}
@media (max-width: 700px) {
    .resource-desc { min-height: 0; }
}


/* === Organización por etapa educativa === */
.world-preview { min-width: 150px; }
.wp-stage {
    display:block; margin-top:6px; font-size:.60rem; font-weight:800;
    letter-spacing:.08em; color:rgba(224,232,255,.68); white-space:nowrap;
}
.wp-inicial .wp-stage { color:#f4dc75; }
.wp-primaria .wp-stage { color:#9fdfff; }
.wp-secundaria .wp-stage { color:#b8a8ff; }
.wp-recursos .wp-stage { color:#cbd5e8; }
.hud-level {
    width:auto !important; min-width:max-content; padding:5px 10px; border-radius:6px;
    letter-spacing:.08em; font-size:.68rem; white-space:nowrap;
}
.card-inicial .hud-level { background:rgba(126,217,87,.16); color:#e9f57c; border:1px solid rgba(233,245,124,.28); }
.card-primaria .hud-level { background:rgba(90,174,255,.15); color:#9fdfff; border:1px solid rgba(159,223,255,.28); }
.card-secundaria .hud-level { background:rgba(139,105,255,.16); color:#c6b8ff; border:1px solid rgba(198,184,255,.30); }
@media (max-width: 760px){ .wp-stage{font-size:.52rem}.world-preview{min-width:120px}.hud-level{font-size:.58rem;padding:4px 7px} }

/* El crédito se comparte entre la portada y los tres mundos. */
.site-footer .footer-collaboration {
    max-width: 44rem;
    margin: 0 auto 12px;
    color: inherit;
    text-align: center;
    font-size: .9rem;
    line-height: 1.55;
}
.site-footer .footer-collaboration strong { font-weight: 900; }
.world-portal .site-footer .footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-inline: auto;
    text-align: center;
}
.world-portal .site-footer :is(.footer-brand,.footer-msg,.footer-nav,.footer-copy) {
    margin: 0 auto;
    text-align: center;
}
.world-portal .site-footer .footer-msg { max-width: 40rem; }
.world-portal .site-footer .footer-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 14px;
    width: 100%;
}
.world-portal .site-footer .footer-nav-link { display: inline-flex; align-items: center; min-height: 40px; }
.world-portal .site-footer .footer-dot { display: none; }
.world-portal .site-footer .footer-collaboration {
    margin: 0 auto;
    padding-top: 14px;
    border-top: 1px solid currentColor;
}
.footer-inicial .footer-collaboration { color: #fff1c5; }
.footer-primaria .footer-collaboration { color: #ffe1bf; }
.footer-secundaria .footer-collaboration { color: #ccf8fa; }
.home-portal .footer-collaboration { color: #dce5ff; }
