/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Animaciones Base */
.reveal {
    opacity: 0 !important;
    transform: translateY(40px) scale(0.98);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

/* HEADER */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    box-shadow: 0 2px 16px rgba(12, 49, 123, 0.08);
}

.header-top {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    min-height: 110px;
    background: white;
}

.logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.logo {
    height: 95px;
    width: auto;
    max-width: min(400px, 55vw);
    display: block;
    margin: 0;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-link:hover .logo {
    transform: scale(1.03);
}

.burger-btn {
    display: none;
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 12px;
    background: #f5f7fb;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    z-index: 1003;
    transition: background 0.3s ease;
}

.burger-btn:hover {
    background: #e8eef8;
}

.burger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: #0C317B;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger-btn.is-active .burger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger-btn.is-active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-btn.is-active .burger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.btn-help {
    position: absolute;
    right: 80px; /* Ajustado para centrarlo más visualmente */
    top: calc(50% + 10px); /* Movido 20px hacia arriba en escritorio */
    transform: translateY(-50%);
    background: linear-gradient(135deg, #0C317B 0%, #1e7adf 100%);
    border: 2px solid rgba(255, 255, 255, 0.8); /* Borde blanco añadido */
    color: white;
    border: none;
    border-radius: 30px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    animation: attention-glow-help 3s infinite ease-in-out;
    z-index: 1003;
}

.btn-help:hover {
    background: #09265f;
    box-shadow: 0 8px 20px rgba(12, 49, 123, 0.3);
}

@keyframes pulse-blue {
    0% { box-shadow: 0 0 0 0 rgba(12, 49, 123, 0.5); }
    70% { box-shadow: 0 0 0 12px rgba(12, 49, 123, 0); }
    100% { box-shadow: 0 0 0 0 rgba(12, 49, 123, 0); }
}

.icon-q {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.header-nav {
    background: #f5f7fb;
    padding: 12px 0;
    text-align: center;
}

.nav-overlay {
    display: none;
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 0 16px;
}

.nav-list li a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: #0C317B;
    position: relative;
    padding: 4px 0;
    display: inline-block;
    transition: color 0.3s ease;
}

.nav-list li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #1e7adf;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.nav-list li a:hover {
    color: #1e7adf;
}

.nav-list li a:hover::after {
    width: 100%;
}

.separator {
    color: #cbd5e1;
    user-select: none;
}

@media (max-width: 992px) {
    .burger-btn {
        display: flex;
    }

    .header-top {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center; /* Centra ambos botones uno al lado del otro */
        align-items: center;
        padding: 20px;
        min-height: auto;
        gap: 15px; /* Espacio uniforme entre el menú y ayuda */
    }

    .logo-link { width: 100%; order: 1; }
    .logo {
        height: 48px;
        margin: 0 auto !important; /* Forzamos el centrado anulando el margen de escritorio */
        max-width: min(220px, 55vw);
    }

    .btn-help {
        position: static;
        transform: none;
        margin-top: 5px; /* Ajustado: 15px más arriba (de 20px a 5px) */
        order: 3;
        height: 44px; /* Igualamos la altura al burger-btn */
        padding: 0 18px;
        font-size: 14px;
        display: inline-flex;
        align-items: center;
        animation: attention-glow 3s infinite ease-in-out; /* Cambiada para que no salte de posición */
    }

    .burger-btn {
        display: flex;
        position: static;
        transform: none;
        order: 2;
    }

    .btn-help .icon-q {
        width: 22px;
        height: 22px;
        font-size: 13px;
    }

    .header-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: min(300px, 86vw);
        height: 100vh;
        height: 100dvh;
        margin: 0;
        padding: 88px 24px 32px;
        text-align: left;
        background: #ffffff;
        box-shadow: 4px 0 30px rgba(12, 49, 123, 0.15);
        transform: translateX(-105%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1002;
        overflow-y: auto;
    }

    .header-nav.is-open {
        transform: translateX(0);
    }

    .nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(7, 29, 90, 0.5);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.35s ease, visibility 0.35s ease;
        z-index: 1001;
    }

    .nav-overlay.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0;
    }

    .nav-list li {
        width: 100%;
        border-bottom: 1px solid #eef2f8;
    }

    .nav-list li a {
        display: block;
        padding: 16px 4px;
        font-size: 16px;
    }

    .nav-list li a:hover {
        transform: none;
    }

    .separator {
        display: none;
    }
}

@media (max-width: 480px) {
    .header-top {
        padding: 10px 52px;
        min-height: 64px;
    }

    .logo-link { width: 100%; }
    .logo {
        height: 42px;
        margin: 0 auto !important; /* Aseguramos el centrado en pantallas pequeñas */
    }
}

/* --- HERO SECTION --- */

.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: #071d5a; /* respaldo si la imagen no carga */
}

/* Fondo del hero (misma ruta que el resto de imágenes en HTML) */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    z-index: 0;
    pointer-events: none;
    animation: kenBurns 20s ease-out forwards;
}

.hero-content {
    max-width: 1200px;
    margin: auto;
    padding: 0 50px;
    width: 100%;
    position: relative;
    z-index: 10; /* Prioridad máxima sobre las capas de fondo animadas */
}

.hero-left {
    max-width: 520px;
    animation: floatingContent 5s ease-in-out infinite;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 6px 14px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.8); /* Sombra negra más fuerte */
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    color: white;
    line-height: 1.1;
    margin-bottom: 18px;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.8); /* Sombra negra más fuerte */
}

.hero-text {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 35px;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.8); /* Sombra negra más fuerte */
}

.hero-btn {
    background: linear-gradient(135deg, #0C317B 0%, #1e7adf 100%);
    border: 2px solid rgba(255, 255, 255, 0.8); /* Borde blanco añadido */
    color: #ffffff;
    padding: 16px 36px;
    border-radius: 35px;
    font-size: 18px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); /* Sombra para profundidad */
    animation: attention-glow 3s infinite ease-in-out;
}

.hero-btn:hover {
    background: #1e7adf; /* Cambio a azul vibrante en hover */
    color: #ffffff;
    border-color: #1e7adf;
    transform: translateY(-8px) scale(1.03) rotateX(5deg);
    box-shadow: 0 15px 30px rgba(30, 122, 223, 0.5);
}

.btn-circle-icon {
    width: 22px;
    height: 22px;
    border: 2px solid #0C317B; /* Sincronizado con el color del texto */
    border-radius: 50%;
    transition: all 0.3s ease;
}

.hero-btn:hover .btn-circle-icon {
    border-color: #ffffff;
    transform: scale(1.2) rotate(180deg);
}

/* --- KEYFRAMES --- */

@keyframes floatingContent {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent
    );
    transition: all 0.6s;
    animation: shine 5s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

@keyframes kenBurns {
    0% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.is-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* RESPONSIVE */
@media (min-width: 1024px) and (max-width: 1366px) {
    /* Ajustes para Laptop/Portátil sin tocar el Desktop (>1440px) */
    .hero { height: auto; padding: 120px 0 60px; }
    .hero-title { font-size: 42px; }
    .hero-content { padding: 0 30px; }
    .logo { height: 80px; margin-left: 0; }
    .nav-list { gap: 15px; }
    .nav-list li a { font-size: 13px; }
    .simulator-grid { grid-template-columns: 1fr 380px; gap: 25px; }
    .simulator-controls { padding: 30px; }
    .nav-list { gap: 20px; }
    .container { padding: 0 30px; }
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 85vh;
        padding: 48px 0 56px;
    }

    .hero-content {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-text {
        font-size: 16px;
    }

    .hero-btn {
        margin: 0 auto;
        font-size: 16px;
        padding: 14px 28px;
    }

    .hero-left {
        max-width: 100%;
        text-align: center;
        margin: 0 auto;
    }
}

/* --- BENEFITS SECTION --- */

.benefits {
    background-color: #f5f7fb;
    padding: 70px 20px;
    position: relative;
    z-index: 1;
}

.benefits-title {
    text-align: center;
    font-size: 34px;
    font-weight: 600;
    color: #111111;
    margin-bottom: 40px;
    line-height: 1.2;
}

.benefits-wrapper {
    background: linear-gradient(135deg, #e9eef7 0%, #dee7f2 100%);
    border-radius: 20px;
    padding: 35px;
    display: flex;
    gap: 30px;
    justify-content: space-between;
    align-items: stretch;
}

.benefits-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 25px 20px;
    text-align: center;
    flex: 1;
    box-shadow: 0 10px 25px rgba(12, 49, 123, 0.04);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Stagger delays para la entrada de las tarjetas */
.benefits-card:nth-child(1) { transition-delay: 0.1s; }
.benefits-card:nth-child(2) { transition-delay: 0.25s; }
.benefits-card:nth-child(3) { transition-delay: 0.4s; }

.benefits-card:hover {
    transform: translateY(-12px) scale(1.04);
    box-shadow: 0 20px 40px rgba(12, 49, 123, 0.12);
    border-color: #1e7adf30;
}

.benefits-card:hover .benefits-icon {
    animation: iconFloat 2s ease-in-out infinite;
}

.benefits-icon {
    width: 55px;
    height: auto;
    margin-bottom: 15px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.benefits-text {
    font-size: 15px;
    color: #4a5568;
    line-height: 1.4;
    max-width: 220px;
    margin: 0 auto;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@media (max-width: 992px) {
    .benefits-wrapper {
        gap: 15px;
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .benefits-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    
    .benefits-title {
        font-size: 26px;
    }
    
    .benefits-text {
        max-width: 100%;
    }
}

/* --- ABOUT SECTION --- */

.about {
    padding: 80px 20px;
    background: #ffffff;
    position: relative;
    z-index: 1;
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.about-left {
    width: 60%;
}

/* Staggered entry for text elements */
.about-left .reveal:nth-child(1) { transition-delay: 0.1s; }
.about-left .reveal:nth-child(2) { transition-delay: 0.2s; }
.about-left .reveal:nth-child(3) { transition-delay: 0.3s; }
.about-left .reveal:nth-child(4) { transition-delay: 0.4s; }
.about-left .reveal:nth-child(5) { transition-delay: 0.5s; }
.about-left .reveal:nth-child(6) { transition-delay: 0.6s; }
.about-left .reveal:nth-child(7) { transition-delay: 0.7s; }

.about-right {
    width: 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-title {
    font-size: 30px;
    font-weight: 600;
    color: #0C317B;
    margin-bottom: 20px;
}

.about-subtitle {
    font-size: 24px;
    font-weight: 600;
    color: #0C317B;
    margin: 25px 0 10px;
}

.about-text {
    font-size: 15px;
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 20px;
}

.about-highlight {
    font-weight: 700;
    color: #0C317B;
}

.about-image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden; /* Importante para el efecto zoom */
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(12, 49, 123, 0.12);
}

.about-image {
    width: 100%;
    display: block;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(transparent, rgba(12,49,123,0.6));
    border-radius: 0 0 20px 20px;
}

.about-image-wrapper:hover .about-image {
    transform: scale(1.08); /* Zoom sutil al pasar el mouse */
}

.about-button {
    margin-top: 20px;
    background: linear-gradient(135deg, #0C317B 0%, #1e7adf 100%);
    color: white;
    padding: 14px 30px;
    border-radius: 30px;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: attention-glow 3s infinite ease-in-out;
}

.about-button:hover {
    background: #09245c;
    transform: scale(1.05) rotate(-2deg);
    box-shadow: 0 12px 25px rgba(12, 49, 123, 0.3);
}

.about-button .btn-circle-icon {
    width: 22px; /* Asegura el tamaño del círculo */
    height: 22px; /* Asegura el tamaño del círculo */
    background: rgba(255,255,255,0.2);
    border: none;
    color: white; /* Color del icono */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px; /* Tamaño del icono */
    transition: transform 0.3s ease;
}

.about-button:hover .btn-circle-icon {
    transform: scale(1.2) rotate(-90deg);
}
@media (max-width: 992px) {
    .about-container {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        text-align: center;
    }
    .about-left, .about-right {
        width: 100%;
    }
    .about-title {
        font-size: 26px;
    }
    .about-subtitle {
        font-size: 22px;
    }
}

/* --- THANK YOU PAGE --- */

.thanks-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #f8fafc;
    padding: 20px;
}

.thanks-card {
    background: white;
    padding: 60px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(12, 49, 123, 0.05);
    max-width: 600px;
    width: 100%;
    border: 1px solid #f1f5f9;
}

.thanks-icon {
    font-size: 60px;
    color: #1e7adf;
    margin-bottom: 20px;
    display: block;
    animation: floatingContent 3s ease-in-out infinite;
}

/* --- FEATURES SECTION --- */

.features {
    padding: 80px 20px;
    background: #ffffff;
    position: relative;
    z-index: 1;
}

.features-container {
    max-width: 1100px;
    margin: 0 auto;
}

.features-title {
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    color: #0C317B;
    margin-bottom: 40px;
}

.features-wrapper {
    background: #eef2f8;
    border-radius: 20px;
    padding: 35px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.features-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Stagger delays para la entrada de las tarjetas */
.features-card:nth-child(1) { transition-delay: 0.1s; }
.features-card:nth-child(2) { transition-delay: 0.2s; }
.features-card:nth-child(3) { transition-delay: 0.3s; }
.features-card:nth-child(4) { transition-delay: 0.4s; }

.features-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.features-icon {
    width: 55px;
    margin-bottom: 15px;
}

.features-text {
    font-size: 15px;
    color: #4a5568;
    line-height: 1.5;
    max-width: 240px;
    margin: auto;
}

.features-highlight {
    color: #0C317B;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

@media (max-width: 992px) {
    .features-wrapper {
        padding: 25px;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .features-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .features-title {
        font-size: 26px;
    }
}

/* --- SIMULATOR SECTION --- */

.simulator-section {
    padding: 100px 0;
    background-color: #f8fafc;
    position: relative;
    z-index: 5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
}

.simulator-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    color: #0C317B;
    margin-bottom: 15px;
    font-weight: 800;
}

.section-subtitle {
    color: #64748b;
    font-size: 18px;
}

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

.simulator-controls {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.input-group {
    margin-bottom: 40px;
}

.input-group:last-child {
    margin-bottom: 0;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.label-row label {
    font-weight: 600;
    color: #0C317B;
    font-size: 16px;
}

.value-display {
    font-size: 24px;
    font-weight: 700;
    color: #1e7adf;
}

/* Estilos del Slider (Input Range) */
.slider {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: #1e7adf;
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(30, 122, 223, 0.3);
    transition: 0.2s;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 12px;
    color: #94a3b8;
}

/* Tarjeta de Resultados */
.result-card {
    background: #0C317B;
    padding: 40px;
    border-radius: 24px;
    color: white;
    text-align: center;
    box-shadow: 0 20px 40px rgba(12, 49, 123, 0.2);
}

.result-label {
    font-size: 14px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.result-value {
    font-size: 42px;
    margin: 15px 0 30px;
    font-weight: 700;
}

.result-details {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 25px;
    margin-bottom: 30px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.simulator-cta {
    width: 100%;
    justify-content: center;
    background: #1e7adf !important;
    border-color: #1e7adf !important;
}

.simulator-cta:hover {
    transform: scale(1.04) translateY(-5px);
    box-shadow: 0 15px 30px rgba(30, 122, 223, 0.6);
}

@media (max-width: 992px) {
    .simulator-grid {
        grid-template-columns: 1fr;
    }
    .simulator-result {
        max-width: 450px;
        margin: 0 auto;
        width: 100%;
    }
}

/* --- REQUIREMENTS SECTION --- */

.requirements {
    padding: 100px 20px;
    background: radial-gradient(circle at top right, #ffffff 0%, #f1f5f9 100%);
    text-align: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.requirements-container {
    max-width: 1200px;
    margin: 0 auto;
}

.requirements-title {
    font-size: 38px;
    font-weight: 800;
    color: #111111;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.requirements-subtitle {
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 60px;
}

.requirements-wrapper {
    background: rgba(238, 242, 248, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 50px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: start;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.requirements-column {
    display: flex;
    flex-direction: column;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    perspective: 1000px;
}

.requirements-column:nth-child(1) { transition-delay: 0.1s; }
.requirements-column:nth-child(2) { transition-delay: 0.2s; }
.requirements-column:nth-child(3) { transition-delay: 0.3s; }

.requirements-column:hover {
    transform: translateY(-15px) rotateY(5deg);
}

.requirements-header {
    background: #ffffff;
    border-radius: 20px;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(12, 49, 123, 0.08);
    font-size: 15px;
    font-weight: 800;
    color: #0C317B;
    letter-spacing: 1px;
    z-index: 2;
    border: 1px solid rgba(12, 49, 123, 0.1);
    transition: all 0.4s ease;
}

.req-icon {
    width: 40px;
    height: 40px;
    color: #1e7adf;
    transition: transform 0.4s ease;
}

.req-icon svg {
    width: 100%;
    height: 100%;
}

.requirements-column:hover .requirements-header {
    background: #0C317B;
    color: white;
}

.requirements-column:hover .req-icon {
    transform: scale(1.2) rotate(-10deg);
    color: white;
}

.requirements-content {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid #d1d5db;
    border-radius: 0 0 20px 20px;
    padding: 35px 25px 25px;
    text-align: left;
    font-size: 14px;
    color: #4a5568;
    line-height: 1.7;
    margin-top: -20px;
    transition: all 0.4s ease;
}

.requirements-column:hover .requirements-content {
    border-color: #1e7adf;
    background: white;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.requirements-content ul {
    list-style: none;
    padding: 0;
}

.requirements-content ul li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
}

.requirements-content ul li::before {
    content: "✓";
    color: #1e7adf;
    font-weight: 900;
    position: absolute;
    left: 0;
    font-size: 12px;
    top: 2px;
}

@media (max-width: 992px) {
    .requirements-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
    .requirements-column:last-child {
        grid-column: span 2;
        max-width: 450px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .requirements-wrapper {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
    }
    .requirements-column:last-child {
        grid-column: auto;
        max-width: 100%;
    }
    .requirements-title { font-size: 26px; }
    .requirements-subtitle { font-size: 16px; }
}

/* --- FAQ SECTION --- */

.faq {
    padding: 120px 0;
    background: radial-gradient(circle at center, #ffffff 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.faq-bg-blob {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(30, 122, 223, 0.06) 0%, rgba(12, 49, 123, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    animation: blobFloat 20s infinite alternate;
}

@keyframes blobFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, -60px) scale(1.1); }
}

.faq-blob-1 { top: -10%; left: -200px; }
.faq-blob-2 { bottom: -10%; right: -200px; animation-delay: -10s; }

.faq-header {
    text-align: center;
    margin-bottom: 80px;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 22px;
    border: 1px solid rgba(12, 49, 123, 0.06);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: fit-content;
    position: relative;
}

.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: all 0.7s;
    pointer-events: none;
    z-index: 5;
}

.faq-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(12, 49, 123, 0.08);
    border-color: #1e7adf;
    background: #ffffff;
}

.faq-item:hover::before {
    left: 100%;
}

.faq-question {
    padding: 28px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.faq-question h3 {
    font-size: 17px;
    font-weight: 700;
    color: #0C317B;
    margin: 0;
    padding-right: 25px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.faq-icon {
    width: 34px;
    height: 34px;
    background: #f1f5f9;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.faq-icon::before, .faq-icon::after {
    content: '';
    position: absolute;
    background-color: #1e7adf;
    transition: transform 0.3s ease;
    border-radius: 2px;
}

.faq-icon::before { width: 14px; height: 2px; top: 16px; left: 10px; }
.faq-icon::after { width: 2px; height: 14px; top: 10px; left: 16px; }

.faq-item.active {
    background: #ffffff;
    border-color: #1e7adf;
    box-shadow: 0 25px 50px rgba(12, 49, 123, 0.12);
}

.faq-item.active .faq-icon {
    background: #0C317B;
    transform: rotate(135deg);
}

.faq-item.active .faq-icon::before, 
.faq-item.active .faq-icon::after {
    background-color: #ffffff;
}

.faq-item.active .faq-question h3 { color: #1e7adf; }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-inner {
    padding: 0 32px 35px;
    color: #4a5568;
    font-size: 15px;
    line-height: 1.8;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s ease 0.1s;
}

.faq-item.active .faq-answer-inner {
    opacity: 1;
    transform: translateY(0);
}

.faq-list, .faq-steps { 
    list-style: none; 
    padding-left: 0 !important;
    margin-top: 20px;
    counter-reset: faq-counter;
}

.faq-list li, .faq-steps li { 
    margin-bottom: 12px; 
    padding-left: 30px;
    position: relative;
    transition: all 0.3s ease;
}

.faq-list li:hover, .faq-steps li:hover {
    color: #0C317B;
    transform: translateX(8px);
}

.faq-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #1e7adf;
    font-weight: 800;
}

.faq-steps li::before {
    counter-increment: faq-counter;
    content: counter(faq-counter);
    position: absolute;
    left: 0;
    width: 22px;
    height: 22px;
    background: #0C317B;
    color: white;
    font-size: 11px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    top: 2px;
}

/* Delays de Entrada Revelación */
.faq-column:nth-child(1) .faq-item:nth-child(1) { transition-delay: 0.1s; }
.faq-column:nth-child(1) .faq-item:nth-child(2) { transition-delay: 0.2s; }
.faq-column:nth-child(1) .faq-item:nth-child(3) { transition-delay: 0.3s; }
.faq-column:nth-child(1) .faq-item:nth-child(4) { transition-delay: 0.4s; }
.faq-column:nth-child(2) .faq-item:nth-child(1) { transition-delay: 0.5s; }
.faq-column:nth-child(2) .faq-item:nth-child(2) { transition-delay: 0.6s; }
.faq-column:nth-child(2) .faq-item:nth-child(3) { transition-delay: 0.7s; }
.faq-column:nth-child(2) .faq-item:nth-child(4) { transition-delay: 0.8s; }

@media (max-width: 992px) {
    .faq-grid { grid-template-columns: 1fr; padding: 0 25px; }
}

@media (max-width: 768px) {
    .faq { padding: 80px 0; }
    .faq-header { margin-bottom: 50px; }
    .faq-question { padding: 22px 25px; }
    .faq-question h3 { font-size: 16px; }
    .faq-answer-inner { padding: 0 25px 30px; }
}

/* --- INFO STEPS SECTION --- */

.info-steps {
    padding: 100px 20px;
    background: radial-gradient(circle at bottom left, #ffffff 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.info-bg-blob {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(12, 49, 123, 0.05) 0%, rgba(12, 49, 123, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    animation: blobFloatReverse 25s infinite alternate;
}

@keyframes blobFloatReverse {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-50px, 50px) scale(1.05); }
}

.info-blob-1 { top: 10%; right: -150px; }
.info-blob-2 { bottom: 5%; left: -150px; animation-delay: -12s; }

.info-steps-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    align-items: stretch;
}

.info-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(12, 49, 123, 0.08);
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid rgba(12, 49, 123, 0.1);
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: all 0.7s;
    pointer-events: none;
    z-index: 5;
}

.info-card:hover {
    transform: translateY(-10px) rotateY(3deg) scale(1.01);
    box-shadow: 0 25px 55px rgba(12, 49, 123, 0.15);
    border-color: #1e7adf;
}

.info-card:hover::before {
    left: 100%;
}

.info-badge {
    display: inline-block;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid #0C317B;
    border-radius: 20px;
    color: #0C317B;
    margin-bottom: 20px;
    width: fit-content;
    background: rgba(12, 49, 123, 0.05);
    transition: all 0.3s ease;
}

.info-card:hover .info-badge {
    background: #0C317B;
    color: white;
    border-color: #0C317B;
    transform: scale(1.05);
}

.info-title {
    font-size: 24px;
    font-weight: 600;
    color: #0C317B;
    margin-bottom: 20px;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.info-card:hover .info-title {
    color: #1e7adf;
}

.info-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.info-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    font-size: 15px;
    color: #4a5568;
    transition: color 0.3s ease, transform 0.3s ease;
}

.info-card:hover .info-list li {
    color: #0C317B;
    transform: translateX(5px);
}

.info-list li::before {
    content: "✓";
    color: #0C317B;
    position: absolute;
    left: 0;
    font-weight: 900;
    transition: color 0.3s ease, transform 0.3s ease;
}

.info-card:hover .info-list li::before {
    color: #1e7adf;
    transform: scale(1.1);
}

.info-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: #0C317B;
    margin: 20px 0 10px;
    transition: color 0.3s ease;
}

.info-card:hover .info-subtitle {
    color: #1e7adf;
}

.info-bullet-list {
    list-style: disc;
    padding-left: 20px;
    color: #4a5568;
    font-size: 14px;
}

.info-bullet-list li {
    margin-bottom: 6px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.info-card:hover .info-bullet-list li {
    color: #0C317B;
    transform: translateX(5px);
}

.info-description {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 20px;
    line-height: 1.5;
}

.info-steps-list {
    list-style: none;
    padding: 0;
}

.info-steps-list li {
    font-size: 14px;
    margin-bottom: 8px;
    color: #4a5568;
    transition: color 0.3s ease, transform 0.3s ease;
}

.info-card:hover .info-steps-list li {
    color: #0C317B;
    transform: translateX(5px);
}

.step-label {
    color: #0C317B;
    font-weight: 600;
    transition: color 0.3s ease;
}

.info-card:hover .step-label {
    color: #1e7adf;
}

.info-button {
    margin-top: auto;
    background: linear-gradient(135deg, #0C317B 0%, #1e7adf 100%);
    color: white;
    padding: 14px 30px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: fit-content;
    position: relative;
    overflow: hidden;
    z-index: 1;
    animation: attention-glow 3s infinite ease-in-out;
}

.info-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.7s;
    pointer-events: none;
    z-index: 0;
}

.info-button:hover {
    background: #09245c;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(12, 49, 123, 0.3);
}

.info-button:hover::before {
    left: 100%;
}

.info-btn-icon {
    width: 22px;
    height: 22px;
    border: 2px solid white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.info-button:hover .info-btn-icon {
    transform: rotate(90deg);
}

@media (max-width: 992px) {
    .info-steps-container {
        gap: 20px;
    }
    .info-card {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .info-steps-container {
        flex-direction: column;
    }
    .info-card {
        padding: 30px;
    }
    .info-title {
        font-size: 20px;
    }
    .info-steps {
        padding: 80px 20px;
    }
    .info-bg-blob {
        width: 300px;
        height: 300px;
    }
}

/* --- CONTACT SECTION --- */

.contact {
    padding: 120px 20px;
    background: #0C317B;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.contact-bg-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    animation: blobMove 25s infinite alternate ease-in-out;
}

@keyframes blobMove {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    33% { transform: translate(50px, -50px) scale(1.1) rotate(10deg); }
    66% { transform: translate(-30px, 50px) scale(0.9) rotate(-10deg); }
    100% { transform: translate(0, 0) scale(1) rotate(0deg); }
}

.contact-blob-1 { top: -10%; left: -200px; }
.contact-blob-2 { bottom: -10%; right: -200px; animation-delay: -12.5s; }

.contact-header {
    text-align: center;
    margin-bottom: 70px;
}

.contact-title {
    font-size: 38px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.contact-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

.contact-cards {
    display: flex;
    gap: 25px;
    justify-content: center;
    margin-bottom: 80px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 24px;
    width: 300px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(12, 49, 123, 0.05);
    border: 1px solid rgba(12, 49, 123, 0.08);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Stagger entry for contact cards */
.contact-cards .contact-card:nth-child(1) { transition-delay: 0.1s; }
.contact-cards .contact-card:nth-child(2) { transition-delay: 0.2s; }
.contact-cards .contact-card:nth-child(3) { transition-delay: 0.3s; }

.contact-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(12, 49, 123, 0.12);
    border-color: #1e7adf;
    background: white;
}

.contact-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 15px;
    transition: transform 0.4s ease;
}

.contact-card:hover .contact-icon {
    transform: scale(1.2) rotate(10deg);
}

.contact-text {
    font-size: 15px;
    color: #0C317B;
    line-height: 1.6;
    font-weight: 500;
}

.contact-main {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-map {
    width: 50%;
    perspective: 1000px;
}

.contact-map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(12, 49, 123, 0.1);
    transition: all 0.5s ease;
}

.contact-map:hover .contact-map-container {
    transform: rotateY(-5deg);
    box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.15);
}

.contact-map-container iframe {
    width: 100%;
    height: 450px;
    border: 0;
    display: block;
    filter: grayscale(0.2) contrast(1.1);
    transition: filter 0.4s ease;
}

.contact-map:hover iframe {
    filter: grayscale(0) contrast(1);
}

.contact-form {
    width: 50%;
    background: white;
    padding: 45px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(12, 49, 123, 0.08);
    border: 1px solid rgba(12, 49, 123, 0.05);
}

.form-title {
    font-size: 32px;
    font-weight: 800;
    color: #0C317B;
    margin-bottom: 15px;
}

.form-subtext {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group:last-of-type {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #0C317B;
}

.form-input {
    width: 100%;
    border: 2px solid #eef2f8;
    border-radius: 12px;
    padding: 12px;
    font-size: 14px;
    color: #333;
    background-color: #ffffff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #1e7adf;
    background-color: white;
    box-shadow: 0 10px 20px rgba(30, 122, 223, 0.1);
}

textarea.form-input {
    resize: vertical;
    min-height: 80px;
}

.phone-input-wrapper {
    display: flex;
    width: 100%;
    border: 2px solid #eef2f8;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.phone-input-wrapper:focus-within {
    border-color: #1e7adf;
}

.phone-flag {
    padding: 12px;
    background: #f8fafc;
    color: #0C317B;
    font-size: 14px;
    font-weight: 700;
    border-right: 2px solid #eef2f8;
    display: flex;
    align-items: center;
}

.phone-input {
    flex-grow: 1;
    border: none;
}

.form-checkbox input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 4px; /* Alineación visual con el texto */
    flex-shrink: 0;
}

.form-checkbox label {
    font-size: 13px;
    color: #6b7280;
    text-align: left;
    line-height: 1.5;
}

.form-button {
    width: 100%;
    background: linear-gradient(135deg, #0C317B 0%, #1e7adf 100%);
    color: white;
    padding: 16px 30px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(12, 49, 123, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.8); /* Borde blanco añadido */
    animation: attention-glow 3s infinite ease-in-out;
}

.form-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.6s;
}

.form-button:hover {
    background: #1e7adf;
    transform: translateY(-7px) scale(1.02);
    box-shadow: 0 15px 30px rgba(30, 122, 223, 0.4);
}

.form-button:hover::before {
    left: 100%;
}

/* Responsive adjustments for Contact Section */
@media (max-width: 992px) {
    .contact-main {
        flex-direction: column;
        gap: 30px;
    }
    .contact-map, .contact-form {
        width: 100%;
    }
    .contact-cards {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .contact {
        padding: 60px 15px;
    }
    .contact-header {
        margin-bottom: 40px;
    }
    .contact-title {
        font-size: 26px;
    }
    .contact-subtitle {
        font-size: 13px;
    }
    .contact-cards {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-bottom: 40px;
    }
    .contact-card {
        width: 100%;
        max-width: 300px;
    }
    .contact-main {
        gap: 25px;
    }
    .contact-form {
        padding: 25px;
    }
    .form-title {
        font-size: 22px;
    }
    .form-subtext {
        font-size: 13px;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .form-checkbox label {
        font-size: 11px;
    }
}

/* --- SUCCESS PAGE --- */

.success {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #ffffff 0%, #f1f5f9 100%);
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.success-bg-blob {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(30, 122, 223, 0.08) 0%, rgba(12, 49, 123, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    animation: blobFloatSuccess 15s infinite alternate ease-in-out;
}

@keyframes blobFloatSuccess {
    0% { transform: translate(-10%, -10%) scale(1); }
    100% { transform: translate(10%, 10%) scale(1.2); }
}

.success-blob-1 { top: -100px; left: -100px; }
.success-blob-2 { bottom: -100px; right: -100px; animation-delay: -7s; }

.success-container {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 60px 40px;
    border-radius: 30px;
    box-shadow: 0 25px 50px rgba(12, 49, 123, 0.1);
    text-align: center;
    max-width: 650px;
    width: 100%;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.success-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 60px rgba(12, 49, 123, 0.15);
    border-color: #1e7adf40;
}

.success-logo {
    height: 50px;
    margin-bottom: 40px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.05));
}

.success-icon {
    width: 130px;
    height: auto;
    margin-bottom: 30px;
    animation: iconPop 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes iconPop {
    0% { transform: scale(0) rotate(-45deg); opacity: 0; }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}

.success-title {
    font-size: 38px;
    font-weight: 800;
    color: #0C317B;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.success-text {
    font-size: 18px;
    color: #4a5568;
    margin-bottom: 40px;
    line-height: 1.6;
}

.success-list {
    list-style: none;
    padding: 0;
    margin-bottom: 35px;
    text-align: left;
    display: inline-block;
}

.success-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 15px;
    color: #4a5568;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.success-list li:hover {
    transform: translateX(5px);
    color: #0C317B;
}

.success-list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 0;
    color: #1e7adf;
    border: 2px solid #1e7adf;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    background: rgba(30, 122, 223, 0.05);
}

.success-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.success-button {
    background: linear-gradient(135deg, #0C317B 0%, #1e7adf 100%);
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(12, 49, 123, 0.2);
    animation: attention-glow 3s infinite ease-in-out;
}

.success-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.6s;
}

.success-button:hover {
    background: #1e7adf;
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 30px rgba(30, 122, 223, 0.4);
}

.success-button:hover::before {
    left: 100%;
}

.success-button.btn-secondary {
    background: white;
    color: #0C317B;
    border: 2px solid #eef2f8;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.success-button.btn-secondary:hover {
    background: #f8fafc;
    border-color: #1e7adf;
    color: #1e7adf;
}

.success-btn-icon {
    font-size: 18px;
}

@media (max-width: 768px) {
    .success-logo {
        height: 35px; /* Logo más pequeño en móvil */
        margin-bottom: 25px; /* Menos espacio inferior para compensar el tamaño */
    }
    .success-title {
        font-size: 26px;
    }
    .success-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .success-button {
        width: 100%;
        justify-content: center;
    }
    .success-container {
        padding: 40px 25px;
    }
    .success-icon {
        width: 110px;
    }
}

/* --- FOOTER SECTION --- */

.footer {
    background: radial-gradient(circle at top right, #0C317B 0%, #071d5a 100%);
    padding: 60px 20px 40px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.footer-bg-blob {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(30, 122, 223, 0.15) 0%, rgba(12, 49, 123, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    animation: blobMoveFooter 20s infinite alternate ease-in-out;
}

@keyframes blobMoveFooter {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-30px, 30px) scale(1.2); }
}

.footer-blob-1 { top: -100px; right: -100px; }
.footer-blob-2 { bottom: -100px; left: -100px; animation-delay: -10s; }

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.footer-logo {
    height: 40px;
    display: block;
    border-radius: 12px;
    transition: all 0.4s ease;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.1));
}

.footer-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.3));
}

.footer-button {
    background: transparent;
    background: linear-gradient(135deg, #0C317B 0%, #1e7adf 100%);
    border: 2px solid rgba(255, 255, 255, 0.8); /* Borde blanco añadido */
    color: white;
    padding: 12px 26px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center; /* Centrar contenido en móvil */
    gap: 10px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    animation: attention-glow 3s infinite ease-in-out;
}

.footer-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.6s;
}

.footer-button:hover {
    background: #1e7adf;
    border-color: #1e7adf;
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 8px 15px rgba(255, 255, 255, 0.2);
    filter: brightness(1.1); /* Ligeramente más brillante */
}

.footer-button:hover::before {
    left: 100%;
}

.footer-icon {
    width: 20px;
    height: 20px;
    border: 2px solid #0C317B; /* Cambiado de blanco a azul oscuro para contraste */
    border-radius: 50%;
    background: white; /* Fondo blanco para que se vea claramente */
    display: flex; /* Para centrar cualquier contenido futuro si se añade */
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.footer-button:hover .footer-icon {
    transform: scale(1.1) rotate(45deg);
    border-color: #1e7adf;
    background: #f0f8ff; /* Fondo ligeramente azulado en hover */
}

.footer-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2) 50%, transparent);
    margin: 30px 0;
}

.footer-bottom {
    font-size: 13px;
    color: #ffffff !important;
    text-align: center;
}

@media (max-width: 768px) {
    .footer {
        padding: 50px 20px 30px;
    }

    .footer-top {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }

    .footer-bottom {
        text-align: center;
    }
}

/* --- LOADING OVERLAY --- */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 29, 90, 0.85); /* Azul oscuro con transparencia */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    backdrop-filter: blur(5px);
    transition: all 0.4s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-card {
    background: #ffffff;
    padding: 45px 30px;
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    max-width: 420px;
    text-align: center;
    transform: scale(0.8) translateY(20px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.loading-overlay.active .loading-card {
    transform: scale(1) translateY(0);
}

.loading-spinner {
    border: 5px solid #f3f7ff;
    border-top: 5px solid #0C317B; /* Color corporativo */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-message {
    color: #0C317B;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
}

.loading-subtext {
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

/* --- STATUS MODAL (for client-side validation messages) --- */
.status-modal {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px); /* Inicialmente fuera de la vista */
    background: #0C317B; /* Color principal de la paleta */
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    font-size: 16px;
    font-weight: 500;
    z-index: 100001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease-out;
}

.status-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.status-modal.error {
    background: #dc3545; /* Rojo para errores */
}

.status-modal.success {
    background: #28a745; /* Verde para éxito (aunque el formulario redirige) */
}

@media (max-width: 768px) {
    .status-modal {
        width: calc(100% - 40px);
        left: 20px;
        transform: translateX(0) translateY(100px);
    }
    .status-modal.active {
        transform: translateX(0) translateY(0);
    }
}

/* --- CHAT WIDGET (WhatsApp) --- */
/* Nunca heredar estilos de .reveal */
.chat-widget,
.chat-widget .chat-button {
    opacity: 1 !important;
    visibility: visible !important;
}

.chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    font-family: inherit;
    pointer-events: none;
    width: auto;
    height: auto;
}

.chat-widget.is-ready {
    pointer-events: auto;
}

.chat-waves {
    display: none;
}

.chat-button {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100000;
    background: linear-gradient(135deg, #0C317B, #4da3ff); /* Mantener el gradiente */
    color: #ffffff;
    border: none;
    border-radius: 40px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(12, 49, 123, 0.35);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8); /* Borde blanco añadido */
    animation: chat-pulse 4s infinite;
    pointer-events: auto;
}

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

.chat-btn-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.chat-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(12, 49, 123, 0.45);
}

.chat-button span {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.chat-popup {
    position: fixed;
    bottom: 88px;
    right: 24px;
    width: 300px;
    max-width: calc(100vw - 48px);
    background: #ffffff;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
    transform: translateY(12px) scale(0.96);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
    z-index: 99998;
    pointer-events: none;
}

.chat-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.chat-header {
    position: relative;
    margin-bottom: 20px;
}

.chat-header h3 {
    font-size: 18px;
    color: #0C317B;
    margin-bottom: 4px;
}

.chat-header p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

.chat-close {
    position: absolute;
    top: -5px;
    right: -5px;
    cursor: pointer;
    font-size: 22px;
    color: #94a3b8;
    line-height: 1;
    transition: color 0.3s;
}

.chat-close:hover {
    color: #0C317B;
}

.chat-cta {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #0C317B, #4da3ff); /* Mantener el gradiente */
    color: #ffffff;
    text-decoration: none;
    padding: 14px;
    border-radius: 30px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    transition: opacity 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8); /* Borde blanco añadido */
    animation: attention-glow 3s infinite ease-in-out;
}

@keyframes attention-glow {
    0% { transform: scale(1); box-shadow: 0 4px 15px rgba(12, 49, 123, 0.2); }
    50% { transform: scale(1.04); box-shadow: 0 8px 25px rgba(30, 122, 223, 0.4); }
    100% { transform: scale(1); box-shadow: 0 4px 15px rgba(12, 49, 123, 0.2); }
}

@keyframes attention-glow-help {
    0% { transform: translateY(-50%) scale(1); box-shadow: 0 4px 15px rgba(12, 49, 123, 0.2); }
    50% { transform: translateY(-50%) scale(1.04); box-shadow: 0 8px 25px rgba(30, 122, 223, 0.4); }
    100% { transform: translateY(-50%) scale(1); box-shadow: 0 4px 15px rgba(12, 49, 123, 0.2); }
}

.chat-cta:hover {
    opacity: 0.92;
}

@keyframes chat-pulse {
    0%, 100% { box-shadow: 0 10px 30px rgba(12, 49, 123, 0.35); }
    50% { box-shadow: 0 10px 44px rgba(12, 49, 123, 0.55); }
}

/* Tablet y móvil: botón circular fijo al viewport */
@media (max-width: 992px) {
    .chat-widget {
        width: 0;
        height: 0;
        bottom: 0;
        right: 0;
        overflow: visible;
    }

    .chat-button {
        bottom: max(20px, env(safe-area-inset-bottom, 0px));
        right: max(20px, env(safe-area-inset-right, 0px));
        width: 58px;
        height: 58px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
        box-shadow: 0 8px 28px rgba(12, 49, 123, 0.5), 0 0 0 4px rgba(255, 255, 255, 0.95);
    }

    .chat-button span {
        display: none;
    }

    .chat-btn-icon {
        width: 30px;
        height: 30px;
    }

    .chat-popup {
        bottom: calc(88px + env(safe-area-inset-bottom, 0px));
        right: max(20px, env(safe-area-inset-right, 0px));
    }
}

@media (max-width: 480px) {
    .chat-button {
        width: 54px;
        height: 54px;
    }

    .chat-btn-icon {
        width: 28px;
        height: 28px;
    }

    .chat-popup {
        width: calc(100vw - 32px);
        right: max(16px, env(safe-area-inset-right, 0px));
        bottom: calc(82px + env(safe-area-inset-bottom, 0px));
        padding: 20px;
    }
}