@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --em-color01: #f5efe6;
    --em-color02: #d9c2a3;
    --em-color021: rgba(217, 194, 163, 0.7);
    --em-color03: #a67c52;
    --em-color04: #8c6239;
    --em-color05: #3d1f01;
    --em-color06: #679c31;
    --em-color07: #4a7023;
    --em-color08: #2e5730;
    --em-color09: #213d22;
    --em-color10: #04b171;
    --em-color10: #036f47;
}


* {
    padding: 0;
    margin: 0;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif, Arial, Helvetica;
}

/* html {
    scroll-behavior: smooth;
} */

nav {
    position: fixed;
    top: 0;
    left: 0;
    display: inline-block;
    transition: 0.7s;
    height: 90px;
    width: 100%;
    background-color: var(--em-color02);
    z-index: 100;
}

nav.abajo {
    background: var(--em-color021);
    padding: 4px 10px;
}

.enlace {
    position: absolute;
    height: 70px;
    padding: 6px;
    margin: 8px 0 0 16px;
  
    display: flex;
    align-items: center;
}

.logo {
    height: 60px;
    width: 60px;
    border-radius: 10px;
    margin-right: 10px;

    animation: rotate-logo 6s ease-in-out infinite;
}

@keyframes rotate-logo {
    0% {
        transform: rotateY(360deg);
    }
    60% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(0deg);
    }
}

.names {
    display: flex;
    flex-direction: column;
}

.main-name {
    color: var(--em-color06);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1.6rem;
    transition: 0.5s;
}

.main-name:hover {
    text-shadow: 2px 2px var(--em-color03);
    transition: 0.5s;
}

.main-namesito {
    color: var(--em-color05);
    font-size: 0.72rem;
    /* text-shadow: 1px 1px 0 #21d5fa; */
}

/* Preparado para que se vea el nombre del usuario que esta logueado */
.user-name {
    color: var(--em-color08);
    text-shadow: 1px 1px 0px var(--em-color05);
    padding: 6px;
    margin-left: 10px;
    font-size: 1rem;
    align-items: center;
    cursor: initial;
    opacity: 0;
} 

nav ul {
    float: right;
    display: flex;
    align-items: center;
}

nav ul li {
    display: inline-block;
    line-height: 70px;
    margin: 6px;
}

nav ul li a {
    position: relative;
    color: var(--em-color04);
    /* text-shadow: 2px 2px 0px #5f5f5f; */
    font-size: 1rem;
    font-weight: 600;
    border-radius: 5px;
    text-transform: uppercase;
    padding: 0 12px;
}

.fa-home {
    font-size: 1.125rem;
    /* color: var(--em-color08); */
}

/* nuevo */
li a:after {
    content: "";
    position: absolute;
    background-color: var(--em-color04);
    height: 4px;
    width: 0;
    left: 0;
    bottom: -10px;
    transition: 0.3s;
}

li a:hover {
    color: var(--em-color06);
}

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

.container-user {
    display: flex;
    justify-content: center;
    gap: 1rem;
    /* float: right; */
    margin: 6px 20px;
    padding: 6px;
}

.fa-power-off,
.fa-user,
.fa-cart-shopping {
    font-size: 1.125rem;
    color: var(--em-color10);
    cursor: pointer;
}

.container-user a {
    position: relative; /* Hacer el contenedor relativo para posicionar el span */
    /* color: inherit; */ /* Mantener el color por defecto */
}

/* El cero del carrito */
.container-user a span {
    position: absolute; /* Posicionar relativo al ícono */
    top: -8px; /* Ajusta según el tamaño del ícono */
    right: -12px; /* Ajusta según la distancia del borde */
    color: white; 
    background-color: red;
    padding: 3px 6px; /* Tamaño del círculo */
    font-size: 10px; /* Tamaño del texto */
    border-radius: 50%; /* Convertirlo en un círculo */
    font-weight: bold; /* Hacer que el texto resalte */
    text-align: center;
}

.checkbtn {
    font-size: 34px;
    color: white;
    float: right;
    line-height: 80px;
    margin-right: 20px;
    cursor: pointer;
    display: none;
}

#check {
    display: none;
}

/* nav.abajo .main-name, */
nav.abajo ul li a {
    color: var(--em-color05);
}

nav.abajo .logo,
nav.abajo ul li a:hover {
    color: var(--em-color07);
}

nav.abajo .main-name {
    color: var(--em-color08);
}

nav.abajo .main-name:hover {
    text-shadow: 2px 2px var(--em-color06);
}


/**********************************************/
/* **** Zona central de la primer pagina **** */ 
#zona1 {
    background: url(../img/fondo.jpg) no-repeat;   /* Es para que sea SOLO una imagen */
    background-size: cover;
    background-position: center center;
    /* height: calc(100vh - 100px); */

    /* nuevo */
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    /* align-items: center; */

    position: relative;
    overflow-x: hidden;
    /* border: 2px solid red; */
}

#container-resenas {
    width: 100%;

    max-height: 87%;
    min-height: 26%;

    margin-top: 100px;
    text-align: center;
    padding: 10px;

    /* border: 2px solid blue; */
}

#container-resenas h2 {
    font-size: clamp(1.4rem, 2vw + 1rem, 2rem);
    margin-bottom: 6px;
    color: var(--em-color06);
    text-shadow: 1px 1px 0px #000000,
                 0px 0px 20px var(--em-color09),
                 0px 0px 30px var(--em-color09);
}


/* **** Formulario resenas **** */
.content-form-resenas {
    width: 90%;
    display: flex;
    margin: 0 auto;
    margin-bottom: 20px;
}

form#form-resenas {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin: 4px 4px 0;
}

form label {
    /* margin-right: 8px; */
    font-weight: bold;
    font-size: clamp(0.563rem, 1vw + 0.25rem, 0.9rem);
    color: var(--em-color10);
    text-shadow: 1px 1px 0px #000000;
}

#nombre-res {
    /* width: 100%; */
    text-transform: capitalize;
}

#comentario-res {
    /* width: 100%; */
    /* width: 30%; */
    /* min-width: 20%; */
    /* max-height: 34px; */
    /* min-height: 34px; */
}

#nombre-res,
#comentario-res {
    margin-right: 4%;
    height: 34px;
    font-size: clamp(0.563rem, 1vw + 0.25rem, 0.875rem);
    border: none;
    border-bottom: 2px solid #303131;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

::placeholder {
    color: #f0f0f0;
}

.group-nombre {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.group-comentario {
    display: flex;
    flex-direction: column;
    flex: 2;
}

.group-btn {
    display: flex;
    justify-content: center;
    align-self: flex-end;
    /* margin-inline: 8px; */
    /* flex: 1; */
}

.btn-res {
    color: #ffffff;
    border: 1px solid var(--em-color08);
    background-color: var(--em-color08);
    font-size: clamp(0.563rem, 1vw + 0.25rem, 0.875rem);
    padding: 3px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.5s;
}

.btn-res:hover {
    border: 1px solid var(--em-color06);
    background-color: var(--em-color06);
}

.borrar-res {
    color: #ffffff;
    border: 1px solid #d30202;
    background-color: #d30202;
    font-size: clamp(0.563rem, 1vw + 0.25rem, 0.875rem);
    padding: 3px 12px;
    margin-left: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.5s;
}

.borrar-res:hover {
    border: 1px solid red;
    background-color: red;
}

/* ***************************** */
/* **** Tarjetas de reseñas **** */
.container-cards {
    width: 80%;
    height: 88%;
    margin: 0 auto; 

    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    grid-auto-rows: 220px;
    gap: 1rem;
    overflow-y: auto;

    scrollbar-width: none;  /* Oculta la barra en Firefox */

    /* border: 2px solid green; */
}

.container-cards::-webkit-scrollbar {
    display: none;  /* Oculta la barra en Chrome, Edge y Safari */
}

.card-resenas {
    display: grid;
    grid-template-rows: 20% 60% 20%;
    border-radius: 8px;
    box-shadow: 5px 5px 10px #555555;
    background-color: #f0f0f0;
    max-width: auto;
    height: 100%;
    /* object-fit: cover; */
    padding: 16px;
    overflow: hidden;
    
    transition: 0.5s ease-in-out;
}

.card-resenas:hover {
    background-color: #faebd7;
    box-shadow: -6px -6px 15px #424242;
    scale: 0.99;
    transition: 0.5s;
}

/* .container-cards:hover > :not(:hover) {
    filter: blur(5px);
    opacity: 0.5;
} */

.card-title-resenas {
    grid-row: 1/2;
    padding: 0 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: clamp(1rem, 2vw + 0.25rem, 1.5rem);
    margin: 0 auto;
    text-transform: capitalize;
}

.card-description-resenas {
    grid-row: 2/3;
    padding: 0 16px;
    display: flex;
    align-items: flex-start;
    text-align: justify;
    font-size: clamp(0.8em, 2vw, 1em);
    color: #666;
    font-style: italic;
    margin: 10px auto;
    width: 100%;

    overflow-y: auto;
}

.card-fecha-resena {
    grid-row: 3/4;
    align-self: center;
    justify-self: end;
    font-size: 0.85rem;
    color: #444;
}

/* Boton flecha inicio */
.flecha-arriba{
    bottom: 4px;
    right: 4px;

    position: fixed;

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


/*************************/
/* ******* Footer ****** */
footer {
    background-color: var(--em-color05);
    color: #fff;
    text-align: center;
    padding: 30px 0;
}

p.contac {
    font-size: 1.5rem;
    color: var(--em-color06);
    padding-bottom: 10px;
    text-shadow: 1px 1px 0 #ffffff;
}

footer .container {
    margin-bottom: 8px;
}

.mimail {
    font-size: 1rem;
    padding-bottom: 12px;
}

.mimail a {
    color: #ffffff;
}

.sociales {
    padding-bottom: 10px;
}

.sociales a {
    padding: 0 4px;
}

.linkedin, .github, .facebook, .whatsapp {
    width: 36px;
    height: 36px;
    border-radius: 50px;

    transition: 0.5s;
}

.linkedin:hover, .github:hover,
.facebook:hover, .whatsapp:hover {
    /* background-color: #ffffff; */
    box-shadow: 1px 1px 14px 0 #abacaf, -1px -1px 14px 0 #abacaf;
}

a.terminos {
    color: var(--em-color02);
    font-size: clamp(0.625rem, 1vw + 0.25rem, 1rem);
}

footer .copyright {
    font-size: 1rem;
    font-stretch: normal;
    color: var(--em-color07);
}



/*************************************/
/* ***** Media Query con 1368px ***** */
@media (max-width: 1368px) {
    .logo {
        height: 50px;
        width: 50px;
    }
    
    .main-name {
        font-size: 1.3rem;
    } 

    .checkbtn {
        display: block;
        margin-top: 8px;
    }

    nav ul {
        position: fixed;
        width: 100%;
        height: 80vh;
        background: rgba(217, 194, 163, 0.8);
        top: 90px;
        left: -100%;
        margin: 0;
        text-align: center;
        transition: all .5s;
        overflow-y: auto;

        display: block;
    }

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

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

    li a:hover, li a.active {
        background: none;
        /* color: red; */
    }

    #check:checked ~ ul {
        left:0;
    }

    .presentacion h1 {
        font-size: 4rem;
    }
}


/*************************************/
/* ***** Media Query con 1090px ***** */
@media (max-width: 1090px) {
    .main-name {
        font-size: 1.4rem;
    } 
}


/*************************************/
/* ***** Media Query con 952px ***** */
@media (max-width: 952px) {
    .content-form-resenas {
        width: 96%;
    }

    #comentario-res {
        max-height: 28px;
        min-height: 28px;
    }

    #nombre-res,
    #comentario-res {
        height: 28px;
    }
}



/*************************************/
/* ***** Media Query con 858px ***** */
/*************************************/
@media (max-width: 858px) {
    .presentacion h1 {
        font-size: 4rem;
    }
}



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



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

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

    /* ************************** */
    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 {
        height: 40px;
        width: 40px;
    }
}

/*************************************/
/* ***** Media Query con 377px ***** */
/*************************************/
@media (max-width: 377px) {
    .group-btn {
        margin-top: 6px;
    }
}
