/* General Styles */
:root {
    --color-primary: #003954;       /* Azul Marino Profundo */
    --color-secondary: #546E7A;     /* Gris Azulado */
    --color-white: #FFFFFF;         /* Blanco Puro */
    --color-accent: #F23005;        /*  */
    --color-highlight: #91BBF2;     /* */
    --color-text: #333333;          /* Gris Oscuro */
    --color-text-light: #ffffff;    /* Blanco para texto sobre fondos oscuros */
}
html {
    scroll-behavior: smooth;
}


body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f4f4f4;
}

/* Header Styles */
header {
    background-color: var(--color-primary);
    color: white;
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100vw;
   
    top: 0;
    z-index: 1000;
}

.titulo-sub{
    display: flex;
    flex-direction: column;
}
.titulo-span{
    font-size: 67%;
    letter-spacing: 7.6px;
}
.logo-nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-right: 8%;
}

.logo {
    display: flex;
    align-items: center;
}
.logo h1{
    font-size: 1rem;
}

.logo img {
    height: 60px;
    width: 60px;
    margin-right: 1rem;
    border-radius: 50%;
    object-fit: cover;
}

.nav-desktop ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-desktop ul li {
    display: inline-block;
    margin-left: 1.5rem;
}

.nav-desktop ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.nav-desktop ul li a:hover {
    color: var(--color-highlight);
}

/* Mobile Navigation */
.nav-mobile {
    display: none;
}

.nav-mobile a {
    color: white;
    font-size: 1.5rem;
}

.nav-mobile-menu {
    display: none;
    background-color:var(--color-primary);
    position: absolute;
    width: 100%;
    top: 80px;
    left: 0;
}

.nav-mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-mobile-menu ul li {
    border-bottom: 1px solid #fff;
}

.nav-mobile-menu ul li a {
    display: block;
    padding: 1rem;
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.nav-mobile-menu ul li a:hover {
    background-color: #FBC02D;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }
    .nav-mobile {
        display: block;
        padding: 10px;
    }
    .logo-nav-container {
        justify-content: space-between;
    }
}

/* Mobile Menu Toggle */
.nav-mobile-menu.active {
    display: block;
    z-index: 199;
}

/* Sección Hero */
/* Estilos para la Sección Hero con Video de Fondo */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-image: url('./img/hero/hero3-min.jpg'); 
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
}



.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Overlay para mejorar legibilidad */
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInDown 1s ease-out;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInDown 1s ease-out 0.5s;
    animation-fill-mode: backwards;
}

.btn-hero {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #fff;
    color: var(--color-accent); 
    text-decoration: none;
    font-size: 1.25rem;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
    animation: fadeInDown 1s ease-out 1s;
    animation-fill-mode: backwards;
}

.btn-hero:hover {
    background-color: var(--color-primary);;
    color: #fff;
}

/* Animación */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }
    .hero-content p {
        font-size: 1.2rem;
    }
    .btn-hero {
        font-size: 1rem;
        padding: 0.5rem 1rem;
        margin-top: 10px;
    }
}

/* Sección Historia */
.historia-section {
    padding: 4rem 1rem;
    /* Fondo degradado */
    background: linear-gradient(135deg, #ffffff 0%, #f7f7f7 100%);
}


/* Sección Quienes Somos v2 */
.quienes-somos-v2-section {
    margin: 4rem 0;
}

/* Parte Superior */
.quienes-somos-v2-superior {
    display: flex;
    flex-wrap: wrap;
    height: 300px;
    margin-top: 10%
}

.titulo-cuadro {
    width: 33.33%;
    background-color: #fbfbfb;
    display: flex;
    height: 250px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.1rem;
    box-sizing: border-box;
}

.titulo-cuadro img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.imagen-cuadro {
    width: 66.66%;
    overflow: hidden;
    height: 250px;
}

/* Estilos para el Swiper */
.swiper-container {
    width: 100%;
    height: 100%;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .quienes-somos-v2-superior {
        flex-direction: column;
        height: auto;
    }
    .titulo-cuadro,
    .imagen-cuadro {
        width: 100%;
    }
    .titulo-cuadro img {
        width: 75%; /* Ajustar tamaño del logo para pantallas pequeñas */
    }

    .swiper-slide img{
        object-fit: contain;
    }
}


/* Parte Inferior */
.quienes-somos-v2-inferior {
    display: flex;
    flex-wrap: wrap;
    margin-top: 5%;
    margin-bottom: 10%;
}

.info-empresa {
    width: 33.33%;
    padding: 1rem;
    box-sizing: border-box;
    text-align: center;
}

.info-empresa h3 {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.info-empresa h2 {
    
    color: var(--color-accent);
}

.texto-quienes-somos {
    width: 66.66%;
    padding: 1rem;
    box-sizing: border-box;
    font-family: 'Roboto';
    font-weight: 400;
}

.texto-quienes-somos p {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #7a7a7a;
    margin-bottom: 1rem;
    text-align: justify;
}

/* Responsividad */
@media (max-width: 768px) {
    .quienes-somos-v2-superior {
        flex-direction: column;
        height: auto;
    }
    .titulo-cuadro,
    .imagen-cuadro {
        width: 100%;
    }
    .titulo-cuadro h2 {
        font-size: 1.5rem;
    }
    .info-empresa,
    .texto-quienes-somos {
        width: 100%;
        text-align: center;
    }
    .info-empresa h3 {
        font-size: 1.2rem;
    }
    .info-empresa h2 {
        font-size: 1.8rem;
    }
}


/* Responsividad */
@media (max-width: 768px) {
    .quienes-somos-container {
        flex-direction: column;
    }
    .quienes-somos-texto, .quienes-somos-imagen {
        flex: 1 1 100%;
        padding: 1rem 0;
    }
}

/* Animaciones AOS */
[data-aos] {
    opacity: 0;
    transition-property: transform, opacity;
    transition-duration: 1s;
}

[data-aos='fade-left'] {
    transform: translateX(50px);
}

[data-aos='fade-right'] {
    transform: translateX(-50px);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateX(0);
}


.historia-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.historia-texto {
    flex: 1 1 500px;
    padding: 1rem;
}

.historia-texto h2 {
    font-size: 2.5rem;
    color: var(--color-primary);;
    margin-bottom: 1.5rem;
}

.historia-texto p {
    font-size: 1.1rem;
    line-height: 1.6;
    color:#7a7a7a;
    margin-bottom: 1rem;
    text-align: justify;
}

.historia-texto strong {
    color: var(--color-primary);;
}

.historia-texto i {
    color: var(--color-primary);;
    margin-right: 0.5rem;
}

.btn-historia {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--color-primary);;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn-historia:hover {
    background-color: var(--color-highlight);;
}

.historia-imagen {
    flex: 1 1 400px;
    padding: 1rem;
    text-align: center;
}

.historia-imagen img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Responsividad */
@media (max-width: 768px) {
    .historia-container {
        flex-direction: column;
    }
    .historia-texto, .historia-imagen {
        flex: 1 1 100%;
        padding: 1rem 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* Animaciones AOS (si usas la biblioteca) */
[data-aos] {
    opacity: 0;
    transition-property: transform, opacity;
    transition-duration: 1s;
}

[data-aos='fade-right'] {
    transform: translateX(-50px);
}

[data-aos='fade-left'] {
    transform: translateX(50px);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateX(0);
}

/* Sección Servicios */
.servicios-section {
    padding: 4rem 1rem;
    background-color: #ffffff;
    text-align: center;
}

.servicios-section h2 {
    font-size: 2.5rem;
    color: var(--color-primary);;
    margin-bottom: 2rem;
}

.swiper {
    width: 100%;
    padding-bottom: 50px;
    /* Ajusta el espacio para la paginación */
}


/* ... Estilos anteriores ... */
/* Estilo Material para el Botón */
.material-button {
    margin-top: 20px;
    display: inline-block;
    padding: 10px 20px;
    font-size: 1rem;
    color: #fff;
    background-color: var(--color-primary);
    border: none;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.material-button:hover {
    background-color: var(--color-highlight);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.material-button:active {
    background-color: var(--color-highlight);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transform: translateY(2px);
}

/* Estilos para Misión y Visión con Overlay */
.mision-vision {
    display: flex;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.mision-vision-item {
    position: relative;
    overflow: hidden;
    flex: 1 1 45%;
    margin: 1rem;
    height: 300px;
}

.mision-vision-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mision-vision-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 96, 217, 0.85);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    text-align: center;
    padding: 1rem;
}

.mision-vision-item:hover .overlay {
    opacity: 1;
}

.mision-vision-item .overlay-content {
    transform: translateY(20px);
    transition: transform 0.5s;
}

.mision-vision-item:hover .overlay-content {
    transform: translateY(0);
}

.mision-vision-item .overlay-content i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.mision-vision-item .overlay-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.mision-vision-item .overlay-content p {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .mision-vision {
        flex-direction: column;
        align-items: center;
    }
    .mision-vision-item {
        flex: 1 1 100%;
        margin: 1rem 0;
        height: 200px; /* Ajusta si es necesario */
    }
}



/* Sección Valores Galería (Versión 2) */
.valores2-galeria-section {
    padding: 4rem 1rem;
    background-color: var(--color-white);
    text-align: center;
}

.valores2-galeria-section h2 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 2rem;
}

.valores2-galeria {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: 200px 200px;
    grid-gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    grid-template-areas:
        "item1 item1 item2 item2 item3 item3"
        "item4 item4 item4 item5 item5 item5";
}

.valor2-item {
    position: relative;
    overflow: hidden;
}

.valor2-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.valor2-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 96, 217, 0.85); /* var(--color-primary) con transparencia */
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    text-align: center;
    padding: 1rem;
}

.valor2-item:hover .overlay {
    opacity: 1;
}

.valor2-item .overlay-content {
    transform: translateY(20px);
    transition: transform 0.5s;
}

.valor2-item:hover .overlay-content {
    transform: translateY(0);
}

/* Estilos para los contenidos */
.valor2-item .overlay-content i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.valor2-item .overlay-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.valor2-item .overlay-content p {
    font-size: 1rem;
}

/* Asignación de áreas en el grid */
.valor2-item:nth-child(1) {
    grid-area: item1;
}

.valor2-item:nth-child(2) {
    grid-area: item2;
}

.valor2-item:nth-child(3) {
    grid-area: item3;
}

.valor2-item:nth-child(4) {
    grid-area: item4;
}

.valor2-item:nth-child(5) {
    grid-area: item5;
}

/* Responsividad */
/* Responsividad */
@media (max-width: 767px) {
    .valores2-galeria {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, 200px); /* Cada valor tendrá una fila de 200px */
        grid-gap: 1rem;
        grid-template-areas:
            "item1"
            "item2"
            "item3"
            "item4"
            "item5";
    }
    .valor2-item {
        height: 200px;
        grid-area: unset;
    }

    .valor-seguridad img {
        object-fit: contain;
    }
}


/* Servicios Section */
.servicio-item {
    position: relative;
    overflow: hidden;
    /*border-radius: 10px;*/
    height: 250px; /* Establecemos una altura fija para el contenedor */
}

.servicio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* La imagen se ajusta para cubrir el contenedor sin deformarse */
    display: block;
    transition: transform 0.5s;
}


.servicio-detalles {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.5s;
}

.servicio-item:hover img {
    transform: scale(1.1);
}

.servicio-item:hover .servicio-detalles {
    opacity: 1;
}

/* Estilos para botones de navegación */
.swiper-button-next,
.swiper-button-prev {
    color: var(--color-primary);;
}

/* Estilos para la paginación */
.swiper-pagination-bullet {
    background-color: var(--color-primary);;
}

.swiper-pagination-bullet-active {
    background-color: #E64A19;
}

/* Responsividad */
@media (max-width: 768px) {
    .servicio-detalles h3 {
        font-size: 1.2rem;
    }
    .servicio-detalles p {
        font-size: 1rem;
    }
}

/* Sección Por Qué Elegirnos */
.elegirnos-section {
    padding: 4rem 1rem;
    background-color: #f4f4f4;
    text-align: center;
}

.elegirnos-section h2 {
    font-size: 2.5rem;
    color: var(--color-primary);;
    margin-bottom: 2rem;
}

.elegirnos-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
}

.card {
    background-color: #fff;
    /*border-radius: 10px;*/
    overflow: hidden;
    width: 300px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: var(--color-primary);;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-10px);
}

.card:hover::before {
    transform: scaleY(1);
}

.card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: 1.5rem;
    color: #333333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-content h3 i {
    margin-right: 0.5rem;
    color: var(--color-highlight);;
}

.card-content p {
    font-size: 1rem;
    color: #555555;
}

@media (max-width: 768px) {
    .elegirnos-container {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 100%;
        max-width: 400px;
    }
}
/* Footer Styles */
footer {
    background-color: #333333;
    color: #ffffff;
    padding: 2rem 1rem;
    font-size: 0.9rem;
    position: relative; /* Para posicionar la imagen de fondo si se agrega */
    /* Opción para agregar imagen de fondo al footer */
    
    background: url('./img/footer/footer.jpg') no-repeat center center / cover;
    
}
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Negro semi-transparente */
    z-index: 0;
}

footer * {
    position: relative;
    z-index: 1;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column {
    flex: 1 1 300px;
    margin: 1rem 0;
}

.footer-column h3 {
    color: var(--color-highlight);;
    margin-bottom: 1rem;
}

.footer-column p,
.footer-column ul,
.footer-column a {
    color: #ffffff;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: var(--color-highlight);;
}

.footer-column a {
    text-decoration: none;
    color: #ffffff;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--color-primary);;
}

.footer-column i {
    margin-right: 0.5rem;
}

.social-media {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-media a {
    color: #ffffff;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-media a:hover {
    color: var(--color-primary);;
}

.btn-footer {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--color-primary);;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn-footer:hover {
    background-color: var(--color-highlight);;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #444444;
    margin-top: 2rem;
    font-size: 0.8rem;
}

.footer-bottom p {
    margin: 0;
}
.whatsapp-link {
    display: inline-block;
    background-color: var(--color-primary);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.whatsapp-link:hover {
    background-color: #128C7E;
}


/* Estilos para el mapa */
.mapa iframe {
    border: none;
    border-radius: 10px;
}

/* Responsividad */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
    }
    .footer-column {
        text-align: center;
    }
    .footer-column:not(:last-child) {
        margin-bottom: 2rem;
    }
    .social-media {
        justify-content: center;
    }
}

/* Estilo para el Hero */
.hero-servicios {
    background-image: url('./img/hero/pexels-shvetsa-5324973.jpg');
    background-size: cover;
    background-position: center;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero-servicios-content {
    background-color: rgba(0, 0, 0, 0.5); /* Fondo semitransparente para el texto */
    padding: 20px;
    
}

.hero-servicios h1 {
    font-size: 3rem;
    margin: 0;
}

.hero-servicios p {
    font-size: 1.5rem;
}
/* Estilo para la Nueva Sección de Marketing */
.marketing-clean-servicios {
    padding: 50px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.marketing-clean-servicios h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
}

.marketing-clean-servicios p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 40px;
}

.marketing-icons-servicios {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.icon-card-servicios {
    background-color: #fff;
    color: #333;
    padding: 20px;
    
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: calc(22% - 40px); /* Para 4 columnas con espacio */
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.icon-card-servicios:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.icon-card-servicios i {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.icon-card-servicios i:hover{
    font-size: 2.1rem;
    color: var(--color-highlight);
    
}


.icon-card-servicios h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.icon-card-servicios p {
    font-size: 1rem;
    color: #555;
}

/* Estilos Responsivos */
@media (max-width: 1024px) {
    .icon-card-servicios {
        width: calc(50% - 40px); /* Para 2 columnas con espacio */
    }
}

@media (max-width: 768px) {
    .hero-servicios {
        height: 50vh;
    }

    .hero-servicios h1 {
        font-size: 2rem;
    }

    .hero-servicios p {
        font-size: 1rem;
    }

    .marketing-clean-servicios h2 {
        font-size: 2rem;
    }

    .marketing-clean-servicios p {
        font-size: 1rem;
    }

    .icon-card-servicios {
        width: calc(100% - 40px); /* Para 1 columna con espacio */
    }
}
/* Estilo para la Galería de Imágenes */
.gallery-servicios {
    padding: 50px 20px;
    text-align: center;
}

.gallery-servicios h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.gallery-servicios-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gallery-servicios-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.gallery-servicios-row:nth-child(2),
.gallery-servicios-row:nth-child(4) {
    justify-content: center; /* Alinea los elementos en el centro para filas con 2 elementos */
}

.gallery-item {
    position: relative;
    flex: 1;
    min-width: 300px; /* Ajusta el tamaño mínimo de las imágenes */
    max-width: 50%; /* Asegura que las imágenes ocupen hasta un tercio del ancho */
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: auto;
    
    transition: transform 0.3s;
}

.overlay-servicios {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    text-align: center;
}

.gallery-item:hover .overlay-servicios {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Estilos Responsivos */
@media (max-width: 1024px) {
    .gallery-servicios-row {
        flex-direction: column;
    }

    .gallery-item {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-servicios {
        height: 50vh;
    }

    .hero-servicios h1 {
        font-size: 2rem;
    }

    .hero-servicios p {
        font-size: .8rem;
    }

    .gallery-servicios-container {
        gap: 10px;
    }

    
}/* Botón Flotante WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;       /* Distancia desde el fondo */
    right: 30px;        /* Distancia desde la derecha */
    background: linear-gradient(45deg, #25d366, #128c7e);
    color: #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    
  }

  .whatsapp-float i {
    font-size: 2rem;
  }
  .whatsapp-float::after {
    content: "Contáctanos por WhatsApp";
    position: absolute;
    right: 70px;  /* Se posiciona a la izquierda del botón */
    background: #25d366;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.3s, transform 0.3s;
    white-space: nowrap;
    pointer-events: none;
  }
  
  .whatsapp-float:hover::after {
    opacity: 1;
    transform: translateX(0);
  }
  
  .whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  }
  
  /* Responsive: si se necesitara ajustar para pantallas pequeñas se puede reducir el tamaño */
  @media (max-width: 480px) {
    .whatsapp-float {
      width: 50px;
      height: 50px;
      bottom: 20px;
      right: 20px;
    }
    
    .whatsapp-float i {
      font-size: 24px;
    }
  }

main {
    padding: 2rem;
    margin-top: 65px;
}

section {
    margin-bottom: 2rem;
}

h2 {
    color: #003366;
}

footer {
    background-color: #333;
    color: white;
    padding: 1rem;
    text-align: center;
}
