/* =============================================
   1. VARIABLES Y BASE (Estética Byfy)
   ============================================= */
:root {
    --color-pink: #FB0A6B;
    --color-orange: #FD5129;
    --color-dark: #0f1115;
    --color-white: #ffffff;
    --color-bg: #f8fafc;
    --gradient-brand: linear-gradient(135deg, var(--color-pink) 0%, var(--color-orange) 100%);
    --font-main: 'DM Sans', sans-serif;
    --shadow-premium: 0 15px 35px rgba(0,0,0,0.05);
    --radius-bento: 24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* --- Títulos H2 Centrados y Destacados --- */
.section-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 2.6rem);
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 20px;
    letter-spacing: -1.5px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-brand);
    border-radius: 10px;
}

.section-padding {  padding: 50px 0 40px 0; /* Antes era 100px, ahora 50px arriba */ }
.text-center { text-align: center; }


/* Clase para resaltar la V en rojo */
.v-red {
    color: #e11d48; /* Un rojo vibrante y profesional */
    font-weight: bold;
}

/* =============================================
   2. NAVEGACIÓN (Glassmorphism)
   ============================================= */
header {
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-wrapper { display: flex; justify-content: space-between; align-items: center; }

.btn-nav {
    background: var(--color-dark);
    color: white;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

/* =============================================
   3. HERO SECTION (Imagen de Fondo)
   ============================================= */
.hero-bg {
    position: relative;
    min-height: 85vh;
    background-image: url('https://images.unsplash.com/photo-1449965408869-eaa3f722e40d?q=80&w=1000&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.65); /* Oscurece la imagen para leer el texto */
    z-index: 1;
}

.hero-content-center {
    position: relative;
    z-index: 2;
    max-width: 850px;
    padding: 0 20px;
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1.1; letter-spacing: -2px; margin-bottom: 20px; }

.highlight-white { color: white; display: block; margin-top: 10px; }

.hero-text-white {
    font-size: 1.3rem;
    margin-bottom: 35px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-promo {
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    padding: 15px 25px;
    border-radius: 16px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--gradient-brand);
    color: white;
    padding: 18px 40px;
    border-radius: 16px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 10px 20px rgba(253, 81, 41, 0.3);
    transition: 0.3s;
    font-size: 1.1rem;
}

.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(253, 81, 41, 0.4); }

/* =============================================
   4. REQUISITOS (3 Cards Premium)
   ============================================= */
.requisitos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

@media (min-width: 768px) {
    .requisitos-grid { grid-template-columns: repeat(3, 1fr); }
}

.req-card-premium {
    background: var(--gradient-brand);
    color: white;
    padding: 40px 30px;
    border-radius: var(--radius-bento);
    box-shadow: 0 15px 35px rgba(251, 10, 107, 0.15);
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.req-card-premium:hover { transform: translateY(-8px); }

.icon-box-glass {
    width: 54px; height: 54px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* =============================================
   5. FAQ (Acordeón Premium)
   ============================================= */
.faq-container { max-width: 850px; margin: 0 auto; }

.faq-item {
    background: white;
    margin-bottom: 16px;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.04);
    transition: 0.3s;
}

.faq-question {
    padding: 24px 30px;
    cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    font-weight: 700; font-size: 1.1rem;
}

.faq-icon { width: 20px; height: 20px; color: #94a3b8; transition: 0.4s; }

.faq-answer {
    max-height: 0; overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
    padding: 0 30px; color: #64748b;
}

.faq-item.active { border-color: rgba(251, 10, 107, 0.2); }
.faq-item.active .faq-question { color: var(--color-pink); padding-bottom: 15px; }
.faq-item.active .faq-answer { max-height: 1000px; padding-bottom: 30px; }
.faq-item.active .faq-icon { transform: rotate(180deg); color: var(--color-pink); }

.faq-list { list-style: none; margin-top: 15px; }
.faq-list li { position: relative; padding-left: 25px; margin-bottom: 10px; }
.faq-list li::before { content: "•"; position: absolute; left: 0; color: var(--color-pink); font-weight: bold; }

/* =============================================
   6. FOOTER CON VIDA
   ============================================= */
footer { background: #0f1115; color: #94a3b8; padding: 80px 0 40px; }

.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 50px; }

.footer-brand p { font-size: 0.9rem; margin-top: 10px; }
.footer-links h4, .footer-social h4 { color: white; margin-bottom: 20px; font-size: 1.1rem; }
.footer-links a { display: block; color: #94a3b8; text-decoration: none; margin-bottom: 10px; transition: 0.3s; }
.footer-links a:hover { color: var(--color-pink); }

.social-icons { display: flex; gap: 15px; margin-top: 15px; }
.social-icons i { cursor: pointer; transition: 0.3s; width: 20px; color: #94a3b8; }
.social-icons i:hover { color: white; transform: translateY(-3px); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 30px; text-align: center; font-size: 0.8rem; }

/* --- AJUSTE ICONOS SOCIALES --- */
.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.social-icons a {
    text-decoration: none;
    color: #94a3b8; /* Color gris original */
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icons i {
    width: 24px;
    height: 24px;
    transition: 0.3s;
}

/* Efecto Hover: Se ponen blancos y suben un poco */
.social-icons a:hover {
    color: #ffffff;
    transform: translateY(-3px);
}

/* Color específico para WhatsApp al pasar el mouse (opcional) */
.social-icons a:hover [data-lucide="message-circle"] {
    color: #25d366;
}
 /* --- CRÉDITOS VIATECH --- */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 8px;
}

.viatech-credit {
    font-size: 0.85rem !important;
    letter-spacing: 0.5px;
}

.viatech-credit a {
    color: var(--color-pink); /* Usamos el rosa de la marca para tu firma */
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
    position: relative;
}

.viatech-credit a:hover {
    color: var(--color-orange);
    text-shadow: 0 0 10px rgba(251, 10, 107, 0.3);
}

/* =============================================
   ESTILOS DEFINITIVOS: FORMULARIO (form.html)
   ============================================= */

/* 1. Contenedor Principal */
.contenedor-formulario {
    max-width: 600px;
    margin: 40px auto;
    background: var(--color-white);
    padding: 40px 40px 0 40px; /* Quitamos padding inferior para que el footer pegue */
    border-radius: 24px;
    box-shadow: var(--shadow-premium);
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden; /* Corta el fondo del footer de WA para que encaje */
}

/* 2. Cabecera del Form */
.form-header { text-align: center; margin-bottom: 30px; }
.form-logo { height: 60px; border-radius: 12px; margin-bottom: 10px; }

/* 3. Subtítulos y Etiquetas */
.form-subtitle {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 30px 0 15px;
    color: var(--color-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.label-title {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* 4. Validación Visual (Campos Vacíos/Requeridos) */
/* Resalta en rojo sutil solo cuando el usuario intenta enviar y está vacío */
input:required:invalid {
    border-color: #e2e8f0; 
}

input:focus:invalid {
    border-color: #ff4d4d !important;
    box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.1);
}

/* 5. Grupos de Input e Iconos */
.input-group { position: relative; margin-bottom: 15px; }
.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    color: #94a3b8;
    pointer-events: none;
}
.input-group input { padding-left: 45px !important; width: 100%; }

/* 6. Cajas de Carga de Fotos (Dropzones) */
.file-upload-card {
    position: relative;
    border: 2px dashed #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    margin-bottom: 15px;
    background: #f8fafc;
    transition: 0.3s;
}
.file-upload-card:hover { border-color: var(--color-pink); background: #fff5f7; }
.file-upload-card i { display: block; margin: 0 auto 8px; color: var(--color-pink); width: 24px; }
.file-upload-card input[type="file"] { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }

/* Clase que se activa vía JS cuando hay archivo */
.file-selected { border-color: var(--color-pink) !important; background: #fff5f7 !important; border-style: solid; }

/* 7. BOTÓN ENVIAR (Solución a la superposición) */
.btn-env {
    width: 100%;
    margin-top: 20px;
    margin-bottom: 40px; /* Espacio vital para que no choque con el footer */
    padding: 18px;
    background: var(--gradient-brand);
    color: white;
    border: none;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
    display: block;
}
.btn-env:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(251, 10, 107, 0.2); }
.btn-env:disabled { background: #cbd5e1; cursor: not-allowed; transform: none; }

/* 8. FOOTER WHATSAPP (Corregido) */
.whatsapp-footer {
    text-align: center;
    padding: 30px 20px;
    background-color: #f8fafc;
    border-top: 1px solid #f1f5f9;
    /* Alineación perfecta con los bordes del contenedor */
    margin-left: -40px;
    margin-right: -40px;
    display: block;
    position: relative;
}

/* 9. Responsive del Formulario */
@media (max-width: 768px) {
    .contenedor-formulario { 
        padding: 30px 20px 0 20px; 
        margin: 20px 15px; 
    }
    .whatsapp-footer { 
        margin-left: -20px; 
        margin-right: -20px; 
    }
    .grid-2-col, .grid-vehicle { 
        display: flex; 
        flex-direction: column; 
        gap: 0; 
    }
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }




/* =============================================
   BLOQUE RESPONSIVE UNIFICADO (Celulares)
   ============================================= */
@media (max-width: 768px) {
    
    /* 1. Espaciado de Secciones: Controla el aire arriba de los H2 */
    .section-padding { 
        padding-top: 70px !important; 
        padding-bottom: 40px !important; 
    }

    /* 2. Títulos: Tamaño y separación inferior */
    .section-title { 
        font-size: 2rem !important; 
        margin-bottom: 35px !important;
        margin-top: 0 !important; /* Evitamos que se sume al padding */
    }

    /* 3. Hero: Ajuste de impacto visual */
    .hero-bg { min-height: 65vh; }
    h1 { font-size: 2.1rem !important; padding: 0 10px; }
    .hero-text-white { font-size: 1.1rem; margin-bottom: 20px; }
    .hero-promo { font-size: 0.85rem; padding: 12px; }

    /* 4. Contenedores y Márgenes laterales */
    .container { padding: 0 20px; }

    /* 5. Formulario: Ajuste para pantallas pequeñas */
    .contenedor-formulario { 
        padding: 30px 20px; 
        margin: 20px 10px; 
        border-radius: 20px;
    }
    .whatsapp-footer { 
        margin: 30px -20px -30px -20px; 
        padding: 20px; 
    }

    /* 6. FAQ: Compacto para evitar scroll infinito */
    .faq-question { 
        padding: 18px 20px; 
        font-size: 1rem; 
    }
    .faq-answer { padding: 0 20px; }
    .faq-item.active .faq-answer { padding-bottom: 25px; }

    /* 7. Requisitos: Ajuste de tarjetas */
    .req-card-premium { 
        padding: 30px 25px; 
        margin-bottom: 10px;
    }

    .requisitos-grid {
        gap: 20px !important;
        width: 100% !important;
    }
}

/* =============================================
   MODAL ALERT PREMIUM (Viajá Livre)
   ============================================= */
.custom-alert-overlay {
    position: fixed;
    top: 0; left: 0; 
    width: 100%; height: 100%;
    background: rgba(15, 17, 21, 0.8); /* Fondo oscuro */
    backdrop-filter: blur(10px); /* Efecto desenfoque premium */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999; /* Por encima de todo */
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.custom-alert-overlay.active {
    opacity: 1;
    visibility: visible;
}

.custom-alert-box {
    background: white;
    padding: 40px;
    border-radius: 28px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.9); /* Efecto de pequeño a grande */
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.custom-alert-overlay.active .custom-alert-box {
    transform: scale(1);
}

.alert-icon-circle {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, #FB0A6B 0%, #FD5129 100%);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 25px;
    color: white;
    box-shadow: 0 10px 20px rgba(251, 10, 107, 0.3);
}

.custom-alert-box p {
    color: #475569;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    font-weight: 500;
}

.btn-alert {
    background: linear-gradient(135deg, #FB0A6B 0%, #FD5129 100%);
    color: white;
    border: none;
    padding: 14px 35px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    width: 100%; /* Botón ancho en móvil para mejor UX */
}

.btn-alert:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(251, 10, 107, 0.3);
}