.hero-sobre {
    position: relative;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 39, 73, 0.9) 0%, rgba(27, 58, 107, 0.7) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.hero-bg-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-content {
    text-align: center;
    color: var(--blanco);
    max-width: 800px;
    padding: 0 20px;
}

.section-tag {
    display: inline-block;
    background: var(--rojo-principal);
    color: var(--blanco);
    padding: 5px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-content h1 {
    font-size: 3.8rem;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
    line-height: 1.1;
}

.hero-line{
    width: 90px;
    height: 5px;
    background: var(--rojo-principal);
    margin: 10px auto;
}

.hero-content p {
    font-size: 17px;
    opacity: 0.9;
}

.galeria-pinterest {
    padding: 3rem 1.5rem;
    background: linear-gradient(135deg, var(--blanco) 0%, var(--blanco) 100%);
    position: relative;
    overflow: hidden;
}

.galeria-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.galeria-titulo {
    text-align: center;
    margin-bottom: 2rem;
}

.galeria-titulo h2 {
    font-size: 44px;
    color: var(--azul-oscuro);
    font-weight: 800;
    line-height: 1.1;
}

.section-line {
    width: 90px;
    height: 5px;
    background: var(--rojo-principal);
    margin: 10px auto;
    margin-top: 20px;
    margin-bottom: 60px;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-auto-rows: 5px;
    gap: 1rem;
}

.grid-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    grid-row-end: span var(--row-span, 15);
    border: 2px solid var(--blanco);
}

.grid-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--blanco);
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.grid-item:hover img {
    transform: scale(1.03);
}

.grid-item::before {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: var(--blanco);
    font-size: 1.2rem;
    z-index: 3;
    transition: transform 0.2s ease;
    background: var(--rojo-principal);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    opacity: 0.9;
}

.grid-item:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    height: 90%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 60px;
    box-sizing: border-box;
}

.lightbox-image-container img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--blanco);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    border: 2px solid var(--blanco);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    padding: 0;
    text-indent: 0;
    text-align: center;
    transition: background 0.3s ease, color 0.3s ease;
}

.close-lightbox:hover {
    color: var(--blanco);
    background: var(--rojo-principal);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: var(--blanco);
    border: 2px solid var(--blanco);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 0;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--rojo-principal);
    border-color: var(--blanco);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--blanco);
    font-size: 16px;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--blanco);
    z-index: 10000;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.grid-item {
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.grid-item:nth-child(1) { animation-delay: 0.03s; }
.grid-item:nth-child(2) { animation-delay: 0.06s; }
.grid-item:nth-child(3) { animation-delay: 0.09s; }
.grid-item:nth-child(4) { animation-delay: 0.12s; }
.grid-item:nth-child(5) { animation-delay: 0.15s; }
.grid-item:nth-child(6) { animation-delay: 0.18s; }
.grid-item:nth-child(7) { animation-delay: 0.21s; }
.grid-item:nth-child(8) { animation-delay: 0.24s; }
.grid-item:nth-child(9) { animation-delay: 0.27s; }
.grid-item:nth-child(10) { animation-delay: 0.3s; }
.grid-item:nth-child(11) { animation-delay: 0.33s; }
.grid-item:nth-child(12) { animation-delay: 0.36s; }
.grid-item:nth-child(13) { animation-delay: 0.39s; }
.grid-item:nth-child(14) { animation-delay: 0.42s; }
.grid-item:nth-child(15) { animation-delay: 0.45s; }
.grid-item:nth-child(16) { animation-delay: 0.48s; }
.grid-item:nth-child(17) { animation-delay: 0.51s; }
.grid-item:nth-child(18) { animation-delay: 0.54s; }
.grid-item:nth-child(19) { animation-delay: 0.57s; }
.grid-item:nth-child(20) { animation-delay: 0.6s; }

@media (max-width: 992px) {
    .hero-sobre {
        height: 400px;
    }

    .ubicacion-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }

    .ubicacion-section {
        padding: 60px 20px;
    }

    .ubicacion-info h2 {
        font-size: 36px;
    }

    .section-line{
        margin: 0 auto 25px auto;
        margin-top: -8px;
        margin-bottom: 45px;
    }

    .hero-content p {
        font-size: 15px;
        line-height: 1.4;
        max-width: 100%;
        opacity: 0.9;
    }

    .hero-content {
        padding: 0 15px;
        width: 100%;
    }

    .section-line {
        margin: 20px auto 35px;
    }

    .hero-content h1 {
        font-size: 39px !important;
        letter-spacing: -0.5px;
        margin-bottom: 15px;
        font-weight: 800;
    }

    .section-tag {
        font-size: 10px;
        padding: 8px 11px;
        display: inline-block;
        margin-bottom: 12px;
    }

    .galeria-titulo h2 {
        font-size: 36PX;
    }

    .galeria-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.7rem;
    }

    .lightbox-prev, .lightbox-next {
        width: 45px;
        height: 45px;
        font-size: 20px;
        margin-top: 240px;
    }
    .close-lightbox {
        top: 10px;
        right: 15px;
        width: 40px;
        height: 40px;
    }

    .footer-container {
        flex-direction: column !important;
        padding: 0 25px !important;
    }

    .footer-right {
        flex-direction: column !important;
        gap: 30px !important;
    }

    .footer-column {
        align-items: flex-start !important;
        text-align: left !important;
    }
}
