/* --- Reseteo y Estilos Base --- */
/*Version 13:34*/
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Nunito Sans', sans-serif;
    background-color: #f4f1ec; 
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* ==============================================
ESTILOS PARA LA PÁGINA DE INICIO (index.html)
==============================================
*/

.splash-container {
    height: 680px;
    display: flex;
    flex-direction: column; 
    position: relative; 
    background-image: url('https://moccasin-dugong-654481.hostingersite.com/wp-content/uploads/2025/08/Recurso-4@2x-100-scaled.jpg');
    background-size: cover;
    background-position: right top;
}

.main-content {
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;   
    text-align: center;
    color: white;
    padding-bottom: 80px; 
}

.logo-png {
    max-width: 550px; 
    width: 70%;       
    height: auto;     
    filter: drop-shadow(1px 1px 4px rgba(0, 0, 0, 0.3)); 
}

.bottom-nav-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.40); 
    border-top: 1px solid #c69754; 
    border-bottom: 1px solid #c69754; 
    padding: 19px 50px; 
    box-sizing: border-box;
    display: flex;
    justify-content: center; 
    align-items: center;
}

.bottom-nav-bar nav {
    display: flex;
    gap: 80px; 
}

.bottom-nav-bar a {
    font-family: 'Nunito Sans', sans-serif; 
    color: #ada599; 
    font-size: 19px; 
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.bottom-nav-bar a.active {
    color: #c69754;
}

.footer-copyright {
    background-color: #f4f1ec; 
    text-align: center;
    color: #8f8c88; 
    letter-spacing: 0.05em;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    font-family: 'Nunito Sans', sans-serif; 
    font-size: 13px; 
    font-weight: 700; 
}


/* ==============================================
ESTILOS PARA LA PÁGINA DE GALERÍA (gallery.html)
==============================================
*/

.footer-section{
    height: 20vh;
}

.image-grid-container{
    height: 80vh;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: #f4f1ec;
}

.gallery-header {
    background-color: #f4f1ec;
    padding: 30px 0;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.gallery-header-logo {
    height: 40px;
    width: auto;
}

.collage-container {
    display: flex;
    height: 620px; 
}

.collage-item-wrapper {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-left: 2px solid #fff;
}
.collage-item-wrapper:first-child {
    border-left: none;
}

.collage-item-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0.7;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.collage-strip {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.collage-text {
    position: absolute;
    color: #fff;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-align: center;
    padding: 10px;
    transition: color 0.4s ease;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    z-index: 2;
}

.first-strip { background-image: url('https://moccasin-dugong-654481.hostingersite.com/wp-content/uploads/2025/08/BOLDRVIZ_NAUKA-SIARI_CAM-18-_MB-Restaruant-Interior-1-scaled.png'); }
.second-strip { background-image: url('https://moccasin-dugong-654481.hostingersite.com/wp-content/uploads/2025/08/BTE13-1-1-scaled.png'); }
.third-strip { background-image: url('https://moccasin-dugong-654481.hostingersite.com/wp-content/uploads/2025/08/BOLDRVIZ_NAUKA-SIARI_CAM-19_Beach-Club-Restaurant-Interior-1-scaled.png'); }
.fourth-strip { background-image: url('https://moccasin-dugong-654481.hostingersite.com/wp-content/uploads/2025/08/BOLDRVIZ_NAUKA-SIARI_CAM-3_Adult-Pool-1-scaled.png'); }
.fifth-strip { background-image: url('https://moccasin-dugong-654481.hostingersite.com/wp-content/uploads/2025/08/BOLDRVIZ_NAUKA-SIARI_CAM-6_Spa-Exterior-A-1-scaled.png'); }
.sixth-strip { background-image: url('https://moccasin-dugong-654481.hostingersite.com/wp-content/uploads/2025/08/BOLDRVIZ_NAUKA-SIARI_CAM-10B_Ground-Floor-Kitchen-Detail-1-scaled.png'); }

.secondary-nav-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #2f5b39; 
    padding: 15px 20px;
    flex-wrap: wrap;
}

.secondary-nav-bar a {
    color: #aebbb6;
    text-decoration: none;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.15em;
    padding: 5px 10px;
}
.secondary-nav-bar a.active {
    color: #c69754;
    cursor: default;
    pointer-events: none;
}


.main-nav-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 19px 50px;
    background-image: url('https://moccasin-dugong-654481.hostingersite.com/wp-content/uploads/2025/08/Recurso-4@2x-100-scaled.jpg');
    background-size: cover;
    background-position: center;
    background-color: rgba(0, 0, 0, 0.40);
    background-blend-mode: darken;
    border-top: 1px solid #c69754;
    border-bottom: 1px solid #c69754;
}
.main-nav-bar nav {
    display: flex;
    gap: 80px;
}
.main-nav-bar a {
    font-family: 'Nunito Sans', sans-serif;
    color: #ada599;
    font-size: 19px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.main-nav-bar a.active {
    color: #c69754;
}

.gallery-footer {
    display: flex;
    justify-content: space-between;
    align-items: stretch; 
    background-color: #f4f1ec;
    padding: 30px 40px; 
    height: 120px;
    box-sizing: border-box;
}

.footer-logo { align-self: center; }
.footer-logo-png { height: 40px; width: auto; } /* Ajustado para el nuevo logo */
.footer-copyright-gallery { align-self: flex-end; }
.footer-copyright-gallery p {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #8f8c88;
    margin: 0;
}

/* ==============================================
ESTILOS PARA LA PÁGINA DE CONTACTO (contact.html)
==============================================
*/

.contact-main {
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #2f5b39;
    padding: 40px;
    box-sizing: border-box;
}

/* --- REGLA PARA QUE EL CONTENIDO PRINCIPAL CREZCA --- */
.contact-main,
.image-grid-container,
.collage-container,
.splash-container {
    flex-grow: 1;
}


.contact-card { display: flex; align-items: center; gap: 30px; }
.qr-code-img { width: 160px; height: 160px; }
.contact-info { color: #ada599; }
.contact-name {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 5px 0;
    color: #c69754;
}

.contact-title {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 700;
    font-size: 30px;
    margin: 5px 0;
}

.contact-phone {
    font-family: 'Spectral', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 30px;
    margin: 5px 0;
}

/* ==========================================================
   ESTILOS PARA LA CUADRÍCULA DE GALERÍA INTERNA
========================================================== */

.image-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    height: 620px; 
    background-color: #fff;
    grid-template-rows: repeat(2, 1fr);
    overflow-y: auto;
    grid-auto-rows: 1fr;
    
}

.image-grid-container.grid-4-items {
    grid-template-columns: repeat(4, 1fr);
}

.image-grid-container.grid-4-items, .image-grid-container.grid-3-items {
    grid-template-rows:none;
}

.grid-item{
    width: 100%;
    background-color: #f4f1ec;
    height: 38vh;
}
.grid-item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grid-item img[src*="placehold.co"] {
    display: none;
}

.image-grid-container.grid-4-items .grid-item, .image-grid-container.grid-3-items .grid-item{
    height: 100%;
}

/* ==========================================================
   NUEVOS ESTILOS (SOLO PARA RESIDENCES)
========================================================== */
.residences-grid {
    grid-template-columns: repeat(4, 1fr);
    height: auto; /* La altura se ajustará al contenido */
}


/* ==========================================================
   EFECTOS HOVER (SOLO PARA DISPOSITIVOS CON MOUSE)
========================================================== */
@media (hover: hover) {
    .collage-item-wrapper:hover::before { opacity: 0; }
    .collage-item-wrapper:hover .collage-text { color: #c69754; }
    .bottom-nav-bar a:hover,
    .main-nav-bar a:hover,
    .secondary-nav-bar a:hover { color: #c69754; }
    .secondary-nav-bar a.is-hovered { color: #c69754; transition: color 0.4s ease; }
    .collage-item-wrapper.is-hovered::before { opacity: 0; }
}


/* ==============================================
   DISEÑO RESPONSIVO
==============================================
*/
@media (max-width: 1366px) {
    .secondary-nav-bar { justify-content: center; gap: 10px; }
    .collage-container { height: 520px; }
}

@media (max-width: 1121px) {
    .grid-item{
        height: 36vh;
    }
}


@media (max-width: 768px) {
    .splash-container {
        height: auto; 
    }
    .logo-png { max-width: 400px; }
    .bottom-nav-bar, .main-nav-bar { padding: 14px 20px; }
    .bottom-nav-bar nav, .main-nav-bar nav { gap: 40px; }
    .bottom-nav-bar a, .main-nav-bar a { font-size: 16px; }
    .secondary-nav-bar a { font-size: 16px; }
    .footer-copyright { height: auto; padding: 20px; align-items: center; }
    .gallery-footer {
        flex-direction: column;
        height: auto;
        gap: 15px;
        padding: 20px;
        text-align: center;
        align-items: center;
    }
    .footer-logo-png { height: 40px; }
    .contact-main { height: auto; }
    .contact-card { flex-direction: column; text-align: center; }
    .contact-name { font-size: 30px; }
    .contact-title, .contact-phone { font-size: 22px; }

    /* Galería principal a 2 columnas */
    .collage-container {
        flex-direction: row;
        flex-wrap: wrap;
        height: auto;
    }
    .collage-item-wrapper {
        flex: none;
        width: 50%;
        height: 250px;
        box-sizing: border-box;
        border: 2px solid #fff;
    }
    
    /* Galería interna responsiva (por defecto 2 columnas) */
    .image-grid-container {
        grid-template-columns: repeat(2, 1fr) !important;
        height: auto;
    }
    
    /* Ajuste para la galería de 3 items (1 columna) */
    .image-grid-container.grid-3-items {
        grid-template-columns: 1fr;
    }

    /* Ajuste para la galería de Residences (2 columnas) */
    .residences-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-item{
        height: 36vh;
    }
}

@media (max-width: 480px) {
    .logo-png { max-width: 280px; }
    .bottom-nav-bar, .main-nav-bar { flex-direction: column; gap: 15px; }
    .bottom-nav-bar nav, .main-nav-bar nav { flex-direction: column; gap: 15px; align-items: center; }
    .bottom-nav-bar a, .main-nav-bar a { font-size: 14px; }
    .secondary-nav-bar a { font-size: 14px; }
    .contact-name { font-size: 24px; }
    .contact-title, .contact-phone { font-size: 18px; }

    .collage-item-wrapper {
        height: 180px; 
    }

    .grid-item{
        height: 32vh;
    }
}