/* galeria-minimalista.css - Estilos completos con galería elegante */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Paleta de colores principal */
    --primary-red-dark: #9A1815;
    --primary-red: #7D0809;
    --secondary-beige: #BBA38E;
    --secondary-cream: #E6D7BE;
    --dark: #070705;
    --accent-blue: #457B9D;
    
    /* Colores adicionales para la interfaz */
    --text-color: #333333;
    --light-text: #ffffff;
    --light-bg: #f9f7f4;
    --border-color: #e5e0d8;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --hover-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    --overlay: rgba(7, 7, 5, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 62.5%;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #ffffff;
    font-size: 1.6rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(7, 7, 5, 0.9);
    transition: var(--transition);
    padding: 0.5rem 4rem; /* Valor positivo y razonable */
    height: 10rem;
}

header.scrolled {
    padding: 1.5rem 4rem;
    background-color: rgba(7, 7, 5, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    transition: var(--transition);
    top: -8rem;
}

.logo-container:hover {
    transform: scale(1.05);
}

.logo-container a {
    display: flex;
    align-items: center;
}

.logo-container a img {
    height: 10rem;
    width: auto;
    margin-right: 1rem;
    transition: var(--transition);
}

.logo-container:hover img {
    transform: rotate(5deg);
}

.logo-container h1 {
    color: var(--light-text);
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 0;
}

.main-menu {
    display: flex;
    align-items: center;
     margin-top: 0.5rem;
}

.main-menu li {
    margin-left: 3rem;
    position: relative;
}

.main-menu a {
    color: var(--light-text);
    font-weight: 500;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    transition: var(--transition);
}

.main-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-beige);
    transition: var(--transition);
}

.main-menu a:hover::after,
.main-menu a.active::after {
    width: 100%;
}

.main-menu a:hover {
    color: var(--secondary-beige);
    transform: translateY(-2px);
}

.main-menu a.active {
    color: var(--secondary-beige);
}

.lang-switch {
    border: 1px solid var(--secondary-beige);
    padding: 0.5rem 1rem;
    border-radius: 0.4rem;
    transition: var(--transition);
}

.lang-switch:hover {
    background-color: var(--secondary-beige);
    color: var(--dark);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 2.4rem;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-toggle:hover {
    transform: rotate(90deg);
}

/* Page Title Section */
.page-title {
    padding: 12rem 0 6rem;
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, var(--light-bg) 100%);
}

.page-title h1 {
    font-size: 4.8rem;
    color: var(--primary-red);
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.page-title p {
    font-size: 1.8rem;
    color: var(--text-color);
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

/* Galería Mosaico Elegante */
.gallery-mosaic {
    padding: 0 2rem 10rem;
    background: var(--light-bg);
}

.mosaic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1600px;
    margin: 0 auto;
    grid-auto-rows: 280px;
}

/* Estilos de items */
.mosaic-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Patrón visual atractivo - algunos items más grandes */
.mosaic-item:nth-child(5n+1) {
    grid-column: span 2;
    grid-row: span 2;
}

.mosaic-item:nth-child(7n+3) {
    grid-row: span 2;
}

.mosaic-item:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.mosaic-item:hover img {
    transform: scale(1.12);
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(7, 7, 5, 0.95) 0%, rgba(7, 7, 5, 0) 100%);
    padding: 4rem 2.5rem 2.5rem;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.mosaic-item:hover .overlay {
    transform: translateY(0);
}

.overlay h3 {
    color: var(--light-text);
    font-size: 2.4rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    letter-spacing: 0.5px;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-caption {
    text-align: center;
    margin-top: 2rem;
}

.lightbox-caption h2 {
    color: var(--light-text);
    font-size: 2.4rem;
    font-weight: 600;
}

.close-btn, .nav-btn {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: var(--light-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 2rem;
}

.close-btn {
    top: 2rem;
    right: 2rem;
}

.nav-btn.prev {
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.nav-btn.next {
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.close-btn:hover, .nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.nav-btn:hover {
    transform: translateY(-50%) scale(1.1);
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    width: 6rem;
    height: 6rem;
    background-color: #25D366;
    color: var(--light-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    z-index: 100;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* Media queries para responsividad */
@media (max-width: 1400px) {
    .mosaic-grid {
        grid-template-columns: repeat(8, 1fr);
        grid-auto-rows: 200px;
    }
    
    .mosaic-item:nth-child(1) {
        grid-column: span 4;
        grid-row: span 2;
    }

    .mosaic-item:nth-child(2) {
        grid-column: span 2;
        grid-row: span 2;
    }

    .mosaic-item:nth-child(3) {
        grid-column: span 2;
        grid-row: span 2;
    }

    .mosaic-item:nth-child(4) {
        grid-column: span 3;
        grid-row: span 1;
    }

    .mosaic-item:nth-child(5) {
        grid-column: span 3;
        grid-row: span 2;
    }

    .mosaic-item:nth-child(6) {
        grid-column: span 2;
        grid-row: span 1;
    }

    .mosaic-item:nth-child(7) {
        grid-column: span 2;
        grid-row: span 2;
    }

    .mosaic-item:nth-child(8) {
        grid-column: span 3;
        grid-row: span 1;
    }

    .mosaic-item:nth-child(9) {
        grid-column: span 3;
        grid-row: span 2;
    }

    .mosaic-item:nth-child(10) {
        grid-column: span 2;
        grid-row: span 1;
    }

    .mosaic-item:nth-child(11) {
        grid-column: span 4;
        grid-row: span 2;
    }

    .mosaic-item:nth-child(12) {
        grid-column: span 4;
        grid-row: span 1;
    }
}

@media (max-width: 992px) {
    html {
        font-size: 50%;
    }
    
    .main-header {
        padding: 1.5rem 2rem;
    }
    
    .mosaic-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        grid-auto-rows: 250px;
    }
    
    .mosaic-item:nth-child(1) {
        grid-column: span 4;
        grid-row: span 2;
    }

    .mosaic-item:nth-child(2) {
        grid-column: span 2;
        grid-row: span 1;
    }

    .mosaic-item:nth-child(3) {
        grid-column: span 2;
        grid-row: span 1;
    }

    .mosaic-item:nth-child(4) {
        grid-column: span 2;
        grid-row: span 2;
    }

    .mosaic-item:nth-child(5) {
        grid-column: span 2;
        grid-row: span 1;
    }

    .mosaic-item:nth-child(6) {
        grid-column: span 4;
        grid-row: span 1;
    }

    .mosaic-item:nth-child(7) {
        grid-column: span 2;
        grid-row: span 1;
    }

    .mosaic-item:nth-child(8) {
        grid-column: span 2;
        grid-row: span 2;
    }

    .mosaic-item:nth-child(9) {
        grid-column: span 2;
        grid-row: span 1;
    }

    .mosaic-item:nth-child(10) {
        grid-column: span 2;
        grid-row: span 1;
    }

    .mosaic-item:nth-child(11) {
        grid-column: span 4;
        grid-row: span 1;
    }

    .mosaic-item:nth-child(12) {
        grid-column: span 4;
        grid-row: span 1;
    }
    
    .page-title {
        padding: 10rem 0 4rem;
    }
    
    .page-title h1 {
        font-size: 3.6rem;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--dark);
        transition: right 0.3s ease;
        padding: 10rem 2rem;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-menu {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .main-menu li {
        margin: 1rem 0;
    }
    
    .mosaic-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
        gap: 1.5rem;
    }
    
    .mosaic-item:nth-child(5n+1) {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .mosaic-item:nth-child(1),
    .mosaic-item:nth-child(4),
    .mosaic-item:nth-child(7),
    .mosaic-item:nth-child(10) {
        grid-column: span 2 !important;
    }
}

@media (max-width: 576px) {
    .mosaic-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
    }
    
    .mosaic-item:nth-child(n) {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
    
    .page-title h1 {
        font-size: 3rem;
    }
    
    .whatsapp-btn {
        bottom: 2rem;
        right: 2rem;
        width: 5rem;
        height: 5rem;
        font-size: 2.4rem;
    }
    
    .close-btn, .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.6rem;
    }
}