.main-section{
    height: 85vh;
    width: 100%;
    font-family: 'Fraunces', sans-serif;

    position: relative;
    padding: 2.5rem;  
}

.main-section p{
    font-family: "Plus Jakarta Sans", sans-serif;
}

.main-section#inicio{
    background-image: url(../../Resources/fondos/flores.svg);
    padding: 0px 2.5rem;
    background-color: #1B4D2E;

    color: #fff;

    display: flex;
    align-items: center;

}
.two-parter{
    width: 50% ;
    height: 80%;
    gap: 2rem;
}
.two-parter .container{
    width: fit-content;
    
}
.row{
    justify-content: space-evenly;
    display: flex;
    flex-direction: row;
    
}

.main-section .cifras{
    color: #C2A85A;
    font-weight: bold;
    display: flex;
    justify-content: center;
}
.main-section#destacados{
    background-color: #EBE9DA;
    padding: 2.5rem;
    display: flex;

    flex-direction: column;
}

#btnCatalogue{
    background-color: #F0C05F;
    color: black;
    font-weight: bold;
}
#btnLocation{
    border: 2px solid #fff;
}

.section-header{
    height: fit-content;
    color: #C8922B;
    width: 100%;
}
.section-title{
    width: fit-content;
}
.contact-header{
    margin-bottom: 1rem;
}
.contact-section{

    box-sizing: border-box;
    background-image: url(../../Resources/fondos/flores2.svg);
    color: white;

    display: flex;
    flex-direction: column;

}
.contact-body{
    display: flex;
    justify-content: space-around;

}
.contact-container{
    width: 20vw;
    height: fit-content;
    display: flex;
    align-items: center;
    
    flex-direction: column;
    gap: 1rem;
}
.contact-container a{
    all: unset;
}
.contact-container a:hover{
    cursor: pointer;
}

.contact-container p{
    display: flex;
    justify-content: center !important;
    align-items: center;
    flex-direction: row;
}
.contact-container img{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 1.5rem;
    width: auto;

    color: white;
    fill: white;

    margin-right: 0.7rem;
}

.map-container{
    height: 35vh;
    display: flex;
    align-items: center;
    justify-content: center;

}
.map-container iframe{
    width: 40%;
    height: 100%;
    border-radius: 10px;
}

#inicio, #contacto, #destacados, #galeria {
    scroll-margin-top: 15vh;
}


.gallery-section{
    height: fit-content;
    padding: 0;
    background-color: #1B4D2E;

    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.gallery-header-container{
    border-radius: 0px 0px 50px 50px;
    height: fit-content;
    width: 100%;

    backdrop-filter: blur(10px) grayscale(100%);
    -webkit-backdrop-filter: blur(10px) grayscale(100%);

}

.gallery-header{
    width: 100%;
    color: #FFFDF7;

    border-radius: 5px;

    height: fit-content;

    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-direction: column;
}

.gallery-wrap {
    padding: 3rem 1.5rem;
    width: 65%;
    margin: 0 auto;
}

.gallery-header {
    text-align: center;
    margin-bottom: 2rem;
}

.gallery-title {
    font-family: 'Cormorant Garamond', serif;
    color: var(--color-text-primary);
    margin: 0 0 0.5rem;
    line-height: 1.15;
}

.gallery-title span { color: #C2A85A; font-style: italic; }

.gallery-rule {
    width: 40px;
    height: 1px;
    background: #C2A85A;
    margin: 0 auto;
    opacity: 0.6;
}

.gallery-intro {
    max-width: 480px;
    line-height: 1.85;
    margin: 1rem auto 0;
    letter-spacing: 0.02em;

    font-size: clamp(12px, 2vw, 18px);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.gallery-row2 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.gallery-row3 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
}

.gallery-cell {
    position: relative;
    overflow: hidden;
    background: var(--color-background-secondary);
}

.gallery-cell::after {
    content: '';
    display: block;
    padding-top: 70%;
}

.gallery-cell.tall::after { padding-top: 130%; }
.gallery-cell.short::after { padding-top: 56%; }
.gallery-cell.square::after { padding-top: 100%; }

.gallery-cell img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-cell:hover img { transform: scale(1.05); }

.gallery-veil {
    position: absolute;
    inset: 0;
    background: rgba(20, 14, 3, 0);
    transition: background 0.4s;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 18px;
    z-index: 1;
}

.gallery-cell:hover .gallery-veil {
    background: rgba(20, 14, 3, 0.42);
}

.gallery-tag {
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #C2A85A;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.35s, transform 0.35s;
    margin-bottom: 3px;
}

.gallery-caption {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-style: italic;
    font-size: 17px;
    color: rgba(255,255,255,0);
    transition: color 0.35s 0.05s;
    line-height: 1.2;
}

.gallery-cell:hover .gallery-tag {
    opacity: 1;
    transform: translateY(0);
}

.gallery-cell:hover .gallery-caption {
    color: rgba(255,255,255,0.95);
}

.gallery-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 2.5rem;
}

.gallery-line {
    flex: 1;
    height: 0.5px;
    background: var(--color-border-tertiary);
    max-width: 100px;
}

.gallery-btn {
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #C2A85A;
    border: 0.5px solid #C2A85A;
    padding: 11px 28px;
    background: transparent;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.gallery-btn:hover { background: #C2A85A; color: #fff; }


.floral-hr-container{
    margin: 10px 0px; 

    height: fit-content;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.floral-hr{
    height: 5vh;
    width: 100%;
    color: #C2A85A;
}

.book {
    border-radius: 6px 12px 12px 6px;
    flex-shrink: 0;
    transform-origin: bottom center;
    transition: transform 0.3s;

    padding-top: 10px;
}
.books-illustration {
    position: absolute;
    right: 3.5vw;
    bottom: 10px;
    width: fit-content;
    height: fit-content;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 12px;
    
}

@media (min-width: 768px) {
    .two-parter{
        align-content: center;
    }
    .card{
        width: 285px !important;
    }
}
@media (max-width: 768px){
    .two-parter{
        width: 100%;
        height: fit-content;
    }
    .hide{
        display: none !important;
    }
    .books-illustration{
        display: none;
    }

}
@media (max-width: 512px){
    .cifras-container{
        display: flex;
        flex-direction: row;
        gap: 0.5rem;

        align-items: center;
        justify-content: center;
    }
    .cifras{
        font-size: 26px;
    }
    .gallery-wrap{
        width: 100%;
        padding: 1rem 1rem;
    }
    
}

@media (max-width: 768px){
    .contact-section{
        height: fit-content;
    }
    .contact-body{
        flex-direction: column;
        align-items: center;
    }
    .contact-container{
        display: flex;
        align-items: center !important; 
        justify-content: center;
        width: 100%;
    }
    .map-container{
        width: 100%;
    }.contact-section{
        height: fit-content;
    }
    .contact-body{
        flex-direction: column;
        align-items: center;
    }
    .contact-container{
        display: flex;
        align-items: center !important; 
        justify-content: center;
        width: 100%;
    }
    .map-container{
        width: 100%;
    }
    .map-container iframe{
        height: 100%;
        width: 100%;
    }
    .map-container iframe{
        height: 100%;
        width: 100%;
    }
}