/* ============================================
   CAJ 2026 
   ============================================ */

@import 'variables.css';
@import 'components/dropdowns.css';
@import "components/forms.css";
@import 'components/grid.css';
@import 'components/panels.css';
@import 'components/display.css';

/*@import 'components/hero.css';
@import "components/_buttons";
@import "components/_items";
@import "components/_lists";
@import "components/_cards";
@import "components/_alerts";
@import "components/_paginations";
@import "components/_types";
@import "components/_tables";
@import "components/_carousels";
@import "components/_utilities";
@import "components/_images";
@import "components/_calendars";
*/

/*@import "layouts/navs.css";*/
/* #endregion */

/* ============================================ */
/* #region RESET  */
/* ============================================ */

/*

	html {
		box-sizing: border-box;
	}

	*, *:before, *:after {
		box-sizing: inherit;
	}

	body {
		background: #fff;
		overflow: hidden;
	}

    */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--dark);
    background-color: var(--body-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);

}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

p,
li,
dd {
    text-wrap: pretty;
}

p {
    margin-right: 0;
    margin-left: 0;
}

h1,
h2 {
    letter-spacing: -0.02rem;
}

h1,
h2,
h3 {
    line-height: 1.1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-headers);
    text-wrap: balance;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

@keyframes image-appear {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes hero-background-in {
    from {
        opacity: 0;
        transform: scale(1.05);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

img {
    animation: image-appear 0.7s ease both;
}

.gallery-grid-item img,
.lightbox-image {
    animation: none;
}

@media (prefers-reduced-motion: reduce) {
    img {
        animation: none;
    }

    .hero::before {
        animation: none;
    }
}

/* #endregion */

/* ============================================ */
/* #region BASE / TIPOGRAFÍA */
/* ============================================ */

.bar-section {
    text-align: center;
    margin-bottom: 2rem;
}

/* Para hacer el fondo del header 100% aplica a .bar-section */
.full-bleed {
    position: relative;
}

.full-bleed::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: var(--bg-full-bleed);
    /* el fondo que quieras */
    z-index: -1;
}

.section-label {
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 700;
    font-family: var(--font-headers);
    display: block;
    font-size: 1rem;
    margin: 0;
    padding: 0;

    @media (min-width:576px) {
        font-size: 1.15rem;
    }

    @media (min-width:768px) {
        font-size: 1.25rem;
    }

    @media (min-width:992px) {
        font-size: 1.5rem;
    }
    img {
        max-width: 3rem;
        max-height: 3rem;
        height: auto;
        vertical-align: middle;
        margin-right: 0.5rem;
    }
}

.section-title {
    font-size: 1.5rem;
    line-height: 2rem;
    letter-spacing: 0.1rem;
    color: var(--dark);
    background-image: var(--lineas);
    background-size: 100% auto;
    /* o contain */
    background-repeat: no-repeat;
    background-position: bottom;
    padding: 1rem;
    display: inline-block;

    @media (min-width:576px) {
        font-size: 2rem;
        line-height: 2.5rem;
    }

    @media (min-width:768px) {
        font-size: 2.5rem;
        line-height: 3rem;
    }

    @media (min-width:992px) {
        font-size: 3rem;
        line-height: 4rem;
    }
}
.section-image {
    margin: 1rem auto;
    max-width: 150px;
    max-height: 150px;
}

.lead {
    font-family: 'Roboto Mono';
    font-size: 1.2rem;
    font-weight: 300;
    text-align: center;
}


/* #endregion */

/* ============================================ */
/* #region LAYOUT  */
/* ============================================ */
body:not(.Home) {
    padding-top: 50px;

    @media (min-width:576px) {
        padding-top: 70px;
    }

    @media (min-width:768px) {
        padding-top: 90px;
    }

    @media (min-width:992px) {
        padding-top: 110px;
    }
}

.site-container,
.container {
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 2rem;

    /*BS .container cloned*/
    width: 100%;
    display: block;
    padding-right: 1rem;
    padding-left: 1rem;

    @media (min-width:576px) {
        /* sm - var(--breakpoint-sm) */
        max-width: 540px;
        padding-right: 1.5rem;
        padding-left: 1.5rem;
    }

    @media (min-width:768px) {
        /* md - var(--breakpoint-md) */
        max-width: 720px;
        padding-right: 2rem;
        padding-left: 2rem;
    }

    @media (min-width:992px) {
        /* lg - var(--breakpoint-lg) */
        max-width: 960px;
        padding-right: 3rem;
        padding-left: 3rem;
    }

    @media (min-width:1200px) {
        /* xl - var(--breakpoint-xl) */
        max-width: 1140px;
    }

    @media (min-width:1400px) {
        /* xxl - var(--breakpoint-xxl) */
        max-width: 1320px;
    }

}

@scope (.site-section) {

    /*section*/
    /*Alone*/
    .section-main {
        /*article*/
        width: 90%;
        margin: 0 auto;

        @media (min-width:992px) {
            /* lg - var(--breakpoint-lg) */
            width: 80%;
        }
    }

    /*Sidebar*/
    .section-container {
        display: flex;

        .section-main {
            /*article*/
            display: flex;
            flex-direction: column;
            flex: 1;
            order: 1;
            margin: 0;
            padding: 0 1.5rem;
        }

        .section-aside {
            display: none;
            order: 2;
            padding: 0 1.5rem;

            @media (min-width:992px) {
                /* lg - var(--breakpoint-lg) */
                display: flex;
                flex-direction: column;
                flex: 0 0 25%;
            }
        }

        &.invert {
            .section-main {
                order: 2;
            }

            .section-aside {
                order: 1;
            }
        }
    }

}

/* #endregion */

/* ============================================ */
/* #region HEADER */
/* ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--zindex-sticky);

    background: linear-gradient(to bottom, rgba(var(--header-bg), 0.9), rgba(var(--header-bg), 0.8));
    transition: background-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;

    display: flex;
    justify-content: space-between;
    padding-top: 5px;

}

@media (min-width:540px) {
    .site-header {
        justify-content: space-around;

    }
}

body.Home .site-header {
    animation: header-slide-in 0.6s ease-out;
}

@keyframes header-slide-in {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

body:not(.Home) .site-header {
    border-bottom: 1px solid #B5C2B6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.scroll .site-header {
    /*background-color: rgba(249, 248, 244, 0.95);*/
    background-color: rgba(var(--header-bg), 0.95);
    border-bottom: 1px solid #B5C2B6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

@media (prefers-reduced-motion: reduce) {
    .site-header {
        animation: none;
    }
}


@scope (.site-header) {

    .nav-icons {
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        padding-right: 1rem;

        button {
            display: block;
            color: var(--primary);
        }

        svg {
            height: 2rem;
            width: auto;
            fill: currentColor;
        }
    }

    .logo img {
        width: auto;
        height: 48px;
        padding-left: 1rem;
    }

    @media (min-width:992px) {
        .logo img {
            width: auto;
            height: 75px;
        }
    }

    .bar-main {
        display: flex;
        flex-direction: column;
        margin: 0 1rem;
        align-items: end;
        font-weight: 600;
    }

    .top {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        padding: 0;
        margin: 0 1rem 1rem 1rem;
        list-style: none;

        li {
            padding-left: 2rem;
        }
    }

    .nav-sections {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;

        padding-left: 0;
        margin-bottom: 0;
        list-style: none;
        animation: fadeIn 2s;

        font-family: var(--font-headers);
        text-transform: uppercase;
        font-weight: 700;

        a,
        a:visited {
            color: var(--primary);
        }

        a:hover,
        a:focus,
        a:active {
            color: var(--accent);
        }

        ul {
            margin: 0;
            padding: 0;
            list-style: none;
        }

        li {
            padding-left: 2rem;
            font-size: 1.25rem;
        }

        >li:last-child {
            background-image: var(--brochazo);
            background-size: 100% auto;
            background-repeat: no-repeat;
            background-position: center;
            padding-right: 2rem;
            margin-left: 2rem;
        }

    }

    ul.dropdown-content {
        background-color: var(--bg-light);
        border-radius: 0 1.5rem 1.5rem 1.5rem;
        padding: 1.15rem;
        z-index: var(--zindex-fixed);

        li {
            text-transform: none;
            line-height: 2.25rem;
            padding-left: 0;

        }
    }

}

@scope (.offcanvas) {
    .nav-sections {
        padding: 1rem;
        margin: 0;
        list-style: none;
        animation: fadeIn 2s;

        font-family: var(--font-headers);
        text-transform: uppercase;
        font-weight: 700;

        a,
        a:visited {
            color: var(--primary);
        }

        a:hover,
        a:focus,
        a:active {
            color: var(--accent);
        }

        ul {
            margin: 0;
            padding: 0;
            list-style: none;
        }

        li {
            font-size: 1.25rem;
        }

        >li:last-child {
            background-image: var(--brochazo);
            background-size: 100% auto;
            background-repeat: no-repeat;
            background-position: center;
        }

        .dropdown-content {
            position: static;
            width: 100%;
            opacity: 1;
            visibility: visible;
            transform: none;
            transition: none;
            display: none;
            padding: 0;
            padding-left: 1rem;
            text-transform: none;
        }

        .dropdown-content.show {
            display: block;
        }
    }
}

/* #endregion */

/* ============================================ */
/* #region MAIN */
/* ============================================ */

/* #endregion */

/* ============================================ */
/* #region FOOTER */
/* ============================================ */

.site-footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 1rem;
    background-size: cover;
    background-image: url('../img/mapa.jpg');
    background-position: center center;
}

@scope(.site-footer) {


    .friends {
        width: 100%;
        display: flex;
        flex-direction: column;
        margin: 1rem 0;

        ul {
            display: flex;
            flex: 1;
            flex-direction: row;
            justify-content: space-around;
            align-items: center;
            flex-wrap: wrap;
        }

        img {
            max-width: 10rem;
            height: auto;
        }
    }

    .contact {
        max-width: 300px;
        display: flex;
        margin: 1rem;
    }

    @media (min-width:992px) {
        .contact {
            width: 50%;
            max-width: 50%;
            margin: 1rem 0;
            margin-right: 50%;
        }
    }

    .contact .box {
        background-color: rgba(255, 255, 255, 0.5);
        margin-left: auto;
        padding: 1rem;
        text-align: right;
    }

    .contact h3 {
        /*preserveAspectRatio='none*/
        background-image: var(--brochazo);
        /*background-size: 100% 100%;*/
        background-size: 100% auto;
        /* o contain */
        background-repeat: no-repeat;
        background-position: center;
        display: inline;
        padding: 2rem 3rem;
        margin: 1rem;
    }

    .contact li {
        padding: .5rem 1rem;
        font-weight: 600;
    }

    .contact .social {
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        gap: .75rem;
        margin-top: .75rem;
    }

    .contact .social li {
        padding: 0;
    }

    .contact .social a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.25rem;
        height: 2.25rem;
        border-radius: 50%;
        background-color: var(--primary);
        color: #FFF;
        transition: opacity .2s ease;
    }

    .contact .social a:hover {
        opacity: .8;
    }

    .contact .social svg {
        width: 1.1rem;
        height: 1.1rem;
        fill: currentColor;
    }

    .copy {
        max-width: 960px;
        padding: 1rem 3rem;
        border-top: 1px solid #FFF;
        text-align: center;
        font-weight: 600;
        color: var(--primary);

        a {
            color: var(--primary);
        }

        a:hover {
            text-decoration: underline;
        }

        ul {
            margin: 0;
        }

        li {
            display: inline-block;
            padding: 0.15rem 1rem;
        }
    }

}

/* #endregion */

/* ============================================ */
/* #region HOME */
/* ============================================ */

@scope(.Home) {
    .section-header {
        text-align: center;
        margin-top: 2rem;
        margin-bottom: 2rem;
    }

    .section-label {
        color: var(--primary);
        text-transform: uppercase;
        font-weight: 700;
        font-family: var(--font-headers);
        display: block;
        font-size: 1.15rem;
    }

    .section-title {
        font-size: clamp(1.8rem, 3vw, 2.6rem);
        color: var(--dark);
        line-height: 4rem;
        background-image: var(--lineas);
        background-size: 100% auto;
        /* o contain */
        background-repeat: no-repeat;
        background-position: bottom;
        padding: 1rem;
        display: inline-block;
    }

    .section-text {
        padding: 8px 0;
    }

    .section-text p,
    .section-text li {
        color: var(--text-secondary);
        font-size: 1.25rem;
        line-height: 1.75;
        margin-top: 20px;
    }

    @media (min-width: 540px) {

        .section-text p,
        .section-text li {
            font-size: 1.75rem;
        }
    }

    /* ─── Hero section ────────────────────────────────────────────────────── */
    .hero {
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: center;
        min-height: 100vh;
        min-height: 100dvh;
        /* evita saltos por la barra de direcciones en móvil */
        padding-bottom: clamp(2rem, 6vw, 4rem);
    }

    .hero::before {
        position: absolute;
        inset: 0;
        z-index: 0;
        content: '';
        background-image: url('../img/hero-fhd_sinslogan_slumber.jpg');
        background-size: cover;
        background-position: center;
        background-attachment: fixed;
        animation: hero-background-in 1.2s ease both;
    }

    .hero>* {
        position: relative;
        z-index: 1;
    }

    @media (min-width: 992px) {
        .heroV {
            min-height: 600px;
        }
    }

    /* 
    .hero__overlay {
        position: absolute;
        inset: 0;
        z-index: 1;
        background: linear-gradient(180deg,
                rgba(var(--header-bg), 0.75) 0%,
                rgba(var(--header-bg), 0.35) 20%,
                rgba(var(--header-bg), 0.05) 45%,
                rgba(var(--header-bg), 0) 100%);
    } */

    .hero__image {
        padding: 2rem;
        border: 2px solid var(--primary);
        outline: 1px solid var(--secondary);
        outline-offset: 6px;
        background-color: rgba(var(--slogan-bg), 0.5);
    }

    .hero__image img {
        width: 600px;
        height: auto;
    }


    /* ─── Welcome section ────────────────────────────────────────────────────── */
    .welcome {
        background-color: #FFFFFF;
        padding: 1rem 0;
        text-align: center;
    }

    /* ─── House section ────────────────────────────────────────────────────── */
    .house {
        background: var(--bg-light);
        padding: 1rem 0;
        text-align: center;
    }

    .house .container {
        display: grid;
        grid-template-columns: 1fr;
        gap: clamp(32px, 5vw, 72px);
        align-items: center;
    }

    .house .section-text {
        text-align: left;
    }

    /* Móviles y tablets: .photo-grid encima, .section-text debajo (orden del DOM) */
    @media (min-width: 992px) {
        .house .container {
            grid-template-columns: 1fr 1fr;
        }
    }

    .photo-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 60fr 40fr;
        grid-template-areas:
            "left top"
            "left bottom";
        gap: 6px;
        aspect-ratio: 1 / 1;
    }

    .photo-grid .photo-placeholder:nth-child(1) {
        grid-area: left;
    }

    .photo-grid .photo-placeholder:nth-child(2) {
        grid-area: top;
    }

    .photo-grid .photo-placeholder:nth-child(3) {
        grid-area: bottom;
    }

    .photo-placeholder {
        overflow: hidden;
        position: relative;
    }

    .photo-placeholder img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* ─── Reviews section ────────────────────────────────────────────────────── */
    .reviews {
        background: var(--bg-light);
        padding: 1rem 0;
        text-align: center;
    }

    .review {
        border: 2px solid #FFFFFF;
        max-width: 500px;
        margin: 0 auto;
        padding: 1rem;
        transition: opacity 0.26s ease, transform 0.26s ease;
    }

    .review.is-leaving {
        opacity: 0;
        transform: translateY(-12px);
    }

    .review.is-entering {
        animation: review-enter 0.45s ease both;
    }

    @keyframes review-enter {
        from {
            opacity: 0;
            transform: translateY(14px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @media (prefers-reduced-motion: reduce) {

        .review,
        .review.is-leaving,
        .review.is-entering {
            transition: none;
            animation: none;
            opacity: 1;
            transform: none;
        }
    }

    .review-quote {
        font-size: 1.25rem;
        color: var(--text-secondary);
        line-height: 1.8;
        font-style: italic;
        margin-bottom: 32px;
        padding: 0 clamp(8px, 4vw, 40px);
    }

    .review-author {
        font-family: var(--font-headers);
        font-size: 1rem;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--dark);
    }

    .review-author::before {
        content: '— ';
    }

    .review-dots {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 32px;
    }

    .review-dot {
        width: 42px;
        height: 6px;
        background: var(--primary);
        cursor: pointer;
        transition: background 0.2s;
    }

    .review-dot.active {
        background: var(--secondary);
    }

    .review-dot:hover {
        background: var(--accent);
    }

    /* ─── Nearby section ─────────────────────────────────────────────────────── */
    .nearby {
        background-color: #FFFFFF;
        padding: 1rem 0;
    }

    .nearby-header {
        text-align: center;
        margin-bottom: clamp(32px, 5vw, 52px);
    }

    /* ─── Contact section ────────────────────────────────────────────────────── */
    section.contact {
        background-color: #FFFFFF;
        padding: 1rem 0;
    }

    /* ─── Quality policy ────────────────────────────────────────────────────── */
    .quality-teaser {
        max-width: 760px;
        margin: 0 auto;
    }

    .quality-teaser a {
        color: var(--primary);
        font-weight: 700;
        text-decoration: underline;
    }

    .quality-policy {
        text-align: left;
    }

    .quality-policy .section-header {
        text-align: center;
    }

    .quality-policy ul {
        list-style: disc;
        padding-left: 1.5rem;
    }

}

/* #endregion */

/* ============================================ */
/* #region ARTICLES: post, pages */
/* ============================================ */


/* -----Cards ----- */
.card {
    position: relative;
    overflow: hidden;
    /* aspect-ratio: 3 / 4; */
    cursor: pointer;
}

.card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.4s ease;
    margin-bottom: 75px;
}

.card:hover .card img {
    transform: scale(1.04);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(221, 184, 57, 0.8);
    padding: 1rem;
    margin: 1rem;
    text-align: center;
}

.card-category {
    font-family: var(--font-headers);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.card-title {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 1rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #000000;
}

/* ----- Items ----- */

.article {}

@scope (.article) {

    .header {
        background-color: var(--bg-light);
        padding-top: 20px;
    }

    .img-group {
        position: relative;
        padding-bottom: 70px;
        text-align: center;
    }

    .header img {
        display: inline-block;
        max-width: 100%;
        height: auto;
        max-height: 80vh;
        object-fit: contain;
        transition: transform 0.4s ease;
    }


    .overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        background: rgba(221, 184, 57, 0.8);
        padding: 1rem;
        margin: 1rem;
        text-align: center;
    }

    .category {
        font-family: var(--font-headers);
        font-size: 2.15rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
        color: var(--primary);
        display: block;
    }

    .title {
        display: block;
        font-family: var(--font-body);
        font-size: 2rem;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: #000000;
    }

    .pubdate {
        position: absolute;
        bottom: 30px;
        right: 30px;
        font-family: var(--font-headers);
        font-size: 1.15rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        margin-bottom: 0.5rem;
        color: var(--primary);

    }

    .text {
        min-width: 0;
        overflow-wrap: anywhere;
        word-break: break-word;

        @media (min-width:576px) {
            padding: 1rem 1.5rem;
        }

    }

    p,
    li {
        font-size: 1.5em;
        margin-bottom: 2rem;
        line-height: 1.5;
    }

    ul,
    ol {
        margin-bottom: 2rem;
        padding-left: 2.5rem;
    }

    ul {
        list-style: disc;
    }

    ol {
        list-style: decimal;
    }

    ul ul {
        list-style: circle;
    }

    ol ol {
        list-style: lower-alpha;
    }

    li {
        margin-bottom: 0.75rem;
    }

    li>ul,
    li>ol {
        margin-top: 0.75rem;
        margin-bottom: 0;
    }

    &.page img {
        max-width: 275px;
        max-height: 275px;
        width: auto;
        height: auto;
        transition: transform 0.4s ease;
        margin: .6rem;
        padding: 0.15rem;
        border: 2px solid var(--primary);
        outline: 1px solid var(--secondary);
        outline-offset: 6px;

        @media (min-width:576px) {
            margin: .6rem 1.5rem;
            padding: 0.5rem;

        }
    }

    &.page img:hover {
        transform: scale(1.04);
    }

    .photo-grid_container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: clamp(32px, 5vw, 72px);
        align-items: center;
        background-color: var(--bg-light);
    }

    .photo-grid_container li {
        margin-bottom: 1rem;
        list-style: circle;
        margin-left: 4rem;
    }

    @media (max-width: 768px) {
        .photo-grid_container {
            grid-template-columns: 1fr;
        }

        .photo-grid_container .photo-grid {
            order: 1;
        }

        .photo-grid_container .photo-text {
            order: 2;
        }

        .photo-grid_container li {
            margin-left: 1.5rem;
        }
    }

    .photo-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 60fr 40fr;
        grid-template-areas:
            "left top"
            "left bottom";
        gap: 6px;
        aspect-ratio: 1 / 1;
    }

    .photo-grid .photo-placeholder:nth-child(1) {
        grid-area: left;
    }

    .photo-grid .photo-placeholder:nth-child(2) {
        grid-area: top;
    }

    .photo-grid .photo-placeholder:nth-child(3) {
        grid-area: bottom;
    }

    .photo-placeholder {
        overflow: hidden;
        position: relative;
    }

    .photo-placeholder img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .photo-grid .photo-placeholder:nth-child(2) img {
        animation-delay: 0.1s;
    }

    .photo-grid .photo-placeholder:nth-child(3) img {
        animation-delay: 0.2s;
    }

    .photo-grid .photo-placeholder:nth-child(4) img {
        animation-delay: 0.3s;
    }

    .photo-grid .photo-placeholder:nth-child(5) img {
        animation-delay: 0.4s;
    }

    .house-common {
        position: relative;
        margin: 2rem auto;
        padding: 2.5rem 2rem;
        border: 2px solid var(--primary);
        outline: 1px solid var(--secondary);
        outline-offset: 6px;
    }

    .house-common p {
        font-family: var(--font-headers);
        font-size: 1.5rem;
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .house-common ul {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        justify-content: center;
        align-items: baseline;
        gap: 0.5rem 1.5rem;
        padding: 0;
        margin: 0;
    }

    .house-common li {
        font-family: var(--font-headers);
        font-weight: 700;
        color: var(--primary);
        white-space: nowrap;
        margin-bottom: 0;
    }

    .house-common li:nth-child(1) {
        font-size: 1.2rem;
    }

    .house-common li:nth-child(2) {
        font-size: 2rem;
        color: var(--accent);
    }

    .house-common li:nth-child(3) {
        font-size: 1rem;
    }

    .house-common li:nth-child(4) {
        font-size: 1.6rem;
        color: var(--secondary);
    }

    .house-common li:nth-child(5) {
        font-size: 1.1rem;
    }

    .house-common li:nth-child(6) {
        font-size: 1.85rem;
        color: var(--accent);
    }

    .house-common li:nth-child(7) {
        font-size: 1.35rem;
    }

    .house-common li:nth-child(8) {
        font-size: 1rem;
        color: var(--secondary);
    }

    .house-common li:nth-child(9) {
        font-size: 1.55rem;
    }

    .house-common li:nth-child(n+10) {
        font-size: 1.25rem;
    }

    .gallery-grid {
        position: relative;
        margin: 2rem 0;
    }

    .gallery-grid-item {
        width: 100%;
        padding: 0.5rem;
    }

    @media (min-width: 576px) {
        .gallery-grid-item {
            width: 50%;
        }
    }

    @media (min-width: 992px) {
        .gallery-grid-item {
            width: 20%;
        }
    }

    .gallery-grid-item a {
        display: block;
        overflow: hidden;
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .gallery-grid-item.is-visible a {
        opacity: 1;
        transform: translateY(0);
    }

    .gallery-grid-item img {
        display: block;
        width: 100%;
        height: auto;
        transition: transform 0.4s ease;
    }

    .gallery-grid-item a:hover img {
        transform: scale(1.06);
    }

    @media (prefers-reduced-motion: reduce) {
        .gallery-grid-item a {
            opacity: 1;
            transform: none;
            transition: none;
        }
    }

    .lightbox {
        position: fixed;
        inset: 0;
        z-index: var(--zindex-modal);
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(0, 0, 0, 0.9);
    }

    .lightbox[hidden] {
        display: none;
    }

    .lightbox-image {
        max-width: 90vw;
        max-height: 85vh;
        object-fit: contain;
        opacity: 1;
        transition: opacity 0.2s ease;
    }

    .lightbox-image.is-fading {
        opacity: 0;
    }

    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
        position: absolute;
        background: none;
        border: none;
        color: #fff;
        font-size: 2.5rem;
        line-height: 1;
        cursor: pointer;
        padding: 0.5rem 1rem;
    }

    .lightbox-close:hover,
    .lightbox-prev:hover,
    .lightbox-next:hover {
        color: var(--secondary);
    }

    .lightbox-close {
        top: 1rem;
        right: 1.5rem;
    }

    .lightbox-prev {
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
    }

    .lightbox-next {
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
    }

    .lightbox-counter {
        position: absolute;
        bottom: 1.5rem;
        left: 50%;
        transform: translateX(-50%);
        color: #fff;
        font-family: var(--font-headers);
        letter-spacing: 0.05em;
    }

}

/* #endregion */

/* ============================================ */
/* #region COMPONENTS */
/* ============================================ */

.nav-pagination {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.nav-pagination .pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-pagination .page-item span,
.nav-pagination .page-item a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    font-family: var(--font-headers);
    font-weight: 700;
    color: var(--primary);
    border: 2px solid var(--primary);
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nav-pagination .page-item a:hover {
    background-color: var(--primary);
    color: #fff;
}

.nav-pagination .page-item.active span,
.nav-pagination .page-item.active a {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: var(--dark);
}

.nav-pagination .page-item.disabled span {
    border-color: var(--border-color);
    color: var(--text-muted);
    cursor: not-allowed;
}

.bordered-box {
    margin: 2rem auto;
    padding: 2.5rem 2rem;
    border: 2px solid var(--primary);
    outline: 1px solid var(--secondary);
    outline-offset: 6px;
}

/* #endregion */


/* ============================================ */
/* #region OUTSIDE */
/* ============================================ */

#cookie {
    background: var(--primary);
    height: auto;
    text-align: center;
    padding: 1em 2em;
    z-index: var(--zindex-toast);
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    color: #fff
}

#cookie a {
    color: #fff;
    text-decoration: underline
}

#cookie p {
    padding: 0;
    margin: 0
}

#cookie strong {
    cursor: pointer;
    margin: 0 1rem;
    padding: .1rem 1rem
}

#cookie #cookie-ok {
    background: var(--primary);
}

#cookie #cookie-ko {
    background: var(--primary);
}

.browserupgrade {
    margin: .2rem 0;
    background: #ccc;
    color: #000;
    padding: .2rem 0
}

a.up {
    position: absolute;
    right: 0;
    margin: 0 auto;
    bottom: .5rem;
    display: block;
    font-size: .8rem;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    background-color: var(--accent);
    color: #000;
    text-align: center;
    font-size: 1.5rem;
    line-height: 3rem
}

a.up:hover {
    background-color: var(--accent);
    color: #FFF;
}


/* #endregion */

/* ============================================ */
/* #region 5. UTILITIES (HELPERS) */
/* ============================================ */


.line {
    position: relative;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* La línea decorativa */
.line::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--dark);
    transition: width 1s cubic-bezier(0.22, 0.97, 0.36, 1.02);
}

/* Cuando es visible */
.line.visible::before {
    width: 100%;
}

/* Aspect ratio para iframes/embeds/video, igual que .ratio de Bootstrap 5.
   Uso: <div class="ratio ratio-16x9"><iframe src="..."></iframe></div> */
.ratio {
    position: relative;
    width: 100%;
}

.ratio::before {
    display: block;
    padding-top: var(--bs-aspect-ratio);
    content: "";
}

.ratio>iframe,
.ratio>embed,
.ratio>object,
.ratio>video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.ratio-1x1 {
    --bs-aspect-ratio: 100%;
}

.ratio-4x3 {
    --bs-aspect-ratio: calc(3 / 4 * 100%);
}

.ratio-16x9 {
    --bs-aspect-ratio: calc(9 / 16 * 100%);
}

.ratio-21x9 {
    --bs-aspect-ratio: calc(9 / 21 * 100%);
}

/* #endregion */

/* ============================================ */
/* #region 6. RESPONSIVE (MEDIA QUERIES) */
/* ============================================ */

/* Iframe widget de reservas (avaibook). No expone postMessage
   para auto-ajustar altura al contenido, así que se fija por
   breakpoint. Ajustar los valores mirando el widget real. */
.iframe-reservas {
    display: block;
    width: 100%;
    height: 2800px;
    border: 0;
}

@media (min-width:768px) {
    .iframe-reservas {
        height: 2000px;
    }
}

@media (min-width:992px) {
    .iframe-reservas {
        height: 1600px;
    }
}

/* #endregion */



/* ============================================
   HERO SECTION
   ============================================ */


/* ============================================
   ITEMS SECTION
   ============================================ */