        /* Cargar la fuente si es necesaria */
        @font-face {
            font-family: 'Simplified Arabic';
            src: url('../fonts/Simplified-Arabic-Bold.ttf') format('truetype'),
                url('../fonts/Simplified-Arabic-Bold.woff') format('woff');
            font-weight: bold;
            font-style: normal;
            font-display: swap;
        }

        * {
            box-sizing: border-box;
            font-family: 'Simplified Arabic', 'Lexend', sans-serif;
            font-weight: bold;
        }

        :root {
            --primary-color: #7E57C2;
            --secondary-color: #FF6B9F;
            --accent-color: #4FC3F7;
            --success-color: #36d2b5;
            --continue-color: #FF6B9F;
            --progress-fill: #36d2b5;
            --brand-purple: #6452c0;

            --text-light: #ffffff;
            --text-muted: rgba(255, 255, 255, 0.85);

            --card-bg: rgba(126, 87, 194, 0.2);
            --card-hover: rgba(126, 87, 194, 0.3);

            --teen-color: #FF9D5C;
            --adult-color: #5c8dff;

            --gradient-primary: linear-gradient(135deg, #7E57C2, #5E35B1);
            --gradient-secondary: linear-gradient(135deg, #FF6B9F, #FF4081);
            --gradient-accent: linear-gradient(135deg, #4FC3F7, #29B6F6);
        }

        * {
            box-sizing: border-box;
        }

        html,
        body {
            height: 100%;
            margin: 0;
            font-family: 'Simplified Arabic Bold', 'Lexend', system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
        }

        body {
            overflow-x: hidden;
            overflow-y: auto;
            background: #000;
            color: var(--text-light);
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        @keyframes float {

            0%,
            100% {
                transform: translateY(0px);
            }

            50% {
                transform: translateY(-20px);
            }
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes slideInRight {
            from {
                opacity: 0;
                transform: translateX(50px);
            }

            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        @keyframes slideInLeft {
            from {
                opacity: 0;
                transform: translateX(-50px);
            }

            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        @keyframes pulse {

            0%,
            100% {
                transform: scale(1);
            }

            50% {
                transform: scale(1.05);
            }
        }

        @keyframes shimmer {
            0% {
                background-position: -1000px 0;
            }

            100% {
                background-position: 1000px 0;
            }
        }

        @keyframes ripple {
            to {
                transform: scale(4);
                opacity: 0;
            }
        }

        @keyframes confetti-fall {
            to {
                transform: translateY(100vh) rotate(360deg);
                opacity: 0;
            }
        }

        @keyframes progressGlow {

            0%,
            100% {
                box-shadow: 0 0 10px rgba(79, 195, 247, 0.5);
            }

            50% {
                box-shadow: 0 0 20px rgba(79, 195, 247, 0.8);
            }
        }

        .bg-illustration {
            position: fixed;
            inset: 0;
            z-index: -50;
            pointer-events: none;
            overflow: hidden;
        }

        .bg-illustration video {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            min-width: 100%;
            min-height: 100%;
        }

        .floating-particles {
            position: fixed;
            inset: 0;
            z-index: -40;
            pointer-events: none;
            overflow: hidden;
        }

        .particle {
            position: absolute;
            width: 4px;
            height: 4px;
            background: rgba(79, 195, 247, 0.6);
            border-radius: 50%;
            animation: float 6s ease-in-out infinite;
        }

        .main-container {
            position: relative;
            z-index: 10;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            padding: 18px 5px 100px;
        }

        .main-logo {
            margin-bottom: 12px;
            animation: fadeIn 1s ease-out;
            position: relative;
            z-index: 10;
        }

        .main-logo::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 180px;
            height: 140px;
            background: white;
            border-radius: 20px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
            z-index: -1;
            opacity: 0.95;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.8);
        }

        .main-logo img {
            height: 120px;
            width: auto;
            filter: brightness(1.1);
            transition: transform 0.3s ease;
            position: relative;
            z-index: 2;
        }

        .main-logo img:hover {
            transform: scale(1.05);
        }


        :root {
            --primary-color: #7e57c2;
            --gradient-primary: linear-gradient(135deg, #7e57c2, #6a4aaf);
            --gradient-accent: linear-gradient(90deg, #ff6b9f, #c779d0);
        }

        .panel {
            width: min(680px, 92vw);
            max-width: 720px;
            border-radius: 14px;
            padding: 12px 18px;
            background: transparent;
            color: #ffffff;
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-top: 6px;
        }

        .panel-head {
            background: white;
            border-radius: 12px;
            padding: 20px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
            margin-bottom: 12px;
            animation: fadeIn 0.5s ease-out;
        }

        .panel-head .sub-title {
            color: #7e57c2;
            font-weight: 700;
            font-size: 13px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            animation: fadeIn 0.5s ease-out;
            margin-bottom: 8px;
        }

        .panel-head h1 {
            color: #5a4a76;
            font-size: clamp(20px, 3.5vw, 28px);
            margin: 6px 0;
            line-height: 1.3;
            animation: slideInRight 0.6s ease-out;
        }

        .panel-head p {
            color: #666;
            font-size: 14px;
            margin: 4px 0 8px;
            line-height: 1.5;
            animation: slideInRight 0.7s ease-out;
        }

        .progress-line {
            height: 6px;
            border-radius: 999px;
            background: rgba(126, 87, 194, 0.16);
            overflow: hidden;
            margin-top: 12px;
        }

        .progress-fill {
            background: var(--gradient-primary);
            height: 100%;
            width: 0%;
            transition: width .6s cubic-bezier(0.4, 0.0, 0.2, 1);
            animation: progressGlow 2s ease-in-out infinite;
        }

        .questions-card {
            background: #ffffff;
            color: #222;
            border-radius: 12px;
            padding: 20px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
            border: 1px solid rgba(0, 0, 0, 0.05);
            animation: fadeIn 0.5s ease-out;
        }

        .question-text {
            font-size: 16px;
            font-weight: 600;
            color: #5a4a76;
            margin-bottom: 16px;
            line-height: 1.5;
            animation: fadeIn 0.6s ease-out;
        }

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

        .option-card {
            background: #ffffff;
            color: #5a4a76;
            border-radius: 10px;
            padding: 14px 16px;
            cursor: pointer;
            border: 2px solid rgba(126, 87, 194, 0.1);
            transition: all .3s cubic-bezier(0.4, 0.0, 0.2, 1);
            box-shadow: 0 4px 12px rgba(126, 87, 194, 0.05);
            font-size: 15px;
            position: relative;
            overflow: hidden;
            animation: slideInLeft 0.4s ease-out backwards;
        }

        .option-card:nth-child(1) {
            animation-delay: 0.1s;
        }

        .option-card:nth-child(2) {
            animation-delay: 0.2s;
        }

        .option-card:nth-child(3) {
            animation-delay: 0.3s;
        }

        .option-card:nth-child(4) {
            animation-delay: 0.4s;
        }

        .option-card::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(126, 87, 194, 0.1);
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
        }

        .option-card:active::before {
            width: 300px;
            height: 300px;
        }

        .option-card:hover {
            transform: translateY(-3px) scale(1.02);
            box-shadow: 0 8px 20px rgba(126, 87, 194, 0.15);
            border-color: rgba(126, 87, 194, 0.3);
        }

        .option-card.selected {
            border-color: #7e57c2;
            background: linear-gradient(90deg, rgba(126, 87, 194, 0.12), rgba(126, 87, 194, 0.08));
            box-shadow: 0 8px 20px rgba(126, 87, 194, 0.2);
            font-weight: 600;
            color: #7e57c2;
            transform: scale(1.02);
            animation: pulse 0.5s ease;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

        @keyframes slideInRight {
            from {
                opacity: 0;
                transform: translateX(20px);
            }

            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        @keyframes slideInLeft {
            from {
                opacity: 0;
                transform: translateX(-20px);
            }

            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        @keyframes pulse {
            0% {
                transform: scale(1);
            }

            50% {
                transform: scale(1.05);
            }

            100% {
                transform: scale(1.02);
            }
        }

        @keyframes progressGlow {

            0%,
            100% {
                opacity: 1;
            }

            50% {
                opacity: 0.8;
            }
        }

        .site-footer {
            position: fixed;
            left: 50%;
            transform: translateX(-50%);
            bottom: 18px;
            width: min(720px, 92vw);
            padding: 10px 16px;
            border-radius: 999px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: #ffffff;
            box-shadow: 0 12px 40px rgba(126, 87, 194, 0.1);
            border: 1px solid rgba(126, 87, 194, 0.1);
            z-index: 80;
            animation: fadeIn 0.5s ease-out;
        }

        .btn-footer {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            font-weight: 700;
            font-size: 15px;
            cursor: pointer;
            border: none;
            border-radius: 999px;
            padding: 10px 16px;
            transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }

        .btn-footer::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.5);
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
        }

        .btn-footer:active::after {
            width: 300px;
            height: 300px;
        }

        .btn-back {
            background: transparent;
            color: #7e57c2;
            border: 2px solid rgba(126, 87, 194, 0.2);
        }

        .btn-back:hover {
            color: #fff;
            background: var(--gradient-primary);
            border-color: transparent;
            transform: translateX(-5px);
        }

        .btn-primary {
            background: var(--gradient-primary);
            color: #fff;
            border-radius: 28px;
            padding: 10px 22px;
            font-weight: 800;
            border: none;
            box-shadow: 0 10px 28px rgba(126, 87, 194, 0.2);
        }

        .btn-primary:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .btn-primary:not(:disabled):hover {
            transform: translateY(-3px) scale(1.05);
            box-shadow: 0 16px 36px rgba(126, 87, 194, 0.3);
        }



        .welcome-screen {
            background: white;
            border-radius: 18px;
            padding: 32px 28px;
            max-width: 680px;
            width: 92vw;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
            border: 1px solid rgba(0, 0, 0, 0.1);
            margin-top: 20px;
            animation: fadeIn 0.8s ease-out;
        }

        .welcome-subtitle {
            font-size: 16px;
            color: #5a4a76;
            margin-bottom: 20px;
            line-height: 1.6;
            text-align: left;
            animation: slideInRight 0.7s ease-out;
        }

        .welcome-info {
            background: #f8f9fa;
            border-radius: 12px;
            padding: 16px;
            margin: 16px 0;
            border-left: 4px solid #7e57c2;
            animation: slideInLeft 0.8s ease-out;
        }

        .welcome-info h3 {
            margin: 0 0 12px;
            font-size: 16px;
            color: #7e57c2;
        }

        .welcome-info ul {
            padding-left: 20px;
            margin: 0;
        }

        .welcome-info li {
            margin-bottom: 8px;
            font-size: 14px;
            color: #5a4a76;
            line-height: 1.5;
        }

        .welcome-info p {
            margin: 0;
            font-size: 14px;
            color: #5a4a76;
        }

        .welcome-btn {
            background: linear-gradient(135deg, #7e57c2, #6a4aaf);
            color: white;
            border: none;
            border-radius: 28px;
            padding: 14px 32px;
            font-size: 16px;
            font-weight: 800;
            cursor: pointer;
            margin-top: 16px;
            box-shadow: 0 10px 28px rgba(126, 87, 194, 0.2);
            transition: all .3s cubic-bezier(0.4, 0.0, 0.2, 1);
            width: 100%;
            position: relative;
            overflow: hidden;
        }

        .welcome-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            transition: left 0.5s;
        }

        .welcome-btn:hover::before {
            left: 100%;
        }

        .welcome-btn:hover {
            transform: translateY(-4px) scale(1.02);
            box-shadow: 0 16px 38px rgba(126, 87, 194, 0.32);
        }

        /* Tooltip CORREGIDO - completamente morado */
        .tooltip {
            position: relative;
            display: inline;
            /* Cambiado de inline-block a inline */
            cursor: help;
            color: #7e57c2;
            font-weight: 600;
            border-bottom: 1px dotted #7e57c2;
            text-decoration: none;
            /* Elimina subrayado por defecto */
        }

        .tooltip:hover::after {
            content: attr(data-tooltip);
            position: absolute;
            bottom: 125%;
            left: 50%;
            transform: translateX(-50%);
            background-color: #7e57c2;
            color: white;
            padding: 10px 14px;
            border-radius: 8px;
            font-size: 13px;
            width: 280px;
            z-index: 1000;
            font-weight: normal;
            box-shadow: 0 4px 12px rgba(126, 87, 194, 0.3);
            line-height: 1.4;
        }

        .tooltip:hover::before {
            content: '';
            position: absolute;
            bottom: 115%;
            left: 50%;
            transform: translateX(-50%);
            border: 6px solid transparent;
            border-top-color: #7e57c2;
            z-index: 1001;
        }

        /* Animaciones */
        @keyframes fadeIn {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

        @keyframes slideInRight {
            from {
                opacity: 0;
                transform: translateX(20px);
            }

            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        @keyframes slideInLeft {
            from {
                opacity: 0;
                transform: translateX(-20px);
            }

            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .call-link {
            position: relative;
            display: inline;
            color: #8B5CF6;
            font-weight: bold;
            text-decoration: none;
            cursor: pointer;
            font-size: 1.1em;
        }

        .call-link:hover::after {
            content: '📞 800-113-040\AHaz clic para llamar';
            white-space: pre;
            position: absolute;
            bottom: 125%;
            left: 50%;
            transform: translateX(-50%);
            background-color: #7e57c2;
            color: white;
            padding: 12px 16px;
            border-radius: 8px;
            font-size: 14px;
            z-index: 1000;
            font-weight: normal;
            box-shadow: 0 4px 12px rgba(126, 87, 194, 0.4);
            line-height: 1.6;
            text-align: center;
            min-width: 200px;
        }

        .call-link:hover::before {
            content: '';
            position: absolute;
            bottom: 115%;
            left: 50%;
            transform: translateX(-50%);
            border: 8px solid transparent;
            border-top-color: #7e57c2;
            z-index: 1001;
        }

        /* Estilos para resultados (mantenidos pero no afectan la bienvenida) */
        /* Estilos para resultados - FONDO BLANCO */
        .results-card {
            background: white;
            border-radius: 18px;
            padding: 32px 28px;
            max-width: 680px;
            width: 92vw;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
            border: 1px solid rgba(0, 0, 0, 0.05);
            margin-top: 20px;
            animation: fadeIn 0.8s ease-out;
        }

        .results-title {
            font-size: 32px;
            font-weight: 800;
            margin-bottom: 16px;
            color: #7e57c2;
            text-align: center;
            line-height: 1.3;
            animation: slideInRight 0.6s ease-out;
        }

        .results-description {
            font-size: 16px;
            color: #555;
            margin-bottom: 24px;
            line-height: 1.7;
            text-align: justify;
            animation: fadeIn 0.8s ease-out;
        }

        .resources-section {
            background: #f8f9fa;
            border-radius: 12px;
            padding: 20px;
            margin-top: 20px;
            animation: slideInLeft 1s ease-out;
        }

        .resources-section h3 {
            color: #7e57c2;
            font-size: 18px;
            margin: 0 0 16px;
        }

        .resources-list {
            display: grid;
            gap: 8px;
        }

        .resource-item {
            background: white;
            padding: 10px 14px;
            border-radius: 8px;
            color: #555;
            font-size: 14px;
            border-left: 3px solid #7e57c2;
            transition: all 0.3s ease;
            cursor: pointer;
            animation: slideInLeft 0.5s ease-out backwards;
        }

        .resource-item:hover {
            background: rgba(126, 87, 194, 0.05);
            transform: translateX(5px);
            border-left-width: 5px;
        }

        .confetti {
            position: fixed;
            width: 10px;
            height: 10px;
            z-index: 1000;
            pointer-events: none;
        }

        .screen-transition {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.5s ease, transform 0.5s ease;
        }

        .screen-transition.active {
            opacity: 1;
            transform: translateY(0);
        }

        @media (max-width: 600px) {
            .main-logo img {
                height: 100px;
            }

            .welcome-screen,
            .results-card {
                padding: 20px 18px;
            }

            .results-title {
                font-size: 28px;
            }

            .panel-head h1 {
                font-size: 20px;
            }
        }


        /* ===== FONDO CON IMAGEN ===== */
        .bg-illustration {
            position: fixed;
            inset: 0;
            z-index: -50;
            pointer-events: none;
            display: block;
            overflow: hidden;
        }

        .bg-image {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
            display: block;
            min-width: 100%;
            min-height: 100%;
            /* Efectos profesionales opcionales */
            filter: brightness(0.9) contrast(1.1);
        }

        /* Mejorar contraste del texto sobre la imagen */
        .panel-head .sub-title,
        .panel-head h1,
        .panel-head p {
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
        }
