/* Importar la fuente Roboto de Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

/* Estilos generales del cuerpo de la página */
body {
    background-color: #121212;
    color: #e0e0e0;
    font-family: 'Roboto', sans-serif;
    margin: 0;
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Contenedor principal para centrar el contenido */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =============================================
   =        Estilos para Video de Fondo        =
   ============================================= */

/* 1. Preparamos el contenedor del video (header) */
.header {
    position: relative;
    overflow: hidden;
    background-color: #1e1e1e; /* Color de respaldo por si el video no carga */
    padding: 1rem 0;
    z-index: 10;
}

/* 2. Damos estilo al video para que ocupe todo el fondo */
#background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    /* ---- AJUSTE DE ZOOM ---- */
    /* Cambia este valor para ajustar el zoom. */
    /* Un número más grande (ej. 150%) lo acerca más. */
    /* Un número más pequeño (ej. 110%) lo aleja. */
    width: 108%; 
    height: auto;
    
    z-index: -1;
}
 

/* 3. Añadimos una capa oscura sobre el video para mejorar legibilidad */
.header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Negro con 50% de opacidad */
    z-index: 0; /* Se pone entre el video y el contenido */
}

/* 4. Aseguramos que el contenido del menú esté por encima de la capa oscura */
.navbar {
    position: relative;
    z-index: 1; /* Pone el menú y el logo al frente */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* =============================================
   =       Fin de Estilos de Video             =
   ============================================= */

.logo-link .logo {
    height: 100px;
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #FF7B00;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    color: #007BFF;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    font-weight: 700;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #FF7B00;
    margin: 10px auto 0;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #1e1e1e;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
}

.service-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}

.service-card h3 {
    color: #FF7B00;
    font-size: 1.5rem;
    margin-top: 0;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: background-color 0.3s, color 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: #007BFF;
    color: #fff;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-whatsapp {
    background-color: #25D366;
    color: #fff;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
}

.form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #1e1e1e;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

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

.form input, .form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #444;
    background-color: #2e2e2e;
    color: #fff;
    border-radius: 4px;
    box-sizing: border-box;
}

.form input:focus, .form textarea:focus {
    outline: none;
    border-color: #007BFF;
}

.footer {
    text-align: center;
    padding: 20px 0;
    background-color: #1e1e1e;
    border-top: 1px solid #333;
}

.whatsapp-qr-section {
    text-align: center;
    padding: 50px 0;
}

.qr-code-container {
    display: inline-block;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.qr-code-container img {
    display: block;
    max-width: 200px;
    height: auto;
}

/* =============================================
   =            Botones Flotantes            =
   ============================================= */
.whatsapp-float-btn {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25D366;
    border-radius: 50px;
    box-shadow: 2px 2px 3px #999;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s;
}

.whatsapp-float-btn:hover {
    transform: scale(1.1);
}

.whatsapp-float-btn img {
    width: 35px;
    height: 35px;
}

.facebook-float-btn {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 110px;
    right: 40px;
    background-color: #1877F2;
    border-radius: 50px;
    box-shadow: 2px 2px 3px #999;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s;
}

.facebook-float-btn:hover {
    transform: scale(1.1);
}

.facebook-float-btn img {
    width: 35px;
    height: 35px;
}

/* =============================================
   =   Ajustes para Dispositivos Móviles     =
   ============================================= */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        text-align: center;
    }
    .nav-links {
        flex-direction: column;
        gap: 1rem;
        margin-top: 1rem;
    }
    .section {
        padding: 60px 0;
    }

    .whatsapp-float-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-float-btn img {
        width: 30px;
        height: 30px;
    }
    .facebook-float-btn {
        width: 50px;
        height: 50px;
        bottom: 80px;
        right: 20px;
    }
    .facebook-float-btn img {
        width: 30px;
        height: 30px;
    }
}
