﻿/* ==========================================================================
   BITSPARK STYLES - CONTACTO & MODAL (MASTER)
   ========================================================================== */

:root {
    --bs-navy: #183059;
    --bs-cyan: #22A699;
    --bs-orange: #F2A900;
    --success: #10b981;
    --error: #ef4444;
}

/* =======================================================
   1. SECCIÓN PRINCIPAL (FONDO BLANCO + PARTÍCULAS)
   ======================================================= */
.contact-section-white {
    background: #ffffff;
    padding: 100px 20px;
    position: relative;
    text-align: center;
    overflow: hidden;
    z-index: 1;
}

/* --- PARTÍCULAS TECH (FONDO) --- */
.particles-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Detrás del contenido */
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(34, 166, 153, 0.1);
    animation: floatParticle 15s infinite linear;
}

/* Configuración de cada partícula */
.p1 {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 5%;
    animation-duration: 20s;
}

.p2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 10%;
    background: rgba(24, 48, 89, 0.05);
}

.p3 {
    width: 40px;
    height: 40px;
    bottom: 20%;
    left: 20%;
    background: rgba(242, 169, 0, 0.1);
}

.p4 {
    width: 60px;
    height: 60px;
    top: 20%;
    right: 30%;
}

.p5 {
    width: 10px;
    height: 10px;
    top: 50%;
    left: 50%;
    background: var(--bs-cyan);
    opacity: 0.2;
    animation: pulseDot 4s infinite;
}

.p6 {
    width: 120px;
    height: 120px;
    bottom: -20px;
    left: 40%;
    background: rgba(34, 166, 153, 0.05);
}

@keyframes floatParticle {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.5;
    }

    50% {
        transform: translateY(-40px) rotate(180deg);
        opacity: 0.8;
    }

    100% {
        transform: translateY(0) rotate(360deg);
        opacity: 0.5;
    }
}

@keyframes pulseDot {
    0%, 100% {
        transform: scale(1);
        opacity: 0.2;
    }

    50% {
        transform: scale(2);
        opacity: 0;
    }
}

/* --- TARJETA DE INVITACIÓN (CONTENEDOR) --- */
.container-pro {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.8); /* Efecto vidrio */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 60px 40px;
    border-radius: 30px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

/* --- BADGE VIP (BONUS DESBLOQUEADO) --- */
.reward-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.reward-badge {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.2);
    transition: transform 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
}

    .reward-badge:hover {
        transform: translateY(-5px);
    }

.badge-icon {
    background: var(--bs-cyan);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
}

.badge-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.2;
}

.badge-title {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--bs-cyan);
    letter-spacing: 1px;
    display: block;
}

.badge-desc {
    font-size: 0.85rem;
    color: #e2e8f0;
}

/* --- TEXTOS Y TIPOGRAFÍA --- */
.title-pro {
    font-family: 'Manrope', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--bs-navy);
    margin-bottom: 20px;
    line-height: 1.1;
}

.highlight-text {
    color: var(--bs-cyan);
    position: relative;
    z-index: 1;
}

    .highlight-text::after {
        content: '';
        position: absolute;
        bottom: 5px;
        left: 0;
        width: 100%;
        height: 15px;
        background: rgba(34, 166, 153, 0.2);
        z-index: -1;
        transform: skewX(-10deg);
    }

.desc-pro {
    font-size: 1.2rem;
    color: #475569;
    margin-bottom: 40px;
    line-height: 1.6;
}

.academy-perk {
    display: inline-block;
    background: #f0fdfa;
    color: #0f766e;
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px dashed var(--bs-cyan);
    font-size: 1rem;
    margin-top: 10px;
}

/* --- BOTÓN DE ACCIÓN (ESTILO BLANCO) --- */
.btn-cta-white {
    background: var(--bs-navy);
    color: white;
    padding: 20px 50px;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 25px rgba(24, 48, 89, 0.2);
}

    .btn-cta-white:hover {
        background: var(--bs-cyan);
        color: #0f172a;
        transform: translateY(-3px);
        box-shadow: 0 20px 40px rgba(34, 166, 153, 0.3);
    }

.trust-footer {
    margin-top: 30px;
    font-size: 0.9rem;
    color: #94a3b8;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

/* =======================================================
   2. ESTRUCTURA DEL MODAL (DARK TECH - MOBILE FIX)
   ======================================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 10px;
    box-sizing: border-box;
}

    .modal-overlay.active {
        display: flex;
        opacity: 1;
    }

.modal-container {
    background: #fff;
    width: 100%;
    max-width: 1100px;
    max-height: 90vh; /* Altura inteligente */
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 50px 100px rgba(0,0,0,0.6);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

/* --- LADO IZQUIERDO: MONITOR (PC) --- */
.modal-left {
    width: 45%;
    background: linear-gradient(160deg, #183059 0%, #050a14 100%);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
}

.monitor {
    width: 100%;
    max-width: 340px;
    background: #1a202c;
    border: 8px solid #2d3748;
    border-radius: 15px;
    padding: 12px 12px 0 12px;
    box-shadow: 0 40px 70px rgba(0,0,0,0.5);
    transform: perspective(1000px) rotateY(5deg);
}

.screen {
    background: #0f172a;
    border-radius: 6px 6px 0 0;
    height: 220px;
    position: relative;
    overflow: hidden;
    border: 1px solid #475569;
}

.browser-bar {
    background: #1e293b;
    padding: 8px;
    border-bottom: 1px solid #334155;
    display: flex;
    align-items: center;
}

.dots {
    display: flex;
    gap: 5px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.url-box {
    background: rgba(255,255,255,0.05);
    padding: 4px 10px;
    border-radius: 4px;
    color: var(--bs-cyan);
    font-family: monospace;
    font-size: 0.7rem;
    text-align: center;
    font-weight: bold;
    flex-grow: 1;
    margin-left: 10px;
}

.dashboard-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chart-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 90px;
    border-bottom: 1px solid #334155;
}

.bar {
    width: 10%;
    background: linear-gradient(to top, var(--bs-cyan), #4fd1c5);
    border-radius: 4px 4px 0 0;
    animation: growBar 2s infinite alternate ease-in-out;
}

.line-path {
    width: 100%;
    height: 3px;
    background: var(--bs-orange);
    box-shadow: 0 0 10px var(--bs-orange);
    margin-top: 10px;
}

@keyframes growBar {
    0% {
        height: 20%;
        opacity: 0.7;
    }

    100% {
        height: 90%;
        opacity: 1;
    }
}

.monitor-stand {
    width: 90px;
    height: 25px;
    background: #2d3748;
    margin: 0 auto;
    border-radius: 0 0 10px 10px;
    transform: perspective(1000px) rotateY(5deg);
}

.monitor-base {
    width: 160px;
    height: 6px;
    background: #475569;
    margin: 0 auto;
    border-radius: 10px;
    transform: perspective(1000px) rotateY(5deg);
}

/* --- LADO DERECHO: FORMULARIO --- */
.modal-right {
    width: 55%;
    padding: 30px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    overflow-y: auto; /* Scroll interno vital */
    overflow-x: hidden;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    background: #f1f5f9;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    transition: 0.2s;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

    .close-modal:hover {
        background: var(--error);
        color: white;
    }
.typewriter {
    font-family: 'Manrope', sans-serif;
    /* 1. TAMAÑO RESPONSIVO INTELIGENTE */
    /* Mínimo 1rem, Ideal 4% del ancho de pantalla, Máximo 1.3rem */
    font-size: clamp(1rem, 4vw, 1.3rem);
    font-weight: 800;
    color: var(--bs-navy);
    border-right: 3px solid var(--bs-cyan);
    /* 2. EVITAR QUE SE ENCIMEN LAS LÍNEAS */
    line-height: 1.5; /* Da espacio vertical entre líneas */
    /* 3. ASEGURAR QUE NO SE SALGA DE LA PANTALLA */
    word-break: break-word; /* Si una palabra es muy larga, la corta para que baje */
    display: inline-block; /* Mantiene el borde (cursor) pegado al texto */
}

/* Opcional: Ajuste específico solo para celulares muy pequeños */
@media (max-width: 576px) {
    .typewriter {
        border-right-width: 2px; /* Cursor más delgado en móvil */
    }
}
.consultancy-badge {
    background: linear-gradient(90deg, rgba(34, 166, 153, 0.1), rgba(24, 48, 89, 0.05));
    border-left: 4px solid var(--bs-cyan);
    padding: 8px 12px;
    border-radius: 0 8px 8px 0;
    font-size: 0.85rem;
    color: var(--bs-navy);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.comm-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
}

/* --- FORMULARIO & INPUTS --- */
.form-group {
    margin-bottom: 15px;
    width: 100%;
}

.bs-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 6px;
    display: block;
}

.bs-input-modern {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    font-size: 16px;
    transition: 0.3s;
    box-sizing: border-box;
}

    .bs-input-modern:focus {
        background: #fff;
        border-color: var(--bs-cyan);
        outline: none;
    }

.phone-row {
    display: flex;
    gap: 8px;
    width: 100%;
}

.flag-select {
    width: 85px;
    padding: 10px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
}

.btn-submit-pro {
    width: 100%;
    padding: 16px;
    background: var(--bs-navy);
    color: white;
    font-weight: 800;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
    font-size: 1rem;
}

    .btn-submit-pro:hover {
        background: var(--bs-cyan);
        transform: translateY(-2px);
    }

/* --- ANIMACIONES (Loader & Success) --- */
.processing-container, .sending-container {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 300px;
    animation: fadeIn 0.5s forwards;
}

.tech-loader {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
}

    .loader-circle.outer {
        width: 100%;
        height: 100%;
        border-top: 4px solid var(--bs-cyan);
        border-bottom: 4px solid var(--bs-cyan);
        animation: spinRight 2s linear infinite;
    }

    .loader-circle.inner {
        width: 65%;
        height: 65%;
        border-left: 4px solid var(--bs-orange);
        border-right: 4px solid var(--bs-orange);
        animation: spinLeft 1.5s linear infinite;
    }

.tech-icon {
    font-size: 1.8rem;
    z-index: 2;
    color: var(--bs-cyan);
}

.console-log {
    font-family: 'Consolas', monospace;
    margin-bottom: 20px;
}

.progress-bar-wrapper {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
}

.tech-progress-bar {
    height: 100%;
    width: 0%;
    background: repeating-linear-gradient(45deg, var(--bs-navy), var(--bs-navy) 10px, var(--bs-cyan) 10px, var(--bs-cyan) 20px);
    background-size: 200% 200%;
    animation: moveStripes 2s linear infinite;
    transition: width 0.3s;
}

.paper-plane {
    font-size: 3.5rem;
    color: var(--bs-cyan);
    animation: flyLoop 3s ease-in-out infinite;
}

/* Animaciones Helper */
@keyframes spinRight {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes spinLeft {
    100% {
        transform: rotate(-360deg);
    }
}

@keyframes moveStripes {
    100% {
        background-position: 100% 50%;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =======================================================
   6. RESPONSIVO (TABLET & MOBILE)
   ======================================================= */
@media (max-width: 900px) {
    .modal-container {
        flex-direction: column;
        width: 100%;
        max-width: 600px;
        height: auto;
        max-height: 90vh;
    }

    .modal-left {
        display: none;
    }
    /* Ocultar monitor */
    .modal-right {
        width: 100%;
        padding: 25px 20px;
    }

    .container-pro {
        padding: 40px 20px;
        width: 95%;
    }

    .title-pro {
        font-size: 2.2rem;
    }

    .btn-cta-white {
        width: 100%;
        justify-content: center;
    }
}
/* =========================================
   FIX FORMULARIO Y VALIDACIÓN (REPARACIÓN)
   ========================================= */

/* 1. El envoltorio debe ser RELATIVO para contener el icono */
.input-wrapper {
    position: relative; /* ¡CRUCIAL! */
    width: 100%;
    display: flex;
    align-items: center;
}

/* 2. El Input moderno */
.bs-input-modern {
    width: 100%;
    padding: 12px 15px;
    padding-right: 45px; /* Espacio extra a la derecha para que el texto no toque el icono */
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
}

    /* Estados del Input */
    .bs-input-modern:focus {
        background: #fff;
        border-color: var(--bs-cyan);
        box-shadow: 0 0 0 4px rgba(34, 166, 153, 0.1);
    }

    .bs-input-modern.is-valid {
        border-color: var(--success) !important;
        background-color: #f0fdf4 !important;
    }

    .bs-input-modern.is-invalid {
        border-color: var(--error) !important;
        background-color: #fef2f2 !important;
    }

/* 3. El Icono (La Palomita) - FLOTANDO A LA DERECHA */
.validation-icon {
    position: absolute; /* Esto lo hace flotar */
    right: 15px; /* Pegado a la derecha */
    top: 50%; /* Centrado verticalmente */
    transform: translateY(-50%) scale(0); /* Oculto (scale 0) por defecto */
    font-size: 1.2rem;
    color: var(--success);
    pointer-events: none; /* Para que puedas dar click al input a través del icono */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Cuando el input es válido, mostramos el icono con animación */
.bs-input-modern.is-valid ~ .validation-icon {
    transform: translateY(-50%) scale(1); /* Aparece (scale 1) */
}

/* 4. Mensaje de Error (Texto rojo abajo) */
.error-text {
    color: var(--error);
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 5px;
    margin-left: 5px;
    display: none; /* Oculto por defecto */
    animation: fadeIn 0.3s forwards;
}

.bs-input-modern.is-invalid ~ .error-text {
    display: block; /* Se muestra si hay error */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* =========================================
   ESTILO SUCCESS BADGE (CÁPSULA DE ÉXITO)
   ========================================= */

.success-badge {
    /* 1. Fondo: Cyan muy suave (transparente) para que no sea agresivo */
    background: rgba(34, 166, 153, 0.1);
    /* 2. Texto y Borde: Cyan BitSpark */
    color: var(--bs-cyan);
    border: 1px solid rgba(34, 166, 153, 0.3);
    /* 3. Forma y Espaciado */
    padding: 8px 24px; /* Relleno cómodo */
    border-radius: 50px; /* Bordes totalmente redondos (Pill shape) */
    margin-bottom: 20px; /* Separación del avión de papel */
    /* 4. Tipografía "Tech" */
    font-size: 0.85rem;
    font-weight: 800; /* Negrita para que se lea bien */
    text-transform: uppercase; /* Mayúsculas para autoridad */
    letter-spacing: 1px; /* Espaciado entre letras */
    /* 5. Alineación del icono y texto */
    display: inline-flex; /* Para que el ancho se ajuste al contenido */
    align-items: center; /* Centra el icono verticalmente */
    gap: 10px; /* Espacio entre el icono y el texto */
    /* 6. Efecto de Brillo Suave */
    box-shadow: 0 0 15px rgba(34, 166, 153, 0.15);
}

    /* Opcional: Pequeña animación para el icono dentro del badge */
    .success-badge i {
        font-size: 1rem;
        animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

@keyframes popIn {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}
/* =========================================
   ESTILO TEXTO DE ÉXITO (MENSAJE FINAL)
   ========================================= */

.success-text {
    /* 1. Color: Gris azulado profesional (no negro puro) */
    color: #64748b;
    /* 2. Tipografía y Lectura */
    font-size: 1rem; /* Tamaño estándar cómodo (16px) */
    line-height: 1.6; /* Altura de línea para que "respire" */
    font-weight: 500; /* Un poco más grueso que normal para pantallas retina */
    /* 3. Espaciado y Ubicación */
    text-align: center; /* Centrado */
    margin-bottom: 30px; /* Separación del botón de abajo */
    margin-top: 10px; /* Separación del título de arriba */
    /* 4. Control de Anchura (Importante) */
    /* Evita que el texto se estire demasiado en pantallas anchas */
    max-width: 450px;
    margin-left: auto; /* Centrar el bloque en sí */
    margin-right: auto; /* Centrar el bloque en sí */
}