:root {
    --red: #d60f0f;
    --dark-bg: #111111;
    --card-bg: #1c1c1c;
    --text-light: #ffffff;
    --text-gray: #b3b3b3;
    --border-subtle: #282828;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
}

body { 
    background-color: var(--dark-bg); 
    color: var(--text-light); 
    line-height: 1.6; 
}

header { 
    background-color: #000000; 
    text-align: center; 
}

.banner-img { 
    max-width: 100%; 
    height: auto; 
    display: block; 
    margin: 0 auto; 
}

/* MENÚ DE NAVEGACIÓN */
.navbar { 
    background-color: #0d0d0d; 
    border-top: 2px solid var(--red); 
    border-bottom: 2px solid var(--red); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
}

.nav-container { 
    max-width: 1100px; 
    margin: 0 auto; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    list-style: none; 
    flex-wrap: wrap; 
}

.nav-container li a { 
    display: block; 
    padding: 15px 20px; 
    color: var(--text-light); 
    text-decoration: none; 
    font-weight: bold; 
    font-size: 0.95rem; 
    text-transform: uppercase; 
    transition: 0.3s; 
}

.nav-container li a:hover, 
.nav-container li a.active { 
    background-color: var(--red); 
}

.btn-nav-cita { 
    background-color: var(--red); 
    border-radius: 4px; 
    margin: 5px; 
}

/* HERO BANNER */
.hero { 
    background: #161616; 
    padding: 50px 20px; 
    text-align: center; 
    border-bottom: 1px solid var(--border-subtle); 
}

.hero h1 { 
    font-size: 2.2rem; 
    color: #fff; 
    margin-bottom: 10px; 
}

.hero h1 span { 
    color: var(--red); 
}

.hero p { 
    font-size: 1.1rem; 
    color: var(--text-gray); 
    max-width: 700px; 
    margin: 0 auto 25px auto; 
}

.cta-buttons { 
    display: flex; 
    gap: 15px; 
    justify-content: center; 
    flex-wrap: wrap; 
}

.btn-primary { 
    background-color: var(--red); 
    color: white; 
    padding: 12px 25px; 
    border-radius: 4px; 
    text-decoration: none; 
    font-weight: bold; 
    transition: 0.3s; 
}

.btn-primary:hover { 
    background-color: #b00c0c; 
}

.btn-whatsapp-hero { 
    background-color: #25d366; 
    color: white; 
    padding: 12px 25px; 
    border-radius: 4px; 
    text-decoration: none; 
    font-weight: bold; 
    transition: 0.3s; 
}

/* CONTENEDOR GENERAL */
.container { 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 40px 20px; 
}

/* SECCIÓN VENTAJAS (GRID 3 COLUMNAS) */
.grid-3 { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 20px; 
    margin-bottom: 35px; 
}

.feature-card { 
    background-color: var(--card-bg); 
    padding: 25px; 
    border-radius: 8px; 
    border-top: 3px solid var(--red); 
    text-align: center; 
}

.feature-icon { 
    font-size: 2.5rem; 
    margin-bottom: 10px; 
    display: block; 
}

.feature-card h3 { 
    margin-bottom: 10px; 
    color: var(--text-light); 
}

.feature-card p { 
    color: var(--text-gray); 
    font-size: 0.9rem; 
}

/* BANNER DE COMPAÑÍAS DE SEGURO */
.insurance-box {
    background-color: #171717;
    border: 1px solid #333333;
    border-radius: 10px;
    padding: 25px 20px;
    text-align: center;
    margin-bottom: 50px;
}

.insurance-box h3 {
    color: var(--red);
    font-size: 1.15rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.insurance-box p {
    color: var(--text-gray);
    font-size: 0.95rem;
    max-width: 800px;
    margin: 0 auto;
}

/* SERVICIOS Y CONTACTO (GRID 2 COLUMNAS) */
.services-section h2 { 
    color: var(--red); 
    text-align: center; 
    margin-bottom: 30px; 
    font-size: 1.8rem; 
}

.grid-2 { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 20px; 
    margin-bottom: 50px; 
}

.card { 
    background-color: var(--card-bg); 
    padding: 25px; 
    border-radius: 8px; 
    border-left: 4px solid var(--red); 
}

.card h3 { 
    color: var(--text-light); 
    margin-bottom: 15px; 
}

.card ul { 
    list-style: none; 
}

.card ul li { 
    padding: 6px 0; 
    border-bottom: 1px solid var(--border-subtle); 
    color: var(--text-gray); 
}

.card ul li::before { 
    content: "✓ "; 
    color: var(--red); 
    font-weight: bold; 
}

/* BOTÓN FLOTANTE WHATSAPP */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s;
}

.whatsapp-float:hover { 
    transform: scale(1.1); 
}

footer { 
    text-align: center; 
    padding: 20px; 
    background-color: #000; 
    font-size: 0.9rem; 
    color: var(--text-gray); 
}

/* ==========================================
   ADAPTACIÓN RESPONSIVA (MÓVILES Y TABLETS)
   ========================================== */
@media (max-width: 768px) {
    /* Navegación vertical en pantallas pequeñas */
    .nav-container {
        flex-direction: column;
        width: 100%;
    }

    .nav-container li {
        width: 100%;
        text-align: center;
    }

    .nav-container li a {
        padding: 12px 10px;
        border-bottom: 1px solid #222;
    }

    .btn-nav-cita {
        margin: 0;
        border-radius: 0;
    }

    /* Ajustes del Hero Banner */
    .hero {
        padding: 30px 15px;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary, 
    .btn-whatsapp-hero {
        width: 100%;
        text-align: center;
    }

    /* Contenedor y rejillas */
    .container {
        padding: 25px 15px;
    }

    .grid-3, 
    .grid-2 {
        grid-template-columns: 1fr;
    }

    /* Botón flotante de WhatsApp */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 15px;
        right: 15px;
    }
}