/* estilos.css - VERSIÓN COMPLETA (WhatsApp Bonito + Arreglo Móvil) */

/* --- 1. REGLAS "NUCLEARES" PARA MÓVIL (ESTO ES LO NUEVO) --- */
* {
    box-sizing: border-box; /* Vital: El relleno no ensancha la página */
}

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Corta lo que se salga por los lados */
    position: relative;
}

/* Evita que textos largos rompan el diseño */
h1, h2, h3, p, a, div {
    overflow-wrap: break-word;
    max-width: 100%;
}

/* --- A PARTIR DE AQUÍ ES TU DISEÑO ORIGINAL --- */
:root {
    --bg-dark: #1f2937;      
    --primary-blue: #0ea5e9; 
    --text-dark: #111827;    
    --text-gray: #4b5563;    
    --light-card: #f9fafb;   
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-dark);
    background-color: white;
    line-height: 1.6;
}

/* --- HEADER / MENÚ --- */
header {
    background-color: var(--bg-dark);
    padding: 20px 5%;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 30px; 
}

nav a {
    color: #e5e7eb;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary-blue);
}

/* Selector de Idioma */
.lang-switch {
    border: 1px solid rgba(255,255,255,0.3);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-left: 15px;
    color: white; 
    font-weight: bold;
}

.lang-switch:hover {
    background: rgba(255,255,255,0.1);
    text-decoration: none;
}

/* --- HERO SECTION --- */
.hero {
    /* Asegúrate de tener la imagen 'fondo.jpg' o cambia esto */
    background-image: linear-gradient(rgba(15, 23, 42, 0.5), rgba(15, 23, 42, 0.5)), url('fondo.jpg');
    background-size: cover;       
    background-position: center;  
    background-attachment: fixed; 
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero h1 {
    color: white;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    max-width: 900px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    color: #e5e7eb;
    font-size: 1.1rem;
    max-width: 700px;
    margin-bottom: 40px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* BOTONES */
.btn-group {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 15px 30px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 1rem;
}

.btn-blue {
    background-color: var(--primary-blue);
    color: white;
    border: 1px solid var(--primary-blue);
}

.btn-blue:hover {
    background-color: #0284c7;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid white;
}

.btn-outline:hover {
    background-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* --- SECCIÓN DE CONTENIDO --- */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.content-left h2 {
    font-size: 2.5rem;
    color: var(--bg-dark);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 20px;
}

.content-left h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 5px;
    background-color: var(--primary-blue);
}

.content-left p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.benefits-card {
    background-color: var(--light-card);
    padding: 40px;
    border-radius: 12px;
}

.benefits-card h3 {
    margin-top: 0;
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 25px;
    font-size: 1rem;
    color: var(--text-gray);
}

.benefits-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-blue);
    font-weight: bold;
    font-size: 1.2rem;
}

.benefits-list strong {
    color: var(--text-dark);
}

/* FOOTER */
footer {
    background-color: var(--bg-dark);
    color: #9ca3af;
    text-align: center;
    padding: 40px;
    margin-top: auto;
}

/* --- ESTILOS DE FORMULARIO --- */
.container {
    padding: 40px 20px;
    width: 100%;
}

.container h1 { text-align: center; margin-top: 20px; }
.container > p { text-align: center; margin-bottom: 30px; }

/* Caja Formulario */
.caja-formulario, .form-box {
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    max-width: 800px;
    margin: 0 auto;
    border-top: 5px solid var(--primary-blue);
    width: 100%;
}

form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    text-align: left;
    font-size: 0.95rem;
}

form input, form select, form textarea, .input-estilo {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 25px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 1rem;
    background-color: #f9fafb;
    transition: all 0.3s;
}

form input:focus, form select:focus, form textarea:focus {
    outline: none;
    background-color: white;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.fila-fija { display: flex; gap: 20px; margin-bottom: 15px; }
.columna-fija { flex: 1; }

/* Estilos Vuelta */
.contenedor-vuelta {
    background-color: #f8f9fa; 
    padding: 15px; 
    border-radius: 5px; 
    display: flex; 
    align-items: center; 
    justify-content: flex-start; 
    gap: 30px; 
    flex-wrap: wrap; 
    margin-bottom: 15px;
}
.grupo-radios { display: flex; align-items: center; gap: 20px; }
.radio-inline { display: flex; align-items: center; gap: 5px; cursor: pointer; margin: 0; white-space: nowrap; }

button[type="submit"] {
    background-color: var(--primary-blue);
    color: white;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

/* --- ANIMACIONES --- */
@keyframes subirSuave {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero h1 { animation: subirSuave 1s ease-out forwards; }
.hero p { animation: subirSuave 1s ease-out forwards; animation-delay: 0.3s; opacity: 0; }
.btn-group { animation: subirSuave 1s ease-out forwards; animation-delay: 0.6s; opacity: 0; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--bg-dark); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-blue); }


/* --- WIDGET DE WHATSAPP (TU CÓDIGO BONITO ORIGINAL) --- */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 10000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

.whatsapp-icon {
    width: 35px;
    height: 35px;
    fill: white;
}

.chat-box {
    display: none;
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 300px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    z-index: 9999;
    overflow: hidden;
    font-family: -apple-system, sans-serif;
    animation: aparecer 0.3s ease;
}

@keyframes aparecer {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-header {
    background-color: #075e54;
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-header h4 { margin: 0; font-size: 16px; }
.chat-header p { margin: 0; font-size: 12px; opacity: 0.8; }

.chat-body {
    background-color: #e5ddd5;
    padding: 20px;
    height: 150px;
}

.message-received {
    background-color: white;
    padding: 10px;
    border-radius: 0 10px 10px 10px;
    font-size: 14px;
    max-width: 80%;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
    color: #333;
}

.chat-footer {
    padding: 10px;
    background-color: #f0f0f0;
    display: flex;
    gap: 10px;
}

.chat-footer input {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 20px;
    margin: 0;
}

.send-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #075e54;
    font-weight: bold;
}


/* ==========================================================================
   VERSIÓN MÓVIL - AQUÍ ESTÁN LOS ARREGLOS SIN ROMPER LO BONITO
   ========================================================================== */
@media (max-width: 768px) {
    
    /* 1. HEADER VERTICAL */
    header {
        flex-direction: column;
        padding: 15px 10px;
        gap: 15px;
        position: relative;
    }

    /* MENÚ VERTICAL */
    nav {
        position: static;
        transform: none;
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    nav a {
        display: block;
        width: 100%;
        text-align: center;
        background-color: rgba(255, 255, 255, 0.05);
        padding: 12px;
        border-radius: 8px;
    }

    .lang-switch {
        margin: 0;
        background-color: var(--primary-blue);
        border: none;
    }

    /* 2. HERO */
    .hero {
        padding-top: 30px;
        padding-bottom: 40px;
        height: auto;
        min-height: 100vh;
    }
    .hero h1 { font-size: 2.2rem; }
    .btn-group { flex-direction: column; width: 100%; }
    .btn { width: 100%; text-align: center; }

    /* 3. SECCIONES */
    .section-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 15px;
    }
    
    /* 4. FORMULARIO SEGURO EN MÓVIL */
    .container { padding: 10px; }
    
    .caja-formulario, .form-box { 
        padding: 20px 15px !important; 
        width: 100%; 
    }

    .fila-fija { flex-direction: column; gap: 15px; }

    /* Arreglo Vuelta */
    .contenedor-vuelta { 
        flex-direction: column !important; 
        align-items: flex-start !important; 
        gap: 10px; 
    }
    .contenedor-vuelta span { 
        width: 100%; 
        border-bottom: 1px solid #eee; 
        padding-bottom: 5px; 
        margin-bottom: 5px; 
    }
    .grupo-radios { 
        flex-direction: column !important; 
        align-items: flex-start !important; 
        width: 100%; 
        gap: 12px; 
    }
    .radio-inline { width: 100%; padding: 5px 0; }

    /* 5. WHATSAPP EN MÓVIL */
    .whatsapp-btn { bottom: 20px; right: 20px; }
    .chat-box { width: 90%; left: 5%; right: 5%; bottom: 90px; }
}
/* --- CORRECCIÓN PARA LOS BOTONES DE SÍ/NO --- */

/* 1. Evitamos que el circulito se estire al 100% */
form input[type="radio"] {
    width: auto !important;       /* Tamaño natural */
    height: auto !important;      /* Altura natural */
    margin-bottom: 0 !important;  /* Quitamos el margen gigante de abajo */
    margin-right: 8px;            /* Espacio entre el círculo y el texto */
    box-shadow: none !important;  /* Quitamos sombras raras si las hubiera */
}

/* 2. Aseguramos que la etiqueta (label) alinee todo a la izquierda */
.radio-inline {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important; /* Alineación a la izquierda */
    width: auto !important;       /* Que la etiqueta no ocupe toda la fila obligatoriamente */
    margin-right: 15px;           /* Separación entre opciones */
}

/* 3. Ajuste extra para móviles para que no se amontonen */
@media (max-width: 768px) {
    .contenedor-vuelta {
        align-items: flex-start !important; /* Alinear al inicio */
    }
    
    .grupo-radios {
        display: flex;
        flex-direction: column; /* Uno debajo del otro en móvil */
        gap: 10px;
    }
}