/* ==========================================
   RESET Y ESTILOS BASE
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f3f3f3;
    color: #333333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   MENÚ DE NAVEGACIÓN
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: 'Playfair Display', Georgia, serif;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-decoration: none;
    font-style: italic;
}

.nav-logo span {
    color: #C8B48C;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-links a {
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #C8B48C;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #C8B48C;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: #C8B48C;
}

.nav-links a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: #ffffff;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================
   HERO PRINCIPAL
   ========================================== */
.hero-principal {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    margin-top: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

/* ==========================================
   SECCIÓN ÁLBUM
   ========================================== */
.album-section {
    padding: 80px 0 60px;
    background: #f3f3f3;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: 6px;
    color: #333333;
    font-style: italic;
}

.section-title span {
    color: #C8B48C;
    font-weight: 600;
}

.section-subtitle {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
    color: #888;
    font-size: 1.1rem;
    margin-bottom: 50px;
    font-weight: 300;
    letter-spacing: 3px;
}

/* ==========================================
   GRID - TODAS LAS FOTOS EN CUADRADOS
   ========================================== */
.album-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.foto-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: #1a1a1a;
    aspect-ratio: 1 / 1;
}

.foto-item a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.foto-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.foto-item:hover img {
    transform: scale(1.05);
}

.foto-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(200, 180, 140, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    gap: 10px;
    pointer-events: none;
}

.foto-item:hover .foto-overlay {
    opacity: 1;
}

.foto-overlay i {
    font-size: 2.5rem;
    color: #ffffff;
    animation: pulse 1.5s infinite;
}

.foto-overlay span {
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #fff;
    font-size: 1rem;
    letter-spacing: 2px;
    font-weight: 300;
    text-transform: uppercase;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* ==========================================
   LIGHTBOX SOLO CON CSS (CORREGIDO)
   ========================================== */
.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;
    padding: 40px;
    overflow-y: auto;
}

/* Cuando el enlace es clickeado, el lightbox se muestra */
.lightbox:target {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

/* ===== BOTÓN X PARA CERRAR ===== */
.close-lightbox {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: fixed;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    z-index: 10000;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-lightbox:hover {
    transform: rotate(90deg);
    color: #C8B48C;
    background: rgba(200, 180, 140, 0.2);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
    .album-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        padding: 20px 0;
        gap: 15px;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-principal {
        height: 70vh;
        min-height: 400px;
    }

    .album-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .section-title {
        font-size: 2.2rem;
        letter-spacing: 4px;
    }

    .section-subtitle {
        font-size: 0.95rem;
        letter-spacing: 2px;
    }

    .lightbox {
        padding: 20px;
    }

    .close-lightbox {
        top: -40px;
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero-principal {
        height: 60vh;
        min-height: 300px;
    }

    .album-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title {
        font-size: 1.8rem;
        letter-spacing: 3px;
    }

    .section-subtitle {
        font-size: 0.85rem;
        letter-spacing: 1px;
        margin-bottom: 30px;
    }

    .album-section {
        padding: 50px 0 30px;
    }

    .lightbox {
        padding: 10px;
    }

    .close-lightbox {
        top: -35px;
        font-size: 2rem;
    }
}