/*
 * Archivo: styles.css
 * PALETA DE COLORES AUTOEROTICAR:
 * - Fondo Principal/Oscuro: #1A1A1A
 * - Énfasis/Botones/Hover (Rojo Oscuro): #A52A2A
 * - Texto Principal: #FFFFFF
 * - Énfasis Secundario/Títulos: #D44A4A (Rojo más brillante)
 */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Montserrat:ital,wght@0,100..900;1,100..900;1,100..900&display=swap');


/* --- ESTILOS GENERALES Y FUENTES --- */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1A1A1A; /* FONDO PRINCIPAL GRIS OSCURO */
    color: #FFFFFF; /* Texto predeterminado BLANCO */
}

/* Fuente de estilo HANSON/Bebas Neue para TÍTULOS */
h1, h2 {
    font-family: 'Bebas Neue', sans-serif;
    color: #D44A4A; /* Rojo de Énfasis Secundario para títulos */
    letter-spacing: 2px;
}

/* Contenedor principal que centra el contenido */
.content-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}


/* --- ENCABEZADO Y NAVEGACIÓN --- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    /* Borde Rojo de Énfasis */
    border-bottom: 2px solid #A52A2A;
    background-color: #1A1A1A;
}

.title {
    font-family: 'Bebas Neue', sans-serif; /* Usando Bebas para el título principal */
    margin: 0;
    font-size: 2.8em;
    color: #FFFFFF; /* Título principal Blanco */
    letter-spacing: 4px; /* Mayor impacto */
}

.slogan {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    font-size: 0.9em;
    color: #D44A4A; /* Rojo más brillante para el eslogan */
    font-weight: 500;
}

.icon-placeholder {
    width: 200px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 60px;
    color: #FFFFFF; /* Icono Blanco */
}

.navbar {
    display: flex;
    justify-content: flex-start;
    border-bottom: 1px solid #333; /* Borde sutil oscuro */
    background-color: #1A1A1A;
}

.nav-item {
    font-family: 'Bebas Neue', sans-serif; /* Usando Bebas para los items de navegación */
    padding: 10px 20px;
    text-decoration: none;
    color: #FFFFFF; /* Texto BLANCO */
    border-right: 1px solid #333; /* Separador sutil */
    transition: background-color 0.3s;
    font-weight: 400;
    letter-spacing: 1px;
}

    .nav-item:hover {
        background-color: #A52A2A; /* Rojo de Énfasis al pasar el mouse */
        color: #FFFFFF; /* Texto BLANCO en hover (aunque ya es blanco, asegura consistencia) */
    }


/* ----------------------------------------------------- */
/* ESTILOS PARA INDEX.HTML (TEXTO E IMAGEN) */
/* ----------------------------------------------------- */

.text-section {
    flex: 1;
    padding-top: 20px;
}

.main-text {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.7;
    text-align: left;
    font-weight: 300;
}

.hero-section {
    flex: 2;
}

/* MEJORA DE ELEGANCIA: Efecto sutil en la imagen principal */
.placeholder-img.hero {
    width: 100%;
    height: 400px;
    border: 2px solid #A52A2A; /* Borde Rojo de Énfasis */
    background-color: #222;
    object-fit: cover;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

    .placeholder-img.hero:hover {
        transform: scale(1.01);
        /* Sombra brillante con el color de énfasis */
        box-shadow: 0 0 20px rgba(165, 42, 42, 0.7);
    }


/* ----------------------------------------------------- */
/* ESTILOS PARA PLACEHOLDERS DE IMAGEN (IMG) */
/* ----------------------------------------------------- */

.placeholder-img {
    width: 100%;
    border: 1px solid #333; /* Borde oscuro sutil */
    background-color: #222;
    object-fit: cover;
    /* Estilo por defecto para imágenes de catálogo */
    border-radius: 4px;
}

    .placeholder-img.small {
        height: 150px;
        margin-bottom: 10px;
    }

    .placeholder-img.large {
        display: block;
        width: 100%;
        height: auto;
        max-height: 450px;
        object-fit: cover;
        margin-bottom: 30px;
        border: 2px solid #A52A2A; /* Borde Rojo de Énfasis */
    }


/* ----------------------------------------------------- */
/* ESTILOS ESPECÍFICOS PARA PÁGINA AUTOS (GRID) */
/* ----------------------------------------------------- */
.cars-grid {
    display: grid;
    /* Responsive grid: 1 columna en móvil, 2 en tablet, 3 en desktop */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.car-card {
    text-align: center;
    border: 1px solid #333;
    padding: 15px; /* Más padding */
    background-color: #111; /* Fondo ligeramente más oscuro que el body */
    border-radius: 8px; /* Bordes redondeados */
    transition: box-shadow 0.3s, border-color 0.3s;
}

    .car-card:hover {
        /* Énfasis al pasar el mouse */
        border-color: #A52A2A;
        box-shadow: 0 0 15px rgba(165, 42, 42, 0.5);
    }

.car-link-image {
    display: block;
    text-decoration: none;
}

.car-name {
    font-family: 'Bebas Neue', sans-serif;
    margin: 10px 0 0 0;
    font-weight: 400;
    font-size: 1.6em; /* Un poco más grande */
    letter-spacing: 2px;
    color: #FFFFFF; /* Nombre en blanco */
    transition: color 0.3s;
}

.car-card:hover .car-name {
    color: #D44A4A; /* Nombre en Rojo Secundario al pasar el mouse */
}


/* ----------------------------------------------------- */
/* ESTILOS ESPECÍFICOS PARA PÁGINA ESPECIFICACIONES */
/* ----------------------------------------------------- */

.details-section-new {
    width: 100%;
    margin-bottom: 30px;
}

.cita-button-container {
    text-align: center;
    padding: 20px;
}

/* --- ESTILO CTA BUTTON: ROJO DE ÉNFASIS BRILLANTE --- */
.cta-button {
    font-family: 'Bebas Neue', sans-serif; /* Usando Bebas para el CTA */
    display: inline-block;
    padding: 15px 30px;
    background-color: #A52A2A; /* Rojo de Énfasis */
    color: #FFFFFF; /* Texto BLANCO para alto contraste */
    text-decoration: none;
    font-size: 1.5em; /* Más grande */
    border-radius: 8px;
    transition: background-color 0.3s, transform 0.1s, box-shadow 0.3s;
    font-weight: 400;
    letter-spacing: 2px;
    /* Sombra con el color más brillante */
    box-shadow: 0 4px 15px rgba(212, 74, 74, 0.6);
    border: 1px solid #D44A4A;
}

    .cta-button:hover {
        background-color: #D44A4A; /* Rojo Secundario/Brillante al pasar el mouse */
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(212, 74, 74, 0.9);
    }


/* ----------------------------------------------------- */
/* ESTILOS PARA TABLAS DE ESPECIFICACIONES */
/* ----------------------------------------------------- */

.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

    .spec-table th, .spec-table td {
        /* Bordes sutiles */
        border: 1px solid #333;
        padding: 12px;
        text-align: left;
        font-family: 'Montserrat', sans-serif;
    }

    /* Encabezado de tabla */
    .spec-table th {
        background-color: #A52A2A; /* Rojo de Énfasis */
        color: white;
        font-size: 1.2em;
        text-align: center;
        font-family: 'Bebas Neue', sans-serif;
        letter-spacing: 1px;
    }

    /* Filas impares (alternando colores para mejor lectura) */
    .spec-table tbody tr:nth-child(odd) {
        background-color: #1A1A1A;
    }

    /* Filas pares (ligeramente más claras) */
    .spec-table tbody tr:nth-child(even) {
        background-color: #222;
    }

    .spec-table tbody tr:hover {
        background-color: #333;
    }

    .spec-table tbody td:first-child {
        font-weight: bold;
        color: #D44A4A; /* Énfasis en los nombres de las especificaciones */
        width: 45%;
    }


/* ----------------------------------------------------- */
/* ESTILOS PARA FORMULARIO (cita.html) */
/* ----------------------------------------------------- */

.appointment-form {
    background-color: #111;
    padding: 30px;
    border-radius: 8px;
    /* Sombra roja para darle un toque dramático */
    box-shadow: 0 4px 15px rgba(165, 42, 42, 0.8);
}

    .appointment-form fieldset {
        border: 1px solid #A52A2A; /* Borde de Énfasis Rojo */
        padding: 20px;
        margin-bottom: 25px;
        border-radius: 5px;
    }

    /* Leyenda de formulario con estilo Bebas Neue y color rojo brillante */
    .appointment-form legend {
        font-family: 'Bebas Neue', sans-serif;
        font-size: 1.8em;
        font-weight: 400;
        color: #D44A4A;
        padding: 0 10px;
        letter-spacing: 1px;
    }

    .appointment-form label {
        font-family: 'Montserrat', sans-serif;
        display: block;
        margin-top: 15px;
        margin-bottom: 5px;
        font-weight: 600;
        color: #ccc;
    }

    .appointment-form input[type="text"],
    .appointment-form input[type="email"],
    .appointment-form input[type="tel"],
    .appointment-form input[type="date"],
    .appointment-form input[type="time"],
    .appointment-form textarea {
        font-family: 'Montserrat', sans-serif;
        width: 100%;
        padding: 12px;
        border: 1px solid #333;
        border-radius: 4px;
        box-sizing: border-box;
        background-color: #222; /* Fondo del input oscuro */
        color: #fff;
    }

/* Botón ENVIAR (submit-button) usando el estilo CTA */
.submit-button {
    font-family: 'Bebas Neue', sans-serif;
    width: 100%;
    padding: 15px;
    background-color: #A52A2A;
    color: #FFFFFF; /* Texto BLANCO */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.5em;
    margin-top: 30px;
    transition: background-color 0.3s, box-shadow 0.3s;
    font-weight: 400;
    letter-spacing: 2px;
    box-shadow: 0 4px 15px rgba(212, 74, 74, 0.6);
}

    .submit-button:hover {
        background-color: #D44A4A;
        box-shadow: 0 6px 20px rgba(212, 74, 74, 0.9);
    }

/* Estilos de layout para la tabla del formulario (mejorado para evitar layout shifts) */
.form-layout-table {
    width: 100%;
    border-collapse: collapse;
    border: none;
}

    .form-layout-table td {
        padding: 10px 0;
        border: none;
    }

/* Para dispositivos más grandes, alinea las etiquetas a la derecha */
@media (min-width: 600px) {
    .form-layout-table td:first-child {
        width: 35%;
        padding-right: 20px;
        text-align: right;
        font-weight: 600;
    }

    .form-layout-table td:last-child {
        width: 65%;
    }
}

.appointment-form input[type="date"],
.appointment-form input[type="time"] {
    display: inline-block;
    width: 48%;
    margin-right: 4%;
}
