/* --- BUSCADO MOBILE --- */


@media (max-width: 768px) {
    .search-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: white;
        z-index: 99999;
        overflow-y: auto;
        padding-bottom: 80px;
    }

    .search-header {
        display: flex;
        gap: 10px;
        padding: 10px;
        border-bottom: 1px solid #eee;
        background: white;
        position: sticky;
        top: 0;
        z-index: 100000;
    }
}

/* --- INTRO --- */

.frase-secundaria {
    display: block;
    margin-top: 10px;
    font-weight: 400;
    font-size: 1.4rem;
    font-family: 'Roboto', sans-serif;
}

/* ============================================================
   TODO LO QUE SIGUE ES DEL MICROSITIO / PANEL (NO TOCAR)
   ============================================================ */

/* BOTÓN FLOTANTE WHATSAPP */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--color-primario) !important;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: transform 0.2s ease-in-out;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
}

/* IMÁGENES DE PRODUCTOS */

.producto-card img,
.categoria-card img {
    height: 160px;
    object-fit: cover;
    width: 100%;
    border-radius: 6px;
}



.producto-img-principal {
    max-height: 300px;
    width: auto;
}

.preview-principal-container {
    text-align: center;
    margin: 20px 0;
}

.preview-principal-img {
    max-width: 260px;
    /* tamaño ideal para panel */
    width: auto;
    height: auto;
    border-radius: 25px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 6px;
    background: #fff;
}

.contenedor-imagen-principal {
    width: 260px;
    /* tamaño real del contenedor */
    margin: 0 auto;
    /* centrado */
}

.img-principal {
    width: 30%;
    /* se adapta al contenedor */
    height: auto;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 6px;
    background: #fff;
}


.foto-principal {
    max-width: 300px;
    /* o el tamaño que quieras */
    height: auto;
}


@media (max-width: 576px) {
    .producto-card img {
        height: 130px;
    }
}

/* NAVBAR */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.8) !important;
}

/* SUBRAYADO ANIMADO */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background-color: var(--color-primario);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* BOTONES */
.btn-primary,
.btn-outline-primary:hover {
    background-color: var(--color-primario) !important;
    border-color: var(--color-primario) !important;
}

.btn-outline-primary {
    color: var(--color-primario);
    border-color: var(--color-primario);
}

.btn-outline-primary:hover {
    background-color: var(--color-primario);
    color: white;
}


/* LINKS ACTIVOS */
.nav-link.active,
.nav-link:hover {
    color: var(--color-primario) !important;
}



/* ============================
   CARTA DIGITAL (MICROSITIO)
   ============================ */

.micrositio-carta .carta-item {
    display: flex;
    gap: 16px;
    background: #ffffff;
    padding: 14px;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 16px;
    align-items: center;
}

.micrositio-carta .carta-img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}

.micrositio-carta .carta-info h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.micrositio-carta .carta-info .descripcion {
    margin: 4px 0;
    color: #555;
    font-size: 0.95rem;
}

.micrositio-carta .carta-info .precio {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primario);
}


/* ============================
   PROMOS — SCROLL HORIZONTAL
   ============================ */

.promos-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 5px 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.promos-scroll::-webkit-scrollbar {
    height: 6px;
}

.promos-scroll::-webkit-scrollbar-thumb {
    background: var(--color-primario);
    border-radius: 4px;
}

/* ============================
   TARJETA DE PROMO
   ============================ */

.promo-card {
    min-width: 280px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    scroll-snap-align: start;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Franja superior PROMO */
.promo-ribbon {
    background: var(--color-primario);
    color: white;
    font-weight: bold;
    padding: 6px 12px;
    font-size: 0.9rem;
    text-align: center;
    letter-spacing: 0.5px;
}

/* Imagen */
.promo-img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

/* Contenido */
.promo-content {
    padding: 16px;
    text-align: center;
}

.promo-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #222;
}

.promo-desc {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.3;
}

.promo-price {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--color-primario);
    margin-bottom: 16px;
}