@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(--color52);
    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 {
    color: var(--color30);
} */

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(--color20);
}

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

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



/**********************************************/
/* **** Zona central de la primera página **** */
.zona1 {
    /* Esto agregue por el tema imagen de fondo */
    background-image: url(../img/fotos/foto19.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: auto;
    overflow: hidden;
    margin-top: 0px;
    /* añade margen para compensar el navbar fijo */
    display: flex;
    z-index: 0;
}


/***********************************************/
/* ***************** Términos **************** */
.container-politicas {
    flex-direction: column;
    padding: 40px 0;
    min-height: 100vh;
}

.h1-cabecera h1 {
    color: var(--green-dark);
    text-shadow: 1px 1px 0px var(--white);
    font-size: clamp(1.5rem, 2vw + 0.75rem, 2.3rem);
    text-align: center;
    margin: 86px auto 0;
}

.container-uso {
    /* max-width: 60%; */
    max-width: clamp(60%, 90vw, 98%);
    /* con ESTO solucione lo del alto sin medias query */
    min-height: 95%;
    max-height: 98%;
    margin: 0px auto;
    padding: 16px;
    overflow: hidden;
}

.cabecera h2 {
    color: var(--quewhite);
    text-shadow: 1px 1px 0px var(--green-oliva),
        0px 0px 10px var(--green-oliva),
        0px 0px 20px var(--green-oliva);
    font-size: clamp(1.25rem, 2vw + 0.75rem, 2.25rem);
    margin: 30px 0 0;
    text-align: center;
}

.container-uso p {
    text-align: justify;
    color: var(--white);
    font-size: clamp(16px, 1vw + 0.75rem, 22px);
    text-shadow: 1px 1px 4px var(--text);
}

.container-uso p a {
    color: var(--color62);
}

/* Boton flecha inicio */
.flecha-arriba {
    bottom: 4px;
    right: 4px;
    height: 40px;
    width: 40px;
    cursor: pointer;

    position: fixed;
}



/*************************/
/* ******* 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) {}




/*************************************/
/* ***** Media Query con 1090px ***** */
@media (max-width: 1090px) {
    nav {
        /* nuevo */
        justify-content: space-between;
    }

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

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

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

    .checkbtn {
        display: block;
        /* nuevo */
        position: absolute;
        top: 32px;
        right: 20px;
        float: none;
        z-index: 110
    }

    nav ul {
        position: fixed;
        width: 100%;
        height: 80vh;
        background: rgb(29, 52, 86, 0.8);
        top: 96px;
        left: 0;
        margin: 0;
        text-align: center;
        
        /* nuevo efecto */
        transform: translateX(-100%);
        transition: transform 0.5s ease;
        /* fin nuevo */

        overflow-y: auto;
        display: block;
    }

    nav ul li {
        display: block;
        margin: 30px 0;
        line-height: 30px;
    }

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

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

    #check:checked ~ ul {
        /* nuevo efecto */
        transform: translateX(0);
    }

    nav .nav-redes {
        margin-right: 10px;
    }
}


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



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



/*************************************/
/* ***** Media Query con 516px ***** */
/*************************************/
@media (max-width: 516px) {
    .box-footer {
        min-width: 120px;
        margin-inline: 12px;
    }

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

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


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



/*************************************/
/* ***** 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;
    }

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

    p.contac {
        font-size: 1.6rem;
    }

    p.mimail {
        font-size: 0.9rem;
    }

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


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