@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root{
  --bg:         #f5f1e8;
  --bg-light:   #faf8f4;

  --green:      #556b2f;
  --green-dark: #2f4f3a;
  --green-oliva: #808000;

  --text:       #1f1f1f;
  --white:      #ffffff;
  --quewhite:   #faebd7;
}

* {
    padding: 0;
    margin: 0;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
    /* font-family: "Montserrat", Arial, Helvetica, sans-serif; */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;

    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.16) 72%, transparent);
    /* box-shadow: 0 3px 14px rgba(0, 0, 0, 0.14); */
    transition: 0.5s;
    z-index: 100;
}

/* Muy importante para el efecto de animación */
/* nav a span { display: inline-block; } */

nav.abajo,
.navbar:hover {
    background: #000000;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.25);
    transition: 0.5s;
}

#check {
    display: none;
}

.checkbtn {
    font-size: 34px;
    color: var(--white);
    /* esto hace que el icono quede a la derecha */
    float: right;
    cursor: pointer;
    display: none;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo .enlace img {
    height: 44px;
    width: 44px;
    border-radius: 10%;
   /*  animation: animation-logo 10s ease-in-out infinite; */
}

@keyframes animation-logo {
    0% {
        transform: rotateX(0);
    }

    20% {
        transform: rotateX(180deg);
    }

    60%,
    100% {
        transform: rotateX(0);
    }
}

.logo {
    gap: 10px;
}

/* .logo a img {
    width: 50px;
    height: 50px;
} */

.names {
    display: flex;
    flex-direction: column;
    color: var(--white)
}

.main-name {
    font-weight: bold;
    font-size: 1.2rem;
    transition: 0.5s;

    /* Lo agregué */
    font-family:"Cormorant Garamond",serif;
    letter-spacing: .20em;
}

.main-name:hover {
    color: var(--green);
    transition: 0.5s;
}

.main-namesito {
    margin-top: 4px;
    color: var(--bg-light);
    font-size: 0.80rem;
}

nav ul {
    display: flex;
    align-items: center;
    gap: 12px;
}

nav ul li {
    padding: 6px;
}

nav ul li a {
    position: relative;
    display: inline-block;
    padding: 6px;
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95), 0 0 9px rgba(0, 0, 0, 0.65);
}

nav ul li a:hover {
    color: var(--white);
}

nav.abajo ul li a:hover {
    color: var(--white);
}

li a:after {
    content: "";
    position: absolute;
    background-color: var(--green);
    height: 4px;
    width: 0;
    left: 0;
    bottom: -10px;
    transition: 0.5s;
}

li a:hover:after {
    width: 100%;
}

li a:focus {
    color: var(--quewhite);
}

.navbar ul li a:focus {
    color: var(--white);
}

nav.abajo .checkbtn {
    color: var(--white);
}





/********************************************/
/* ****     Zona central: zona1        **** */
/* **************************************** */
.zona1 {
    /* Esto agregue por el tema imagen de fondo */
    background-image: url(../img/fotos/foto01.webp);
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;


    /* Esto es lo que estaba */
    position: relative;
    width: 100%;
    /* height: calc(100vh - 80px); */
    height: 100vh;
    overflow: hidden;
    margin-top: 0px;
    /* añade margen para compensar el navbar fijo */
    display: flex;
    z-index: 0;
}

.container-zona1 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: center;
    max-width: 80%;
    min-height: 70%;
    margin: 0 auto;
}

.imagen-fondo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: opacity 1s ease-in-out;
}

.contenido {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 480px;
}

.h1-zona1 h1 {
    font-size: clamp(2.5rem, 5vw, 6rem);
    text-align: center;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 600;
    font-style: normal;
    margin-bottom: 30px;
    color: var(--bg-light);
    
    text-shadow: 2px 2px 0px var(--green-dark);
}

.p-zona1 h2 {
    max-width: 90%;
    font-size: clamp(1.1rem, 2vw, 2rem);
    font-weight: 400;
    padding-bottom: 20px;
    margin: 0 auto;
    text-align: center;
    color: var(--bg-light);

    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9), -1px -1px 8px rgba(0, 0, 0, 0.8), 0px 0px 15px rgba(0, 0, 0, 1);
}

.p-zona1 span {
    color: var(--quewhite);
    font-weight: 700;
    text-shadow: 1px 1px 0px var(--green-dark);
}

.zona1-btn {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.zona1-btn .btn-zona1 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: clamp(0.8rem, 2vw, 1rem);
    text-align: center;
    color: var(--white);
    background: var(--green-dark);
    border: 1px solid var(--green);
    transition: 0.5s;
}

.zona1-btn .btn-disponibilidad:hover {
    background: var(--green);
}

.zona1-btn .btn-galeria {
    color: var(--text);
    background-color: var(--white);
}

.zona1-btn .btn-galeria:hover {
    border: 1px solid var(--white);
    color: var(--white);
    background: transparent;
}


.flecha-arriba {
    bottom: 4px;
    right: 4px;

    position: fixed;

    height: 40px;
    width: 40px;
    cursor: pointer;

    z-index: 100;
}



/* ******************************** */
/* ************ Galería *********** */
#container-gallery {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-inline: auto;
    padding-top: 100px;
    padding-bottom: 30px;
    max-width: 100%;
    height: auto;
    background-color: var(--bg);

    position: relative;
}

.title-gallery {
    margin-bottom: 20px;
    text-align: center;
    font-size: clamp(2.4rem, 3vw, 3rem);
    color: var(--green-dark);
    scroll-margin-top: 110px;
}





/* ******************************** */
/* ************ Videos ************ */
#videos {
    scroll-margin-top: 110px;
}

.container-img {
    columns: 3;
    padding: 16px 32px;
    column-gap: 32px;
}

.image-preview {
    display: block;
    width: 100%;
    margin-bottom: 32px;
    padding: 0;
    break-inside: avoid;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.container-img img {
    display: block;
    border-radius: 4px;
    width: 100%;
    height: auto;

    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 20% cover 30%;
    /* cuidando la imagen este 20% en el viewport aparecera, y terminara la iluminacion cuando este el 30% en el viewport */
}

.videos-gallery {
    padding: 70px 0 30px;
    background-color: var(--quewhite);
}

.container-videos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 24px;
    width: 100%;
    padding: 16px 32px;
}

.video-preview {
    position: relative;
    flex: 1 1 300px;
    max-width: 520px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    background: #000;
    cursor: pointer;
}

.video-preview video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.video-preview-play {
    position: absolute;
    inset: auto 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.68);
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.video-preview:hover .video-preview-play,
.video-preview:focus-visible .video-preview-play {
    background: var(--green-dark);
}

.video-preview:focus-visible,
.video-modal-close:focus-visible,
.image-preview:focus-visible,
.image-modal-close:focus-visible {
    outline: 3px solid var(--quewhite);
    outline-offset: 3px;
}

.video-modal {
    position: fixed;
    width: min(92vw, 1100px);
    max-width: none;
    max-height: 92vh;
    margin: auto;
    padding: 48px 16px 16px;
    overflow: visible;
    border: 1px solid var(--green);
    border-radius: 12px;
    background: #111;
}

.video-modal::backdrop {
    background: rgba(0, 0, 0, 0.82);
}

.video-modal-player {
    display: block;
    width: 100%;
    max-height: calc(92vh - 80px);
    background: #000;
}

.video-modal-close {
    position: absolute;
    top: 8px;
    right: 8px;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid var(--green);
    border-radius: 50%;
    color: var(--white);
    background: var(--green-dark);
    cursor: pointer;
}

.video-modal-close:hover {
    background: var(--green);
}

.image-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.82);
}

.image-modal:target {
    display: flex;
}

.image-modal-backdrop {
    position: absolute;
    inset: 0;
}

.image-modal-content {
    position: relative;
    z-index: 1;
    width: fit-content;
    max-width: min(94vw, 1200px);
    max-height: 92vh;
    padding: 48px 16px 16px;
    border: 1px solid var(--green);
    border-radius: 12px;
    background: #111;
}

.image-modal-content img {
    display: block;
    max-width: 100%;
    max-height: calc(92vh - 80px);
    object-fit: contain;
}

.image-modal-close {
    position: absolute;
    top: 8px;
    right: 8px;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    text-decoration: none;
    border: 1px solid var(--green);
    border-radius: 50%;
    color: var(--white);
    background: var(--green-dark);
    cursor: pointer;
}

.image-modal-close:hover {
    background: var(--green);
}

@keyframes reveal {
    from {
        opacity: 0;
        translate: 0 100px;
        scale: 0.5;
    }

    to {
        opacity: 1;
        translate: 0 0;
        scale: 1;
    }
}


.btn-contactanos {
    display: block;
    width: fit-content;
    margin: 30px auto 20px;
    padding: 10px 16px;
    border: 1px solid var(--green);
    font-size: clamp(0.8rem, 2vw, 1rem);
    background-color: var(--green);
    color: var(--white);
    border-radius: 8px;
    transition: 0.5s;
}

.btn-contactanos:hover {
    background-color: var(--green-oliva);
    border: 1px solid var(--green-oliva);
}




/*************************/
/* ******* Footer ****** */
/*************************/
.footer-container {
    width: 100%;
    height: auto;
    padding: 50px 20px 0;
    background-color: var(--green-dark);
}

.container-box {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1120px;
    margin: 0 auto;
    gap: 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    align-items: stretch;
    max-width: 1120px;
    margin: 0 auto;
}

.footer-grid > .box-footer {
    min-width: 0;
    max-width: none;
    margin: 0;
}

.box-footer {
    min-width: 220px;
    max-width: 420px;
    margin-inline: 16px;
}

.title-box {
    padding: 0 0 14px;
    color: #dbe7c9;
    font-weight: 600;
    font-size: 1.15rem;
}

/* Otros datos */
.telefono,
.direccion,
.horarios {
    margin: 8px 0px 8px;
    color: #fff9eb;
    line-height: 1.6;
}

.box-footer-qr {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.qr-footer-contenido {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#qr-contacto {
    width: 140px;
    height: 140px;
    margin: auto;
    padding: 8px;
    border-radius: 10px;
    background: var(--white);
}

#qr-contacto img,
#qr-contacto canvas {
    display: block;
    width: 124px;
    height: 124px;
}

.qr-mensaje {
    max-width: 210px;
    margin: 10px auto 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.85rem;
    line-height: 1.5;
    text-align: center;
}

.qr-mensaje:empty {
    display: none;
}

.container-terminos {
    color: rgba(255, 255, 255, 0.72);
    display: flex;
    justify-content: center;
    margin: 34px 10px 10px;
    font-size: clamp(0.8rem, 2vw, 1rem);
}

.container-terminos .terminos,
.container-terminos .creditos {
    color: rgba(255, 255, 255, 0.72);
}

.container-terminos .terminos:hover,
.container-terminos .creditos:hover {
    color: var(--white);
}

/* Linea */
footer hr {
    width: 70%;
    margin: 16px auto 0;
    border: 1px solid rgba(255, 255, 255, 0.24);
}

/* Copyright */
.copy {
    text-align: center;
    padding: 16px 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(0.65rem, 2vw, 0.85rem);
}


/*************************************/
/* ***** Media Query con 1368px ***** */
@media (max-width: 1368px) {
    .h1-zona1 h1 {
        font-size: 3.8rem;
    }
}


/*************************************/
/* ***** Media Query con 1090px ***** */
@media (max-width: 1090px) {
    .navbar {
        justify-content: space-around;
        gap: 12px;
    }

    .navbar .logo {
        order: 1;
        min-width: 0;
    }

    .navbar .nav-redes {
        order: 2;
        flex-shrink: 0;
        margin: 0;
    }

    .logo .enlace img {
        height: 50px;
        width: 50px;
    }

    .main-name {
        font-size: 1.3rem;
    }

    .main-namesito {
        font-size: 0.74rem;
    }

    .checkbtn {
        display: block;
        position: static;
        order: 3;
        flex-shrink: 0;
        z-index: 110; 
    }

    .navbar ul {
        position: fixed;
        width: 100%;
        /* height: calc(100vh - 100px); */
        height: calc(100vh - 100px);
        background: rgb(29, 52, 86, 0.8);
        top: 100px;
        left: 0;
        margin: 0;
        text-align: center;
        transform: translateX(-100%);
        transition: transform 0.5s ease;
        overflow-y: auto;
        display: block;
    }

    .navbar ul li {
        display: block;
        margin: 20px 0;
        line-height: 20px;
    }

    .navbar ul li a {
        font-size: 20px;
    }

    li a:hover,
    li a.active {
        background: none;
    }

    #check:checked ~ ul {
        transform: translateX(0);
    }
}


/*************************************/
/* ***** Media Query con 952px ***** */
@media (max-width: 952px) {

}



/*************************************/
/* ***** Media Query con 858px ***** */
/*************************************/
@media (max-width: 858px) {
    .footer-grid {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 28px;
        text-align: center;
    }

    .footer-grid .box-footer {
        width: 100%;
        min-width: 0;
        max-width: 360px;
        margin-inline: 0;
    }

    .container-img {
        columns: 2;
        padding: 16px 16px;
        column-gap: 22px;
    }

    .container-videos {
        padding: 16px;
    }
}



/*************************************/
/* ***** Media Query con 774px ***** */
/*************************************/
@media (max-width: 774px) {
    .h1-zona1 h1 {
        font-size: 3rem;
    }

    .presentacion {
        width: 80%;
    }

    .card-pres {
        width: 90%;
    }
}



/*************************************/
/* ***** Media Query con 542px ***** */
/*************************************/
@media (max-width: 542px) {}


/*************************************/
/* ***** Media Query con 516px ***** */
/*************************************/
@media (max-width: 516px) {
    .presentacion {
        width: 90%;
    }

    .card-pres {
        width: 100%;
    }

    .box-footer {
        min-width: 120px;
        margin-inline: 12px;
    }

    .title-box {
        font-size: 16px;
    }

    .box-footer p,
    .box-footer a {
        font-size: 14px;
    }

    .footer-container {
        padding: 40px 16px 0;
    }

    .container-box {
        flex-direction: column;
        align-items: center;
        gap: 28px;
        text-align: center;
    }

    .box-footer {
        width: 100%;
        min-width: 0;
        max-width: 360px;
        margin-inline: 0;
    }

    .container-terminos {
        margin: 28px 0 10px;
        padding-inline: 12px;
        line-height: 1.8;
        text-align: center;
    }

    footer hr {
        width: 82%;
    }
}



/*************************************/
/* ***** Media Query con 490px ***** */
/*************************************/
@media (max-width: 490px) {
    .fa-bars {
        scale: 0.9;
    }

    .main-name {
        font-size: 1.1rem;
    }

    .main-namesito {
        font-size: 0.62rem;
    }

    .h1-zona1 h1 {
        font-size: 2.5rem;
    }

    /* ************************** */
    footer {
        padding: 30px 16px 0;
    }

    footer .copyright {
        font-size: 0.74rem;
        font-stretch: normal;
    }
}


/*************************************/
/* ***** Media Query con 430px ***** */
/*************************************/
@media (max-width: 430px) {
    .logo .enlace img {
        height: 40px;
        width: 40px;
    }
}