* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.hero-nosotros {
    margin-top: 80px;
    padding: 2rem 1rem;
    background: none;
    color: #333;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-nosotros h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    margin-top: 40px; /* Agregar margen superior para separar el título de la cabecera */
}

/* NAVBAR */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    transition: 0.4s;
    z-index: 1000;
}

nav img {
    width: 300px;   /* Tamaño del Logo en la cabecera */
}

.menu {
    display: flex;
    list-style: none;
}

.menu li {
    margin-left: 20px;
}

.menu li a {
    text-decoration: none;
    font-size: 1.1rem; /* Puedes subir más si lo deseas */
    font-weight: 550;  /* Opcional: para hacerlas más gruesas */
    transition: 0.3s;
}

/* NAVBAR TRANSPARENTE Y CON EFECTO */
.nav-transparent {
    background: #333;
    position: absolute;
}

.nav-transparent .menu li a {
    color: rgb(252, 240, 240);
}

.nav-transparent .menu li a:hover {
    color: #009fe3;
}

.nav-scrolled {
    background: white;
    position: fixed;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.nav-scrolled .menu li a {
    color: black;
}

.nav-scrolled .menu li a:hover {
    color: #009fe3;
}

/* MENÚ HAMBURGUESA */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: rgb(255, 255, 255);
}

@media (max-width: 768px) {
    .menu {
        display: none;
        flex-direction: column;
        background: transparent;
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        text-align: center;
        padding: 20px 0;
    }

    .menu.active {
        display: flex;
        background: rgba(255, 255, 255, 0.8);
        color: inherit; /* Eliminar color: black !important */
    }
    .menu.active li a {
        color: black; /* Definir color base */
        font-size: 1.2rem;
        display: block;
        padding: 10px;
        transition: color 0.3s ease; /* Añadir transición suave */
    }
    

    .menu li {
        margin: 15px 0;
    }

    .menu li a {
        color: black;
        font-size: 1.2rem;
        display: block;
        padding: 10px;
    }

    .menu li a:hover {
        color: #009fe3;
    }

    .menu-toggle {
        display: block;
        color: #009fe3;
    }
}

.section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
    gap: 30px;
    flex-wrap: wrap;
}

.section.bg-gray {
    background-color: #f4f4f4;
}

.text-content {
    flex: 1;
    padding: 20px;
    text-align: justify;
}

.image-content {
    flex: 1;
    padding: 20px;
}

.image-content img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

.title {
    font-size: 2em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
}

.description {
    font-size: 1.2em;
    color: #333;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .section {
        flex-direction: column;
        padding: 30px 20px;
    }

    .text-content, .image-content {
        padding: 10px;
    }

    .title {
        font-size: 1.5em;
    }

    .description {
        font-size: 1em;
    }
}

/* SECCIÓN PRINCIPAL */
.hero {
    position: relative;
    width: 100%;
    height: 100vh; /* altura completa del viewport */
    overflow: hidden;
}

.hero-banner {
    width: 100%;
    height: 100%;
    background-image: url("/image/IMG_20220429_122525.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}



.hero h2 {
    font-size: 2.5rem;
    font-weight: bold;
}

.hero p {
    font-size: 1.2rem;
    margin: 10px 0;
}

/* VIDEO */
.video-container {
    text-align: center;
    width: 100%;
    max-width: 900px; /* Aumentado de 640px a 900px */
    margin: 80px auto 50px;
}

.video-container iframe {
    width: 100%;
    height: 506px; /* Proporción 16:9 para 900px de ancho */
    border: none;
}


/* PIE DE PÁGINA */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: auto;
}

.social-icons {
    margin: 20px 0;
}

.social-icons a {
    display: inline-block;
    margin: 0 10px;
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
}

.social-icons a:hover {
    color: #009fe3;
}

.footer-logo {
    margin-top: 20px;
}

.footer-logo img {
    width: 300px;
}

/* CARRUSEL DE IMÁGENES MEJORADO */
.carousel-container {
width: 90%;
max-width: 1200px;
margin: 50px auto;
padding: 20px;
overflow: hidden;
background-color: transparent;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 250px; /* Aumentado de 200px a 250px */
    background-color: transparent;
    padding: 10px;
}

.swiper-slide img {
    max-height: 90%; /* Aumenta el uso del espacio vertical */
    max-width: 90%;
    object-fit: contain;
    width: auto;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


@media (max-width: 768px) {
    .swiper-slide {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .swiper-slide {
        height: 120px;
    }
}


.contenedor-servicios {
text-align: center;
padding: 40px 20px;
}


.servicio p {
font-size: 16px;
color: #333; /* Gris oscuro */
line-height: 1.5;
max-width: 90%;
margin: 0 auto;
text-align: center; /* Justifica el texto */
}


.titulo-seccion {
font-size: 28px;
font-weight: bold;
color: #212529; /* Color oscuro elegante */
margin-bottom: 30px;
}

.servicios {
display: flex;
flex-wrap: wrap;  /* Permite que los elementos se ajusten en varias líneas */
justify-content: center;
gap: 50px;
}

.servicio i{
font-size: 48px;
margin-bottom: 15px;
color: #009fe3;
}

.servicio {
text-align: center;
padding: 50px; /* Aumenta el padding para hacerlas más espaciosas */
background-color: #ffffff;
border-radius: 15px;
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
width: 360px; /* Aumenta el ancho de las tarjetas */
height: auto; /* Ajusta la altura si es necesario */
}

.servicio:hover {
box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
transform: translateY(-5px);
}

/* Hacer responsive en pantallas pequeñas */
@media (max-width: 768px) {
.servicios {
gap: 30px; /* Reduce el espacio entre servicios */
}
.servicio {
width: 80%; /* Aumenta el ancho para ocupar más espacio */
}
}

@media (max-width: 480px) {
.servicio {
width: 90%; /* Ocupar casi todo el ancho en móviles */
padding: 15px; /* Reducir padding para mejor espacio */
}
}

#btn-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    background-color: #009fe3;
    color: white;
    border: none;
    padding: 12px 15px;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
#btn-top:hover {
    background-color: #009fe3;
}

#btn-whatsapp {
    position: fixed;
    bottom: 80px; /* Un poco más arriba que el botón "volver arriba" si lo tienes */
    right: 20px;
    background-color: #25d366;
    color: white;
    border: none;
    padding: 12px 15px;
    border-radius: 50px;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 999;
    text-decoration: none;
    display: none;
    transition: all 0.3s ease-in-out;
}
#btn-whatsapp:hover {
    background-color: #1ebe5b;
}