/*
========================================
 FIX: FORZAR ORDEN VERTICAL
========================================
*/
/* Esta regla asegura que TODAS tus secciones principales se apilen 
verticalmente y ocupen el 100% del ancho.
*/
section#inicio,
main.hero-section,



/*
========================================
 RESET BÁSICO Y SCROLL SUAVE
========================================
*/
html {
    scroll-behavior: smooth;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    font-family: 'Roboto', sans-serif;
    background-color: #f4f4f4;
}

/*
========================================
 ESTILOS DEL HEADER (Barra superior fija)
========================================
*/
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 100;
    box-sizing: border-box;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.flag-icon {
    height: 25px;
    border-radius: 3px;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.nav-button {
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    border: 2px solid white;
    padding: 6px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-button:hover {
    background-color: white;
    color: black;
}
/*
========================================
 ESTILOS HERO (BASE - ¡SIN IMAGEN!)
========================================
*/


/*
========================================
 ESTILOS HERO (BASE)
========================================
*/
.hero-section {
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative; 
}

/* ¡BLOQUE ACTUALIZADO!
   Este es el código que usa "Tasación", 
   ahora copiado para las secciones de arriba.
*/
.hero-content {
    
    text-align: center;
    background-color: rgba(0, 0, 0, 0.6); /* Color 0.6 (igual a Tasación) */
    padding: 40px;
    border-radius: 10px;
    color: white; 
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
}
/*
========================================
 ESTILOS DE IMÁGENES HERO SEPARADAS
========================================
*/

/* Imagen para la nueva sección Comparador */
.hero-comparador {
    /* !!! CAMBIA ESTO por tu nueva imagen de fondo (KIA) !!! */
    background-image: url('images/kia.jpg');
}

/* Imagen para la sección Asesoría */
.hero-asesoria {
    /* !!! Pega aquí la imagen del Toyota !!! */
    background-image: url('images/toyota-rav4-gr-sport.jpg');
}

/*
========================================
 ESTILOS INPUTS DEL COMPARADOR
========================================
*/
.comparador-inputs {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
    
    /* === ¡AQUÍ ESTÁ EL ARREGLO! === */
    margin-bottom: 25px; /* Antes era 10px */
    /* ============================== */
}

.comparador-inputs input[type="text"] {
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    box-sizing: border-box;
}

.comparador-inputs input[type="text"]::placeholder {
    color: #888;
}

/*
========================================
 ESTILOS DE BOTONES
========================================
*/
.button {
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
}

.button:hover {
    background-color: white;
    color: black;
    transform: scale(1.05);
}

.button-hero {
    margin-top: 100px
    
}

/*
========================================
 ESTILOS SECCIÓN "OBJETIVO" (Franja Blanca)
========================================
*/
#objetivo-section {
    padding: 60px 20px;
    text-align: center;
    background-color: #f9f9f9;
}

#objetivo-section h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 50px;
}

.objetivo-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1400px; /* Aumentado para 4 tarjetas */
    margin: 0 auto;
}

.objetivo-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    padding: 20px;
    width: 300px;
    box-sizing: border-box;
    transition: transform 0.3s ease;
}

.objetivo-card:hover {
    transform: translateY(-5px);
}

.objetivo-card img {
    width: 100%;
    max-width: 180px; /* Tamaño máximo */
    height: 150px; /* Altura fija para alinear */
    object-fit: contain; /* Asegura que la imagen quepa (¡El fix para tu foto!) */
    margin-bottom: 20px;
}

.objetivo-card h3 {
    font-size: 1.2rem;
    color: #444;
    min-height: 60px;
}

/*
========================================
 ESTILOS SECCIÓN TASACIÓN (Estilo Hero)
========================================
*/
#tasacion-section {
    padding: 150px 20px; 
    box-sizing: border-box;
    
    /* !!! CAMBIA ESTO por tu imagen de fondo de tasación !!! */
    background-image: url('images/mitsu.avif'); 
    
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    
    display: flex;
    justify-content: center;
    align-items: center;
}

.tasacion-content {
    max-width: 800px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.6); 
    padding: 40px;
    border-radius: 10px;
    color: white; 
}

.tasacion-content h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.tasacion-content p {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/*
========================================
 ESTILOS DE MODAL (POP-UP)
========================================
*/
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 200; 
}

.modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.form-container {
    background-color: white;
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    position: relative; 
    text-align: left;
    
    transform: scale(0.9);
    transition: transform 0.3s ease;

    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.visible .form-container {
    transform: scale(1);
}

.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
}

.close-button:hover {
    color: #333;
}

/*
========================================
 ESTILOS DE FORMULARIO INTERNO
========================================
*/
.form-container h1 {
    color: #333;
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 25px;
    text-align: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 700;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-group select {
    appearance: none;
    background-color: #f8f8f8;
    cursor: pointer;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-container button[type="submit"] {
    background-color: #007bff;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.form-container button[type="submit"]:hover {
    background-color: #0056b3;
}

#auto-actual-group {
    display: none;
}

/* === ¡AQUÍ ESTÁ EL ARREGLO DE CENTRADO DEFINITIVO! === */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;

    /* La caja ocupa todo el ancho */
    width: 100%;
    box-sizing: border-box; /* Para que el padding no rompa el ancho */
    
    /* Centra los items (las 'labels') dentro de la caja */
    align-items: center; 
}

.checkbox-group label {
    font-weight: 400;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

/*
========================================
 ESTILOS MODAL DE RESULTADO IA
========================================
*/
#resultado-contenido {
    text-align: left;
    max-height: 60vh;
    overflow-y: auto;
}

#resultado-contenido table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 0.9rem;
}

#resultado-contenido th,
#resultado-contenido td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

#resultado-contenido th {
    background-color: #f2f2f2;
    color: #333;
    font-weight: bold;
}

#resultado-contenido tr:nth-child(even) {
    background-color: #f9f9f9;
}

/*
========================================
 ANIMACIÓN DE SCROLL SUAVE
========================================
*/
.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}
/*
========================================
 ESTILOS SECCIÓN "SOBRE MÍ" (FELIPE)
========================================
*/
#about-me {
    padding: 80px 30px;
    background-color: #ffffff; /* Fondo blanco */
}

.about-container {
    display: flex;
    align-items: center; /* Centra verticalmente */
    justify-content: center;
    gap: 50px; /* Espacio entre imágenes y texto */
    flex-wrap: wrap; /* Para que en móviles se apile */
    max-width: 1200px;
    margin: 0 auto;
}

.about-images {
    flex: 1; /* Ocupa 1 parte */
    max-width: 350px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-images img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.about-text {
    flex: 2; /* Ocupa 2 partes (más ancho) */
    max-width: 600px;
    text-align: left;
}

.about-text h2 {
    font-size: 2.5rem;
    color: #333;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 0;
}

.about-text p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
}

.contact-area {
    text-align: center;
    margin-top: 80px; /* Espacio después del "sobre mí" */
}

.contact-area img {
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.contact-area p {
    font-size: 1rem;
    color: #666;
    margin: 5px 0;
}

.contact-area p.email {
    font-weight: 700;
    color: #333;
}

/*
========================================
 ESTILOS DEL FOOTER (PIE DE PÁGINA)
========================================
*/
.main-footer {
    background-color: #2b2b2b; /* Un gris casi negro */
    color: #c0c0c0; /* Texto gris claro */
    padding: 40px 50px;
    
    display: flex;
    justify-content: space-between; /* ¡Clave! Uno a cada lado */
    align-items: center;
    flex-wrap: wrap; /* Para que se apile en móviles */
    gap: 20px;
}

.footer-left {
    flex: 1;
}

.footer-left h3 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 5px 0;
}

.footer-left p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-right p {
    margin: 0;
    font-size: 0.9rem;
}

.footer-right img {
    height: 60px;
    width: 60px;
    background-color: #ffffff; /* Fondo blanco para el logo */
    border-radius: 50%; /* Círculo perfecto */
}