/* =========================================
           VARIABLES Y RESET
           ========================================= */
        :root {
            --brand-main: #0ea5e9;
            --brand-dark: #0a1128;
            --brand-accent: #10b981;

            /* Colores para el interior de la tarjeta (Modo Claro) */
            --text-main: #1e293b;
            --text-light: #37414e;
            --bg-input: #f8fafc;
            --border-input: #e2e8f0;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Montserrat', sans-serif;
        }

        /* FONDO ANIMADO Y CONTENEDOR FLEX (Tomado de index.html) */
        body {
            background: linear-gradient(-45deg, #0a1128, #1e3a8a, #0a1128, #0ea5e9);
            background-size: 400% 400%;
            animation: gradientBG 15s ease infinite;
            display: flex;
            flex-direction: column;
            /* Apila la tarjeta y la firma de Helikon */
            align-items: center;
            min-height: 100vh;
            padding: 40px 20px;
        }

        @keyframes gradientBG {
            0% {
                background-position: 0% 50%;
            }

            50% {
                background-position: 100% 50%;
            }

            100% {
                background-position: 0% 50%;
            }
        }

        /* SPLASH SCREEN PREMIUM */
        #splash-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(-45deg, #0a1128, #1e3a8a, #0a1128, #1e3a8a);
            background-size: 400% 400%;
            animation: gradientBG 15s ease infinite;
            z-index: 999999;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            color: white;
            transition: opacity 0.5s ease, visibility 0.5s;
            /* ⭐ Añadido para suavidad */
        }

        .splash-logo {
            width: 140px;
            height: 140px;
            object-fit: contain;
            margin-bottom: 30px;
            background: #ffffff;
            border-radius: 50%;
            padding: 15px;
            box-sizing: border-box;
            border: 2px solid rgba(255, 255, 255, 0.8);
            animation: pulseSphere 2.5s ease-in-out infinite;
        }

        @keyframes pulseSphere {
            0% {
                transform: translateY(0) scale(1);
                box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 10px rgba(255, 255, 255, 0.05);
            }

            50% {
                transform: translateY(-10px) scale(1.05);
                box-shadow: 0 25px 45px rgba(0, 0, 0, 0.7), 0 0 35px rgba(255, 255, 255, 0.4);
            }

            100% {
                transform: translateY(0) scale(1);
                box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 10px rgba(255, 255, 255, 0.05);
            }
        }

        .splash-text {
            font-family: 'Montserrat', sans-serif;
            font-weight: 900;
            font-size: 16px;
            letter-spacing: 3px;
            text-transform: uppercase;
            color: #ffffff;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }

        /* Contenedor Principal (Sólido Claro, tomado de login-card) */
        .wizard-container {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(15px);
            border-radius: 24px;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
            width: 100%;
            max-width: 650px;
            padding: 40px;
            border: 1px solid rgba(255, 255, 255, 0.4);
            z-index: 2;
        }

        /* Encabezado y Logo */
        .header {
            text-align: center;
            margin-bottom: 30px;
        }

        .nav-logo {
            font-size: 32px;
            font-weight: 900;
            color: #0a1128;
            letter-spacing: -1px;
            display: block;
            margin-bottom: 5px;
        }

        .nav-logo span {
            color: var(--brand-main);
        }

        .header p {
            font-size: 13px;
            color: var(--text-light);
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 2px;
        }

        /* Barra de Progreso */
        .progress-container {
            width: 100%;
            background: var(--border-input);
            border-radius: 10px;
            height: 6px;
            margin-bottom: 35px;
            overflow: hidden;
        }

        .progress-bar {
            height: 100%;
            background: var(--brand-main);
            width: 20%;
            transition: width 0.4s ease;
            box-shadow: 0 0 10px var(--brand-main);
        }

        /* Pasos del Formulario */
        .step {
            display: none;
            animation: fadeIn 0.4s ease;
        }

        .step.active {
            display: block;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .step-title {
            font-size: 18px;
            font-weight: 800;
            margin-bottom: 25px;
            color: var(--text-main);
            border-bottom: 2px solid var(--border-input);
            padding-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        /* Inputs (Estilo de index.html) */
        .form-group {
            margin-bottom: 20px;
            text-align: left;
        }

        .form-group label {
            display: block;
            font-size: 11px;
            font-weight: 800;
            margin-bottom: 8px;
            color: var(--text-light);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .form-control {
            width: 100%;
            padding: 14px 15px;
            font-size: 14px;
            border: 2px solid var(--border-input);
            border-radius: 12px;
            background: var(--bg-input);
            color: var(--text-main);
            font-weight: 600;
            transition: all 0.2s;
            box-sizing: border-box;
        }

        .form-control::placeholder {
            color: #94a3b8;
            font-weight: 500;
        }

        .form-control:focus {
            outline: none;
            border-color: var(--brand-main);
            background: white;
            box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
        }

        textarea.form-control {
            resize: vertical;
            min-height: 100px;
        }

        .grid-2 {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
        }

        /* ⭐ NUEVO: Contenedor para las 3 fotos alineadas */
        .grid-3 {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 15px;
        }

        /* Subida de Fotos (Mejorado con altura fija y centrado perfecto) */
        .photo-upload {
            border: 2px dashed var(--border-input);
            border-radius: 12px;
            padding: 20px;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s;
            position: relative;
            overflow: hidden;
            background: var(--bg-input);
            height: 180px;
            /* Altura fija para que todas sean idénticas */
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        .photo-upload:hover {
            border-color: var(--brand-main);
            background: white;
        }

        .photo-upload input {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            cursor: pointer;
        }

        .photo-upload p {
            font-size: 13px;
            font-weight: 700;
            color: var(--text-light);
            margin-top: 10px;
            text-transform: uppercase;
        }

        .photo-upload img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: none;
        }

        /* Botones */
        .btn-container {
            display: flex;
            justify-content: space-between;
            margin-top: 40px;
            gap: 15px;
        }

        .btn {
            padding: 16px 24px;
            font-size: 14px;
            font-weight: 800;
            border-radius: 12px;
            cursor: pointer;
            text-transform: uppercase;
            border: none;
            transition: all 0.3s;
            flex: 1;
            text-align: center;
        }

        .btn-prev {
            background: var(--border-input);
            color: var(--text-light);
        }

        .btn-prev:hover {
            background: #cbd5e1;
            transform: translateY(-2px);
        }

        .btn-next {
            background: linear-gradient(135deg, var(--brand-dark), var(--brand-main));
            color: white;
            box-shadow: 0 10px 20px -5px rgba(10, 17, 40, 0.4);
        }

        .btn-next:hover {
            transform: translateY(-2px);
            box-shadow: 0 15px 25px -5px rgba(10, 17, 40, 0.5);
        }

        /* Pantalla de Éxito */
        #success-message {
            text-align: center;
            display: none;
            padding: 40px 20px;
        }

        #success-message h2 {
            color: var(--brand-accent);
            font-size: 28px;
            font-weight: 900;
            margin-bottom: 15px;
        }

        #success-message p {
            color: var(--text-light);
            font-size: 15px;
            line-height: 1.6;
            font-weight: 500;
        }

        /* =========================================
           FIRMA HELIKON STUDIO (Tomado de index.html)
           ========================================= */
        .helikon-watermark {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            text-decoration: none;
            margin-top: 35px;
            opacity: 0.7;
            transition: all 0.3s ease;
            z-index: 2;
        }

        .helikon-watermark:hover {
            opacity: 1;
            transform: translateY(-2px);
        }

        .helikon-watermark img {
            width: 80px;
            height: auto;
            border-radius: 50%;
            object-fit: cover;
            filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .helikon-watermark span {
            color: white;
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 2px;
            text-transform: uppercase;
            text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
        }

        @media (max-width: 500px) {

            .grid-2,
            .grid-3 {
                grid-template-columns: 1fr;
            }

            .wizard-container {
                padding: 30px 20px;
                border-radius: 20px;
            }

            body {
                padding: 20px 15px;
            }
        }

        /* ⭐ NUEVOS ESTILOS PULIDOS PARA EL PASO 0 */
        .step-welcome {
            text-align: center;
            padding: 10px 0 30px 0;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .welcome-icon {
            margin-bottom: 25px;
            display: flex;
            justify-content: center;
        }

        .welcome-title {
            color: var(--brand-dark);
            font-weight: 900;
            margin: 0 0 20px 0;
            font-size: 30px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .welcome-text {
            color: var(--text-light);
            line-height: 1.8;
            font-weight: 500;
            margin: 0 0 35px 0;
            font-size: 16px;
            max-width: 520px;
        }

        .commitment-container {
            background: rgba(0, 0, 0, 0.03);
            border-left: 5px solid var(--brand-main);
            padding: 25px;
            text-align: left;
            border-radius: 4px 16px 16px 4px;
            margin-bottom: 35px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
            position: relative;
            overflow: hidden;
        }

        .commitment-container::after {
            content: '“';
            position: absolute;
            top: -10px;
            right: 15px;
            font-size: 80px;
            color: var(--brand-main);
            opacity: 0.15;
            font-family: serif;
        }

        .commitment-text {
            font-size: 15px;
            color: var(--text-main);
            font-weight: 700;
            font-style: italic;
            margin: 0;
            line-height: 1.6;
        }

        .ready-text {
            font-size: 14px;
            color: var(--brand-dark);
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            margin: 0;
        }

        /* =========================================
           NOTIFICACIONES (TOASTS) PREMIUM GLASS
           ========================================= */
        #toast-container {
            position: fixed;
            top: 25px;
            right: 25px;
            z-index: 999999;
            display: flex;
            flex-direction: column;
            gap: 12px;
            pointer-events: none;
        }

        .toast {
            background: rgba(15, 23, 42, 0.85);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            padding: 12px 20px 12px 14px;
            border-radius: 100px;
            box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.05);
            font-weight: 700;
            font-size: 13px;
            color: #f8fafc;
            display: flex;
            align-items: center;
            gap: 12px;
            animation: toastSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
            min-width: max-content;
            max-width: 350px;
            pointer-events: auto;
        }

        .toast.success {
            box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(16, 185, 129, 0.4), 0 0 15px rgba(16, 185, 129, 0.15);
        }

        .toast.error {
            box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(239, 68, 68, 0.5), 0 0 15px rgba(239, 68, 68, 0.2);
        }

        .toast span:first-child {
            font-size: 14px;
            background: rgba(255, 255, 255, 0.1);
            width: 28px;
            height: 28px;
            display: flex;
            justify-content: center;
            align-items: center;
            border-radius: 50%;
            flex-shrink: 0;
        }

        @keyframes toastSlideIn {
            from { transform: translateX(120%) scale(0.9); opacity: 0; }
            to { transform: translateX(0) scale(1); opacity: 1; }
        }

        @keyframes toastFadeOut {
            from { transform: translateX(0) scale(1); opacity: 1; }
            to { transform: translateX(120%) scale(0.9); opacity: 0; }
        }

        /* =========================================
           🚀 FIX DE ESTRANGULAMIENTO EXTREMO (360px - 430px)
           ========================================= */
        @media screen and (max-width: 430px) {
            /* 1. Reducir padding exterior del body */
            body {
                padding: 15px 10px !important;
            }

            /* 2. Ampliar el espacio interno de la tarjeta principal */
            .wizard-container {
                padding: 25px 15px !important;
                border-radius: 16px !important;
            }

            /* 3. Textos y contenedores introductorios */
            .welcome-title { font-size: 22px !important; margin-bottom: 15px !important; }
            .welcome-text { font-size: 14px !important; margin-bottom: 25px !important; }
            .commitment-container { padding: 15px 15px 15px 20px !important; margin-bottom: 25px !important; }
            .commitment-text { font-size: 13px !important; }
            .step-title { font-size: 16px !important; margin-bottom: 20px !important; }

            /* 4. Entradas de formulario y áreas de fotos */
            .form-control {
                padding: 12px 10px !important;
                font-size: 13px !important;
            }
            .photo-upload {
                padding: 15px 10px !important;
                height: 160px !important;
            }

            /* 5. Contenedores de Botones y Botones */
            .btn-container {
                gap: 10px !important;
                margin-top: 25px !important;
            }
            .btn {
                padding: 14px 10px !important;
                font-size: 12px !important;
            }

            /* 6. Pantalla de Éxito */
            #success-message { padding: 20px 10px !important; }
            #success-message h2 { font-size: 22px !important; }
            #success-message p { font-size: 13px !important; }
        }