:root {
    --blue-dark: #0c4690;
    --blue-night: #14142a;
    --cyan: #66c2ce;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Unbounded', sans-serif;
    
    background-image: url('../IMAGES/degr.png'); 
    
    background-size: cover; 
    
    background-position: center center;
    
    background-repeat: no-repeat;
    
    background-attachment: fixed;
    
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;

    background-attachment: fixed;
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Barra de desplazamiento personalizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(20, 20, 42, 0.5);
}

::-webkit-scrollbar-thumb {
    background: var(--cyan);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4da8b3;
}

/* Encabezado y Navegación */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.4s ease;
}

.navbar {
    background: rgba(20, 20, 42, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(102, 194, 206, 0.2);
}

.navbar-brand {
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--white) !important;
    letter-spacing: 1px;
}

.navbar-brand span {
    color: var(--cyan);
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    margin: 0 0.7rem;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--cyan);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover, 
.navbar-nav .nav-link.active {
    color: var(--white) !important;
}

.navbar-nav .nav-link:hover:after,
.navbar-nav .nav-link.active:after {
    width: 100%;
}

.navbar-logo {
    height: 50px; /* Ajusta este número según lo grande que lo quieras */
    width: auto;  /* Mantiene la proporción para que no se deforme */
    object-fit: contain;
}

.language-selector .dropdown-toggle {
    color: var(--white) !important;
    background: transparent !important;
    border: 1px solid rgba(102, 194, 206, 0.4) !important;
    padding: 0.3rem 0.8rem !important;
    border-radius: 30px !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.language-selector .dropdown-toggle:hover {
    background: rgba(102, 194, 206, 0.15) !important;
}

.language-selector .dropdown-menu {
    background: rgba(20, 20, 42, 0.95);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(102, 194, 206, 0.2);
    border-radius: 10px;
    margin-top: 0.5rem;
    min-width: 120px;
}

.language-selector .dropdown-item {
    color: var(--white) !important;
    padding: 0.5rem 1rem !important;
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.language-selector .dropdown-item:hover {
    background: rgba(102, 194, 206, 0.15);
    color: var(--cyan) !important;
}

.language-selector .dropdown-item.active {
    background: rgba(102, 194, 206, 0.2);
    color: var(--cyan) !important;
    font-weight: 600;
}

/* Sección Hero (Principal) */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1.5rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 194, 206, 0.15) 0%, transparent 70%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 2rem;
    backdrop-filter: blur(5px);
    background: rgba(20, 20, 42, 0.6);
    border-radius: 20px;
    border: 1px solid rgba(102, 194, 206, 0.2);
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    background: linear-gradient(to right, var(--white), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGlow 3s ease-in-out infinite alternate;
}


@keyframes textGlow {
    from {
        text-shadow: 0 0 10px rgba(102, 194, 206, 0.7), 0 0 20px rgba(102, 194, 206, 0.5);
    }
    to {
        text-shadow: 0 0 15px rgba(102, 194, 206, 1), 0 0 25px rgba(102, 194, 206, 0.8), 0 0 35px rgba(102, 194, 206, 0.6);
    }
}

.hero-subtitle {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    font-weight: 300;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1px;
}

.hero-subtitle span {
    color: var(--cyan);
    font-weight: 500;
}

.btn-contact {
    background: var(--cyan);
    color: var(--blue-night);
    font-weight: 600;
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    border: none;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-contact:hover {
    background: #4da8b3;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Estilos de Sección */
section {
    padding: 6rem 1rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
}

.section-title h2 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 700;
    display: inline-block;
    position: relative;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--cyan);
    border-radius: 3px;
}

/* Sección Sobre Nosotros */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(20, 20, 42, 0.7);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(102, 194, 206, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.values {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 2rem;
    gap: 1.5rem;
}

.value-item {
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.value-item i {
    font-size: 2.5rem;
    color: var(--cyan);
    margin-bottom: 1rem;
    display: block;
}

.value-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

/* Sección Portafolio */
.portfolio {
    background: rgba(12, 70, 144, 0.9);
}

.portfolio-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.category-btn {
    background: rgba(20, 20, 42, 0.7);
    color: var(--white);
    border: 1px solid rgba(102, 194, 206, 0.3);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-family: 'Unbounded', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-btn:hover, 
.category-btn.active {
    background: var(--cyan);
    color: var(--blue-night);
    border-color: var(--cyan);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.8rem;
}

.portfolio-item {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    height: 280px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.4s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 70, 144, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.4s ease;
    padding: 1.5rem;
    text-align: center;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--white);
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.portfolio-overlay p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    transform: translateY(20px);
    transition: transform 0.4s ease;
    transition-delay: 0.1s;
}

.portfolio-item:hover .portfolio-overlay h3,
.portfolio-item:hover .portfolio-overlay p {
    transform: translateY(0);
}

/* Sección Clientes */
.clients {
    background: rgba(20, 20, 42, 0.95);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 2.5rem;
    justify-items: center;
    align-items: center;
}

.client-logo {
    width: 150px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(102, 194, 206, 0.2);
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
}

.client-logo:hover {
    background: rgba(102, 194, 206, 0.15);
    transform: scale(1.05);
}

.client-logo span {
    font-family: 'Unbounded', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    text-align: center;
    padding: 0.5rem;
}

.client-logo:hover span {
    color: var(--cyan);
    font-size: 1.3rem;
}

/* Sección Contacto */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    min-width: 50px;
    height: 50px;
    background: rgba(102, 194, 206, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan);
    font-size: 1.5rem;
}

.contact-details h3 {
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
    color: var(--white);
}

.contact-details p, 
.contact-details a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--cyan);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(102, 194, 206, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan);
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--cyan);
    color: var(--blue-night);
    transform: translateY(-3px);
}

.contact-form {
    background: rgba(12, 70, 144, 0.7);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(102, 194, 206, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    background: rgba(20, 20, 42, 0.6);
    border: 1px solid rgba(102, 194, 206, 0.3);
    color: var(--white);
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    font-family: 'Unbounded', sans-serif;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: rgba(20, 20, 42, 0.8);
    border-color: var(--cyan);
    box-shadow: 0 0 0 0.25rem rgba(102, 194, 206, 0.25);
    color: var(--white);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Pie de página */
footer {
    background: rgba(10, 35, 70, 0.95);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(102, 194, 206, 0.2);
}

.footer-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Animaciones */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Diseño Responsivo (Adaptable) */
@media (max-width: 991px) {
    .hero h1 {
        font-size: clamp(2.2rem, 8vw, 4rem);
    }
    
    .navbar-nav {
        margin-top: 1rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding-top: 100px;
        padding-bottom: 4rem;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .navbar-nav .nav-link {
        margin: 0 0.4rem;
        font-size: 0.95rem;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
    }
    
    .values {
        flex-direction: column;
        gap: 1rem;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .clients-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    section {
        padding: 4rem 1rem;
    }
    
    .hero-content {
        padding: 1.5rem;
    }
    
    .hero h1 {
        font-size: clamp(2rem, 8vw, 3.2rem);
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .btn-contact {
        padding: 0.7rem 2rem;
        font-size: 1rem;
    }
    
    .about-content {
        padding: 1.8rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .client-logo {
        width: 130px;
        height: 70px;
    }
}
/* Estilos para el Carrusel Infinito */
/* Estilos para el Carrusel Infinito (Versión Logos Grandes) */
.slider {
    background: transparent; 
    height: 180px; /* AUMENTADO: Antes 100px */
    margin: auto;
    overflow: hidden;
    position: relative;
    width: 100%;
}

/* Sombra lateral más alta para coincidir con los nuevos logos */
.slider::before,
.slider::after {
    background: linear-gradient(to right, rgba(20, 20, 42, 1) 0%, rgba(20, 20, 42, 0) 100%);
    content: "";
    height: 180px; /* AUMENTADO: Igual que .slider */
    position: absolute;
    width: 150px; /* Un poco más ancho el degradado */
    z-index: 2;
    pointer-events: none; /* Importante para poder hacer click en los logos de los bordes */
}

.slider::after {
    right: 0;
    top: 0;
    transform: rotateZ(180deg);
}

.slider::before {
    left: 0;
    top: 0;
}

.slide-track {
    -webkit-animation: scroll 120s linear infinite;
    animation: scroll 20s linear infinite;
    display: flex;
    width: 28000px; 
}

.slide {
    height: 180px; 
    width: 350px;  
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 30px; 
}

.slide img {
    max-width: 150%;
    max-height: 250px; 
    opacity: 0.8;
    filter: grayscale(0%);
    transition: all 0.3s ease;
    object-fit: contain;
}

.slide img:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Desplazamos la mitad exacta de la pista */
        /* 350px (ancho slide) * 6 (número de logos originales) */
        transform: translateX(calc(-350px * 6)); 
    }
}
/* Estilos para el Logo de Vídeo en el Hero */

.video-logo-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 1rem; /* Espacio entre el logo y el subtítulo */
}

.hero-logo-video {
    width: 100%;
    max-width: 600px; /* AJUSTA ESTO: Es el tamaño máximo del logo */
    height: auto;
    
    /* TRUCO DE MAGIA: 
       Si tu vídeo tiene fondo NEGRO y tu web es oscura, 
       esto hace que el negro se vuelva transparente.
       Si tu vídeo ya tiene fondo transparente (WebM) o no lo necesitas, borra esta línea. */
    mix-blend-mode: screen; 
}

/* Ajuste para móviles para que no se vea gigante */
@media (max-width: 768px) {
    .hero-logo-video {
        max-width: 300px; /* Más pequeño en el móvil */
    }
}
/* === BOTÓN WHATSAPP FLOTANTE === */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    left: 20px; /* Lo pongo a la izquierda para no tapar el premio */
    z-index: 9999;
    width: 60px;
    height: 60px;
    background-color: #25d366; /* Verde oficial de WhatsApp */
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    
    /* Animación de pulso para llamar la atención */
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-btn:hover {
    background-color: #128c7e; /* Verde más oscuro al pasar el ratón */
    transform: scale(1.1);
}

.whatsapp-btn svg {
    margin-top: -2px; /* Pequeño ajuste óptico */
    margin-left: 1px;
}

/* Animación del pulso */
@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        bottom: 15px;
        left: 15px;
    }
    .whatsapp-btn svg {
        width: 28px;
        height: 28px;
    }
}

/* --- ESTILOS CORREGIDOS: TODO DENTRO DE LA TARJETA --- */

/* 1. Ajuste del contenedor general */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    /* Quitamos el margen superior gigante que ya no hace falta */
    padding: 60px 20px; 
}

/* 2. La Tarjeta (El cuadro blanco) */
.card {
    background-color: white;
    width: 100%;

    /* CAMBIO CLAVE: Reducimos drásticamente el relleno interno.
       Arriba: 15px (antes 50px).
       Abajo: 30px.
       Lados: 15px. */
    padding: 15px 15px 30px 15px;

    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #eaeaea;
    border-radius: 8px;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.card-logo {
    width: auto;
    /* AUMENTADO: Altura muy grande para que llene el espacio.
       Al usar object-fit: contain, si el logo es ancho, no pasará del 100% de ancho.
       Si es alto, usará esta altura. */
    height: 350px;
    max-width: 100%;
    object-fit: contain; /* Crucial para que no se deforme */

    margin-top: 0;
    /* Reducimos el espacio entre el logo y el título */
    margin-bottom: 15px;

    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* 4. Textos */
.title {
    font-size: clamp(20px, 3vw, 26px); 
    font-weight: 900;
    color: #121e2c;
    margin-bottom: 15px;
    text-transform: uppercase;
    line-height: 1;
}

.separator {
    width: 50px;
    height: 2px;
    background-color: #e0e0e0;
    margin: 0 auto 20px auto;
}

.subtitle {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(16px, 3vw, 20px);
    color: #4a5a6a;
    line-height: 1.3;
    margin-bottom: 20px;
}

.date {
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    color: #9aaab8;
    margin-top: auto; 
}

        /* --- Responsividad --- */
        @media (max-width: 992px) {
            .grid-container { grid-template-columns: repeat(2, 1fr); }
        }

        @media (max-width: 600px) {
            .grid-container { 
                grid-template-columns: 1fr; 
                gap: 20px;
            }
            .card { padding: 35px 15px; }
            body { padding: 20px 10px; }
        }

        .gallery-section {
            column-count: 4; /* 4 Columnas para que se vean grandes */
            column-gap: var(--gap-size);
            max-width: 1400px;
            margin: 0 auto;
        }

        .gallery-item {
            width: 100%;
            display: block;
            margin-bottom: var(--gap-size); /* Espacio vertical igual al horizontal */
            border-radius: 2px; /* Bordes redondeados modernos */
            cursor: zoom-in;
            
            /* Sombra suave inicial para dar profundidad */
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
            
            transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
            break-inside: avoid; /* Evita que se rompan las fotos */
            background-color: #f0f0f0;
        }

        /* Efecto Hover (Al pasar el ratón) */
        .gallery-item:hover {
            transform: translateY(-5px); /* Se levanta suavemente */
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15); /* La sombra crece */
            filter: brightness(1.02); /* Un pelín más brillante */
        }

        /* --- LIGHTBOX (Igual que antes, funciona perfecto) --- */
        .lightbox {
            display: none;
            position: fixed;
            z-index: 2000;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            backdrop-filter: blur(5px);
            justify-content: center;
            align-items: center;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .lightbox.active {
            display: flex;
            opacity: 1;
        }

        .lightbox-img {
            max-width: 85vw;
            max-height: 85vh;
            object-fit: contain;
            border-radius: 4px;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
        }

        .close-btn {
            position: absolute;
            top: 30px;
            right: 40px;
            color: #000;
            font-size: 50px;
            line-height: 0.5;
            cursor: pointer;
            z-index: 2001;
            transition: transform 0.2s;
        }

        .close-btn:hover {
            transform: rotate(90deg); /* Efecto de giro al pasar el ratón */
            color: #ffffff;
        }

        /* --- RESPONSIVE --- */
        @media (max-width: 1200px) {
            .gallery-section { column-count: 3; }
        }
        @media (max-width: 800px) {
            .gallery-section { column-count: 2; }
            body { padding: 20px; }
            h2 { font-size: 2rem; }
        }
        @media (max-width: 500px) {
            .gallery-section { column-count: 1; }
        }

/* Estilos para el contenedor de la galería */
#galleryContainer {
    display: grid;
    /* Esto crea columnas automáticas que no bajan de 300px */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    
    /* AQUÍ ESTÁ EL ESPACIO ENTRE FOTOS */
    gap: 30px; 
    
    /* Un poco de margen general para que no toque los bordes de la pantalla */
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Estilos para que las imágenes se adapten al hueco */
#galleryContainer img {
    width: 100%;
    height: 300px; /* Altura fija para que todas se vean igual de altas */
    object-fit: cover; /* Recorta la imagen para llenar el cuadro sin deformarse */
    border-radius: 8px; /* Opcional: bordes redondeados suaves */
    cursor: pointer; /* Sale la manita al pasar el ratón */
    transition: transform 0.3s ease;
}

/* Efecto al pasar el ratón por encima de una foto */
#galleryContainer img:hover {
    transform: scale(1.03); /* Pequeño zoom elegante */
}