/* 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;
    padding-top: 50px;
}

/* Títulos */
.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #333333, #888888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: italic;
}

.section-subtitle {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 50px;
    font-weight: 300;
    letter-spacing: 1px;
}

/* ========== SECCIÓN ÁLBUMES ========== */
.albumes-section {
    padding: 80px 0;
    background: #f3f3f3;
}

.albumes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

/* Tarjeta de álbum - Diseño diferente */
.album-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.album-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #C8B48C;
}

.album-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.album-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.album-card:hover .album-image img {
    transform: scale(1.1);
}

/* Overlay sobre la imagen */
.album-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 60%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.album-card:hover .album-overlay {
    opacity: 1;
}

.album-count {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Información del álbum */
.album-info {
    padding: 20px 25px 25px;
    position: relative;
}

.album-info h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.album-info p {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 15px;
    font-weight: 300;
}

.album-date {
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: inline-block;
    background: #f0f0f0;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    color: #1c1c1c;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Botón dentro del álbum */
.btn-album {
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding: 3px 25px;
    background: #000000;
    color: #fff;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-album:hover {
    background: #ffffff;
    transform: translateY(-2px);
    color: #000000;
    box-shadow: 0 5px 15px rgba(200, 180, 140, 0.4);
}

.btn-album i {
    transition: transform 0.3s ease;
}

.btn-album:hover i {
    transform: translateX(5px);
}

/* Efecto de borde animado en el álbum */
.album-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #C8B48C, #e8d5b8, #C8B48C, #b8a47c);
    border-radius: 16px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.album-card:hover::before {
    opacity: 1;
}

/* ========== BOTÓN PORTAFOLIO ========== */
.btn-container {
    text-align: center;
    margin-top: 20px;
}

.btn-portafolio {
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 18px 40px;
    background: #C8B48C;
    color: #ffffff;
    border: 2px solid #C8B48C;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 2px;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.btn-portafolio span {
    position: relative;
    z-index: 1;
}

.btn-portafolio i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

/* Fondo animado del botón */
.btn-portafolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #b8a47c, #d4c4a0, #C8B48C, #b8a47c);
    transition: left 0.6s ease;
}

.btn-portafolio:hover::before {
    left: 0;
}

.btn-portafolio:hover {
    border-color: #b8a47c;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(200, 180, 140, 0.4);
}

.btn-portafolio:hover i {
    transform: translateX(8px);
}

/* ========== SECCIÓN FOTOS FAVORITAS - MASONRY ========== */
.favoritas-section {
    padding: 80px 0;
    background: #ffffff;
    border-top: 1px solid #e8e8e8;
}

.favoritas-grid {
    column-count: 3;
    column-gap: 5px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.foto-item {
    break-inside: avoid;
    margin-bottom: 5px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: #f0f0f0;
    border-radius: 0;
}

.foto-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.foto-item:hover img {
    transform: scale(1.03);
}

.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;
}

.foto-item:hover .foto-overlay {
    opacity: 1;
}

.foto-overlay i {
    font-size: 2rem;
    color: #ffffff;
    animation: pulse 1.5s infinite;
}

.foto-overlay span {
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #fff;
    font-size: 0.9rem;
    letter-spacing: 1px;
    font-weight: 300;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* ========== LIGHTBOX ========== */
.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;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

.lightbox-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.close-lightbox {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: absolute;
    top: -50px;
    right: 0;
    color: #fff;
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    z-index: 10;
}

.close-lightbox:hover {
    transform: rotate(90deg);
    color: #C8B48C;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .albumes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .favoritas-grid {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .albumes-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .favoritas-grid {
        column-count: 2;
    }
    
    .btn-portafolio {
        padding: 15px 30px;
        font-size: 1rem;
        gap: 10px;
    }
    
    .album-image {
        height: 200px;
    }
    
    .lightbox {
        padding: 20px;
    }
    
    .close-lightbox {
        top: -40px;
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .favoritas-grid {
        column-count: 2;
    }
    
    .album-info h3 {
        font-size: 1.1rem;
    }
    
    .btn-album {
        width: 100%;
        justify-content: center;
    }
    
    .lightbox {
        padding: 10px;
    }
    
    .close-lightbox {
        top: -35px;
        font-size: 2rem;
    }
}