* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #ffff00;
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}

/* ANIMACIONES */

.fade-in {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.js-anim .fade-in {
    opacity: 0;
    transform: translateY(30px);
}

.js-anim .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* BOTÓN IR ARRIBA */

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

#scrollToTopBtn.mostrar {
    display: block;
}

#scrollToTopBtn:hover {
    background: linear-gradient(to bottom, rgb(161, 0, 0), rgb(209, 0, 0));
    transform: translateY(-5px);
}

/* NAVEGACIÓN */

nav {
    display: flex;
    position: relative;
    background: white;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 110px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.brand a {
    font-size: 25px;
    text-decoration: none;
    color: black;
    display: flex;
    align-items: center;
    font-weight: bold;
}

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

.brand a img:hover {
    transform: scale(1.05);
}

.menu {
    margin: auto;
    width: 100%;
    padding: 10px 20px;
    font-family: "Times New Roman", Times, serif;
    list-style: none;
    display: none;
    flex-direction: column;
    text-align: center;
}

.menu.menu-visible {
    display: flex;
}

.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;
}
/* ANIMACIÓN APUNTANDO A LA TIENDA (Solo celulares) */
.tooltip-tienda {
    position: absolute;
    right: 45px; /* Distancia hacia la izquierda de las 3 líneas */
    top: -3px; /* Ajuste vertical */
    background-color: red;
    color: white;
    font-size: 15px;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    padding: 6px 12px;
    border-radius: 8px;
    white-space: nowrap;
    pointer-events: none; /* Evita que estorbe al usuario si intenta dar clic rápido */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    opacity: 0;
    /* La animación dura 3 segundos */
    animation: apuntarMenu 3s ease-in-out forwards;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Triángulo decorativo estilo globo de chat */
.tooltip-tienda::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent red;
}

/* Efecto de rebote lateral y desvanecimiento */
@keyframes apuntarMenu {
    0% { opacity: 0; transform: translateX(-20px); }
    15% { opacity: 1; transform: translateX(0); }
    25% { transform: translateX(-8px); } /* Rebote llamativo */
    40% { transform: translateX(0); }
    85% { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; transform: translateX(10px); }
}

/* Asegurar que esté totalmente oculto en PC */
@media (min-width: 1033px) {
    .tooltip-tienda {
        display: none !important;
        animation: none;
    }
}


/* CONTENIDO PRINCIPAL */

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

/* BUSCADOR */

.contenedorInput {
    width: 100%;
    margin-bottom: -40px;
    text-align: center;
}

#input_filter {
    font-size: 20px;
    font-weight: 500;
    color: rgb(29, 29, 29);
    text-align: center;
    padding: 15px 30px;
    border-radius: 30px;
    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_filter:focus {
    border: 2px solid red;
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.2);
    transform: scale(1.02);
}

/* LISTA DE HELADOS */

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

.productos li {
    width: 85%;
    max-width: 600px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: white;
    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);
    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);
}

/* HORARIO Y CONTACTO */

.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);
}

/* RECOMENDACIONES */

#parahoy {
    text-align: center;
}

#parahoy button {
    font-size: 22px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    border-radius: 30px;
    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;
    }
}

.toggle-content {
    display: none;
}

.toggle-content.contenido-visible {
    display: block;
}

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

/* FORMULARIO */

#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;
}

#Feedback input[type="text"],
#Feedback input[type="email"],
#Feedback 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;
}

#Feedback input[type="text"]:focus,
#Feedback input[type="email"]:focus,
#Feedback 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);
}

/* ESCRITORIO */

@media (min-width: 1033px) {
    nav {
        min-height: 110px;
    }

    .brand a img {
        width: 120px;
        height: 100px;
        margin-left: 50px;
    }

    .menu {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        width: auto;
        padding: 0;
    }

    .menu-icon {
        display: none;
    }

    .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;
    }
}

/* CELULARES PEQUEÑOS */

@media (max-width: 500px) {
    .brand a {
        font-size: 20px;
    }

    .brand a img {
        width: 85px;
        height: 75px;
        margin-left: 15px;
    }

    .menu-icon {
        top: 27px;
        right: 15px;
    }

    .productos li {
        width: 92%;
        padding: 15px;
    }

    .productos a {
        font-size: 16px;
    }

    .productos p {
        font-size: 19px;
    }

    #recomendation {
        font-size: 20px;
    }
}