﻿* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    width: 100%;
    overflow-x: hidden;
    font-family: 'Segoe UI', Arial, sans-serif;
    min-height: 100vh;
    background: #f4f7fb !important;
    color: #1f2937;
}

form#form1 {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* =========================
   HEADER
========================= */

.header-tienda {
    width: 100%;
    background: linear-gradient(135deg, #0b2a4a, #1078C1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
    z-index: 1000;
}

    .header-tienda .container {
        max-width: 1200px;
    }

.navbar {
    padding: 12px 0;
}

.logo-tienda {
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .logo-tienda i {
        color: #ffc107;
        font-size: 1.5rem;
    }

.navbar .nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.90) !important;
    margin: 2PX;
    border-radius: 12px;
    transition: all 0.25s ease;
}

    .navbar .nav-link:hover,
    .navbar .nav-link.active {
        background: rgba(255, 255, 255, 0.13);
        color: #ffffff !important;
    }

.btn-carrito {
    border-radius: 14px !important;
    font-weight: 700 !important;
    padding: 9px 15px !important;
    box-shadow: 0 8px 18px rgba(255, 193, 7, 0.28);
    white-space: normal;
}

/* =========================
   HERO PRINCIPAL
========================= */

.hero-section {
    width: 100%;
    position: relative;
    padding: 65px 0;
    background: radial-gradient(circle at top left, rgba(255, 193, 7, 0.25), transparent 32%), linear-gradient(135deg, #0b2a4a 0%, #123d69 45%, #1078C1 100%);
    color: #ffffff;
    overflow: hidden;
}

    .hero-section .container {
        max-width: 1200px;
        position: relative;
        z-index: 2;
    }

    .hero-section::after {
        content: "";
        position: absolute;
        right: -120px;
        top: -120px;
        width: 320px;
        height: 320px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.08);
    }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.90rem;
    font-weight: 600;
    margin-bottom: 16px;
}

    .hero-badge i {
        color: #ffc107;
    }

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.06;
    letter-spacing: -1.5px;
    max-width: 740px;
    margin-bottom: 16px;
}

.hero-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.86);
    max-width: 620px;
    margin-bottom: 25px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

    .hero-actions .btn {
        border-radius: 16px;
        font-weight: 800;
        padding: 11px 20px;
    }

.hero-card {
    width: 100%;
    max-width: 390px;
    margin-left: auto;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(14px);
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
}

.hero-card-icon {
    width: 62px;
    height: 62px;
    border-radius: 20px;
    background: #ffc107;
    color: #0b2a4a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin-bottom: 16px;
}

.hero-card h3 {
    font-weight: 900;
    margin-bottom: 8px;
}

.hero-card p {
    color: rgba(255, 255, 255, 0.82);
}

.hero-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 20px;
}

    .hero-mini-grid div {
        background: rgba(255, 255, 255, 0.13);
        border-radius: 16px;
        padding: 12px 8px;
        text-align: center;
    }

    .hero-mini-grid strong {
        display: block;
        font-size: 1rem;
        font-weight: 900;
    }

    .hero-mini-grid span {
        display: block;
        font-size: 0.76rem;
        color: rgba(255, 255, 255, 0.75);
    }

/* =========================
   BENEFICIOS
========================= */

.beneficios-section {
    margin-top: -28px;
    position: relative;
    z-index: 5;
}

    .beneficios-section .container {
        max-width: 1200px;
    }

.beneficio-card {
    height: 100%;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #ffffff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.10);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

    .beneficio-card i {
        width: 48px;
        height: 48px;
        min-width: 48px;
        border-radius: 15px;
        background: #e8f3ff;
        color: #1078C1;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.45rem;
    }

    .beneficio-card h4 {
        font-size: 1rem;
        font-weight: 900;
        margin-bottom: 4px;
    }

    .beneficio-card p {
        margin: 0;
        color: #64748b;
        font-size: 0.90rem;
    }

/* =========================
   TITULOS
========================= */

.section-title {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 30px auto;
}

    .section-title span {
        display: inline-block;
        color: #1078C1;
        font-weight: 900;
        background: #e8f3ff;
        padding: 7px 14px;
        border-radius: 999px;
        margin-bottom: 12px;
    }

    .section-title h2 {
        font-size: clamp(1.8rem, 4vw, 2.7rem);
        font-weight: 900;
        color: #0b2a4a;
        letter-spacing: -1px;
        margin-bottom: 8px;
    }

    .section-title p {
        color: #64748b;
        font-size: 1rem;
    }

/* =========================
   PRODUCTOS PRINCIPAL
========================= */

#productos {
    width: 100%;
}

.producto-card {
    width: 100%;
    min-height: 100%;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    display: flex;
    flex-direction: column;
}

    .producto-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 48px rgba(15, 23, 42, 0.15);
    }

.producto-img-box {
    width: 100%;
    height: 155px;
    padding: 16px;
    background: linear-gradient(180deg, #ffffff, #f1f5f9);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.producto-img {
    display: block;
    margin: auto;
    max-width: 100%;
    max-height: 115px;
    object-fit: contain;
    transition: transform 0.28s ease;
}

.producto-card:hover .producto-img {
    transform: scale(1.04);
}

.producto-body {
    padding: 18px 20px 10px 20px;
    flex: 1;
}

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

.producto-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ecfdf5;
    color: #047857;
    font-size: 0.76rem;
    font-weight: 800;
    padding: 6px 10px;
    border-radius: 999px;
}

.producto-title {
    font-size: 1.12rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 8px;
}

.producto-desc {
    color: #64748b;
    font-size: 0.90rem;
    line-height: 1.5;
    margin-bottom: 14px;
}

.producto-price {
    color: #1078C1;
    font-size: 1.25rem;
    font-weight: 900;
}

.producto-footer {
    padding: 0 20px 20px 20px;
}

.btn-agregar {
    border-radius: 15px !important;
    font-weight: 800 !important;
    padding: 11px 14px !important;
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    border: none !important;
    box-shadow: 0 10px 22px rgba(22, 163, 74, 0.25);
    white-space: normal;
}

    .btn-agregar:hover {
        background: linear-gradient(135deg, #15803d, #166534) !important;
    }

/* =========================
   MARKETPLACE PRODUCTOS
========================= */

.productos-scroll {
    display: grid;
    grid-template-columns: repeat(5, minmax(190px, 1fr));
    gap: 18px;
    width: 100%;
}

.producto-market-card {
    position: relative;
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    min-height: 495px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    display: flex;
    flex-direction: column;
}

    .producto-market-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
    }

.descuento-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 5;
    background: #ff1f2d;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 9px;
    border-radius: 3px;
}

.producto-market-img-box {
    position: relative;
    display: block;
    width: 100%;
    height: 210px;
    overflow: hidden;
    background: #f3f4f6;
    text-decoration: none;
}

    .producto-market-img-box img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: opacity 0.45s ease, transform 0.45s ease;
    }

.producto-img-normal {
    opacity: 1;
    transform: scale(1);
}

.producto-img-hover {
    opacity: 0;
    transform: scale(1.08);
}

.producto-market-card:hover .producto-img-normal {
    opacity: 0;
    transform: scale(1.08);
}

.producto-market-card:hover .producto-img-hover {
    opacity: 1;
    transform: scale(1);
}

.producto-market-img-box:active .producto-img-normal {
    opacity: 0;
    transform: scale(1.1);
}

.producto-market-img-box:active .producto-img-hover {
    opacity: 1;
    transform: scale(1);
}

.producto-market-info {
    padding: 16px 16px 8px 16px;
    flex: 1;
}

.producto-tienda {
    color: #555555;
    font-size: 14px;
    margin-bottom: 8px;
}

.producto-market-title {
    color: #000000;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 10px 0;
    min-height: 75px;
}

.producto-market-price {
    color: #000000;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.3;
}

    .producto-market-price span {
        display: inline-block;
        color: #777777;
        font-size: 14px;
        font-weight: 600;
        text-decoration: line-through;
        margin-left: 4px;
    }

.producto-market-footer {
    padding: 12px 16px 18px 16px;
}

.btn-comprar-market {
    width: 100%;
    min-height: 58px;
    border: none !important;
    border-radius: 999px !important;
    background: #11b900 !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    line-height: 1.15 !important;
    box-shadow: 0 10px 18px rgba(17, 185, 0, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

    .btn-comprar-market:hover {
        background: #0ea300 !important;
        transform: translateY(-3px);
        box-shadow: 0 14px 26px rgba(17, 185, 0, 0.42);
    }

    .btn-comprar-market:active {
        transform: scale(0.97);
    }

/* =========================
   BLOQUES DE CATEGORÍAS
========================= */

.bloque-categoria {
    margin-bottom: 65px;
    scroll-margin-top: 100px;
}

    .bloque-categoria:last-child {
        margin-bottom: 25px;
    }

    .bloque-categoria .section-title {
        margin-bottom: 26px;
    }

        .bloque-categoria .section-title span {
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

    .bloque-categoria + .bloque-categoria {
        padding-top: 45px;
        border-top: 1px solid rgba(15, 23, 42, 0.10);
    }

/* =========================
   CONTACTO
========================= */

.contacto-section {
    width: 100%;
    padding: 35px 0 55px 0;
}

.contacto-box {
    width: 100%;
    background: linear-gradient(135deg, #0b2a4a, #1078C1);
    color: #ffffff;
    border-radius: 26px;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
}

    .contacto-box h2 {
        font-weight: 900;
        margin-bottom: 6px;
    }

    .contacto-box p {
        margin: 0;
        color: rgba(255, 255, 255, 0.82);
    }

    .contacto-box .btn {
        border-radius: 16px;
        font-weight: 900;
        white-space: nowrap;
    }

/* =========================
   DETALLE PRODUCTO
========================= */

.detalle-page {
    padding: 40px 0 60px 0;
    background: #f4f7fb;
    min-height: calc(100vh - 150px);
}

.breadcrumb-box {
    margin-bottom: 20px;
}

    .breadcrumb-box a {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: #1078C1;
        text-decoration: none;
        font-weight: 800;
        background: #ffffff;
        padding: 10px 16px;
        border-radius: 999px;
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    }

        .breadcrumb-box a:hover {
            color: #0b2a4a;
        }

.detalle-card {
    background: #ffffff;
    border-radius: 30px;
    padding: 30px;
    box-shadow: 0 18px 55px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.detalle-imagen-principal {
    background: linear-gradient(180deg, #ffffff, #eef4fb);
    min-height: 330px;
    border-radius: 26px;
    padding: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detalle-img-main {
    max-width: 100%;
    max-height: 250px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.detalle-imagen-principal:hover .detalle-img-main {
    transform: scale(1.03);
}

.detalle-info {
    padding: 8px;
}

.detalle-etiqueta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #ecfdf5;
    color: #047857;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 0.86rem;
    margin-bottom: 14px;
}

.detalle-titulo {
    color: #0b2a4a;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.06;
    margin-bottom: 12px;
}

.detalle-precio {
    color: #1078C1;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 20px;
}

.detalle-descripcion {
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    padding: 18px 0;
    margin-bottom: 20px;
}

    .detalle-descripcion h4 {
        color: #0f172a;
        font-weight: 900;
        margin-bottom: 8px;
    }

    .detalle-descripcion p {
        color: #64748b;
        font-size: 0.96rem;
        line-height: 1.7;
        margin: 0;
    }

.detalle-stock-box {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 14px;
    border-radius: 18px;
    margin-bottom: 22px;
}

    .detalle-stock-box i {
        width: 48px;
        height: 48px;
        border-radius: 15px;
        background: #e8f3ff;
        color: #1078C1;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.45rem;
    }

    .detalle-stock-box span {
        display: block;
        color: #64748b;
        font-size: 0.88rem;
    }

    .detalle-stock-box strong {
        color: #0f172a;
        font-size: 1.05rem;
    }

.detalle-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.btn-detalle-agregar {
    border-radius: 16px !important;
    font-weight: 900 !important;
    padding: 12px 20px !important;
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    border: none !important;
    box-shadow: 0 10px 22px rgba(22, 163, 74, 0.25);
    white-space: normal;
}

.btn-detalle-carrito {
    border-radius: 16px !important;
    font-weight: 900 !important;
    padding: 12px 20px !important;
}

.detalle-beneficios {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

    .detalle-beneficios div {
        background: #f8fafc;
        border-radius: 16px;
        padding: 12px 8px;
        text-align: center;
        border: 1px solid #e2e8f0;
    }

    .detalle-beneficios i {
        display: block;
        color: #1078C1;
        font-size: 1.25rem;
        margin-bottom: 6px;
    }

    .detalle-beneficios span {
        color: #475569;
        font-weight: 800;
        font-size: 0.80rem;
    }

/* =========================
   GALERÍA DETALLE 4 IMÁGENES
========================= */

.nueva-galeria-principal {
    min-height: 420px;
    position: relative;
    overflow: hidden;
}

    .nueva-galeria-principal .detalle-img-main {
        max-width: 100%;
        max-height: 340px;
        object-fit: contain;
        transition: transform 0.35s ease, opacity 0.35s ease;
    }

        .nueva-galeria-principal .detalle-img-main.cambiar {
            animation: cambiarImagenPrincipal 0.35s ease;
        }

@keyframes cambiarImagenPrincipal {
    0% {
        opacity: 0.25;
        transform: scale(0.94);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.galeria-miniaturas-4 {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
    margin-top: 14px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.miniatura-producto {
    width: 72px;
    height: 72px;
    min-width: 72px;
    background: #ffffff;
    border: 2px solid transparent;
    border-radius: 14px;
    padding: 7px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
    transition: all 0.25s ease;
}

    .miniatura-producto:hover {
        transform: translateY(-3px);
        border-color: rgba(16, 120, 193, 0.35);
    }

    .miniatura-producto.activa {
        border-color: #1078C1;
        box-shadow: 0 8px 20px rgba(16, 120, 193, 0.18);
    }

    .miniatura-producto img {
        max-width: 100%;
        max-height: 52px;
        object-fit: contain;
    }

/* =========================
   PRODUCTOS DE REFERENCIA
========================= */

.referencias-section {
    margin-top: 60px;
    padding-top: 45px;
    border-top: 1px solid rgba(15, 23, 42, 0.10);
}

.referencias-grid {
    grid-template-columns: repeat(4, minmax(190px, 1fr));
}

/* =========================
   NOTIFICACIÓN CARRITO
========================= */

.toast-carrito {
    position: fixed;
    top: 95px;
    right: 22px;
    width: 330px;
    max-width: calc(100% - 30px);
    background: #ffffff;
    border-radius: 18px;
    padding: 15px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.22);
    border-left: 6px solid #16a34a;
    z-index: 99999;
    opacity: 0;
    transform: translateX(120%);
    pointer-events: none;
    transition: all 0.35s ease;
}

    .toast-carrito.mostrar {
        opacity: 1;
        transform: translateX(0);
        pointer-events: auto;
    }

.toast-icono {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 900;
}

.toast-texto {
    flex: 1;
}

    .toast-texto strong {
        display: block;
        color: #0f172a;
        font-size: 0.95rem;
        font-weight: 900;
        margin-bottom: 2px;
    }

    .toast-texto span {
        display: block;
        color: #64748b;
        font-size: 0.88rem;
        line-height: 1.35;
    }

.toast-cerrar {
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
}

    .toast-cerrar:hover {
        color: #0f172a;
    }

/* =========================
   CARRITO DE COMPRAS
========================= */

.carrito-page {
    background: #f4f7fb;
    padding: 45px 0 70px 0;
    min-height: calc(100vh - 140px);
}

.carrito-titulo-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.carrito-etiqueta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e8f3ff;
    color: #1078C1;
    padding: 8px 15px;
    border-radius: 999px;
    font-weight: 900;
    margin-bottom: 12px;
}

.carrito-titulo-box h1 {
    color: #0b2a4a;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 6px;
}

.carrito-titulo-box p {
    color: #64748b;
    margin: 0;
}

.btn-seguir-top {
    border-radius: 16px !important;
    font-weight: 800 !important;
    padding: 11px 18px !important;
    white-space: nowrap;
}

.carrito-vacio {
    background: #ffffff;
    border-radius: 28px;
    padding: 55px 25px;
    text-align: center;
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.10);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.carrito-vacio-icon {
    width: 90px;
    height: 90px;
    border-radius: 30px;
    background: #e8f3ff;
    color: #1078C1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.7rem;
    margin: 0 auto 18px auto;
}

.carrito-vacio h2 {
    color: #0b2a4a;
    font-weight: 900;
}

.carrito-vacio p {
    color: #64748b;
}

.carrito-lista {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.carrito-item {
    background: #ffffff;
    border-radius: 24px;
    padding: 18px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.06);
    display: grid;
    grid-template-columns: 105px 1fr 105px 100px 110px 45px;
    gap: 16px;
    align-items: center;
}

.carrito-img-box {
    width: 105px;
    height: 105px;
    border-radius: 20px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .carrito-img-box img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 10px;
    }

.carrito-info h3 {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 900;
    margin-bottom: 6px;
    line-height: 1.35;
}

.carrito-info p {
    color: #64748b;
    font-size: 0.88rem;
    margin-bottom: 8px;
    line-height: 1.45;
}

.carrito-stock {
    color: #047857;
    font-size: 0.82rem;
    font-weight: 800;
}

.carrito-precio-box span,
.carrito-cantidad-box span,
.carrito-subtotal-box span {
    display: block;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.carrito-precio-box strong,
.carrito-subtotal-box strong {
    color: #0b2a4a;
    font-size: 1rem;
    font-weight: 900;
}

.carrito-cantidad {
    border-radius: 12px !important;
    text-align: center;
    font-weight: 800;
}

.btn-eliminar-carrito {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #fee2e2;
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.25s ease;
}

    .btn-eliminar-carrito:hover {
        background: #dc2626;
        color: #ffffff;
    }

.resumen-carrito {
    background: #ffffff;
    border-radius: 26px;
    padding: 26px;
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(15, 23, 42, 0.06);
    position: sticky;
    top: 105px;
}

    .resumen-carrito h2 {
        color: #0b2a4a;
        font-size: 1.45rem;
        font-weight: 900;
        margin-bottom: 20px;
    }

.resumen-linea {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    color: #475569;
    border-bottom: 1px solid #e5e7eb;
}

.resumen-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    margin-top: 8px;
}

    .resumen-total span {
        color: #0f172a;
        font-size: 1.1rem;
        font-weight: 900;
    }

    .resumen-total strong {
        color: #1078C1;
        font-size: 1.6rem;
        font-weight: 900;
    }

.btn-finalizar-compra {
    width: 100%;
    border-radius: 18px !important;
    padding: 14px !important;
    font-weight: 900 !important;
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    border: none !important;
    box-shadow: 0 12px 24px rgba(22, 163, 74, 0.25);
    margin-bottom: 12px;
}

.btn-seguir-comprando {
    width: 100%;
    border-radius: 18px !important;
    padding: 12px !important;
    font-weight: 900 !important;
}

.resumen-ayuda {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    background: #f8fafc;
    border-radius: 16px;
    padding: 14px;
    color: #64748b;
    font-size: 0.88rem;
}

    .resumen-ayuda i {
        color: #1078C1;
        font-size: 1.25rem;
    }

/* =========================
   MODAL PEDIDO
========================= */

.modal-pedido-content {
    border: none !important;
    border-radius: 26px !important;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(15, 23, 42, 0.25);
}

.modal-pedido-header {
    background: linear-gradient(135deg, #0b2a4a, #1078C1);
    color: #ffffff;
    border-bottom: none !important;
    padding: 24px 28px !important;
}

    .modal-pedido-header h5 {
        font-weight: 900;
        font-size: 1.35rem;
        margin-bottom: 4px;
    }

    .modal-pedido-header p {
        margin: 0;
        color: rgba(255, 255, 255, 0.82);
    }

.modal-input {
    border-radius: 15px !important;
    padding: 12px 14px !important;
    border: 1px solid #dbe3ef !important;
}

    .modal-input:focus {
        border-color: #1078C1 !important;
        box-shadow: 0 0 0 4px rgba(16, 120, 193, 0.15) !important;
    }

.modal-resumen-mini {
    margin: 22px 0;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 18px;
}

    .modal-resumen-mini div {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .modal-resumen-mini span {
        color: #64748b;
        font-weight: 800;
    }

    .modal-resumen-mini strong {
        color: #1078C1;
        font-size: 1.4rem;
        font-weight: 900;
    }

.btn-realizar-pedido {
    width: 100%;
    border-radius: 999px !important;
    padding: 15px !important;
    font-size: 1.05rem !important;
    font-weight: 900 !important;
    background: #11b900 !important;
    border: none !important;
    box-shadow: 0 12px 25px rgba(17, 185, 0, 0.35);
}

    .btn-realizar-pedido:hover {
        background: #0ea300 !important;
    }

/* =========================
   PEDIDO GENERADO
========================= */

.pedido-generado {
    text-align: center;
    padding: 12px;
}

.pedido-check {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 18px auto;
}

.pedido-generado h2 {
    color: #0b2a4a;
    font-weight: 900;
    margin-bottom: 6px;
}

.pedido-generado p {
    color: #64748b;
}

.pedido-numero-box {
    background: #0b2a4a;
    color: #ffffff;
    border-radius: 20px;
    padding: 18px;
    margin: 22px 0;
}

    .pedido-numero-box span {
        display: block;
        font-size: 0.85rem;
        opacity: 0.8;
        margin-bottom: 4px;
    }

    .pedido-numero-box strong {
        display: block;
        font-size: 1.4rem;
        font-weight: 900;
        letter-spacing: 0.5px;
    }

.pedido-datos-print {
    text-align: left;
    background: #f8fafc;
    border-radius: 18px;
    padding: 18px;
    border: 1px solid #e2e8f0;
}

    .pedido-datos-print p {
        margin-bottom: 8px;
        color: #334155;
    }

.pedido-botones {
    display: flex;
    gap: 12px;
    margin-top: 22px;
}

    .pedido-botones .btn {
        flex: 1;
        border-radius: 16px !important;
        font-weight: 900 !important;
    }

.pedido-botones-solo {
    justify-content: center;
}

    .pedido-botones-solo .btn-imprimir-pedido {
        max-width: 280px;
        width: 100%;
    }

/* =========================
   FOOTER
========================= */

.footer-tienda {
    width: 100%;
    background: #0b2a4a;
    color: #ffffff;
    padding: 18px 0;
    margin-top: auto;
}

/* =========================
   RESPONSIVE GENERAL
========================= */

@media (max-width: 1200px) {
    .productos-scroll {
        grid-template-columns: repeat(4, minmax(190px, 1fr));
    }

    .carrito-item {
        grid-template-columns: 95px 1fr 90px 90px 100px 40px;
        gap: 12px;
    }
}

@media (max-width: 992px) {
    .productos-scroll {
        grid-template-columns: repeat(3, minmax(190px, 1fr));
    }

    .producto-market-img-box {
        height: 200px;
    }
}

@media (max-width: 991px) {
    .navbar-collapse {
        margin-top: 12px;
    }

    .navbar-nav {
        align-items: stretch !important;
        padding-top: 8px;
    }

    .navbar .nav-link {
        display: block;
        width: 100%;
    }

    .btn-carrito {
        width: 100%;
        margin-top: 6px;
    }

    .hero-section {
        padding: 50px 0 42px 0;
        text-align: center;
    }

    .hero-text {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-card {
        max-width: 100%;
        margin-left: 0;
        margin-top: 20px;
    }

    .beneficios-section {
        margin-top: 22px;
    }

    .detalle-card {
        padding: 24px;
    }

    .detalle-info {
        padding-top: 18px;
    }

    .nueva-galeria-principal {
        min-height: 330px;
    }

        .nueva-galeria-principal .detalle-img-main {
            max-height: 260px;
        }

    .referencias-grid {
        grid-template-columns: repeat(3, minmax(180px, 1fr));
    }

    .carrito-titulo-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-seguir-top {
        width: 100%;
    }

    .resumen-carrito {
        position: static;
    }

    .carrito-item {
        grid-template-columns: 90px 1fr;
    }

    .carrito-precio-box,
    .carrito-cantidad-box,
    .carrito-subtotal-box,
    .carrito-accion-box {
        grid-column: span 1;
    }

    .carrito-accion-box {
        display: flex;
        justify-content: flex-end;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 42px 0;
    }

    .hero-title {
        font-size: 2.1rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-mini-grid {
        grid-template-columns: 1fr;
    }

    .beneficio-card {
        flex-direction: row;
        text-align: left;
    }

    .producto-img-box {
        height: 140px;
    }

    .producto-img {
        max-height: 100px;
    }

    .producto-title {
        font-size: 1.05rem;
    }

    .producto-price {
        font-size: 1.18rem;
    }

    .productos-scroll {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
        gap: 14px;
    }

    .producto-market-card {
        min-height: 445px;
    }

    .producto-market-img-box {
        height: 170px;
    }

    .producto-market-title {
        font-size: 15px;
        min-height: 62px;
    }

    .producto-market-price {
        font-size: 15px;
    }

        .producto-market-price span {
            font-size: 12px;
        }

    .btn-comprar-market {
        font-size: 13px !important;
        min-height: 50px;
    }

    .contacto-box {
        flex-direction: column;
        text-align: center;
    }

        .contacto-box .btn {
            width: 100%;
        }

    .detalle-page {
        padding: 30px 0 50px 0;
    }

    .detalle-imagen-principal {
        min-height: 260px;
        padding: 20px;
    }

    .detalle-img-main {
        max-height: 200px;
    }

    .galeria-miniaturas-4 {
        gap: 8px;
        justify-content: flex-start;
    }

    .miniatura-producto {
        width: 64px;
        height: 64px;
        min-width: 64px;
        border-radius: 12px;
        padding: 6px;
    }

        .miniatura-producto img {
            max-height: 45px;
        }

    .detalle-actions {
        flex-direction: column;
    }

    .btn-detalle-agregar,
    .btn-detalle-carrito {
        width: 100%;
    }

    .detalle-beneficios {
        grid-template-columns: 1fr;
    }

    .referencias-grid {
        grid-template-columns: repeat(2, minmax(150px, 1fr));
    }

    .toast-carrito {
        top: 80px;
        right: 15px;
        left: 15px;
        width: auto;
        max-width: none;
    }

    .carrito-page {
        padding: 30px 0 50px 0;
    }

    .carrito-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .carrito-img-box {
        margin: 0 auto;
    }

    .carrito-accion-box {
        justify-content: center;
    }

    .pedido-botones {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .logo-tienda {
        font-size: 1.05rem;
    }

    .hero-section {
        padding: 38px 0;
    }

    .hero-title {
        font-size: 1.85rem;
        letter-spacing: -1px;
    }

    .hero-card {
        padding: 22px;
        border-radius: 24px;
    }

    .section-title h2 {
        font-size: 1.65rem;
    }

    .producto-card {
        border-radius: 20px;
    }

    .producto-img-box {
        height: 130px;
        padding: 12px;
    }

    .producto-img {
        max-height: 90px;
    }

    .producto-body {
        padding: 16px;
    }

    .producto-footer {
        padding: 0 16px 16px 16px;
    }

    .productos-scroll {
        grid-template-columns: repeat(2, minmax(145px, 1fr));
        gap: 12px;
    }

    .producto-market-card {
        min-height: 410px;
    }

    .producto-market-img-box {
        height: 150px;
    }

    .producto-market-info {
        padding: 12px 12px 6px 12px;
    }

    .producto-market-footer {
        padding: 10px 12px 14px 12px;
    }

    .descuento-badge {
        top: 10px;
        left: 10px;
        font-size: 11px;
        padding: 5px 7px;
    }

    .detalle-card {
        padding: 18px;
        border-radius: 24px;
    }

    .detalle-imagen-principal {
        min-height: 230px;
        border-radius: 22px;
    }

    .detalle-img-main {
        max-height: 175px;
    }

    .detalle-precio {
        font-size: 1.75rem;
    }

    .nueva-galeria-principal {
        min-height: 260px;
    }

        .nueva-galeria-principal .detalle-img-main {
            max-height: 210px;
        }

    .miniatura-producto {
        width: 58px;
        height: 58px;
        min-width: 58px;
        border-radius: 11px;
        padding: 5px;
    }

        .miniatura-producto img {
            max-height: 40px;
        }

    .modal-pedido-header {
        padding: 20px !important;
    }

    .pedido-numero-box strong {
        font-size: 1rem;
    }
}

/* =========================
   IMPRESIÓN PEDIDO
========================= */

@media print {
    body * {
        visibility: hidden !important;
    }

    .print-area,
    .print-area * {
        visibility: visible !important;
    }

    .print-area {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        padding: 30px !important;
        background: #ffffff !important;
    }

    .pedido-botones,
    .modal-header,
    .btn-close {
        display: none !important;
    }

    .pedido-numero-box {
        color: #000000 !important;
        background: #ffffff !important;
        border: 2px solid #000000 !important;
    }
}
/* =========================
   BARRA SUPERIOR DE CONFIANZA
========================= */

.top-confianza {
    width: 100%;
    background: #061b31;
    color: #ffffff;
    font-size: 0.86rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.top-confianza-inner {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.top-confianza-left {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.top-confianza-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 500;
}

    .top-confianza-item i {
        color: #ffc107;
        font-size: 1rem;
    }

.top-confianza-right {
    display: flex;
    align-items: center;
}

.top-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    background: #16a34a;
    padding: 4px 19px;
    border-radius: 999px;
    transition: all 0.25s ease;
    white-space: nowrap;
}

    .top-whatsapp i {
        font-size: 1rem;
    }

    .top-whatsapp:hover {
        color: #ffffff;
        background: #15803d;
        transform: translateY(-1px);
    }

/* Responsive barra confianza */
@media (max-width: 768px) {
    .top-confianza-inner {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 8px 12px;
        text-align: center;
    }

    .top-confianza-left {
        justify-content: center;
        gap: 10px;
    }

    .top-confianza-item {
        font-size: 0.78rem;
    }

    .top-whatsapp {
        font-size: 0.78rem;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .top-confianza-left {
        display: grid;
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .top-confianza-item {
        justify-content: center;
    }
}
/* =========================
   BUSCADOR DE PRODUCTOS
========================= */

.buscador-productos-section {
    position: relative;
    z-index: 8;
    margin-top: -25px;
    margin-bottom: 35px;
}

.buscador-productos-card {
    background: #ffffff;
    border-radius: 28px;
    padding: 26px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.13);
    border: 1px solid rgba(15, 23, 42, 0.06);
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 24px;
    align-items: center;
}

.buscador-productos-texto span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #e8f3ff;
    color: #1078C1;
    padding: 7px 13px;
    border-radius: 999px;
    font-weight: 900;
    margin-bottom: 10px;
}

.buscador-productos-texto h2 {
    color: #0b2a4a;
    font-weight: 900;
    font-size: 1.7rem;
    margin-bottom: 6px;
}

.buscador-productos-texto p {
    color: #64748b;
    margin: 0;
}

.buscador-productos-form {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    align-items: center;
}

.buscador-input-box {
    position: relative;
}

    .buscador-input-box i {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        color: #1078C1;
        font-size: 1.1rem;
    }

.buscador-input {
    width: 100%;
    height: 52px;
    border: 1px solid #dbe3ef;
    border-radius: 18px;
    padding: 0 16px 0 45px;
    outline: none;
    font-weight: 700;
    color: #0f172a;
    background: #f8fafc;
    transition: all 0.25s ease;
}

    .buscador-input:focus {
        background: #ffffff;
        border-color: #1078C1;
        box-shadow: 0 0 0 4px rgba(16, 120, 193, 0.13);
    }

.btn-buscar-producto {
    height: 52px;
    border: none;
    border-radius: 18px;
    padding: 0 22px;
    background: linear-gradient(135deg, #1078C1, #0b5f99);
    color: #ffffff;
    font-weight: 900;
    transition: all 0.25s ease;
}

    .btn-buscar-producto:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 22px rgba(16, 120, 193, 0.25);
    }

.btn-limpiar-busqueda {
    height: 52px;
    border: 1px solid #dbe3ef;
    border-radius: 18px;
    padding: 0 18px;
    background: #ffffff;
    color: #475569;
    font-weight: 900;
    transition: all 0.25s ease;
}

    .btn-limpiar-busqueda:hover {
        background: #f1f5f9;
        color: #0b2a4a;
    }

.resultado-busqueda-productos {
    grid-column: 2 / 3;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 700;
}

.mensaje-sin-resultados {
    background: #ffffff;
    border-radius: 28px;
    padding: 45px 25px;
    text-align: center;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.06);
    margin-top: 30px;
}

    .mensaje-sin-resultados i {
        width: 70px;
        height: 70px;
        border-radius: 22px;
        background: #e8f3ff;
        color: #1078C1;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2rem;
        margin: 0 auto 16px auto;
    }

    .mensaje-sin-resultados h3 {
        color: #0b2a4a;
        font-weight: 900;
        margin-bottom: 6px;
    }

    .mensaje-sin-resultados p {
        color: #64748b;
        margin: 0;
    }

/* Responsive buscador */
@media (max-width: 991px) {
    .buscador-productos-card {
        grid-template-columns: 1fr;
    }

    .resultado-busqueda-productos {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .buscador-productos-section {
        margin-top: 20px;
    }

    .buscador-productos-card {
        padding: 22px;
        border-radius: 24px;
    }

    .buscador-productos-form {
        grid-template-columns: 1fr;
    }

    .btn-buscar-producto,
    .btn-limpiar-busqueda {
        width: 100%;
    }
}
/* =========================
   BANNER PROMOCIONAL COMPACTO
========================= */

.promo-banner-section {
    padding: 28px 0 12px 0;
    background: #f4f7fb;
}

.promo-banner-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 55%, #e8f3ff 100%);
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 24px;
    padding: 24px 28px;
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 24px;
    align-items: center;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.10);
    overflow: hidden;
    position: relative;
}

    .promo-banner-card::before {
        content: "";
        position: absolute;
        right: -80px;
        top: -100px;
        width: 230px;
        height: 230px;
        background: rgba(16, 120, 193, 0.10);
        border-radius: 50%;
    }

.promo-banner-info {
    position: relative;
    z-index: 2;
}

.promo-etiqueta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #fff7d6;
    color: #9a6700;
    border: 1px solid #ffe28a;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
    margin-bottom: 10px;
}

    .promo-etiqueta i {
        color: #f59e0b;
    }

.promo-banner-info h2 {
    color: #0b2a4a;
    font-size: clamp(1.35rem, 3vw, 2rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.promo-banner-info p {
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.55;
    max-width: 650px;
    margin-bottom: 16px;
}

.promo-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-promo-principal,
.btn-promo-whatsapp {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 999px;
    padding: 9px 16px;
    font-size: 0.85rem;
    font-weight: 900;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-promo-principal {
    background: #1078C1;
    color: #ffffff;
    box-shadow: 0 9px 18px rgba(16, 120, 193, 0.22);
}

    .btn-promo-principal:hover {
        color: #ffffff;
        background: #0b5f99;
        transform: translateY(-2px);
    }

.btn-promo-whatsapp {
    background: #16a34a;
    color: #ffffff;
    box-shadow: 0 9px 18px rgba(22, 163, 74, 0.20);
}

    .btn-promo-whatsapp:hover {
        color: #ffffff;
        background: #15803d;
        transform: translateY(-2px);
    }

.promo-banner-img {
    position: relative;
    z-index: 2;
    height: 165px;
    background: #ffffff;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

    .promo-banner-img img {
        max-width: 100%;
        max-height: 130px;
        object-fit: contain;
    }

.promo-descuento {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ef233c;
    color: #ffffff;
    border-radius: 14px;
    padding: 7px 9px;
    font-size: 0.65rem;
    font-weight: 900;
    line-height: 1.05;
    text-align: center;
    box-shadow: 0 8px 16px rgba(239, 35, 60, 0.22);
}

    .promo-descuento strong {
        display: block;
        font-size: 1.05rem;
    }

/* Responsive banner promocional */
@media (max-width: 991px) {
    .promo-banner-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 22px;
    }

    .promo-banner-info p {
        margin-left: auto;
        margin-right: auto;
    }

    .promo-banner-actions {
        justify-content: center;
    }

    .promo-banner-img {
        max-width: 300px;
        width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .promo-banner-section {
        padding: 20px 0 8px 0;
    }

    .promo-banner-card {
        border-radius: 20px;
        padding: 18px;
    }

    .promo-banner-info h2 {
        font-size: 1.25rem;
    }

    .promo-banner-info p {
        font-size: 0.84rem;
    }

    .btn-promo-principal,
    .btn-promo-whatsapp {
        width: 100%;
        font-size: 0.80rem;
    }

    .promo-banner-img {
        height: 140px;
    }

        .promo-banner-img img {
            max-height: 105px;
        }
}
/* =========================
   PROMOCIÓN FLOTANTE
========================= */

.promo-flotante {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 360px;
    max-width: calc(100% - 30px);
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.25);
    border: 1px solid rgba(15, 23, 42, 0.08);
    overflow: hidden;
    z-index: 99998;
    display: grid;
    grid-template-columns: 125px 1fr;
    opacity: 0;
    transform: translateY(120%) scale(0.96);
    pointer-events: none;
    transition: all 0.45s ease;
}

    .promo-flotante.mostrar {
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }

.promo-flotante-cerrar {
    position: absolute;
    top: 8px;
    right: 9px;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.08);
    color: #0f172a;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    z-index: 5;
    transition: all 0.25s ease;
}

    .promo-flotante-cerrar:hover {
        background: #ef4444;
        color: #ffffff;
    }

.promo-flotante-img {
    background: linear-gradient(180deg, #f8fafc, #e8f3ff);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
}

    .promo-flotante-img img {
        max-width: 100%;
        max-height: 115px;
        object-fit: contain;
        animation: promoImagenFlota 2.2s ease-in-out infinite;
    }

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

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

.promo-flotante-info {
    padding: 18px 18px 16px 16px;
}

.promo-flotante-etiqueta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fff7d6;
    color: #9a6700;
    border: 1px solid #ffe28a;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 900;
    margin-bottom: 7px;
}

    .promo-flotante-etiqueta i {
        color: #f59e0b;
    }

.promo-flotante-info h3 {
    color: #0b2a4a;
    font-size: 1.05rem;
    font-weight: 900;
    margin-bottom: 5px;
    line-height: 1.2;
}

.promo-flotante-info p {
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.35;
    margin-bottom: 10px;
}

.promo-flotante-botones {
    display: flex;
    align-items: center;
    gap: 8px;
}

.promo-btn-ver {
    flex: 1;
    min-height: 34px;
    border-radius: 999px;
    background: #1078C1;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

    .promo-btn-ver:hover {
        background: #0b5f99;
        color: #ffffff;
        transform: translateY(-2px);
    }

.promo-btn-wsp {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #16a34a;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    transition: all 0.25s ease;
}

    .promo-btn-wsp:hover {
        background: #15803d;
        color: #ffffff;
        transform: translateY(-2px);
    }

/* Responsive promoción flotante */
@media (max-width: 768px) {
    .promo-flotante {
        right: 15px;
        left: 15px;
        bottom: 15px;
        width: auto;
        grid-template-columns: 95px 1fr;
        border-radius: 18px;
    }

    .promo-flotante-img {
        padding: 10px;
    }

        .promo-flotante-img img {
            max-height: 85px;
        }

    .promo-flotante-info {
        padding: 15px 15px 14px 12px;
    }

        .promo-flotante-info h3 {
            font-size: 0.95rem;
        }

        .promo-flotante-info p {
            font-size: 0.72rem;
        }
}
/* =========================
   FOOTER PROFESIONAL
========================= */

.footer-pro {
    background: linear-gradient(135deg, #061b31, #0b2a4a);
    color: #ffffff;
    padding: 38px 0 18px 0;
    margin-top: auto;
}

.footer-pro-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 28px;
    padding-bottom: 26px;
}

.footer-pro-col h3 {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 1.25rem;
    font-weight: 900;
    margin-bottom: 12px;
}

    .footer-pro-col h3 i {
        color: #ffc107;
        font-size: 1.35rem;
    }

.footer-pro-col h4 {
    font-size: 0.95rem;
    font-weight: 900;
    margin-bottom: 13px;
    color: #ffffff;
}

.footer-pro-col p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.86rem;
    line-height: 1.55;
    margin-bottom: 14px;
}

.footer-pro-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-pro-col ul li {
        margin-bottom: 8px;
    }

        .footer-pro-col ul li a {
            color: rgba(255, 255, 255, 0.72);
            text-decoration: none;
            font-size: 0.85rem;
            transition: all 0.22s ease;
        }

            .footer-pro-col ul li a:hover {
                color: #ffc107;
                padding-left: 4px;
            }

.footer-social {
    display: flex;
    align-items: center;
    gap: 9px;
}

    .footer-social a {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.10);
        color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        transition: all 0.22s ease;
    }

        .footer-social a:hover {
            background: #16a34a;
            color: #ffffff;
            transform: translateY(-2px);
        }

.footer-contacto-item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 9px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.84rem;
}

    .footer-contacto-item i {
        color: #ffc107;
        margin-top: 1px;
    }

.footer-pagos {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
}

    .footer-pagos span {
        width: 100%;
        color: rgba(255, 255, 255, 0.68);
        font-size: 0.78rem;
        font-weight: 700;
    }

    .footer-pagos strong {
        background: rgba(255, 255, 255, 0.10);
        color: #ffffff;
        border-radius: 999px;
        padding: 5px 9px;
        font-size: 0.74rem;
        font-weight: 800;
    }

.footer-pro-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    padding-top: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

    .footer-pro-bottom p {
        margin: 0;
        color: rgba(255, 255, 255, 0.72);
        font-size: 0.82rem;
    }

    .footer-pro-bottom span {
        color: rgba(255, 255, 255, 0.55);
        font-size: 0.78rem;
    }

/* Responsive footer */
@media (max-width: 991px) {
    .footer-pro-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .footer-pro {
        padding: 32px 0 16px 0;
    }

    .footer-pro-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .footer-pro-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-brand {
        text-align: center;
    }

        .footer-brand h3 {
            justify-content: center;
        }

    .footer-social {
        justify-content: center;
    }
}
/* =========================
   SEGUIMIENTO DE PEDIDO
========================= */

.seguimiento-page {
    background: #f4f7fb;
    padding: 42px 0 60px 0;
    min-height: calc(100vh - 150px);
}

.seguimiento-hero {
    background: linear-gradient(135deg, #ffffff, #f8fbff);
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 26px;
    padding: 28px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.09);
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 28px;
    align-items: center;
    margin-bottom: 26px;
}

.seguimiento-hero-info span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #e8f3ff;
    color: #1078C1;
    padding: 7px 13px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 0.78rem;
    margin-bottom: 10px;
}

.seguimiento-hero-info h1 {
    color: #0b2a4a;
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    font-weight: 900;
    letter-spacing: -0.6px;
    margin-bottom: 8px;
}

.seguimiento-hero-info p {
    color: #64748b;
    font-size: 0.94rem;
    line-height: 1.6;
    margin: 0;
}

.seguimiento-buscador-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    padding: 20px;
}

.seguimiento-label {
    display: block;
    color: #0f172a;
    font-size: 0.86rem;
    font-weight: 900;
    margin-bottom: 8px;
}

.seguimiento-input-group {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.seguimiento-input {
    height: 46px;
    border-radius: 15px !important;
    font-weight: 800;
}

.btn-buscar-pedido {
    border-radius: 15px !important;
    padding-left: 22px !important;
    padding-right: 22px !important;
    font-weight: 900 !important;
}

.seguimiento-buscador-card small {
    display: block;
    margin-top: 9px;
    color: #64748b;
    font-size: 0.78rem;
}

.seguimiento-alerta {
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
    border-radius: 18px;
    padding: 14px 16px;
    font-weight: 800;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pedido-resultado-card {
    background: #ffffff;
    border-radius: 26px;
    padding: 26px;
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.10);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.pedido-resultado-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 18px;
}

.pedido-estado-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #ecfdf5;
    color: #047857;
    padding: 7px 13px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 0.78rem;
    margin-bottom: 10px;
}

.pedido-resultado-header h2 {
    color: #0b2a4a;
    font-weight: 900;
    font-size: 1.45rem;
    margin-bottom: 4px;
}

.pedido-resultado-header p {
    color: #64748b;
    margin: 0;
    font-size: 0.86rem;
}

.btn-imprimir-seguimiento {
    border-radius: 15px !important;
    font-weight: 900 !important;
    white-space: nowrap;
}

.pedido-info-box,
.pedido-timeline-box,
.pedido-productos-box {
    background: #f8fafc;
    border-radius: 22px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

    .pedido-info-box h3,
    .pedido-timeline-box h3,
    .pedido-productos-box h3 {
        color: #0b2a4a;
        font-size: 1.05rem;
        font-weight: 900;
        margin-bottom: 14px;
    }

.pedido-info-linea {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

    .pedido-info-linea:last-child {
        border-bottom: none;
    }

    .pedido-info-linea span {
        color: #64748b;
        font-size: 0.82rem;
        font-weight: 800;
    }

    .pedido-info-linea strong {
        color: #0f172a;
        font-size: 0.86rem;
        text-align: right;
    }

.timeline-pedido {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.timeline-item {
    display: flex;
    gap: 12px;
    opacity: 0.42;
}

    .timeline-item.activo {
        opacity: 1;
    }

.timeline-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-item.activo .timeline-icon {
    background: #e8f3ff;
    color: #1078C1;
}

.timeline-item.completado .timeline-icon {
    background: #dcfce7;
    color: #16a34a;
}

.timeline-item h4 {
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 900;
    margin-bottom: 2px;
}

.timeline-item p {
    color: #64748b;
    font-size: 0.80rem;
    margin: 0;
}

.pedido-productos-box {
    margin-top: 22px;
}

.pedido-producto-item {
    background: #ffffff;
    border-radius: 18px;
    padding: 14px;
    display: grid;
    grid-template-columns: 70px 1fr 90px 110px;
    gap: 14px;
    align-items: center;
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
}

    .pedido-producto-item:last-child {
        margin-bottom: 0;
    }

.pedido-producto-img {
    width: 70px;
    height: 70px;
    background: #f1f5f9;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .pedido-producto-img img {
        max-width: 100%;
        max-height: 58px;
        object-fit: contain;
    }

.pedido-producto-info h4 {
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 900;
    margin-bottom: 4px;
}

.pedido-producto-info p {
    color: #64748b;
    font-size: 0.78rem;
    margin: 0;
}

.pedido-producto-cantidad span,
.pedido-producto-precio span {
    display: block;
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 800;
    margin-bottom: 3px;
}

.pedido-producto-cantidad strong,
.pedido-producto-precio strong {
    color: #0b2a4a;
    font-size: 0.90rem;
    font-weight: 900;
}

/* Responsive seguimiento */
@media (max-width: 991px) {
    .seguimiento-hero {
        grid-template-columns: 1fr;
    }

    .pedido-resultado-header {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .seguimiento-page {
        padding: 30px 0 45px 0;
    }

    .seguimiento-hero {
        padding: 22px;
        border-radius: 22px;
    }

    .seguimiento-input-group {
        grid-template-columns: 1fr;
    }

    .btn-buscar-pedido {
        width: 100%;
    }

    .pedido-resultado-card {
        padding: 20px;
    }

    .pedido-producto-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .pedido-producto-img {
        margin: 0 auto;
    }

    .pedido-info-linea {
        flex-direction: column;
    }

        .pedido-info-linea strong {
            text-align: left;
        }
}

/* Impresión seguimiento */
@media print {
    .top-confianza,
    .header-tienda,
    .footer-tienda,
    .seguimiento-hero,
    .seguimiento-alerta,
    .btn-imprimir-seguimiento {
        display: none !important;
    }

    .pedido-resultado-card {
        box-shadow: none !important;
        border: none !important;
    }
}
/* =========================
   MODO MÓVIL LIMPIO
   Oculta cuadros y simplifica buscador
========================= */

@media (max-width: 768px) {

    /* Ocultar cuadro de "Entrega rápida" */
    .hero-section .col-lg-5,
    .hero-card {
        display: none !important;
    }

    /* Ocultar beneficios: Productos confiables, Compra sencilla, Atención rápida */
    .beneficios-section {
        display: none !important;
    }

    /* Buscador más limpio */
    .buscador-productos-section {
        margin-top: 18px !important;
        margin-bottom: 22px !important;
    }

    .buscador-productos-card {
        padding: 14px !important;
        border-radius: 18px !important;
        display: block !important;
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08) !important;
    }

    /* Ocultar título/texto del buscador */
    .buscador-productos-texto {
        display: none !important;
    }

    /* Ocultar botón limpiar */
    .btn-limpiar-busqueda {
        display: none !important;
    }

    /* Ocultar mensaje "Mostrando todos..." */
    .resultado-busqueda-productos {
        display: none !important;
    }

    /* Solo textbox + botón buscar */
    .buscador-productos-form {
        display: grid !important;
        grid-template-columns: 1fr 82px !important;
        gap: 8px !important;
        align-items: center !important;
    }

    .buscador-input-box {
        width: 100% !important;
    }

    .buscador-input {
        height: 40px !important;
        border-radius: 12px !important;
        font-size: 0.78rem !important;
        padding-left: 38px !important;
        font-weight: 700 !important;
    }

    .buscador-input-box i {
        left: 13px !important;
        font-size: 0.9rem !important;
    }

    .btn-buscar-producto {
        width: 82px !important;
        height: 40px !important;
        border-radius: 12px !important;
        padding: 0 !important;
        font-size: 0.72rem !important;
        font-weight: 900 !important;
    }

    /* Hero más compacto en móvil */
    .hero-section {
        padding: 30px 0 24px 0 !important;
    }

    .hero-title {
        font-size: 1.55rem !important;
        line-height: 1.12 !important;
        margin-bottom: 10px !important;
    }

    .hero-text {
        font-size: 0.84rem !important;
        line-height: 1.45 !important;
        margin-bottom: 14px !important;
    }

    .hero-badge {
        font-size: 0.68rem !important;
        padding: 5px 9px !important;
        margin-bottom: 10px !important;
    }

    .hero-actions .btn {
        width: 100% !important;
        font-size: 0.78rem !important;
        padding: 9px 12px !important;
        border-radius: 12px !important;
    }
}

/* =========================
   TÍTULOS DE SECCIÓN HORIZONTALES
========================= */

.section-title-horizontal {
    max-width: 100% !important;
    margin: 0 0 22px 0 !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: space-between !important;
    gap: 18px !important;
    text-align: left !important;
}

.section-title-texto {
    flex: 1;
}

.section-title-horizontal span {
    font-size: 0.72rem !important;
    padding: 5px 11px !important;
    margin-bottom: 8px !important;
}

.section-title-horizontal h2 {
    font-size: clamp(1.28rem, 3vw, 1.85rem) !important;
    margin-bottom: 4px !important;
    letter-spacing: -0.4px !important;
}

.section-title-horizontal p {
    font-size: 0.86rem !important;
    margin: 0 !important;
}

.btn-ver-todo {
    min-width: max-content;
    height: 38px;
    padding: 0 15px;
    border-radius: 999px;
    background: #ffffff;
    color: #1078C1;
    border: 1px solid rgba(16, 120, 193, 0.25);
    text-decoration: none;
    font-size: 0.80rem;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    box-shadow: 0 7px 18px rgba(15, 23, 42, 0.06);
    transition: all 0.22s ease;
}

    .btn-ver-todo:hover {
        background: #1078C1;
        color: #ffffff;
        transform: translateY(-2px);
        box-shadow: 0 10px 22px rgba(16, 120, 193, 0.20);
    }

    .btn-ver-todo i {
        font-size: 0.85rem;
    }

/* Responsive */
@media (max-width: 768px) {
    .section-title-horizontal {
        align-items: flex-start !important;
        gap: 10px !important;
    }

        .section-title-horizontal h2 {
            font-size: 1.15rem !important;
        }

        .section-title-horizontal p {
            font-size: 0.78rem !important;
        }

    .btn-ver-todo {
        height: 32px;
        padding: 0 11px;
        font-size: 0.70rem;
    }
}
/* =========================
   BUSCADOR PROFESIONAL EN MENÚ
========================= */

.menu-navbar-compacto {
    gap: 3px !important;
}

.nav-buscador-izquierda {
    display: flex !important;
    align-items: center !important;
    margin-right: 8px !important;
}

.buscador-menu-pro {
    position: relative !important;
    width: 205px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
}

.buscador-menu-icono {
    position: absolute !important;
    left: 11px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 18px !important;
    height: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #1078C1 !important;
    z-index: 3 !important;
    pointer-events: none !important;
}

    .buscador-menu-icono i {
        font-size: 0.78rem !important;
        line-height: 1 !important;
    }

.buscador-menu-pro-input {
    width: 100% !important;
    height: 32px !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    outline: none !important;
    border-radius: 999px !important;
    padding: 0 12px 0 36px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    color: #0f172a !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18) !important;
    transition: all 0.22s ease !important;
}

    .buscador-menu-pro-input::placeholder {
        color: #64748b !important;
        font-weight: 600 !important;
    }

    .buscador-menu-pro-input:focus {
        width: 225px !important;
        background: #ffffff !important;
        border-color: #ffc107 !important;
        box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.25), 0 8px 18px rgba(15, 23, 42, 0.20) !important;
    }

/* Oculta el buscador grande si quedó en el ASPX */
.buscador-productos-section {
    display: none !important;
}

/* Evita que el buscador viejo afecte */
.nav-buscador-menu,
.buscador-menu-box,
.buscador-menu-input {
    display: none !important;
}

/* Responsive */
@media (max-width: 991px) {
    .nav-buscador-izquierda {
        width: 100% !important;
        margin: 6px 0 9px 0 !important;
        order: -1 !important;
    }

    .buscador-menu-pro {
        width: 100% !important;
        height: 38px !important;
    }

    .buscador-menu-pro-input {
        height: 38px !important;
        width: 100% !important;
        border-radius: 12px !important;
        font-size: 0.78rem !important;
        padding-left: 38px !important;
    }

        .buscador-menu-pro-input:focus {
            width: 100% !important;
        }

    .buscador-menu-icono {
        left: 13px !important;
    }
}
/* =========================
   CORRECCIÓN MENÚ MÓVIL
========================= */

@media (max-width: 991px) {

    .header-tienda .navbar {
        padding: 10px 0 !important;
    }

        .header-tienda .navbar .container {
            display: flex !important;
            flex-wrap: wrap !important;
            align-items: center !important;
        }

    .navbar-brand.logo-tienda {
        font-size: 1.05rem !important;
        margin-right: auto !important;
    }

    .navbar-toggler {
        margin-left: auto !important;
        border-color: rgba(255, 255, 255, 0.25) !important;
        padding: 6px 9px !important;
        border-radius: 10px !important;
    }

    .navbar-collapse {
        flex-basis: 100% !important;
        width: 100% !important;
        margin-top: 12px !important;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.10);
        border-radius: 18px;
        padding: 12px !important;
    }

    .menu-navbar-compacto {
        width: 100% !important;
        margin-left: 0 !important;
        padding-top: 0 !important;
        gap: 6px !important;
        align-items: stretch !important;
    }

        .menu-navbar-compacto .nav-item {
            width: 100% !important;
        }

    .navbar .nav-link {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        gap: 7px !important;
        font-size: 0.82rem !important;
        padding: 10px 12px !important;
        border-radius: 12px !important;
        margin: 0 !important;
    }

        .navbar .nav-link.active {
            background: rgba(255, 255, 255, 0.14) !important;
        }

    .btn-carrito {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 6px !important;
        font-size: 0.82rem !important;
        padding: 11px 12px !important;
        border-radius: 14px !important;
        margin-top: 4px !important;
    }

    /* Buscador dentro del menú móvil */
    .nav-buscador-izquierda {
        width: 100% !important;
        margin: 0 0 6px 0 !important;
        order: -1 !important;
    }

    .buscador-menu-pro {
        width: 100% !important;
        height: 40px !important;
    }

    .buscador-menu-pro-input {
        width: 100% !important;
        height: 40px !important;
        border-radius: 13px !important;
        font-size: 0.82rem !important;
        padding-left: 40px !important;
        background: #ffffff !important;
    }

        .buscador-menu-pro-input:focus {
            width: 100% !important;
        }

    .buscador-menu-icono {
        left: 14px !important;
    }

        .buscador-menu-icono i {
            font-size: 0.9rem !important;
        }

    /* Submenú productos en móvil */
    .menu-productos-dropdown {
        width: 100% !important;
        min-width: 100% !important;
        background: rgba(255, 255, 255, 0.10) !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 13px !important;
        margin-top: 5px !important;
        padding: 7px !important;
    }

        .menu-productos-dropdown .dropdown-item {
            color: #ffffff !important;
            font-size: 0.78rem !important;
            padding: 8px 10px !important;
            border-radius: 10px !important;
        }

            .menu-productos-dropdown .dropdown-item i {
                color: #ffc107 !important;
            }

            .menu-productos-dropdown .dropdown-item:hover {
                background: rgba(255, 255, 255, 0.14) !important;
                color: #ffffff !important;
            }
}


/* =========================================================
   CORRECCIONES FINALES - LOGIN / MENÚ / USUARIO
   Pegar siempre al final del archivo styles.css
========================================================= */

/* =========================
   MENÚ MÓVIL CERRADO POR DEFECTO
========================= */

@media (max-width: 991px) {

    .header-tienda .navbar-collapse.collapse:not(.show) {
        display: none !important;
    }

    .header-tienda .navbar-collapse.collapse.show {
        display: block !important;
        flex-basis: 100% !important;
        width: 100% !important;
        margin-top: 12px !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.10) !important;
        border-radius: 18px !important;
        padding: 12px !important;
    }

    .header-tienda .navbar-collapse.collapsing {
        display: block !important;
        flex-basis: 100% !important;
        width: 100% !important;
        margin-top: 12px !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.10) !important;
        border-radius: 18px !important;
        padding: 12px !important;
        overflow: hidden !important;
    }
}

/* =========================
   USUARIO LOGUEADO EN MENÚ
========================= */

.usuario-menu-link {
    max-width: 155px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.menu-productos-dropdown .dropdown-item {
    cursor: pointer !important;
}

    .menu-productos-dropdown .dropdown-item i {
        margin-right: 5px !important;
    }

/* =========================
   LOGIN ADMINISTRADOR / VENDEDOR
========================= */

html,
body.login-body {
    width: 100% !important;
    min-height: 100vh !important;
}

body.login-body {
    margin: 0 !important;
    overflow-x: hidden !important;
    font-family: 'Segoe UI', Arial, sans-serif !important;
    background: radial-gradient(circle at top left, rgba(255, 193, 7, 0.20), transparent 28%), linear-gradient(135deg, #061b31 0%, #0b2a4a 45%, #1078C1 100%) !important;
    color: #0f172a !important;
}

    body.login-body form#form1 {
        min-height: 100vh !important;
        display: block !important;
        margin: 0 !important;
    }

.login-page {
    width: 100% !important;
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 28px 14px !important;
}

.login-card {
    width: 100% !important;
    max-width: 920px !important;
    min-height: 570px !important;
    background: #ffffff !important;
    border-radius: 28px !important;
    overflow: hidden !important;
    display: grid !important;
    grid-template-columns: 1fr 420px !important;
    box-shadow: 0 28px 75px rgba(0, 0, 0, 0.30) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.login-panel-left {
    position: relative !important;
    background: radial-gradient(circle at top left, rgba(255, 193, 7, 0.34), transparent 34%), linear-gradient(135deg, #0b2a4a 0%, #1078C1 100%) !important;
    color: #ffffff !important;
    padding: 38px 36px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    overflow: hidden !important;
}

    .login-panel-left::after {
        content: "" !important;
        position: absolute !important;
        right: -85px !important;
        bottom: -85px !important;
        width: 220px !important;
        height: 220px !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, 0.09) !important;
    }

.login-volver {
    position: absolute !important;
    top: 20px !important;
    left: 24px !important;
    color: rgba(255, 255, 255, 0.88) !important;
    text-decoration: none !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    z-index: 2 !important;
}

    .login-volver:hover {
        color: #ffc107 !important;
    }

.login-logo {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 1.18rem !important;
    font-weight: 900 !important;
    margin-bottom: 18px !important;
    position: relative !important;
    z-index: 2 !important;
}

    .login-logo i {
        color: #ffc107 !important;
        font-size: 1.65rem !important;
    }

    .login-logo span {
        color: #ffffff !important;
    }

.login-panel-left h1 {
    color: #ffffff !important;
    font-size: clamp(1.85rem, 4vw, 2.75rem) !important;
    font-weight: 900 !important;
    line-height: 1.08 !important;
    margin: 0 0 12px 0 !important;
    letter-spacing: -0.8px !important;
    position: relative !important;
    z-index: 2 !important;
}

.login-panel-left p {
    color: rgba(255, 255, 255, 0.83) !important;
    font-size: 0.94rem !important;
    line-height: 1.6 !important;
    max-width: 430px !important;
    margin: 0 0 22px 0 !important;
    position: relative !important;
    z-index: 2 !important;
}

.login-beneficios {
    display: grid !important;
    gap: 10px !important;
    position: relative !important;
    z-index: 2 !important;
}

    .login-beneficios div {
        background: rgba(255, 255, 255, 0.12) !important;
        border: 1px solid rgba(255, 255, 255, 0.14) !important;
        border-radius: 16px !important;
        padding: 11px 13px !important;
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        box-shadow: none !important;
    }

    .login-beneficios i {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        border-radius: 12px !important;
        background: rgba(255, 193, 7, 0.15) !important;
        color: #ffc107 !important;
        font-size: 1.05rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .login-beneficios span {
        color: #ffffff !important;
        font-size: 0.84rem !important;
        font-weight: 800 !important;
    }

.login-panel-right {
    background: #ffffff !important;
    padding: 36px 34px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

.login-form-header {
    margin-bottom: 22px !important;
}

    .login-form-header > span {
        display: inline-flex !important;
        align-items: center !important;
        background: #e8f3ff !important;
        color: #1078C1 !important;
        padding: 6px 12px !important;
        border-radius: 999px !important;
        font-size: 0.72rem !important;
        font-weight: 900 !important;
        margin-bottom: 9px !important;
    }

    .login-form-header h2 {
        color: #0b2a4a !important;
        font-size: 1.72rem !important;
        font-weight: 900 !important;
        margin: 0 0 5px 0 !important;
        letter-spacing: -0.4px !important;
    }

    .login-form-header p {
        color: #64748b !important;
        font-size: 0.86rem !important;
        line-height: 1.45 !important;
        margin: 0 !important;
    }

.login-alerta {
    display: block !important;
    width: 100% !important;
    background: #fee2e2 !important;
    color: #b91c1c !important;
    border: 1px solid #fecaca !important;
    border-radius: 15px !important;
    padding: 11px 13px !important;
    font-size: 0.84rem !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    margin: 0 0 16px 0 !important;
}

.login-label {
    display: block !important;
    color: #0f172a !important;
    font-size: 0.82rem !important;
    font-weight: 900 !important;
    margin: 0 0 7px 0 !important;
}

.login-tipo-box {
    margin-bottom: 16px !important;
}

.login-input-group {
    position: relative !important;
    width: 100% !important;
}

    .login-input-group span {
        position: absolute !important;
        left: 13px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        color: #1078C1 !important;
        z-index: 3 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        pointer-events: none !important;
    }

        .login-input-group span i {
            font-size: 1rem !important;
        }

.login-input {
    width: 100% !important;
    min-height: 46px !important;
    border-radius: 15px !important;
    border: 1px solid #dbe3ef !important;
    background: #f8fafc !important;
    color: #0f172a !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    outline: none !important;
    box-shadow: none !important;
    transition: all 0.22s ease !important;
}

.login-input-group .login-input {
    padding-left: 40px !important;
}

select.login-input,
.login-tipo-box .login-input {
    padding-left: 13px !important;
    padding-right: 36px !important;
}

.login-input:focus {
    background: #ffffff !important;
    border-color: #1078C1 !important;
    box-shadow: 0 0 0 4px rgba(16, 120, 193, 0.13) !important;
}

.login-recordar {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #475569 !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    margin: 2px 0 18px 0 !important;
}

    .login-recordar input {
        width: 16px !important;
        height: 16px !important;
        margin: 0 !important;
    }

    .login-recordar label {
        margin: 0 !important;
        cursor: pointer !important;
    }

.btn-login-principal {
    width: 100% !important;
    min-height: 47px !important;
    border: none !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    color: #ffffff !important;
    font-size: 0.94rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.1px !important;
    box-shadow: 0 12px 24px rgba(22, 163, 74, 0.28) !important;
    transition: all 0.22s ease !important;
    cursor: pointer !important;
}

    .btn-login-principal:hover {
        background: linear-gradient(135deg, #15803d, #166534) !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 16px 30px rgba(22, 163, 74, 0.34) !important;
    }

    .btn-login-principal:active {
        transform: scale(0.98) !important;
    }

.login-ayuda {
    margin-top: 16px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 15px !important;
    padding: 11px 12px !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    color: #64748b !important;
    font-size: 0.78rem !important;
    line-height: 1.35 !important;
}

    .login-ayuda i {
        color: #1078C1 !important;
        font-size: 1rem !important;
        margin-top: 1px !important;
    }

    .login-ayuda span {
        color: #64748b !important;
    }

/* Responsive login */
@media (max-width: 850px) {

    .login-page {
        align-items: flex-start !important;
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }

    .login-card {
        grid-template-columns: 1fr !important;
        max-width: 440px !important;
        min-height: auto !important;
        border-radius: 24px !important;
    }

    .login-panel-left {
        padding: 58px 26px 26px 26px !important;
    }

    .login-panel-right {
        padding: 28px 24px !important;
    }

    .login-panel-left h1 {
        font-size: 1.55rem !important;
    }

    .login-panel-left p {
        font-size: 0.86rem !important;
    }
}

@media (max-width: 480px) {

    .login-page {
        padding: 14px 10px !important;
    }

    .login-card {
        border-radius: 22px !important;
    }

    .login-panel-left {
        padding: 54px 20px 22px 20px !important;
    }

    .login-panel-right {
        padding: 24px 20px !important;
    }

    .login-form-header h2 {
        font-size: 1.45rem !important;
    }

    .login-beneficios {
        display: none !important;
    }

    .login-volver {
        top: 18px !important;
        left: 20px !important;
    }
}


/* =========================
   LINK COMPLETO CARD ADMIN
========================= */

.admin-opcion-link-card {
    text-decoration: none !important;
    color: inherit !important;
    display: block !important;
}

    .admin-opcion-link-card:hover {
        color: inherit !important;
    }