:root {
    --red: #d60f0f;
    --red-hover: #b00c0c;
    --dark-bg: #111111;
    --card-bg: #1c1c1c;
    --text-light: #ffffff;
    --text-gray: #b3b3b3;
    --border-color: #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; 
}

/* ENCABEZADO Y BANNER */
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: background-color 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; 
}

/* CABECERA ESPECÍFICA DE LA PÁGINA SERVICIOS */
.page-header { 
    background: linear-gradient(180deg, #181818 0%, #111111 100%); 
    padding: 50px 20px; 
    text-align: center; 
    border-bottom: 1px solid var(--border-color); 
}

.page-header h1 { 
    font-size: 2.3rem; 
    color: var(--text-light); 
    margin-bottom: 10px; 
}

.page-header h1 span { 
    color: var(--red); 
}

.page-header p { 
    font-size: 1.1rem; 
    color: var(--text-gray); 
    max-width: 650px; 
    margin: 0 auto; 
}

/* CONTENEDOR GENERAL */
.container { 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 50px 20px; 
}

/* REJILLA DE SERVICIOS */
.services-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
}

/* TARJETAS DE SERVICIO */
.service-card { 
    background-color: var(--card-bg); 
    border-radius: 8px; 
    padding: 30px; 
    border-top: 4px solid var(--red); 
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    transition: transform 0.3s, box-shadow 0.3s; 
}

.service-card:hover { 
    transform: translateY(-6px); 
    box-shadow: 0 10px 20px rgba(214, 15, 15, 0.15); 
}

.service-header { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    margin-bottom: 15px; 
}

.service-icon { 
    font-size: 2.3rem; 
    background-color: #262626;
    padding: 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card h2 { 
    font-size: 1.35rem; 
    color: var(--text-light); 
}

.service-card p { 
    color: var(--text-gray); 
    font-size: 0.95rem; 
    margin-bottom: 20px; 
}

/* LISTA DE PUNTOS CLAVE DE CADA SERVICIO */
.service-card ul { 
    list-style: none; 
    margin-bottom: 25px; 
}

.service-card ul li { 
    padding: 8px 0; 
    color: var(--text-gray); 
    font-size: 0.9rem; 
    border-bottom: 1px solid var(--border-color); 
}

.service-card ul li::before { 
    content: "✓ "; 
    color: var(--red); 
    font-weight: bold; 
}

/* BOTÓN SECUNDARIO DE TARJETA */
.btn-card { 
    display: block; 
    text-align: center; 
    background-color: transparent; 
    border: 2px solid var(--red); 
    color: var(--text-light); 
    padding: 12px 20px; 
    border-radius: 4px; 
    text-decoration: none; 
    font-weight: bold; 
    transition: background-color 0.3s, color 0.3s; 
}

.btn-card:hover { 
    background-color: var(--red); 
    color: #ffffff; 
}

/* BLOQUE DE LLAMADA A LA ACCIÓN (CTA FINAL) */
.cta-box { 
    background-color: var(--card-bg); 
    border: 1px solid var(--border-color); 
    border-left: 4px solid var(--red);
    padding: 35px 25px; 
    border-radius: 8px; 
    text-align: center; 
    margin-top: 60px; 
}

.cta-box h3 { 
    font-size: 1.6rem; 
    margin-bottom: 12px; 
    color: var(--text-light);
}

.cta-box p { 
    color: var(--text-gray); 
    margin-bottom: 25px; 
    font-size: 1rem;
}

.btn-primary { 
    background-color: var(--red); 
    color: white; 
    padding: 14px 28px; 
    border-radius: 4px; 
    text-decoration: none; 
    font-weight: bold; 
    display: inline-block; 
    transition: background-color 0.3s; 
}

.btn-primary:hover { 
    background-color: var(--red-hover); 
}

/* 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); 
}

/* PIE DE PÁGINA */
footer { 
    text-align: center; 
    padding: 25px 20px; 
    background-color: #000; 
    font-size: 0.9rem; 
    color: var(--text-gray); 
    margin-top: 50px;
    border-top: 1px solid var(--border-color);
}

/* ==========================================
   ADAPTACIÓN RESPONSIVA (MÓVILES Y TABLETS)
   ========================================== */
@media (max-width: 768px) {
    .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;
    }

    .page-header {
        padding: 30px 15px;
    }

    .page-header h1 {
        font-size: 1.7rem;
    }

    .page-header p {
        font-size: 0.95rem;
    }

    .container {
        padding: 25px 15px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 20px;
    }

    .cta-box {
        padding: 25px 15px;
        margin-top: 40px;
    }

    .cta-box h3 {
        font-size: 1.3rem;
    }

    .btn-primary {
        width: 100%;
        text-align: center;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 15px;
        right: 15px;
    }
}