/* --- ESTILOS GENERALES Y VARIABLES PREMIUM --- */
        :root {
            --rojo-japon: #bc002d;
            --rojo-brillante: #ff2a5f;
            --oscuro: #0a0a0c;
            --oscuro-tarjeta: #141419;
            --claro: #fafafa;
            --blanco: #ffffff;
            --gris-borde: #e2e8f0;
            --sakura-pink: #fff0f2;
            --sakura-text: #d43f5e;
            --transicion: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            --sombra: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
            --fuente: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: var(--fuente);
            scroll-behavior: smooth;
        }

        body {
            background-color: var(--claro);
            color: #2d3748;
            overflow-x: hidden;
            line-height: 1.6;
        }

        /* --- SAKURA CANVAS BACKGROUND --- */
        #sakura-canvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            pointer-events: none;
        }

        /* --- HEADER Y NAVEGACIÓN (GLASSMORPHISM) --- */
        header {
            background: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            color: var(--oscuro);
            padding: 15px 0;
            position: sticky;
            top: 0;
            z-index: 1000;
            border-bottom: 1px solid rgba(188, 0, 45, 0.1);
            box-shadow: 0 4px 20px rgba(0,0,0,0.02);
            transition: var(--transicion);
        }

        .nav-container {
            width: 90%;
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
            text-decoration: none;
            color: var(--oscuro);
        }

        .logo-circulo {
            width: 32px;
            height: 32px;
            background-color: var(--rojo-japon);
            border-radius: 50%;
            display: inline-block;
            box-shadow: 0 0 15px rgba(188, 0, 45, 0.4);
            animation: latido 3s infinite ease-in-out;
        }

        @keyframes latido {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.1); box-shadow: 0 0 20px rgba(188, 0, 45, 0.6); }
        }

        header h1 {
            font-size: 1.5rem;
            font-weight: 800;
            letter-spacing: 1px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        header h1 span {
            color: var(--rojo-japon);
        }

        nav {
            display: flex;
            align-items: center;
            gap: 25px;
        }

        nav a {
            color: #4a5568;
            text-decoration: none;
            font-weight: 600;
            font-size: 0.95rem;
            transition: var(--transicion);
            position: relative;
            padding: 5px 0;
        }

        nav a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background-color: var(--rojo-japon);
            transition: var(--transicion);
        }

        nav a:hover {
            color: var(--rojo-japon);
        }

        nav a:hover::after {
            width: 100%;
        }

        /* --- HERO SECTION --- */
        .hero {
            background: linear-gradient(135deg, rgba(13, 13, 13, 0.8) 30%, rgba(188, 0, 45, 0.4) 100%), 
                        url('https://images.unsplash.com/photo-1493976040374-85c8e12f0c0e?q=80&w=1920') no-repeat center center/cover;
            height: 75vh;
            display: flex;
            justify-content: center;
            align-items: center;
            text-align: center;
            color: white;
            padding: 20px;
            position: relative;
            overflow: hidden;
            clip-path: ellipse(150% 100% at 50% 0%);
        }

        .hero-content {
            max-width: 800px;
            z-index: 10;
        }

        .hero-content h2 {
            font-size: 3.8rem;
            font-weight: 900;
            margin-bottom: 15px;
            letter-spacing: -1px;
            line-height: 1.1;
            text-shadow: 0 4px 20px rgba(0,0,0,0.3);
            animation: fadeInUp 1s ease-out;
        }

        .hero-content p {
            font-size: 1.3rem;
            color: rgba(255, 255, 255, 0.9);
            margin-bottom: 30px;
            font-weight: 300;
            letter-spacing: 0.5px;
            animation: fadeInUp 1.2s ease-out;
        }

        .btn-principal {
            background-color: var(--rojo-japon);
            color: white;
            padding: 14px 28px;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 700;
            font-size: 1rem;
            box-shadow: 0 10px 20px rgba(188, 0, 45, 0.4);
            display: inline-block;
            transition: var(--transicion);
            border: 2px solid transparent;
            animation: fadeInUp 1.4s ease-out;
        }

        .btn-principal:hover {
            background-color: white;
            color: var(--rojo-japon);
            transform: translateY(-3px);
            box-shadow: 0 15px 30px rgba(188, 0, 45, 0.5);
        }

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

        /* --- CONTENEDOR Y MAQUETACIÓN --- */
        .container {
            width: 90%;
            max-width: 1200px;
            margin: 0 auto;
            position: relative;
        }

        section {
            padding: 80px 0 40px;
        }

        .section-header {
            text-align: center;
            margin-bottom: 50px;
        }

        .section-header h2 {
            font-size: 2.5rem;
            color: var(--oscuro);
            font-weight: 800;
            display: inline-block;
            position: relative;
            padding-bottom: 15px;
        }

        .section-header h2::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 4px;
            background-color: var(--rojo-japon);
            border-radius: 2px;
        }

        .section-header p {
            color: #718096;
            margin-top: 10px;
            font-size: 1.1rem;
        }

        /* --- BUSCADOR Y FILTROS --- */
        .control-panel {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-bottom: 40px;
            flex-wrap: wrap;
        }

        .filtro-btn {
            background: white;
            border: 1px solid var(--gris-borde);
            padding: 8px 20px;
            border-radius: 30px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transicion);
            color: #4a5568;
        }

        .filtro-btn.active, .filtro-btn:hover {
            background: var(--rojo-japon);
            color: white;
            border-color: var(--rojo-japon);
            box-shadow: 0 5px 15px rgba(188, 0, 45, 0.2);
        }

        /* --- TARJETAS E INTERFACES --- */
        .grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 30px;
        }

        .card {
            background: var(--blanco);
            border-radius: 16px;
            overflow: hidden;
            box-shadow: var(--sombra);
            transition: var(--transicion);
            border: 1px solid rgba(0, 0, 0, 0.03);
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        .card:hover {
            transform: translateY(-8px) scale(1.02);
            box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.15);
        }

        .card-img-wrapper {
            position: relative;
            overflow: hidden;
            height: 240px;
        }

        .card img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: var(--transicion);
        }

        .card:hover .card-img-wrapper img {
            transform: scale(1.1);
        }

        .card-content {
            padding: 25px;
            display: flex;
            flex-direction: column;
            flex-grow: 1;
        }

        .card-content h3 {
            font-size: 1.4rem;
            margin-bottom: 12px;
            color: var(--oscuro);
            font-weight: 700;
        }

        .badge {
            background-color: var(--sakura-pink);
            color: var(--sakura-text);
            padding: 4px 12px;
            font-size: 0.8rem;
            font-weight: 700;
            border-radius: 20px;
            display: inline-block;
            margin-bottom: 15px;
            width: fit-content;
        }

        .card-content p {
            color: #4a5568;
            font-size: 0.95rem;
            line-height: 1.6;
        }

        /* --- CURIOSIDADES INTERACTIVAS --- */
        .curiosidades-container {
            display: grid;
            grid-template-columns: 1fr;
            gap: 20px;
            background: white;
            padding: 35px;
            border-radius: 24px;
            box-shadow: var(--sombra);
            border-left: 6px solid var(--rojo-japon);
        }

        .curiosidad-card {
            display: flex;
            gap: 20px;
            padding: 20px;
            border-radius: 12px;
            background: var(--gris-subtle);
            transition: var(--transicion);
            align-items: flex-start;
        }

        .curiosidad-card:hover {
            background: var(--sakura-pink);
            transform: translateX(10px);
        }

        .curiosidad-icon {
            font-size: 2rem;
            background: white;
            padding: 10px;
            border-radius: 12px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.05);
            line-height: 1;
        }

        .curiosidad-info h4 {
            font-size: 1.2rem;
            color: var(--oscuro);
            margin-bottom: 6px;
        }

        /* --- RECOMENDADOR DE ANIME --- */
        .recomendador-section {
            background: linear-gradient(135deg, var(--oscuro) 0%, #1a1a24 100%);
            color: white;
            padding: 50px;
            border-radius: 24px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.3);
            margin-top: 40px;
        }

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

        @media (max-width: 900px) {
            .recomendador-grid {
                grid-template-columns: 1fr;
            }
        }

        .recomendador-selector h3 {
            font-size: 2rem;
            margin-bottom: 15px;
            color: white;
        }

        .recomendador-selector p {
            color: #a0aec0;
            margin-bottom: 25px;
        }

        .genero-botones {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
        }

        .btn-genero {
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: white;
            padding: 12px 15px;
            border-radius: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transicion);
            text-align: left;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .btn-genero:hover, .btn-genero.active {
            background: var(--rojo-japon);
            border-color: var(--rojo-japon);
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(188, 0, 45, 0.4);
        }

        .recomendador-resultado {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 18px;
            padding: 30px;
            min-height: 350px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            transition: var(--transicion);
        }

        .anime-resultado-contenido {
            animation: fadeIn 0.5s ease-out;
        }

        .anime-resultado-img {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            object-fit: cover;
            border: 4px solid var(--rojo-japon);
            margin-bottom: 20px;
            box-shadow: 0 10px 25px rgba(188, 0, 45, 0.3);
        }

        .anime-resultado-titulo {
            font-size: 1.6rem;
            font-weight: 800;
            margin-bottom: 10px;
            color: #fff;
        }

        .anime-resultado-desc {
            color: #cbd5e0;
            font-size: 0.95rem;
            max-width: 400px;
            margin: 0 auto;
        }

        /* --- FRASEOLOGÍA CON AUDIO --- */
        .phrases-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
        }

        .phrase-card {
            background: white;
            border: 1px solid var(--gris-borde);
            border-radius: 16px;
            padding: 25px;
            text-align: center;
            cursor: pointer;
            transition: var(--transicion);
            position: relative;
            overflow: hidden;
        }

        .phrase-card::before {
            content: '🔊 Oír';
            position: absolute;
            top: 15px;
            right: 15px;
            background: var(--sakura-pink);
            color: var(--sakura-text);
            font-size: 0.75rem;
            font-weight: 700;
            padding: 4px 8px;
            border-radius: 10px;
            opacity: 0;
            transform: scale(0.8);
            transition: var(--transicion);
        }

        .phrase-card:hover {
            border-color: var(--rojo-japon);
            transform: translateY(-5px);
            box-shadow: var(--sombra);
        }

        .phrase-card:hover::before {
            opacity: 1;
            transform: scale(1);
        }

        .phrase-jp {
            font-size: 2rem;
            font-weight: 700;
            color: var(--rojo-japon);
            margin-bottom: 5px;
        }

        .phrase-romaji {
            font-weight: 600;
            color: var(--oscuro);
            font-size: 1.1rem;
            margin-bottom: 5px;
        }

        .phrase-es {
            color: #718096;
            font-size: 0.9rem;
        }

        /* --- QUIZ INTERACTIVO --- */
        .quiz-container {
            background: white;
            border-radius: 24px;
            box-shadow: var(--sombra);
            padding: 40px;
            margin-top: 40px;
        }

        .quiz-pregunta {
            font-size: 1.3rem;
            font-weight: 700;
            margin-bottom: 25px;
            color: var(--oscuro);
        }

        .quiz-opciones {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
        }

        @media (max-width: 600px) {
            .quiz-opciones {
                grid-template-columns: 1fr;
            }
        }

        .quiz-opcion {
            background: var(--gris-subtle);
            border: 2px solid transparent;
            padding: 15px 20px;
            border-radius: 12px;
            cursor: pointer;
            font-weight: 600;
            transition: var(--transicion);
            text-align: left;
        }

        .quiz-opcion:hover {
            background: #edf2f7;
            transform: scale(1.01);
        }

        .quiz-opcion.correct {
            background: #c6f6d5;
            border-color: #38a169;
            color: #22543d;
        }

        .quiz-opcion.incorrect {
            background: #fed7d7;
            border-color: #e53e3e;
            color: #742a2a;
        }

        .quiz-progreso {
            margin-top: 25px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            color: #718096;
            font-size: 0.9rem;
        }

        .btn-siguiente {
            background: var(--oscuro);
            color: white;
            border: none;
            padding: 10px 24px;
            border-radius: 8px;
            font-weight: 700;
            cursor: pointer;
            transition: var(--transicion);
        }

        .btn-siguiente:hover {
            background: var(--rojo-japon);
            transform: translateY(-2px);
        }

        /* --- FOOTER --- */
        footer {
            background-color: var(--oscuro);
            color: white;
            text-align: center;
            padding: 40px 20px;
            margin-top: 80px;
            font-size: 0.95rem;
            border-top: 4px solid var(--rojo-japon);
        }

        footer p {
            color: #a0aec0;
            margin-top: 10px;
        }

        /* --- ANIMACIONES ADICIONALES --- */
        @keyframes fadeIn {
            from { opacity: 0; transform: scale(0.95); }
            to { opacity: 1; transform: scale(1); }
        }
    