* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #e12802;
    --primary-red-500: #d4403a;
    --primary-red-700: #780008;
    --dark-bg: #1a1a1a;
}

body {
    font-family: 'Work Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

nav.scrolled {
    padding: 1rem 5%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    line-height: 1;
}

.nav-logo .logo-img {
    display: block;
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
    transition: all 0.3s ease;
}

.nav-links li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: width 0.3s ease;
}

.nav-links li a:hover {
    color: white;
}

.nav-links li a:hover::after {
    width: 100%;
}

/* Toggler Botton */
.btn-toggler {
        display: none;
        flex-direction: column;
        cursor: pointer;
        background: none;
        border: none;
        padding: 0.5rem;
    }

.btn-toggler span {
    width: 30px;
    height: 3px;
    background: white;
    margin: 4px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.btn-toggler:hover span {
    background: var(--primary-red);
}

.btn-toggler.active span:nth-child(1) {
    transform: rotate(45deg) translate(9px, 9px);
    background: var(--primary-red);
}

.btn-toggler.active span:nth-child(2) {
    opacity: 0;
}

.btn-toggler.active span:nth-child(3) {
    transform: rotate(-45deg) translate(9px, -9px);
    background: var(--primary-red);
}


/* Galeria */
.container {
    padding: 8rem 5%;
    margin: 1rem ;
}

h1 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-red);
    text-align: center;
    margin-bottom: 3rem;
    font-size: 3rem;
}

.section {
    background: white;
    padding: 3rem;
    margin-bottom: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.section-title {
    font-family: 'Playfair Display', serif;
    color: var(--primary-red);
    font-size: 2rem;
    margin-bottom: 2rem;
}

/*GALERÍA*/
.gallery-1 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-1 .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    aspect-ratio: 1;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-1 .gallery-item:hover {
    transform: scale(1.05);
}

.gallery-1 .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-1 .gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-1 .gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(225, 40, 2, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-1 .gallery-item:hover .overlay {
    opacity: 1;
}

.gallery-1 .overlay i {
    color: white;
    font-size: 3rem;
}


/* ============================================
    LIGHTBOX (Modal para ver imágenes grandes)
    ============================================ */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.8); }
    to { transform: scale(1); }
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
}

/* Botón cerrar */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-red);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10000;
}

.lightbox-close:hover {
    background: var(--primary-red-700);
    transform: rotate(90deg);
}

/* Flechas de navegación */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10000;
}

.lightbox-nav:hover {
    background: var(--primary-red);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

/* Contador de imágenes */
.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    z-index: 10000;
}

/* Título de la imagen */
.lightbox-title {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    max-width: 80%;
    text-align: center;
    z-index: 10000;
}

/* Thumbnails en lightbox */
.lightbox-thumbnails {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    max-width: 90%;
    overflow-x: auto;
    padding: 1rem;
    z-index: 10000;
}

.lightbox-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.lightbox-thumbnails::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.lightbox-thumbnails::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 10px;
}

.lightbox-thumbnail {
    width: 80px;
    height: 60px;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s ease;
    object-fit: cover;
    border: 2px solid transparent;
}

.lightbox-thumbnail:hover,
.lightbox-thumbnail.active {
    opacity: 1;
    border-color: var(--primary-red);
    transform: scale(1.1);
}

/* Footer */
footer {
    background: var(--dark-bg);
    color: rgba(255, 255, 255, 0.6);
    padding: 3rem 5%;
    text-align: center;
}

footer p {
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .gallery-2 {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    .gallery-2 {
        column-count: 2;
    }

    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-thumbnails {
        display: none;
    }

    .nav-links {
        position: fixed;
        top: 98px;
        right: -100%;
        width: 300px;
        height: calc(100vh - 70px);
        background: var(--dark-bg);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li a {
        font-size: 1.2rem;
        padding: 0.5rem 0;
        display: block;
    }

    .nav-links li a::after {
        display: none;
    }

    .nav-links li a:hover {
        color: var(--primary-red);
        padding-left: 1rem;
    }

    .btn-toggler {
        display: flex;
    }

}

@media (max-width: 480px) {
    .gallery-2 {
        column-count: 1;
    }

    h1 {
        font-size: 2rem;
    }
}