/* ESTILOS GENERALES + TITULO ANIMADO */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-image: url('../../imagenes/fondo_cristopher.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: white;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.contenido-total {
    flex: 1;
    display: flex;
    flex-direction: column;
}

header {
    display: flex;
    padding-top: 10px;
    background-image: url('../../imagenes/fondo_cristopher.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-blend-mode: overlay;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
    z-index: 1030;
    position: sticky;
    top: 0;
    width: 100%;
}

.titulo {
    font-family: 'Pacifico', cursive;
    font-size: 2.5rem;
    text-align: center;
    color: #ffeaa7;
    animation: flotar 3s ease-in-out infinite;
    text-shadow: 2px 2px 10px #ff7675;
}

.titulo a {
    color: #ffeaa7;
    text-shadow: 2px 2px 10px #ff7675;
    text-decoration: none;
}

.titulo a:hover {
    color: #fdcb6e;
    text-shadow: 2px 2px 12px #ff7675;
}

@keyframes flotar {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* contenedor central - etiqueta <main> */
.contenedor-central {
    display: flex;
    padding: 20px;
    gap: 30px;
    align-items: flex-start;
}

/* MENU DE CATEGORIAS - DENTRO DEL OFFCANVA */
.menu-categorias {
    width: 220px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 1.1rem;
    font-weight: 500;
    color: #ffeaa7;
    font-family: 'Roboto', sans-serif;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    margin-top: 30px;
}

.menu-categorias .btn-categoria {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 4px 8px;
    font-size: 1rem;
    color: #ffeaa7;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease, transform 0.2s ease;
}

.menu-categorias .subcat-btn {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 4px 8px;
    font-size: 1rem;
    color: #ffeaa7;
    cursor: pointer;
    display: block;
    width: 100%;
    text-align: left;
    margin: 3px 0;
    padding-left: 25px;
    transition: color 0.3s ease;
}

.menu-categorias .btn-categoria:hover,
.subcat-btn:hover {
    color: #fdcb6e;
    background: transparent;
    box-shadow: none;
}

.menu-categorias .btn-categoria:focus,
.subcat-btn:focus {
    outline: none;
    box-shadow: none;
    background: transparent;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fdcb6e;
}

/* Contenedor productos - etiqueta <section> */
.contenido-productos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 30px;
    margin: 0 auto;
    max-width: 1200px;
    padding: 20px;
}

/* TARJETA INDIVIDUAL DE CADA PRODUCTO */
.producto {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffeaa7;
    border-radius: 20px;
    padding: 20px 20px 0px 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 250px;
    margin-bottom: 20px;
}

.producto:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.6);
}

.producto h5 {
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: #ffeaa7;
    text-shadow: 1px 1px 5px #000;
    text-align: center;
}

.producto-imagen {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: bottom;
    border-radius: 12px;
    margin-bottom: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.producto-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.producto-info strong {
    font-size: 1rem;
}

.producto-info button {
    margin-left: auto;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: bold;
    border: 2px solid #fdcb6e;
    background-color: transparent;
    color: #fdcb6e;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.producto-info button:hover {
    background-color: #fdcb6e;
    color: #000;
}

/* ESTILOS ADICIONALES PARA EL DETALLE DE CADA PRODUCTO */
.modal-content {
    color: #ffeaa7;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 20px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.modal-title {
    font-family: 'Pacifico', cursive;
    font-size: 1.8rem;
    text-shadow: 1px 1px 5px #ff7675;
}

.modal-body {
    align-items: center;
}

.modal-body p {
    text-wrap: pretty;
}

.modal-body #imagenModal {
    width: 100%;
    max-width: 250px;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    object-position: center;
    display: block;
    margin: 0 auto;
}

/* PAGINACIÓN */
.paginacion {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    gap: 10px;
}

.paginacion-btn {
    background-color: transparent;
    border: 2px solid #ffeaa7;
    color: #ffeaa7;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.paginacion-btn:hover {
    background-color: #ffeaa7;
    color: black;
}

.paginacion-btn.activo {
    background-color: #fdcb6e;
    color: black;
    border-color: #fdcb6e;
}

/* BUSCADOR - DENTRO DEL OFFCANVA */
.offcanvas {
    color: #ffeaa7;
    font-family: 'Roboto', sans-serif;
    backdrop-filter: blur(8px);
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
    z-index: 1055;
}

.offcanvas form {
    display: flex;
    gap: 10px;
    flex-direction: row;
    align-items: center;
}

.offcanvas input[type="search"] {
    flex: 1;
    backdrop-filter: blur(6px);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: none;
    padding: 10px 15px;
    color: #ffeaa7;
    font-size: 1rem;
}

.offcanvas input::placeholder {
    color: #ffeaa7;
    opacity: 0.7;
}

.offcanvas .btn-search,
.btn-close {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 10px 12px;
    border-radius: 10px;
    color: #ffeaa7;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.offcanvas .btn-search:hover,
.btn-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fdcb6e;
}

/* ÍCONOS - ETIQUETA <I> */
#menuIcon,
#searchIcon {
    font-size: 1.5rem;
    background: transparent;
    border: none;
    color: white;
    padding: 6px 10px;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

#menuIcon:hover,
#searchIcon:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fdcb6e;
}

/* REPRODUCTOR DE MUSICA */
#music-player {
    color: white;
    padding: 10px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: bold;
}

#music-player i {
    background: transparent;
}

#music-player button {
    background: none;
    border: none;
    color: white;
}

.contenido-productos:has(.mensaje-bienvenida) {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.mensaje-bienvenida h2 {
    font-family: 'Pacifico', cursive;
    font-size: 2rem;
    margin-bottom: 15px;
    color: #fdcb6e;
    text-shadow: 2px 2px 8px #000;
}

.mensaje-bienvenida p {
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.6;
    color: #ffeaa7;
    text-wrap: pretty;
}

.mensaje-bienvenida {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(to bottom right, rgba(0, 0, 0, 0.7), rgba(50, 50, 50, 0.6));
    overflow: hidden;
    backdrop-filter: blur(6px);
    font-size: 1.3rem;
    position: relative;
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
    text-align: center;
    color: #ffeaa7;
    z-index: 1;
    padding-top: 70px;
    animation: fadeIn 1.5s ease;
}

/* Estrella derecha */
.mensaje-bienvenida::before {
    content: "✨";
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 5rem;
    opacity: 0.1;
    transform: rotate(20deg);
    animation: brillar 3s ease-in-out infinite;
}

/* Estrella izquierda */
.mensaje-bienvenida::after {
    content: "✨";
    position: absolute;
    top: -20px;
    left: -20px;
    font-size: 5rem;
    opacity: 0.1;
    transform: rotate(-20deg);
    animation: brillar 3s ease-in-out infinite;
}

.mensaje-bienvenida a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px solid #ffffff40;
    padding: 8px 16px;
    border-radius: 8px;
    background-color: transparent;
    transition: all 0.3s ease;
}

.mensaje-bienvenida a i {
    font-size: 1rem;
}

.mensaje-bienvenida a:hover {
    background-color: #ffffff10;
    box-shadow: 0 0 10px #ffffff40;
    transform: scale(1.03);
}

.modal-header {
    border-bottom: 1px solid #ffffff20;
}

.modal-title {
    font-family: 'Pacifico', cursive;
    color: #fdcb6e;
}

.modal-body p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #fff;
    text-wrap: pretty;
}

/* Animación suave de brillo */
@keyframes brillar {
    0% {
        opacity: 0.1;
        transform: scale(1) rotate(0deg);
    }

    50% {
        opacity: 0.2;
        transform: scale(1.1) rotate(10deg);
    }

    100% {
        opacity: 0.1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
    padding: 30px 20px;
    text-align: center;
    color: #ffeaa7;
    margin-top: 60px;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
}

.footer-titulo {
    font-family: 'Pacifico', cursive;
    font-size: 2rem;
    margin-bottom: 10px;
    color: #fdcb6e;
    text-shadow: 1px 1px 5px #000;
}

.footer-redes {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-redes a {
    color: #ffeaa7;
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-redes a:hover {
    color: #fdcb6e;
    transform: scale(1.2);
}

.btn-categoria iconify-icon {
    font-size: 22px;
    margin-right: 8px;
    color: #f5d58d;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 8px 10px;
    }

    .titulo {
        font-size: 1.4rem;
        margin: 0 auto;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 60%;
    }

    #searchIcon {
        display: none;
    }

    #menuIcon {
        font-size: 1.2rem;
        padding: 4px 8px;
    }

    .mensaje-bienvenida {
        padding: 20px 15px;
        font-size: 1rem;
    }

    .mensaje-bienvenida .boton-sobre-nosotros {
        font-size: 0.9rem;
    }

    .contenido-productos {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    .producto {
        width: 90%;
        max-width: 320px;
    }

    .footer {
        padding: 20px 10px;
        font-size: 0.95rem;
    }

    .footer-redes {
        gap: 12px;
    }
}

.footer-redes .whatsapp:hover {
    transform: rotate(360deg) scale(1.2);
    transition: transform 0.6s ease;
    color: #00FFAA;
}

.footer-redes .facebook:hover {
    transform: rotate(360deg) scale(1.2);
    transition: transform 0.6s ease;
    color: #0011ff;
}

.footer-redes .instagram:hover {
    transform: rotate(360deg) scale(1.2);
    transition: transform 0.6s ease;
    color: #ff0073;
}