body {
    background-color: #FFFF00;
    margin: 0px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Fuente más limpia para la lectura */
    height: 100vh;
}

html {
    scroll-behavior: smooth;
}

/* Animaciones de aparición al hacer scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

#scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 20px; 
    right: 30px;
    z-index: 9; 
    border: none;
    background: linear-gradient(to bottom, rgb(200, 0, 0), red);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3); /* Sombra moderna */
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50px; /* Más redondo, estilo moderno */
    font-size: 18px;
    transition: transform 0.3s ease, background 0.3s;
}

#scrollToTopBtn:hover {
    background: linear-gradient(to bottom, rgb(161, 0, 0), rgb(209, 0, 0));
    transform: translateY(-5px); /* Se levanta un poco al pasar el cursor */
}

/* STYLES OF THE NAV */
nav {
    display: flex;
    position: relative;
    background: white;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1); /* Sombra suave para el header */
    z-index: 10;
}

.brand a img {
    margin: 10px;
    margin-left: 50px;
    width: 110px;
    height: 90px;
    transition: transform 0.3s ease;
}

.brand a img:hover {
    transform: scale(1.05); /* Efecto de latido en el logo */
}

.menu {
    margin: auto;
    width: auto;
    font-family: 'Times New Roman', Times, serif;
    list-style: none;
    display: none;
    flex-direction: column;
    text-align: center;
}

.menu li a {
    color: black;
    font-weight: 600;
    font-size: 22px;
    margin: 7px;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    border-radius: 7px;
    transition: all 0.3s ease;
}

.menu li a:hover {
    color: white;
    background-color: #FFC000;
}

.menu li a.btn-tienda {
    background-color: red;
    color: white;
    box-shadow: 0 4px 6px rgba(255, 0, 0, 0.3);
}

.menu li a.btn-tienda:hover {
    background-color: darkred;
    transform: scale(1.05);
}

.menu-icon {
    display: block;
    cursor: pointer;
    position: absolute;
    top: 35px;
    right: 20px;
    font-size: 30px;
}

@media (min-width: 1033px) {
    .brand a img {
        width: 120px;
        height: 100px;
    }
    .menu {
        display: flex;
        flex-direction: row;
    }
    .menu-icon { display: none; }
}

/* MAIN */
main {
    padding: 40px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 90px;
}

.portada { width: 100%; }
.portada img {
    width: 100%;
    height: auto;
    display: block;
}

.portada div {
    display: flex;
    background-color: #FFC000;
    font-size: 20px;
    color: black;
    font-family: 'Times New Roman', Times, serif;
    padding: 20px;
    text-align: center;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

@media (min-width: 1033px) {
    .portada {
        display: flex;
        justify-content: center;
        max-width: 1200px;
        margin: 0 auto;
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    }
    .portada img { width: 60%; }
    .portada div {
        width: 40%;
        justify-content: center;
        font-size: 22px;
    }
}

/* INPUT BUSCADOR */
.contenedorInput { margin-bottom: -40px; }

input[type="text"] {
    font-size: 20px;
    font-weight: 500;
    color: rgb(29, 29, 29);
    text-align: center;
    padding: 15px 30px;
    border-radius: 30px; /* Bordes más modernos */
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    width: 90%;
    max-width: 600px;
    outline: none;
}

input[type="text"]:focus {
    border: 2px solid red;
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.2);
    transform: scale(1.02); /* Se agranda un poco al hacer click */
}

/* PRODUCTOS */
.productos {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 0;
    width: 100%;
    align-items: center;
}

/* Tarjetas de productos modernas */
.productos li {
    width: 85%;
    max-width: 600px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: white; /* Resalta con el amarillo */
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.productos li:hover {
    transform: translateY(-10px); /* Efecto de levitación */
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.normales {
    width: 45%;
    height: auto;
    object-fit: contain;
}

.especiales {
    width: 35%;
    height: auto;
    object-fit: contain;
}

.productos a {
    font-size: 20px;
    letter-spacing: 1px;
    font-weight: 700;
    text-decoration: none;
    color: #222;
    display: block;
    line-height: 1.5;
}

.productos p {
    text-align: center;
    font-size: 24px;
    letter-spacing: 2px;
    font-weight: 700;
    color: red;
    background: white;
    padding: 10px 30px;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* TEXTOS Y BLOQUES FINALES */
.contenedorElse { text-align: center; }
.contenedorElse p {
    font-size: 28px;
    font-weight: 700;
    color: red;
    margin-bottom: 10px;
}

.contenedorElse a {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
}

#OpenClose {
    font-size: 26px;
    font-weight: 700;
    margin-top: 20px;
    padding: 10px 20px;
    background: white;
    border-radius: 15px;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

#parahoy { text-align: center; }
#parahoy button {
    font-size: 22px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    border-radius: 30px; /* Botón moderno */
    color: white;
    padding: 15px 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    animation: color-change 2s infinite alternate;
    transition: transform 0.3s;
}

#parahoy button:hover {
    transform: scale(1.05);
}

@keyframes color-change {
    0% { background-color: #0B8AFB; }
    100% { background-color: #978BF8; }
}

#recomendation {
    font-size: 25px;
    font-weight: 700;
    animation: texto-animation 3.7s forwards;
    background: white;
    padding: 20px;
    border-radius: 15px;
    display: inline-block;
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

@keyframes texto-animation{
    0% { color: #978BF8; }
    25% { color: #0B8AFB; }
    50% { color: #978BF8; }   
    75% { color: #0B8AFB; }
    95% { color: #FFC000; }
    100% { color: black; }
}

.toggle-content { display: none; }

/* FORMULARIO COMENTARIOS */
#Feedback {
    background-color: white;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    margin: 0 auto;
}

#Feedback p {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

form label {
    font-size: 18px;
    color: #555;
    font-weight: 600;
    margin-top: 15px;
    width: 100%;
    text-align: left;
}

input[type="email"], textarea {
    font-size: 18px;
    color: rgb(34, 34, 34);
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    border: 2px solid #ddd;
    border-radius: 10px;
    box-sizing: border-box;
    transition: border-color 0.3s;
    font-family: inherit;
}

input[type="email"]:focus, textarea:focus {
    border-color: red;
    outline: none;
}

input[type="submit"] {
    margin-top: 25px;
    border: none;
    background-color: #FFC000;
    padding: 12px 40px;
    border-radius: 30px;
    font-size: 20px;
    color: black;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    transition: all 0.3s;
}

input[type="submit"]:hover {
    background-color: red;
    color: white;
    cursor: pointer;
    transform: translateY(-3px);
}
