
/* ===== CONFIGURACIÓN GENERAL ===== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #f4f4f4;
    color: #222;
}


/* ===== ENCABEZADO ===== */

header {
    background-color: #1e293b;
    color: white;

    display: flex;
    align-items: center;

    padding: 20px 8%;
}


/* Espacio para el logo */

.logo {
    width: 150px;
    height: 150px;

    margin-right: 20px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    max-width: 200px;
    max-height: 200px;
}


/* Título */

.titulo h1 {
    margin: 0;
    font-size: 36px;
}

.titulo p {
    margin: 5px 0 0;
}


/* ===== MENÚ ===== */

nav {
    background-color: #0f172a;

    display: flex;
    justify-content: center;

    gap: 30px;

    padding: 15px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    color: #38bdf8;
}


/* ===== PRESENTACIÓN ===== */

.inicio {
    min-height: 400px;

    display: flex;
    align-items: center;

    gap: 40px;

    padding: 60px 8%;

    background-color: white;
}

.texto-inicio {
    flex: 1;
}

.texto-inicio h2 {
    font-size: 40px;
    margin-top: 0;
}

.texto-inicio p {
    font-size: 18px;
    line-height: 1.6;
}


/* Imagen principal */

.imagen-inicio {
    flex: 1;

    height: 300px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.imagen-inicio img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 10px;
}


/* ===== BOTONES ===== */

button {
    background-color: #2563eb;
    color: white;

    border: none;
    border-radius: 5px;

    padding: 12px 22px;

    font-size: 15px;

    cursor: pointer;
}

button:hover {
    background-color: #1d4ed8;
}


/* ===== TÍTULOS ===== */

.titulo-seccion {
    text-align: center;

    font-size: 30px;

    margin-bottom: 35px;
}


/* ===== VEHÍCULOS ===== */

#vehiculos {
    padding: 60px 8%;
}

.vehiculos {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 25px;
}


/* Tarjeta */

.vehiculo {
    background-color: white;

    border-radius: 10px;

    overflow: hidden;

    padding-bottom: 20px;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);

    text-align: center;
}

.vehiculo img {
    width: 100%;
    height: 180px;

    object-fit: cover;
}

.vehiculo h3 {
    font-size: 22px;

    margin: 18px 10px 10px;
}

.vehiculo p {
    padding: 0 15px;

    line-height: 1.5;
}

.precio {
    color: #2563eb;

    font-weight: bold;

    font-size: 18px;
}


/* ===== SERVICIOS ===== */

.servicios {
    background-color: #e2e8f0;

    padding: 60px 8%;
}

.servicios-contenedor {
    display: flex;

    justify-content: center;

    gap: 30px;
}

.servicio {
    background-color: white;

    padding: 25px;

    border-radius: 10px;

    flex: 1;

    text-align: center;
}

.servicio h3 {
    margin-top: 0;
}


/* ===== CONTACTO ===== */

.contacto {
    background-color: white;

    text-align: center;

    padding: 60px 20px;
}

.contacto h2 {
    font-size: 30px;
}


/* ===== PIE DE PÁGINA ===== */

footer {
    background-color: #0f172a;

    color: white;

    text-align: center;

    padding: 20px;
}


/* ===== RESPONSIVE ===== */

/* Tablets */

@media (max-width: 900px) {

    .vehiculos {
        grid-template-columns: repeat(2, 1fr);
    }

    .inicio {
        flex-direction: column;
    }

    .imagen-inicio {
        width: 100%;
    }

}


/* Celulares */

@media (max-width: 600px) {

    header {
        flex-direction: column;

        text-align: center;
    }

    .logo {
        margin-right: 0;
        margin-bottom: 10px;
    }

    nav {
        flex-wrap: wrap;
    }

    .vehiculos {
        grid-template-columns: 1fr;
    }

    .servicios-contenedor {
        flex-direction: column;
    }

    .texto-inicio h2 {
        font-size: 30px;
    }

}

/* ===== BOTÓN Y MODAL DE INICIO DE SESIÓN ===== */

.btn-login-nav {
    background-color: #2563eb;
    padding: 6px 14px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.btn-login-nav:hover {
    background-color: #1d4ed8 !important;
    color: white !important;
}

/* Fondo oscuro superpuesto (Modal) */
.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

/* Mostrar modal cuando se presione el enlace (#modal-login) */
.modal-container:target {
    opacity: 1;
    pointer-events: auto;
}

/* Caja de contenido del Login */
.modal-contenido {
    background-color: white;
    padding: 35px 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    text-align: left;
}

.modal-contenido h2 {
    margin-top: 0;
    color: #0f172a;
}

/* Botón cerrar (X) */
.modal-cerrar {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    text-decoration: none;
    color: #64748b;
    font-weight: bold;
}

.modal-cerrar:hover {
    color: #0f172a;
}

/* Campos del Formulario de Login */
.form-login .campo {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.form-login label {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #334155;
}

.form-login input {
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    font-size: 14px;
}

.form-login input:focus {
    outline: none;
    border-color: #2563eb;
}

.btn-submit-login {
    width: 100%;
    margin-top: 10px;
}

.nota-academica {
    font-size: 11px;
    color: #64748b;
    margin-top: 15px;
    text-align: center;
}

/* ===== TABLA DE ESPECIFICACIONES TÉCNICAS (catalogo.html) ===== */

.contenedor-especificaciones {
    padding: 40px 8%;
    background-color: white;
    margin-top: 40px;
}

.tabla-scroll {
    overflow-x: auto;
    margin-top: 20px;
}

.tabla-vehiculos {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    text-align: center;
    background-color: white;
}

.tabla-vehiculos th, 
.tabla-vehiculos td {
    padding: 14px 18px;
    border: 1px solid #cbd5e1;
}

.tabla-vehiculos thead {
    background-color: #0f172a;
    color: white;
}

.tabla-vehiculos th {
    font-size: 16px;
    font-weight: bold;
}

/* Filas alternadas (efecto cebra) */
.tabla-vehiculos tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.tabla-vehiculos tbody tr:hover {
    background-color: #e2e8f0;
}

/* Ajustes de botones dentro de la grilla */
.vehiculo a {
    text-decoration: none;
}

.vehiculo button {
    width: 80%;
    margin-top: 10px;
}

/* ===== PÁGINA DE RESERVA Y PAGOS (reserva.html) ===== */

.contenedor-reserva {
    display: flex;
    gap: 30px;
    padding: 50px 8%;
    background-color: #f8fafc;
}

.seccion-form-reserva {
    flex: 2;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.seccion-pago-whatsapp {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.caja-metodo-pago {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border-left: 5px solid #2563eb;
}

.caja-metodo-pago h4 {
    margin-top: 0;
    color: #0f172a;
    font-size: 16px;
}

.numero-destacado {
    font-size: 22px;
    font-weight: bold;
    color: #16a34a; /* Verde WhatsApp */
    margin: 10px 0;
}

.btn-whatsapp {
    display: block;
    text-align: center;
    background-color: #16a34a;
    color: white !important;
    text-decoration: none;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-whatsapp:hover {
    background-color: #15803d;
}

.lista-banco {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
    font-size: 14px;
    line-height: 1.8;
}

.alerta-pago {
    border-left-color: #eab308;
    background-color: #fefce8;
    font-size: 12px;
    color: #854d0e;
}

/* Campos de Formulario Responsivos */
.campo-doble {
    display: flex;
    gap: 15px;
}

.campo-doble .campo-grupo {
    flex: 1;
}

.btn-submit-reserva {
    width: 100%;
    margin-top: 15px;
    background-color: #2563eb;
    padding: 14px;
    font-size: 16px;
    font-weight: bold;
}

.btn-submit-reserva:hover {
    background-color: #1d4ed8;
}

/* Responsive para Celulares */
@media (max-width: 850px) {
    .contenedor-reserva {
        flex-direction: column;
    }

    .campo-doble {
        flex-direction: column;
    }
}

/* ===== PÁGINA DE SERVICIOS Y CHECKLIST (servicios-autorent.html) ===== */

.contenedor-requisitos {
    padding: 50px 8%;
    background-color: white;
}

.lista-requisitos {
    list-style: none;
    padding: 0;
    margin-top: 25px;
}

.lista-requisitos li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.6;
}

.lista-requisitos li::before {
    content: "✔️";
    position: absolute;
    left: 0;
    top: 0;
}

/* ===== PÁGINA DE CONTACTO (contacto-autorent.html) ===== */

.contenedor-contacto-pagina {
    display: flex;
    gap: 30px;
    padding: 50px 8%;
    background-color: #f8fafc;
}

.seccion-form-contacto {
    flex: 2;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.info-contacto-lateral {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-contacto-directo {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

/* Responsive para Pantallas Pequeñas */
@media (max-width: 850px) {
    .contenedor-contacto-pagina {
        flex-direction: column;
    }
}