/*--------------- GENERAL ---------------*/

*{
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    padding: 0;
    z-index: 1;
}

html{
    margin: 0;
    padding: 0;
    font-size: 16px;
}

body{
    height: 100% !important;
    box-sizing: border-box;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', system-ui, -apple-system, sans-serif;
    line-height: 1.5;
}

main{
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

p{
    text-wrap: pretty;
    margin-top: 2px;
    margin-bottom: 3px;
    margin-left: 3px;
    margin-right: 5px;
    max-width: 900px;
    text-align: center;
    line-height: 1.6;
    font-size: 1rem;
}

h1, h2, h3, h4{
    text-wrap: balance;
    margin: 0.3em 0.8em;
    max-width: 800px;
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 2rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.75rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.4rem;
}

h4 {
    font-size: 1.2rem;
}

header{
    background: #4A7C59;
    color: white;
    display: flex;
    justify-content: space-around;
    position: sticky;
    top: 0;
    align-items: center;
    flex-direction: row;
    z-index: 2;
}

footer{
    background-color: #4A7C59;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #fff;
    padding: 2em;
    font-size: 0.9rem;
}

footer a{
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

a{
    text-decoration: none;
}

/*--------------- MAIN ---------------*/

.main__imagenes{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.main__imagenes h2, .main__imagenes h3, .main__imagenes p{
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: start;
    margin: 0.5em 1em;
    text-align: start;
    align-self: flex-start;
}

.main__imagenes nav{
    display: flex;
    flex-direction: column;
    margin: auto;
}

.main__imagenes ul, .main__imagenes li{
    display: flex;
    align-self: flex-start;
    justify-content: start;
    flex-direction: column;
    margin: 1em;
}

.main__imagenes li{lsit-style: disc;}

.main__imagenes .texto{
    margin: auto;
    display: flex;
    flex-direction: column;
    max-width: 80vw;
}

.img__container img{
    break-inside: avoid;
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.img__container{
    align-items: start;
    column-width: 280px;
    column-gap: 20px;
    max-width: 1400px;
    margin: 0;
    padding: 10px;
}

.main__imagenes img:first-child{
    margin-top: 20px;
}

.main__imagenes img:last-child{
    margin-bottom: 20px;
}

/*--------------- HEADER ---------------*/

.nav__header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: #4A7C59;
    margin: auto;
}

header .nav__ul{
    display: flex;
    justify-content: space-between;
    list-style: none;
    align-items: center;
    padding: 0;
}

.nav__a{
    display: inline-block;
    text-decoration: none;
    padding: 1em 2em;
    color: #fff;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav__a:hover{
    color: #DEB887;
    background-color: #274830;
}

.logo__header{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2em;
}

.logo__header img{
    height: 3em;
    width: auto;
}

.nav__header select{
    display: inline-block;
    padding: 1em 2em;
    background-color: #4A7C59;
    color: #fff;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
}

.nav__header select:hover{
    background-color: #274830;
}

.nav__header select:focus{
    border: none;
    outline: none;
}

.nav__header select option{
    background-color: #274830;
    padding: 1em 2em;
    font-family: inherit;
}

.nav__header h2{
    color: white; 
}

#btn-menu__nav{
    display: none;
}

.item img{
    height: 2em;
    width: 2em; 
}

/* Agregar a detalles.css */
.img-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9998;
    cursor: pointer;
}

.img-contenedor-ampliada {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    width: 90%;
    height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-ampliada {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    cursor: pointer;
}

@media screen and (max-width: 520px) {
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.35rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }

    h1{
        display: none;
    }
}

@media screen and (max-width: 900px) {

    /*--------------- INDEX ---------------*/

    .main__global-info{
        width: 100%;
        display: flex;
        flex-direction: column-reverse;
        padding: 1rem;
        box-shadow: none;
    }

    .main__metrica ul{
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .metrica {
        padding: 1rem;
    }
    
    .metrica nav {
        font-size: 2rem;
    }

   /*--------------- DETALLES ---------------*/

    .main__detalles {
        width: 100%;
    }

    .main__detalles a {
        width: 90%;
        text-decoration: none;
        position: relative;
        display: block;
    }

    .detalle {
        width: 100%;
        position: relative;
        margin: auto;
        text-decoration: none;
        display: block;
        box-shadow: none;
        overflow: hidden;
    }

    .detalle img {
        width: 100%;
        height: auto;
        display: block;
    }

    .detalle__texto {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0.6), rgba(0,0,0,0.8));
        color: #fff;
        padding: 15px;
        z-index: 2;
    }

    .detalle__texto p {
        display: none;
    }

    .detalle__texto h3 {
        color: #fff;
        margin: 0;
        border: none ;
        font-size: 18px
    }

    .main__detalle__titulo {
        text-align: center;
        color: #cfcfcf;
    }

    /*--------------- FORM ---------------*/

    .main__form{
        display: flex;
        flex-direction: column;
        flex: 1;
        margin: 0;
        padding: 2rem 1rem;
    }

    #form{
        display: flex;
        flex-direction: column;
        margin-bottom: 2rem;
    }

    .doble,
    .simple-chico,
    .simple-grande {
        margin-bottom: 1rem;
        display: flex;
        flex-direction: column;
    }
    
    .doble {
        gap: 1rem;
    }

    /*NASHE*/
    h1{
        display: none;
    }
}

@media screen and (max-width: 768px) {
    /*--------------- GENERAL ---------------*/

    *{
        box-sizing: border-box;
    }

    body{
        font-size: 14px;
    }

    .local__h2 {
        font-size: 2rem;
    }
    
    .local__h3 {
        font-size: 1.25rem;
    }
    
    .metrica nav {
        font-size: 1.75rem;
    }
    
    .main__metrica ul {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    /*--------------- HEADER ---------------*/

    #btn-menu__nav{
        display: flex;
        visibility: visible;
        width: 2.5rem;
        height: 2.5rem;
        background-color: #4A7C59;
        border: 1px solid #fff;
        color: #fff;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        margin: auto;
        cursor: pointer;
        font-size: 1.2rem;
    }

    .nav__ul{
        display: none;
        width: 100%;
        visibility: hidden;
    }

    .nav__li{
        display: flex;
        flex: 1;
        width: 100%;
    }

    .nav__a{
        display: flex;
        flex: 1;
        width: 100%;
    }

    .nav__header{
        width: 100%;
    }

    .nav__a .activo{
        display: flex;
        visibility: visible;
        flex-direction: column;
        width: 100%;
        height: auto;
        background-color: #4A7C59;
        color: #fff;
        position: absolute;
        top: 100%;
        left: 0;
    }

    /*--------------- INDEX ---------------*/

    .main__global-info{
        width: 100%;
        display: flex;
        flex-direction: column-reverse;
        padding: 1rem;
        box-shadow: none;
    }

    .main__metrica ul{
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .metrica {
        padding: 1rem;
    }
    
    .metrica nav {
        font-size: 2rem;
    }

    /*--------------- DETALLES ---------------*/

    .main__detalles {
        width: 100%;
    }

    .main__detalles a {
        width: 90%;
        text-decoration: none;
        position: relative;
        display: block;
    }

    .detalle {
        width: 100%;
        position: relative;
        margin: auto;
        text-decoration: none;
        display: block;
        box-shadow: none;
        overflow: hidden;
    }

    .detalle img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 0;
    }

    .detalle__texto {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0.6), rgba(0,0,0,0.8));
        color: #fff;
        padding: 15px;
        z-index: 2;
    }

    .detalle__texto p {
        display: none;
    }

    .detalle__texto h3 {
        color: #fff;
        margin: 0;
        border: none ;
        font-size: 18px
    }

    .main__detalle__titulo {
        text-align: center;
        color: #cfcfcf;
    }

    /*--------------- CARRUSEL DE NOVEDADES ---------------*/

    .main__novedades{
        width: 100%;
        align-items: center;
        justify-content: center;
        display: flex;
        flex-direction: column;
        margin: auto;
    }

    .novedades__nav{
        width: 100%;
    }

    .--selected{
        display: flex !important;
        flex-direction: column;
        visibility: visible !important;
        flex: 1;
        border-radius: 10px;
        box-shadow: none;
        background-color: transparent;
        color: #fff;
        margin: auto;
        list-style: none;
        padding: .5rem;
        max-width: 100%;
    }


    .novedades__li:hover{
        background-color: inherit;
        color: inherit;
    }

    .novedades__li img{
        max-width: 100%;
        height: auto;
        border-radius: 8px;
    }

    .novedad__texto{
        padding: 0;
        text-align: left;
    }

    .novedad__texto h3, .novedad__texto h4, .novedad__texto p{
        color: #fff;
        padding: 0.25rem 0;
        text-align: left;
        width: 100%;
        margin: 0;
    }

    .novedades__titulo{
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .previo,.siguiente{
        background-color: transparent;
        color: #fff;
        box-shadow: none;
        padding: 0;
        margin: auto;
    }

    .previo:hover, .siguiente:hover{
        background-color: transparent;
        color: #fff;
    }

    /*--------------- FORM ---------------*/

    .main__form{
        display: flex;
        flex-direction: column;
        flex: 1;
        margin: 0;
        padding: 2rem 1rem;
    }

    #form{
        display: flex;
        flex-direction: column;
        margin-bottom: 2rem;
    }

    .doble,
    .simple-chico,
    .simple-grande {
        margin-bottom: 1rem;
        display: flex;
        flex-direction: column;
    }
    
    .doble {
        gap: 1rem;
    }
}

@media screen and (max-width:480px) {
    h1{
        display: flex;
    }
    /*--------------- GENERAL ---------------*/

    *{
        box-sizing: border-box;
    }

    body{
        font-size: 14px;
    }

    .local__h2 {
        font-size: 2rem;
    }
    
    .local__h3 {
        font-size: 1.25rem;
    }
    
    .metrica nav {
        font-size: 1.75rem;
    }
    
    .main__metrica ul {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    /*--------------- HEADER ---------------*/

    #btn-menu__nav{
        display: flex;
        visibility: visible;
        width: 2.5rem;
        height: 2.5rem;
        background-color: #4A7C59;
        border: 1px solid #fff;
        color: #fff;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        margin: auto;
        cursor: pointer;
        font-size: 1.2rem;
    }

    .nav__ul {
        opacity: 0;
        visibility: hidden;
        flex-direction: column;
        width: 100%;
        height: auto;
        background-color: #4A7C59;
        color: #fff;
        position: absolute;
        top: 100%;
        left: 0;
        padding: 1rem;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        display: flex;
    }

    .activo {
        opacity: 1;
        visibility: visible;
    }

    /*--------------- INDEX ---------------*/

    .main__global-info{
        width: 100%;
        display: flex;
        flex-direction: column-reverse;
        padding: 1rem;
        box-shadow: none;
    }

    .main__metrica ul{
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .metrica {
        padding: 1rem;
    }
    
    .metrica nav {
        font-size: 2rem;
    }

    /*--------------- DETALLES ---------------*/

    .main__detalles {
        width: 100%;
    }

    .main__detalles a {
        width: 90%;
        text-decoration: none;
        position: relative;
        display: block;
    }

    .detalle {
        width: 100%;
        position: relative;
        margin: auto;
        text-decoration: none;
        display: block;
        box-shadow: none;
        overflow: hidden;
    }

    .detalle img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 0;
    }

    .detalle__texto {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0.6), rgba(0,0,0,0.8));
        color: #fff;
        padding: 15px;
        z-index: 2;
    }

    .detalle__texto p {
        display: none;
    }

    .detalle__texto h3 {
        color: #fff;
        margin: 0;
        border: none ;
        font-size: 18px
    }

    .main__detalle__titulo {
        text-align: center;
        color: #cfcfcf;
    }
    /*--------------- CARRUSEL DE NOVEDADES ---------------*/

    .main__novedades{
        width: 100%;
        align-items: center;
        justify-content: center;
        display: flex;
        flex-direction: column;
        margin: auto;
    }

    .novedades__nav{
        width: 100%;
    }

    .--selected{
        display: flex !important;
        flex-direction: column;
        visibility: visible !important;
        flex: 1;
        border-radius: 0;
        box-shadow: none;
        background-color: transparent;
        color: #fff;
        margin: auto;
        list-style: none;
        padding: .5rem;
        max-width: 100%;
    }


    .novedades__li:hover{
        background-color: inherit;
        color: inherit;
    }

    .novedades__li img{
        width: 100%;
        height: auto;
        border-radius: 0;
    }

    .novedad__texto{
        padding: 0;
        text-align: left;
    }

    .novedad__texto h3, .novedad__texto h4, .novedad__texto p{
        color: #fff;
        padding: 0.25rem 0;
        text-align: left;
        width: 100%;
        margin: 0;
    }

    .novedades__titulo{
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .previo,.siguiente{
        background-color: transparent;
        color: #fff;
        box-shadow: none;
        padding: 0;
        margin: auto;
    }

    .previo:hover, .siguiente:hover{
        background-color: transparent;
        color: #fff;
    }

    /*--------------- FORM ---------------*/

    .main__form{
        display: flex;
        flex-direction: column;
        flex: 1;
        margin: 0;
        padding: 2rem 1rem;
    }

    #form{
        display: flex;
        flex-direction: column;
        margin-bottom: 2rem;
    }

    .doble,
    .simple-chico,
    .simple-grande {
        margin-bottom: 1rem;
        display: flex;
        flex-direction: column;
    }
    
    .doble {
        gap: 1rem;
    }
}

@keyframes carga{
    from{
        opacity: 0;
    }
    to{
        opacity: 1;
    }
}

@keyframes movimientoSinuoso {
    0%, 70% { transform: translateY(0px); }
    75% { transform: translateY(-15px); }
    85% { transform: translateY(0px); }
    95% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

a{
    text-decoration: none;
}

.--no{
    display: none;
}