/* --- Mejora: Variables Globales y Reseteo --- */
:root {
    --primary-color: #005A9C; /* Un azul corporativo */
    --secondary-color: #333;
    --light-gray: #f4f4f4;
    --dark-gray: #222;
    --white: #ffffff;
    --font-family: 'Arial', sans-serif;
     --swiper-theme-color: var(--primary-color);
    --swiper-navigation-color: var(--primary-color);
    --swiper-pagination-color: var(--primary-color);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Desplazamiento suave */
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--secondary-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1, h2, h3 {
    margin-bottom: 1rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    padding-bottom: 1rem;
}

section {
    padding: 4rem 0;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #004a80;
}

/* === INICIO: ESTILOS DE NAVBAR === */

/* 1. Estilo base del Navbar (Escritorio) */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed; /* Cambiamos sticky a fixed para evitar saltos de layout */
    top: 0;
    left: 0; /* Asegura que se pegue a la izquierda */
    width: 100%;
    z-index: 1000; /* Un z-index más alto para asegurar que esté siempre encima */
    
    /* Definimos una altura explícita o min-height para evitar colapsos */
    height: 80px; /* Altura inicial fija */
    display: flex;
    align-items: center;
    
    /* Transición suave para la altura y sombra */
    transition: height 0.3s ease-out, box-shadow 0.3s ease-out;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%; /* Asegura que el contenedor ocupe todo el ancho disponible */
    height: 100%; /* Ocupa toda la altura del navbar */
    padding-top: 0; 
    padding-bottom: 0;
}

/* 2. Estilo del Logo */
.logo {
    display: flex; /* Para centrar verticalmente la imagen si es necesario */
    align-items: center;
    height: 100%;
}
.logo img {
    height: 100px; /* Altura base del logo */
    width: auto;   /* Mantiene la proporción */
    max-height: 100%; /* Nunca más alto que el contenedor */
    transition: height 0.1 ease-out;
}
.navbar.navbar-scrolled .logo img {
    height: 35px; /* Altura encogida */
    
    /* TRANSICIÓN AL ENCOGER (hacerse pequeño) */
    /* La querías más lenta, subimos de 0.3s a 0.8s (ajusta este valor a tu gusto) */
    transition: height 0.3s ease-out;
}
/* 3. Estilo de la Lista de Navegación (Escritorio) */


.nav-list {
    display: flex; /* <-- ESTO HACE LOS ENLACES HORIZONTALES */
    list-style: none;
}

.nav-list li {
    margin-left: 2rem;
}

.nav-list a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: bold;
    transition: color 0.3s ease;
    padding-bottom: 5px; /* Espacio para el subrayado */
    position: relative;
}

.nav-list a:hover {
    color: var(--primary-color);
}

/* 4. Animación de Subrayado (Links) */
.nav-list a::after {
    content: '';
    position: absolute;
    width: 0%; /* Inicia oculto */
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease-in-out;
}

.nav-list a:hover::after {
    width: 100%; /* Se expande al 100% en hover */
}

/* 5. Botón de Hamburguesa (Escritorio) */
.nav-toggle {
    display: none; /* <-- ESTO OCULTA LA HAMBURGUESA EN ESCRITORIO */
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- 6. ESTILOS PARA EL NAVBAR ENCOGIDO (SCROLLED) --- */
.navbar.navbar-scrolled {
    height: 60px; /* Nueva altura fija más pequeña */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.navbar.navbar-scrolled .logo img {
    height: 35px; /* El logo se encoge */
}

/* --- 7. ESTILOS PARA MÓVIL (RESPONSIVE) --- */
@media (max-width: 768px) {
    .nav-menu {
        display: none; /* Oculta el menú por defecto */
        position: absolute;
        top: 100%; /* Justo debajo de la barra */
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: block; /* Muestra el menú cuando tiene la clase 'active' */
    }

    .nav-list {
        flex-direction: column; /* Apila los enlaces verticalmente */
    }

    .nav-list li {
        margin: 0;
        text-align: center;
    }

    .nav-list a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid var(--light-gray);
    }
    
    .nav-list a::after {
        display: none; /* Oculta la animación de subrayado en móvil */
    }

    .nav-toggle {
        display: block; /* MUESTRA la hamburguesa en móvil */
    }
}
/* === FIN: ESTILOS DE NAVBAR === */
/* --- 2. Hero Section (Carrusel) --- */
#hero.swiper {
    height: 90vh; /* Mantenemos la altura */
    width: 100%;
}

.swiper-slide {
    /* Usamos Flexbox para centrar el contenido */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

    /* Estilos de fondo que movimos aquí */
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}



.swiper-button-next,
.swiper-button-prev {
    /* Hacemos las flechas un poco más grandes y semitransparentes */
    color: var(--white);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: var(--white); /* Hacemos el punto activo blanco */
}
/* --- 3. Services --- */
.services {
    background-color: var(--light-gray);
}

/*
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
*/


/* === NUEVOS ESTILOS PARA LA SECCIÓN DE SERVICIOS === */

/* Fila de 3 tarjetas */
.services-grid-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Siempre 3 columnas */
    gap: 2rem;
    margin-top: 2rem;
}

/* Fila de 1 tarjeta (la de abajo) */
.services-grid-row-1 {
    display: flex; /* Usamos flexbox para centrarla */
    justify-content: center; /* Centrado horizontal */
    margin-top: 2rem;
}

/* Estilo de la tarjeta  */
.service-card {
    background: var(--white);
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.service-card i {
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.service-card-conten
{
    text-align: center;
}

/* --- Ajuste para que la Fila de 1 se alinee con la tarjeta del medio --- */
.services-grid-row-1 .service-card {
    /* Hacemos que esta tarjeta tenga el mismo ancho que las de arriba */
    /* (100% / 3 columnas) - (gap / 1.5 aprox) */
    /* Es más fácil usar flex-basis */
    
    width: 100%; /* Ocupa el 100% de su contenedor (fila de 1) */
    
    /* Le damos un max-width para que coincida con las columnas de arriba */
    /* Asumiendo 1100px de .container y 2rem de gap */
    /* (1100px - 4rem) / 3 = aprox 340px. 
       Usar flex-basis es mejor que un ancho fijo. */
       
    flex-basis: 340px; /* Ancho base. Ajusta este número si no se alinea bien */
    max-width: 350px; /* Ancho máximo */
}

/* --- Ajuste Responsivo para Móviles --- */
@media (max-width: 768px) {
    .services-grid-row-3 {
        grid-template-columns: 1fr; /* Apila las 3 tarjetas */
    }
    
    .services-grid-row-1 .service-card {
        flex-basis: 100%; /* Ocupa todo el ancho en móvil */
        max-width: none; /* Sin ancho máximo */
    }
}

/* --- 4. About --- */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}


.about-content p {
    font-size: 1.1rem;
    list-style: none;
    padding-left: 0;
}
.about-content ul {
    list-style: none;
    padding-left: 0;
}

.about-content li {
    font-size: 1rem;
    font-weight: 600; /*negrita */
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.about-content li::before {
    content: '✔';
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* --- 5. Contacto (Sección Mejorada) --- */
.contact {
    background-color: var(--light-gray);
    padding: 4rem 0 6rem 0; /* Mantenemos el espaciado */
}

/* 🎨 MEJORA: Caja con más sombra y un borde de marca */
.contact-box {
    background-color: var(--white);
    padding: 3rem; /* Más espaciado interno */
    border-radius: 16px; /* Bordes más suaves */
    /* Sombra más suave y difuminada */
    box-shadow: 0 20px 50px rgba(0,0,0,0.1); 
    max-width: 550px; /* Un poco más ancho para los campos */
    margin: 0 auto;
    /* Borde de marca para un look premium */
    border-top: 5px solid var(--primary-color);
    overflow: hidden; /* Para animaciones futuras */
}

#contact-form {
    max-width: 100%;
    margin: 0;
}

/* --- Ajustes de Formulario con Animaciones --- */

/* 1. Fila de formulario (Label + Input) */
.form-group {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem; /* Más espacio entre filas */
    transition: all 0.3s ease;
}

/* 2. Etiquetas (Label) */
.form-group label {
    flex: 0 0 150px; 
    text-align: right;
    margin-right: 1.5rem; /* Más espacio entre label e input */
    color: #555; /* Un gris más suave */
    font-weight: 600;
    transition: color 0.3s ease, font-weight 0.3s ease;
}

/* 3. Campos de Texto (Input y Textarea) */
.form-group input,
.form-group textarea {
    flex: 1;
    padding: 0.8rem 1rem; /* Más padding para que se vea mejor */
    border: 2px solid #f0f0f0; /* Borde muy sutil */
    border-radius: 8px; /* Bordes redondeados */
    background-color: #f0efef; /* Fondo gris claro */
    font-family: var(--font-family);
    font-size: 1rem;
    color: #333;
    /* 🎨 ANIMACIÓN: Transición suave para el foco */
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

/* 4. Ajuste para Textarea */
.form-group:has(textarea) {
    align-items: flex-start;
}
.form-group textarea {
    margin-top: 0;
}

/* --- 🎨 ANIMACIONES DE FOCO (Focus) --- */

/* Cuando el usuario hace clic en un input... */
.form-group input:focus,
.form-group textarea:focus {
    outline: none; /* Quitamos el borde azul feo de Chrome */
    border-color: var(--primary-color); /* El borde cambia a tu color primario */
    background-color: var(--white); /* El fondo se vuelve blanco */
    /* Añadimos un "resplandor" (glow) */
    box-shadow: 0 0 0 4px rgba(0,90,156, 0.1); 
}

/* Cuando el input está en foco, la etiqueta también cambia de color */
.form-group:focus-within label {
    color: var(--primary-color);
    font-weight: 700;
}

/* --- 🎨 ANIMACIÓN DEL BOTÓN --- */

#contact-form .btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 700; /* Letra más gruesa */
    border: none;
    cursor: pointer;
    margin-top: 1rem;
    /* 🎨 ANIMACIÓN: Transición para el hover */
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

/* Al pasar el mouse, el botón "salta" y crea una sombra */
#contact-form .btn:hover {
    /* (el color de fondo ya lo cambia .btn-primary:hover) */
    transform: translateY(-3px); /* Mueve el botón 3px hacia arriba */
    box-shadow: 0 10px 20px rgba(0, 90, 156, 0.25); /* Sombra azulada */
}

/* --- Ajuste Responsivo para Móviles --- */
@media (max-width: 500px) {
    .contact-box {
        padding: 1.5rem; /* Menos padding en móvil */
    }
    .form-group {
        flex-direction: column; 
        align-items: flex-start; 
        margin-bottom: 1rem;
    }
    .form-group label {
        text-align: left;
        margin-bottom: 0.5rem;
        flex: auto;
    }
}
/* --- 6. Footer --- */
.footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 3rem 0 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-col p {
    color: #ccc;
    margin-bottom: 0.5rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: #ccc;
    text-decoration: none;
}

.footer-col a:hover {
    color: var(--white);
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    margin-right: 1rem;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
    border-top: 1px solid #444;
}

/* --- Mejora: Diseño Responsivo (Mobile-First) --- */
@media (max-width: 768px) {
    h2 {
        font-size: 2rem;
    }

    .nav-menu {
        display: none; /* Oculta menú normal */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: block; /* Muestra menú al hacer clic */
    }

    .nav-list {
        flex-direction: column;
    }

    .nav-list li {
        margin: 0;
        text-align: center;
    }

    .nav-list a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid var(--light-gray);
    }

    .nav-toggle {
        display: block; /* Muestra botón de hamburguesa */
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .about-container {
        grid-template-columns: 1fr; /* Apila las columnas */
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        text-align: center;
    }
}

/* --- Ajuste para alinear logo en escritorio --- */
@media (min-width: 769px) {
    .navbar .container {
        /* Anulamos el padding horizontal de 2rem que 
           viene de la clase .container base */
        padding-left:0;
        padding-right: 0;
        max-width: 1300px;
    }
}


/* === INICIO: Mejoras del Carrusel === */

/* 1. Animación para el Texto del Carrusel */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px); /* Comienza 40px abajo */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 2. Ocultar el texto por defecto */

/* Pculta el texto en CUALQUIER diapositiva */
.swiper-slide .hero-content {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease; /* Una transición suave por si acaso */
}

/* 3. Mostrar y animar el texto SOLO en la diapositiva activa */
.swiper-slide-active .hero-content {

    visibility: visible; /* Hace que sea visible para que la animación pueda empezar */
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
}


/* 4. Ocultar Flechas de Navegación por Defecto */
.swiper-button-next,
.swiper-button-prev {
    opacity: 0; /* Totalmente ocultas */
    transition: opacity 0.3s ease-out, transform 0.2s ease-out; /* Transición suave */
}

/* 5. Mostrar Flechas al pasar el mouse SOBRE EL CARRUSEL */
#hero.swiper:hover .swiper-button-next,
#hero.swiper:hover .swiper-button-prev {
    opacity: 0.7; /* Ligeramente transparentes */
}

/* 6. Efecto de Hover sobre la flecha misma */
.swiper-button-next:hover,
.swiper-button-prev:hover {
    opacity: 1; /* Totalmente opacas */
    transform: scale(1.1); /* Ligeramente más grandes */
}


/* 7. Mejora de Paginación (Puntos Inactivos) */
.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5); /* Puntos inactivos semitransparentes */
    transform: scale(0.8);
    transition: transform 0.2s ease;
}

/* 8. Paginación (Punto Activo) */
.swiper-pagination-bullet-active {
    background: var(--white); /* Tu estilo original */
    transform: scale(1);
}

/* === FIN: Mejoras del Carrusel === */
/* === INICIO: Animación de la sección "Sobre Nosotros" === */

/* 1. Preparamos el contenedor */
.about-container {
    /* Mantenemos el grid, pero añadimos overflow para que la animación no se "salga" si se mueve */
    overflow: hidden;
    position: relative;
    /* Añadimos una transición suave para el "reset" en móvil */
    transition: all 0.3s ease;
}

/* 2. Preparamos la imagen (la "ventana") */
.about-image img {
    /* La imagen tendrá una transición suave en su transformación */
    transition: transform 0.4s ease-in-out;
}

/* 3. Preparamos el texto (el "cuadro de texto") */
.about-content {
    /* Ocultamos el texto por defecto */
    opacity: 0;
    /* Lo posicionamos 50px más abajo de su lugar original */
    transform: translateY(50px);
    /* Le damos una transición suave con un ligero retraso */
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
    transition-delay: 0.1s;
}

/* 4. Animación al pasar el mouse sobre el contenedor */
.about-container:hover .about-image img {
    /* Hacemos que la imagen ("ventana") se agrande ligeramente, como si te acercaras */
    transform: scale(1.05);
}

.about-container:hover .about-content {
    /* El texto ("cuadro") aparece y sube a su posición original */
    opacity: 1;
    transform: translateY(0);
}

/* 5. Desactivar la animación en pantallas móviles */
@media (max-width: 768px) {
    /* En móvil, el contenido siempre debe ser visible */
    .about-content {
        opacity: 1;
        transform: translateY(0);
        /* Quitamos la transición para que no haya efectos raros al cargar */
        transition: none;
    }

    /* Desactivamos el zoom de la imagen en móvil */
    .about-container:hover .about-image img {
        transform: none;
    }
}
/* === INICIO: Tarjetas de Servicio - Título Fijo y Animación === */

.service-card {
    position: relative;
    height: 350px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    background-color: var(--dark-gray);
}

.service-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    z-index: 0;
}

/* Capa oscura sutil PERMANENTE para que el texto blanco siempre se lea */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.3);
    z-index: 1;
    transition: background-color 0.3s ease;
}

/* --- TÍTULO PRINCIPAL (Visible sobre la imagen) --- */
/* Nota: Usamos > h3 para seleccionar SOLO el h3 directo, no el que está dentro de content */
.service-card > h3 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centrado perfecto inicial */
    width: 90%;
    text-align: center;
    margin: 0;
    z-index: 2; /* Encima de la imagen y la capa oscura */
    
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.7); /* Sombra fuerte para legibilidad */
    
    transition: all 0.3s ease-in-out; 
}

/* --- CONTENEDOR DEL DETALLE (Oculto inicialmente) --- */
.service-card-content {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 25px 20px;
    background: rgba(255, 255, 255, 0.98); 
    z-index: 3; 
    transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    text-align: center;
}

/* Estilos para el texto DENTRO del panel de detalle */
.service-card-content h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Estilos para el texto DENTRO del panel de detalle --- */

/* ... (la regla de h3 déjala como está) ... */

/* --- Estilos para la lista dentro de las tarjetas --- */
.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center; /* Centramos todo el texto de la lista */
}

.service-list li {
    /* Quitamos el padding-left que usábamos para el icono */
    padding: 0;
    /* Espacio entre cada bloque de información */
    margin-bottom: 1.2rem; 
    font-size: 1rem;
    color: #333333;
    line-height: 1.4;
}

/* ESTO ES LA CLAVE: Hacemos que la parte en <strong> se comporte como un subtítulo */
.service-list li strong {
    display: block; /* Fuerza un salto de línea después del texto en negrita */
    color: var(--dark-black);
    font-size: 1.1rem;
    font-weight: 800; /* Muy negrita */
    margin-bottom: 0.3rem; /* Un pequeño espacio entre el título y el texto de abajo */
}

/* Eliminamos el icono de check (✓) que habíamos puesto antes */
.service-list li::before {
    content: none;
}
/* --- EFECTOS AL PASAR EL MOUSE (HOVER) --- */

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.service-card:hover .service-img {
    transform: scale(1.1); /* Zoom a la imagen */
}

.service-card:hover::before {
    background-color: rgba(0,0,0,0.6); /* Oscurece más el fondo */
}

/* El título principal se desvanece y baja */
.service-card:hover > h3 {
    opacity: 0;
    transform: translate(-50%, 0%); 
}

/* El panel de detalle sube */
.service-card:hover .service-card-content {
    bottom: 0;
}

/* === FIN: Tarjetas de Servicio === */
/* Oculta el <h3> y <p> que están directamente en .service-card (si aún existen) */
/* Esta regla es de limpieza por si acaso. */

/* === FIN: Animación Tarjetas de Servicio === */
body {
    padding-top: 80px; /* Debe ser igual a la altura inicial de .navbar */
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float img {
  width: 30px;
  height: 30px;
}
/* --- Estilos para el Mapa en el Footer --- */
.footer-map {
    width: 100%;
    height: 200px; /* Altura fija para el mapa en el footer */
    border-radius: 8px; /* Bordes redondeados */
    overflow: hidden; /* Asegura que el iframe respete los bordes */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-top: 0.5rem; /* Un poco de espacio bajo el título "Nuestra Ubicación" */
}

.footer-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Fin de Estilos para el Mapa en el Footer --- */

/* --- estilos de carrucel de galeria --- */

    /* Wrapper para posicionar las flechas relativas a la galería */
    .gallery-wrapper {
        position: relative;
        width: 100%;
        max-width: 1300px;
        margin: 40px auto;
    }

    /* Contenedor de las imágenes */
    .gallery-container {
        display: flex;
        width: 100%;
        height: 500px;
        align-items: center;
        padding: 40px 60px; 
        overflow-x: auto; 
        scroll-behavior: smooth;
        scrollbar-width: none;
        -ms-overflow-style: none;
        justify-content: flex-start; 
    }

    .gallery-container::-webkit-scrollbar { display: none; }

    /* Cada tarjeta (Foto) */
    .gallery-item {
        min-width: 300px;
        height: 400px;
        margin-right: -180px; 
        position: relative;
        
        /* --- CAMBIO 1: BORDE QUITADO --- */
        border-radius: 15px;
        /* border: 3px solid #fff;  <-- LÍNEA ELIMINADA */
        border: none; 
        
        background-color: #000;
        cursor: pointer;
        
        /* Sombra un poco más sutil ahora que no hay borde blanco */
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
        
        transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
        z-index: 1;
        flex-shrink: 0;
    }

    .gallery-item img {
        width: 100%; height: 100%; object-fit: cover;
        
        /* --- CAMBIO 2: AJUSTE DE RADIO --- */
        /* Ahora coincide exactamente con el contenedor padre */
        border-radius: 15px; 
        
        display: block;
        filter: brightness(0.85); transition: filter 0.5s ease;
    }

    /* --- INTERACCIÓN --- */
    .gallery-item:hover {
        transform: translateY(-20px) scale(1.02); 
        z-index: 5; 
        box-shadow: -5px 15px 35px rgba(0,0,0,0.6);
    }
    .gallery-item:hover img { filter: brightness(1.05); }

    /* Desplazamiento de las cartas a la derecha */
    .gallery-item:hover ~ .gallery-item {
        transform: translateX(170px);
        z-index: 10;
    }

    /* Ajuste última carta */
    .gallery-item:last-child { margin-right: 0; }

    /* --- FLECHAS DE NAVEGACIÓN --- */
    .scroll-btn {
        position: absolute; top: 50%; transform: translateY(-50%);
        width: 50px; height: 50px; border-radius: 50%; background: #fff;
        border: none; box-shadow: 0 4px 10px rgba(0,0,0,0.3);
        cursor: pointer; z-index: 100; font-size: 20px; color: #112C66;
        display: flex; align-items: center; justify-content: center;
        transition: all 0.3s ease;
    }
    .scroll-btn:hover { background: #112C66; color: #fff; transform: translateY(-50%) scale(1.1); }
    .scroll-left { left: 0; } .scroll-right { right: 0; }

    /* Responsive */
    @media (max-width: 768px) {
        .gallery-item { min-width: 240px; height: 320px; margin-right: -140px; }
        .gallery-item:hover ~ .gallery-item { transform: translateX(145px); }
        .scroll-btn { width: 40px; height: 40px; font-size: 16px; }
        .gallery-container { padding: 40px 20px; }
    }

    /* (Estilos del Modal sin cambios) */
    .modal-overlay { display: none; position: fixed; z-index: 2000; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.95); justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s ease; }
    .modal-overlay.active { opacity: 1; }
    .modal-content-wrapper { position: relative; max-width: 90%; max-height: 85%; display: flex; justify-content: center; align-items: center; }
    #modalImage { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 8px; box-shadow: 0 0 30px rgba(0,0,0,0.8); }
    .modal-close-btn { position: absolute; top: 20px; right: 30px; color: white; font-size: 50px; font-weight: 300; cursor: pointer; z-index: 2001; }
    .modal-nav { cursor: pointer; position: absolute; top: 50%; transform: translateY(-50%); padding: 20px; color: white; font-size: 30px; transition: 0.3s; user-select: none; background: rgba(255,255,255,0.1); border-radius: 50%; width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; }
    .modal-nav:hover { background: rgba(255,255,255,0.3); }
    .modal-prev { left: 30px; } .modal-next { right: 30px; }
    @media (max-width: 768px) { .modal-nav { width: 40px; height: 40px; font-size: 20px; } .modal-prev { left: 10px; } .modal-next { right: 10px; } }
