/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
    scroll-padding-top: 20px;
}


body {
    font-family: Arial, Helvetica, sans-serif;
    color: #30372c;
    background: #faf9f5;
    line-height: 1.7;
    overflow-x: hidden;
}


img {
    width: 100%;
    display: block;
    object-fit: cover;
}


a {
    text-decoration: none;
    color: inherit;
}


button {
    font: inherit;
}


[id] {
    scroll-margin-top: 25px;
}


/* =========================================================
   BARRA DE CONTACTO
========================================================= */

.contact-bar {
    background: #242921;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-bar-container {
    max-width: 1200px;
    margin: auto;

    padding: 7px 25px;

    display: flex;
    justify-content: flex-end;
    align-items: center;

    gap: 25px;
}

.contact-bar a {
    color: #ddd;

    font-size: 13px;

    transition: color 0.3s ease;
}

.contact-bar a:hover {
    color: #d8b879;
}

/* =========================================================
   NAVBAR
========================================================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;

    z-index: 1000;

    background: rgba(30, 38, 29, 0.94);

    backdrop-filter: blur(10px);

    -webkit-backdrop-filter: blur(10px);

    color: white;

    box-shadow:
        0 4px 20px rgba(0, 0, 0, .08);
}


.nav-container {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    min-height: 78px;

    padding: 12px 25px;

    display: flex;
    align-items: center;

    gap: 20px;
}


/* =========================================================
   LOGO
========================================================= */

.logo {
    display: flex;

    align-items: center;

    gap: 10px;

    flex: 0 0 auto;

    color: white;

    font-family: Georgia, serif;

    font-size: 24px;

    font-weight: bold;

    white-space: nowrap;
}


.logo img {
    width: 42px;
    height: 42px;

    object-fit: contain;
}


/* =========================================================
   NAV DESKTOP
========================================================= */

.site-nav {
    flex: 1 1 auto;

    min-width: 0;
}


.menu {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 18px;

    list-style: none;

    width: 100%;
}


.menu li {
    flex: 0 0 auto;
}


.menu a {
    display: block;

    padding: 7px 0;

    font-size: 13px;

    white-space: nowrap;

    color: white;

    transition:
        color .3s ease,
        opacity .3s ease;
}


.menu a:hover,
.menu a:focus-visible,
.menu a[aria-current="page"] {
    color: #d8b879;
}


.menu a:focus-visible,
.language-selector a:focus-visible,
.button:focus-visible,
.menu-button:focus-visible,
.gallery-item:focus-visible,
.entorno-close:focus-visible,
.entorno-prev:focus-visible,
.entorno-next:focus-visible {
    outline: 2px solid #d8b879;

    outline-offset: 4px;
}


/* =========================================================
   BOTÓN MENÚ
========================================================= */

.menu-button {
    display: none;

    flex: 0 0 auto;

    border: 0;

    background: transparent;

    color: white;

    cursor: pointer;

    padding: 5px 8px;

    font-size: 30px;

    line-height: 1;
}


/* =========================================================
   IDIOMAS
========================================================= */

.language-selector {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 6px;

    flex: 0 0 auto;

    font-size: 12px;

    white-space: nowrap;
}


.language-selector a {
    color: #aaa;

    transition:
        color .3s ease;
}


.language-selector a:hover,
.language-selector a:focus-visible,
.language-selector a.active {
    color: #d8b879;

    font-weight: bold;
}


.language-selector span {
    color: #666;
}


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

.hero {
    min-height: 75vh;

    background:
        linear-gradient(
            rgba(0, 0, 0, .25),
            rgba(0, 0, 0, .58)
        ),
        url("fotosentorno/02-castillo-escalona.jpg")
        center center / cover no-repeat;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    color: white;

    padding:
        150px 20px
        80px;
}


.hero-content {
    width: 100%;

    max-width: 900px;

    margin: auto;
}


.hero span {
    display: block;

    text-transform: uppercase;

    letter-spacing: 4px;

    font-size: 13px;

    font-weight: bold;
}


.hero h1 {
    font-family: Georgia, serif;

    font-size:
        clamp(45px, 7vw, 80px);

    line-height: 1.05;

    margin: 20px 0;
}


.hero p {
    max-width: 700px;

    margin: auto;

    font-size:
        clamp(17px, 2vw, 20px);

    line-height: 1.6;
}


/* =========================================================
   GENERAL
========================================================= */

section {
    padding:
        90px 20px;
}


.container {
    width: 100%;

    max-width: 1150px;

    margin: 0 auto;
}


.section-title {
    text-align: center;

    margin-bottom: 55px;
}


.section-title span,
.eyebrow {
    color: #b7955c;

    text-transform: uppercase;

    letter-spacing: 3px;

    font-size: 13px;

    font-weight: bold;
}


.section-title h2 {
    font-family: Georgia, serif;

    font-size:
        clamp(34px, 4vw, 43px);

    line-height: 1.15;

    margin-top: 8px;
}


.section-title p {
    max-width: 700px;

    margin: 15px auto 0;

    color: #70746c;
}


/* =========================================================
   INTRO
========================================================= */

.intro {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 60px;

    align-items: center;
}


.intro-image {
    overflow: hidden;

    border-radius: 7px;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, .10);
}


.intro-image img {
    height: 500px;

    transition:
        transform .6s ease;
}


.intro-image:hover img {
    transform: scale(1.02);
}


.intro-text h2 {
    font-family: Georgia, serif;

    font-size:
        clamp(32px, 4vw, 40px);

    line-height: 1.15;

    margin:
        8px 0 20px;
}


.intro-text p {
    color: #666;

    margin-bottom: 18px;

    font-size: 16px;
}


/* =========================================================
   LUGARES
========================================================= */

.places-section {
    background: #f3f1ea;
}


.places {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 25px;
}


.place {
    display: flex;

    flex-direction: column;

    background: white;

    border-radius: 7px;

    overflow: hidden;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, .07);

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}


.place:hover {
    transform: translateY(-6px);

    box-shadow:
        0 18px 35px rgba(0, 0, 0, .11);
}


.place img {
    height: 230px;

    flex: 0 0 auto;
}


.place-content {
    display: flex;

    flex-direction: column;

    flex: 1;

    padding: 25px;
}


.place-content h3 {
    font-family: Georgia, serif;

    font-size: 25px;

    line-height: 1.2;

    margin-bottom: 10px;
}


.place-content p {
    color: #70746c;

    font-size: 15px;
}


.distance {
    margin-top: auto;

    padding-top: 16px;

    color: #b7955c;

    font-size: 13px;

    font-weight: bold;
}


/* =========================================================
   ACTIVIDADES
========================================================= */

.activities-section {
    background: #30372c;

    color: white;
}


.activities-section
.section-title h2 {
    color: white;
}


.activities-section
.section-title p {
    color: #d0d3cc;
}


.activities {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 25px;

    max-width: 950px;

    margin: 0 auto;
}


.activity {
    padding: 35px 30px;

    text-align: center;

    border:
        1px solid
        rgba(255, 255, 255, .15);

    border-radius: 7px;

    background:
        rgba(255, 255, 255, .035);

    transition:
        border-color .3s ease,
        transform .3s ease,
        background .3s ease;
}


.activity:hover {
    transform: translateY(-5px);

    border-color:
        rgba(216, 184, 121, .5);

    background:
        rgba(255, 255, 255, .06);
}


.activity-icon {
    font-size: 42px;

    line-height: 1;

    margin-bottom: 18px;
}


.activity h3 {
    font-family: Georgia, serif;

    font-size: 27px;

    margin-bottom: 10px;
}


.activity p {
    color: #cfd2ca;

    font-size: 15px;

    margin-bottom: 5px;
}


.rutas {
    list-style: none;

    padding: 0;

    margin: 20px auto 0;

    max-width: 600px;

    text-align: left;
}


.rutas li {
    position: relative;

    padding:
        9px 0
        9px 28px;

    color: #ddd;

    font-size: 14px;

    border-bottom:
        1px solid
        rgba(255, 255, 255, .12);
}


.rutas li::before {
    content: "•";

    position: absolute;

    left: 5px;

    color: #d8b879;

    font-size: 20px;

    line-height: 1;
}


.rutas li:last-child {
    border-bottom: 0;
}


/* =========================================================
   GALERÍA
========================================================= */

.gallery {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 12px;
}


.gallery-item {
    display: block;

    width: 100%;

    padding: 0;

    border: 0;

    border-radius: 5px;

    overflow: hidden;

    background: transparent;

    cursor: pointer;

    line-height: 0;
}


.gallery-item img {
    width: 100%;

    height: 280px;

    object-fit: cover;

    transition:
        transform .4s ease,
        opacity .4s ease;
}


.gallery-item:hover img {
    transform: scale(1.035);

    opacity: .9;
}


/* =========================================================
   MAPA
========================================================= */

.map-container {
    width: 100%;

    min-height: 450px;

    height: 500px;

    overflow: hidden;

    border-radius: 7px;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, .08);
}


.map-container iframe {
    display: block;

    width: 100%;

    height: 100%;

    min-height: 450px;

    border: 0;
}


/* =========================================================
   CTA
========================================================= */

.cta {
    background:
        linear-gradient(
            rgba(48, 55, 44, .91),
            rgba(48, 55, 44, .91)
        ),
        url("fotosentorno/01-el-casar-de-escalona.jpg")
        center / cover no-repeat;

    color: white;

    text-align: center;
}


.cta h2 {
    font-family: Georgia, serif;

    font-size:
        clamp(34px, 4vw, 44px);

    line-height: 1.15;

    margin-bottom: 15px;
}


.cta p {
    max-width: 650px;

    margin:
        0 auto 30px;

    color: #ddd;
}


.cta-buttons {
    display: flex;

    justify-content: center;

    align-items: center;

    flex-wrap: wrap;

    gap: 12px;
}


.button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 50px;

    padding:
        13px 28px;

    border-radius: 4px;

    background: #b7955c;

    color: white;

    font-weight: bold;

    transition:
        background .3s ease,
        transform .3s ease;
}


.button:hover {
    background: #967844;

    transform: translateY(-2px);
}


.button.secondary {
    background: transparent;

    border:
        1px solid
        rgba(255, 255, 255, .8);
}


.button.secondary:hover {
    background: white;

    color: #30372c;
}


/* =========================================================
   FOOTER
========================================================= */

footer {
    background: #242921;

    color: white;

    text-align: center;

    padding: 50px 20px;
}


.footer-inner {
    max-width: 1000px;

    margin: 0 auto;
}


footer h2 {
    font-family: Georgia, serif;

    margin-bottom: 8px;
}


footer p {
    color: #aaa;

    font-size: 14px;
}


.footer-links {
    margin-top: 25px;

    display: flex;

    justify-content: center;

    align-items: center;

    flex-wrap: wrap;

    gap: 8px;

    font-size: 14px;
}


.footer-links a {
    color: #ccc;

    transition:
        color .3s ease;
}


.footer-links a:hover {
    color: #d8b879;
}


.footer-links span {
    color: #777;
}


.copyright {
    margin-top: 20px;
}


/* =========================================================
   LIGHTBOX
========================================================= */

.entorno-lightbox {
    position: fixed;

    inset: 0;

    z-index: 5000;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;

    background:
        rgba(0, 0, 0, .96);

    visibility: hidden;

    opacity: 0;

    pointer-events: none;

    transition:
        opacity .25s ease,
        visibility .25s ease;
}


.entorno-lightbox.active {
    visibility: visible;

    opacity: 1;

    pointer-events: auto;
}


.entorno-lightbox-content {
    width: 100%;

    max-width:
        min(1100px, calc(100vw - 120px));

    max-height:
        calc(100vh - 40px);

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;
}


.entorno-lightbox-content img {
    display: block;

    width: auto;

    max-width: 100%;

    max-height:
        calc(100vh - 170px);

    object-fit: contain;

    border-radius: 4px;

    box-shadow:
        0 15px 60px rgba(0, 0, 0, .65);
}


/* =========================================================
   TEXTO LIGHTBOX
========================================================= */

.entorno-lightbox-text {
    width: 100%;

    max-width: 850px;

    margin-top: 15px;

    color: white;
}


.entorno-lightbox-text h3 {
    font-family: Arial, serif;

    font-size: 16px;

    line-height: 1.2;

    margin-bottom: 5px;
}


.entorno-lightbox-text p {
    color: #d5d5d5;

    font-size: 14px;

    line-height: 1.5;

    margin: 0;
}


/* =========================================================
   BOTONES LIGHTBOX
========================================================= */

.entorno-close,
.entorno-prev,
.entorno-next {
    position: absolute;

    z-index: 5001;

    border: 0;

    background: transparent;

    color: white;

    cursor: pointer;

    transition:
        color .3s ease,
        transform .3s ease;
}


.entorno-close {
    top: 15px;

    right: 25px;

    width: 50px;

    height: 50px;

    font-size: 45px;

    font-weight: 200;

    line-height: 1;
}


.entorno-prev,
.entorno-next {
    top: 50%;

    width: 70px;

    height: 90px;

    transform:
        translateY(-50%);

    font-size: 70px;

    font-weight: 200;

    line-height: 1;
}


.entorno-prev {
    left: 15px;
}


.entorno-next {
    right: 15px;
}


.entorno-close:hover {
    color: #d8b879;

    transform: scale(1.1);
}


.entorno-prev:hover,
.entorno-next:hover {
    color: #d8b879;

    transform:
        translateY(-50%)
        scale(1.1);
}


/* =========================================================
   NAV MÓVIL / TABLET
========================================================= */

@media (max-width: 1050px) {

    .nav-container {
        position: relative;

        min-height: 72px;

        padding:
            10px 20px;
    }


    .menu-button {
        display: block;

        margin-left: auto;
    }


    .site-nav {
        position: absolute;

        top: 100%;

        left: 0;

        width: 100%;

        display: none;

        background:
            rgba(30, 38, 29, .98);

        box-shadow:
            0 12px 20px rgba(0, 0, 0, .15);
    }


    .site-nav.open {
        display: block;
    }


    .menu {
        display: flex;

        flex-direction: column;

        align-items: stretch;

        justify-content: flex-start;

        gap: 0;

        width: 100%;

        padding:
            8px 0 12px;
    }


    .menu li {
        width: 100%;
    }


    .menu a {
        width: 100%;

        padding:
            13px 20px;

        text-align: center;

        font-size: 16px;

        white-space: normal;
    }


    .menu a:hover,
    .menu a:focus-visible,
    .menu a[aria-current="page"] {
        background:
            rgba(216, 184, 121, .10);
    }


    .language-selector {
        margin-left: 0;

        font-size: 12px;
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    section {
        padding:
            75px 20px;
    }


    .intro {
        grid-template-columns: 1fr;

        gap: 40px;
    }


    .intro-image img {
        height: 430px;
    }


    .places {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .activities {
        grid-template-columns: 1fr;
    }


    .gallery {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .map-container,
    .map-container iframe {
        min-height: 400px;

        height: 400px;
    }

}


/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 600px) {

    html {
        scroll-padding-top: 75px;
    }


    [id] {
        scroll-margin-top: 80px;
    }


    section {
        padding:
            60px 18px;
    }


    .nav-container {
        padding:
            9px 15px;
    }


    .logo {
        font-size: 19px;

        gap: 8px;
    }


    .logo img {
        width: 37px;

        height: 37px;
    }


    .menu-button {
        font-size: 28px;

        padding:
            5px 6px;
    }


    .language-selector {
        gap: 4px;

        font-size: 11px;
    }


    .hero {
        min-height: 600px;

        padding:
            120px 18px
            70px;
    }


    .hero span {
        font-size: 11px;

        letter-spacing: 2.5px;
    }


    .hero h1 {
        font-size:
            clamp(42px, 13vw, 56px);

        margin:
            17px 0;
    }


    .hero p {
        font-size: 17px;
    }


    .section-title {
        margin-bottom: 40px;
    }


    .section-title span {
        font-size: 11px;

        letter-spacing: 2px;
    }


    .section-title h2 {
        font-size: 34px;
    }


    .intro-image img {
        height: 350px;
    }


    .intro-text h2 {
        font-size: 33px;
    }


    .places {
        grid-template-columns: 1fr;
    }


    .place img {
        height: 240px;
    }


    .activity {
        padding:
            30px 20px;
    }


    .gallery {
        grid-template-columns: 1fr;

        gap: 10px;
    }


    .gallery-item img {
        height: 250px;
    }


    .map-container,
    .map-container iframe {
        min-height: 330px;

        height: 330px;
    }


    .cta h2 {
        font-size: 34px;
    }


    .cta-buttons {
        flex-direction: column;

        width: 100%;
    }


    .button {
        width: 100%;
    }


    .footer-links {
        flex-direction: column;

        gap: 7px;
    }


    .footer-links span {
        display: none;
    }


    /* -------------------------
       LIGHTBOX MÓVIL
    ------------------------- */

    .entorno-lightbox {
        padding:
            15px;
    }


    .entorno-lightbox-content {
        max-width:
            calc(100vw - 30px);

        max-height:
            calc(100vh - 30px);
    }


    .entorno-lightbox-content img {
        max-width:
            calc(100vw - 30px);

        max-height:
            calc(100vh - 190px);
    }


    .entorno-lightbox-text {
        margin-top: 12px;
    }


    .entorno-lightbox-text h3 {
        font-size: 18px;
    }


    .entorno-lightbox-text p {
        font-size: 13px;
    }


    .entorno-close {
        top: 8px;

        right: 10px;

        width: 45px;

        height: 45px;

        font-size: 40px;
    }


    .entorno-prev,
    .entorno-next {
        width: 45px;

        height: 65px;

        font-size: 48px;
    }


    .entorno-prev {
        left: 0;
    }


    .entorno-next {
        right: 0;
    }

}


/* =========================================================
   REDUCIR ANIMACIONES
========================================================= */

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

    html {
        scroll-behavior: auto;
    }


    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;

        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;
    }

}


/* =========================================================
   BOTÓN WHATSAPP
========================================================= */

.whatsapp {
    position: fixed;

    right: 22px;
    bottom: 22px;

    z-index: 1500;

    width: 58px;
    height: 58px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #25d366;

    color: white;

    border-radius: 50%;

    font-size: 28px;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.whatsapp:hover {
    transform: scale(1.08);

    box-shadow: 0 7px 25px rgba(0, 0, 0, 0.35);
}



.ver-ubicacion {
    color: #173c32;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ver-ubicacion:hover {
    color: #a89468;
}
/* Accesibilidad: foco visible para teclado */
.menu-button:focus-visible,
a:focus-visible,
button:focus-visible {
    outline: 3px solid #d8b879;
    outline-offset: 3px;
}
