/* ============================================================
   LAMINADOS MCBO — LANDING PAGE (Tema Holográfico)
   ============================================================
   Paleta: negro #000/#111 · blanco #fff · degradado iridiscente
   pastel (rosa, lila, celeste, menta, nácar).
   Tipografía: Radnika Next (fonts/radnika-next-regular.ttf)
   ============================================================ */

/* ---------- Fuente de marca ---------- */
@font-face {
    font-family: 'Radnika';
    src: url('../fonts/radnika-next-regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ---------- Variables ---------- */
:root {
    --ink: #111111;
    --ink-soft: #444444;
    --muted: #6b7280;
    --blanco: #ffffff;
    --negro: #000000;

    /* Degradado holográfico (paleta de la marca) */
    --holo-rosa: #f9c8e0;
    --holo-lila: #cdbdf7;
    --holo-celeste: #b7e3f8;
    --holo-menta: #c8f3dc;
    --holo-nacar: #f2f7ff;

    --holo-gradient: linear-gradient(120deg, #f9c8e0 0%, #cdbdf7 25%, #b7e3f8 50%, #c8f3dc 75%, #f9c8e0 100%);
    --holo-soft: linear-gradient(120deg, rgba(249,200,224,.35), rgba(205,189,247,.35), rgba(183,227,248,.35), rgba(200,243,220,.35));

    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 4px 24px rgba(17, 17, 17, 0.08);
    --shadow-lg: 0 16px 48px rgba(17, 17, 17, 0.14);
    --border: rgba(17, 17, 17, 0.10);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }

body {
    font-family: 'Radnika', 'Segoe UI', system-ui, sans-serif;
    color: var(--ink);
    background-color: #f7f4ff;
    background-image: url('../img/FONDO LAMINADOS MCBO.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    overflow-x: hidden;
    letter-spacing: 0.01em;
}

/* Capa de legibilidad sobre el fondo holográfico */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.82);
    z-index: -1;
}

h1, h2, h3, h4, h5 {
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ink);
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ============================================================
   TOP BAR (negro, contacto y ubicación)
   ============================================================ */
.lm-topbar {
    background: var(--negro);
    color: #fff;
    font-size: 0.82rem;
    padding: 0.45rem 0;
    letter-spacing: 0.04em;
}
.lm-topbar a { color: #fff; transition: opacity .2s ease; }
.lm-topbar a:hover { opacity: 0.75; }
.lm-topbar .topbar-izq span { margin-right: 1.1rem; display: inline-flex; align-items: center; gap: .4rem; }
.lm-topbar .topbar-der { text-align: right; }
@media (max-width: 767px) {
    .lm-topbar .topbar-der { text-align: left; margin-top: .2rem; }
}

/* ============================================================
   SLOGAN (franja de anuncio)
   ============================================================ */
.lm-slogan {
    background: var(--holo-gradient);
    background-size: 300% 300%;
    animation: holoShift 14s ease infinite;
    color: var(--ink);
    font-weight: 700;
    text-align: center;
    padding: 0.55rem 1rem;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
@keyframes holoShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ============================================================
   NAVBAR
   ============================================================ */
.lm-navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 0.6rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 4px 18px rgba(17,17,17,.06);
}
.lm-navbar .logo-img {
    height: 44px;
    width: auto;
    border-radius: 8px;
}
.lm-navbar .dropdown-menu {
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
}
.lm-navbar .dropdown-item {
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.55rem 0.9rem;
    color: var(--ink);
}
.lm-navbar .dropdown-item:hover { background: var(--holo-soft); }

/* Botones del navbar */
.btn-nav-icon {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 12px;
    border: 1.5px solid var(--ink);
    background: var(--blanco);
    color: var(--ink);
    font-weight: 700;
    transition: all .22s ease;
}
.btn-nav-icon:hover { background: var(--ink); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.18); }
.badge-cart {
    position: absolute;
    top: -4px; right: -6px;
    background: var(--negro);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    line-height: 1;
    border-radius: 50%;
    width: 18px; height: 18px;
    display: flex; align-items: center; justify-content: center;
    padding: 0;
    border: 2px solid #fff;
    box-sizing: border-box;
    overflow: hidden;
}

/* ============================================================
   HERO
   ============================================================ */
.lm-hero {
    /* Ocupa todo el alto de la pantalla MENOS las barras superiores
       (topbar + eslogan + navbar): el hero completa exactamente lo que
       queda de la ventana. */
    --alto-barras: 140px;
    min-height: calc(100vh - var(--alto-barras));
    min-height: calc(100dvh - var(--alto-barras)); /* móviles: altura real sin la barra del navegador */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem 1.5rem;   /* sin padding superior: el logo ya ocupa bastante */
    position: relative;
}
.lm-hero .container { width: 100%; }
.lm-hero .hero-logo {
    max-width: 510px;   /* un poco más grande que antes (480px) */
    width: 100%;
    filter: drop-shadow(0 18px 34px rgba(17,17,17,.18));
    transition: transform .4s ease;
    /* Aire debajo del logo: la imagen se recortó (cuadrada) y quedaba
       pegada a la frase */
    margin-bottom: 0;
    padding-bottom: 2.5rem;
}
.lm-hero .hero-logo:hover { transform: scale(1.02); }
.lm-hero .hero-dist {
    margin: 0;
    font-weight: 800;
    letter-spacing: 0.28em;   /* reducido: menos desbordamiento */
    text-indent: 0.28em;      /* compensa el espacio final para centrar */
    text-transform: uppercase;
    /* Tamaño fluido: escala con el ancho de pantalla y NUNCA desborda */
    font-size: clamp(0.9rem, 3.4vw, 1.85rem);
    color: var(--ink);
    line-height: 1.4;
    white-space: nowrap;    /* desktop: una sola línea */
}
/* Cada palabra en bloque: no se corta por la mitad, pero las palabras
   sí pueden saltar de línea en pantallas pequeñas */
.lm-hero .hero-dist-palabra {
    display: inline-block;
    white-space: nowrap;
}

/* Letra por letra: aparece, crece un poco, vuelve a tamaño normal,
   se queda, desaparece y repite el ciclo. Cada letra tiene su retraso (--i). */
.hero-dist-letra {
    display: inline-block;
    opacity: 0;
    transform: scale(0.4);
    filter: blur(6px);
    animation: heroLetra 6.5s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.14s);
    will-change: opacity, transform, filter;
}
@keyframes heroLetra {
    0%   { opacity: 0; transform: scale(0.4);  filter: blur(6px); }
    10%  { opacity: 1; transform: scale(1.35); filter: blur(0); }
    16%  { opacity: 1; transform: scale(1);    filter: blur(0); }
    78%  { opacity: 1; transform: scale(1);    filter: blur(0); }
    92%  { opacity: 0; transform: scale(0.85); filter: blur(3px); }
    100% { opacity: 0; transform: scale(0.85); filter: blur(3px); }
}
.lm-hero .hero-desc {
    max-width: 680px;
    margin: 1.4rem auto 0;
    color: var(--ink-soft);
    font-size: 1.02rem;
    line-height: 1.75;
}
.lm-hero .hero-cta {
    margin-top: 1.8rem;
    display: flex;
    gap: 0.9rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================
   BOTONES
   ============================================================ */
.btn-holo {
    background: var(--blanco);
    color: var(--ink) !important;
    border: 2px solid var(--ink);
    border-radius: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-size: 0.82rem;
    padding: 0.7rem 1.6rem;
    transition: all .22s ease;
    display: inline-flex; align-items: center; gap: .5rem;
}
.btn-holo:hover {
    background: var(--ink);
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(0,0,0,.22);
}
.btn-holo-invert {
    background: var(--ink);
    color: #fff !important;
    border-color: var(--ink);
}
.btn-holo-invert:hover { background: #fff; color: var(--ink) !important; }

/* ============================================================
   SECCIONES
   ============================================================ */
.lm-section { padding: 3rem 0 3.5rem; }
.lm-section-titulo {
    font-size: 1.7rem;
    margin-bottom: 1.1rem;
    position: relative;
    display: inline-block;
}
.lm-section-titulo::after {
    content: "";
    position: absolute;
    left: 0; bottom: -10px;
    width: 56px; height: 4px;
    border-radius: 4px;
    background: var(--holo-gradient);
}
.lm-section-sub { color: var(--muted); font-size: 0.95rem; }

/* ============================================================
   PRODUCTOS — Catálogo + Vista Detallada
   ============================================================ */

/* Grid del catálogo */
.lm-prod-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.4rem;
    overflow: hidden;
}
@media (max-width: 1199px) { .lm-prod-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) { .lm-prod-grid { grid-template-columns: repeat(2, 1fr); gap: .7rem; padding: 0 .5rem; } }

/* Tarjeta individual */
.lm-prod-card {
    cursor: pointer;
    transition: transform .25s ease;
    overflow: hidden;
}
.lm-prod-card:hover { transform: translateY(-4px); }

/* Imagen con marco blanco grueso */
.lm-prod-img-wrap {
    position: relative;
    aspect-ratio: 3 / 4;
    max-height: 300px;
    background: var(--blanco);
    border: 5px solid var(--blanco);
    border-radius: 0;
    box-shadow: 0 3px 14px rgba(17,17,17,.1);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .25s ease, box-shadow .25s ease;
}
.lm-prod-card.seleccionado .lm-prod-img-wrap {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124,58,237,.25), 0 4px 20px rgba(17,17,17,.1);
}
.lm-prod-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.lm-prod-no-img {
    font-size: 3.5rem;
    color: rgba(17,17,17,.25);
    background: var(--holo-gradient);
    background-size: 300% 300%;
    animation: holoShift 12s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.lm-prod-badge {
    position: absolute;
    top: 10px; left: 10px;
    background: var(--negro);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    white-space: nowrap;
    width: auto;
    display: inline-block;
}

/* Botón superpuesto "SELECCIONAR OPCIONES" */
.lm-prod-btn-select {
    position: absolute;
    bottom: 12px; left: 12px;
    background: var(--blanco);
    color: var(--ink);
    border: none;
    border-radius: 8px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.65rem;
    padding: 0.5rem 0.75rem;
    box-shadow: 0 4px 14px rgba(0,0,0,.18);
    cursor: pointer;
    transition: all .2s ease;
    opacity: 0;
    transform: translateY(6px);
}
.lm-prod-card:hover .lm-prod-btn-select {
    opacity: 1;
    transform: translateY(0);
}
.lm-prod-btn-select:hover {
    background: var(--ink);
    color: #fff;
}

/* Texto debajo de la imagen */
.lm-prod-info {
    padding: 0.6rem 0 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}
.lm-prod-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
    margin-bottom: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lm-prod-variant {
    font-size: 0.78rem;
    color: var(--ink-soft);
    margin-bottom: 0.2rem;
}
.lm-prod-price {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--ink);
}

/* ============================================================
   VISTA DETALLADA DEL PRODUCTO
   ============================================================ */
.lm-prod-detail {
    margin-top: 2rem;
    background: var(--blanco);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.8rem;
    animation: fadeInUp .35s ease;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}
.lm-prod-detail-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}
@media (max-width: 767px) {
    .lm-prod-detail-inner { grid-template-columns: 1fr; gap: 1.2rem; }
    .lm-prod-detail { padding: 1.2rem; }
}

/* Imagen ampliada */
.lm-prod-detail-img-frame {
    position: relative;
    aspect-ratio: 3 / 4;
    max-width: 320px;
    background: var(--blanco);
    border: 6px solid var(--blanco);
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(17,17,17,.12);
    overflow: hidden;
}
@media (max-width: 767px) {
    .lm-prod-detail-img-frame { max-width: 100%; }
}
.lm-prod-detail-img-frame img {
    width: 100%; height: 100%;
    object-fit: cover;
}

/* Tabla de precios mayoristas superpuesta */
.lm-prod-detail-prices {
    position: absolute;
    bottom: 12px; right: 12px;
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    padding: 0.6rem 0.8rem;
    font-size: 0.7rem;
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
}
.lm-prod-detail-prices-title {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink);
    margin-bottom: 0.3rem;
    font-size: 0.62rem;
}
.lm-prod-detail-prices .lm-price-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.15rem 0;
    color: var(--ink-soft);
}
.lm-prod-detail-prices .lm-price-row strong {
    color: var(--ink);
}

/* Info del producto */
.lm-prod-detail-info {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.lm-prod-detail-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ink);
    margin: 0;
    line-height: 1.3;
}
.lm-prod-detail-variant {
    font-size: 1.05rem;
    color: var(--ink-soft);
    font-weight: 400;
}
.lm-prod-detail-stock {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #15803d;
}
.lm-prod-detail-stock.sin-stock {
    color: #b91c1c;
}

/* Selector de cantidad */
.lm-prod-detail-qty {
    display: inline-flex;
    align-items: center;
    background: var(--blanco);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    align-self: flex-start;
}
.lm-qty-btn {
    width: 38px; height: 38px;
    border: none;
    background: transparent;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
    transition: background .15s ease;
    display: flex; align-items: center; justify-content: center;
}
.lm-qty-btn:hover { background: rgba(17,17,17,.06); }
.lm-qty-val {
    width: 38px;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
    border-left: 1.5px solid var(--border);
    border-right: 1.5px solid var(--border);
    line-height: 38px;
}

/* Botón ADD TO CART (píldora morada) */
.lm-prod-detail-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #7c3aed;
    color: #fff;
    border: none;
    border-radius: 999px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.82rem;
    padding: 0.75rem 1.8rem;
    cursor: pointer;
    transition: all .22s ease;
    align-self: flex-start;
}
.lm-prod-detail-cart:hover {
    background: #6d28d9;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(124,58,237,.35);
}

/* Metadatos */
.lm-prod-detail-meta {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 0.3rem;
}

/* Descripción */
.lm-prod-detail-desc {
    margin-top: 1.4rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--ink-soft);
    line-height: 1.7;
}

/* ============================================================
   CATEGORÍAS
   ============================================================ */
.lm-cat-chip {
    display: flex; align-items: center; gap: .6rem;
    background: rgba(255,255,255,.92);
    border: 1.5px solid var(--border);
    border-radius: 999px;
    padding: 0.65rem 1.25rem;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink);
    transition: all .22s ease;
    cursor: pointer;
}
.lm-cat-chip:hover, .lm-cat-chip.activa {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0,0,0,.2);
}
.lm-cat-chip .material-symbols-outlined { font-size: 1.1rem; }

/* Wrapper de chips — scroll horizontal en móvil */
.lm-chips-wrap {
    position: relative;
}
.lm-chips-fade {
    display: none;
}
@media (max-width: 767px) {
    .lm-chips-scroll {
        display: flex;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
        gap: .5rem;
        padding: .3rem 2rem .8rem .2rem;
        max-height: 5.2rem;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .lm-chips-scroll::-webkit-scrollbar { display: none; }
    .lm-chips-fade {
        display: block;
        position: absolute;
        top: 0; right: 0; bottom: 0;
        width: 50px;
        background: linear-gradient(to right, transparent, rgba(255,255,255,.92));
        pointer-events: none;
        opacity: 0;
        transition: opacity .25s;
        z-index: 2;
    }
    .lm-chips-fade.visible { opacity: 1; }
    .lm-cat-chip {
        flex-shrink: 0;
        scroll-snap-align: start;
        padding: 0.45rem 0.85rem;
        font-size: 0.68rem;
        gap: .35rem;
        white-space: nowrap;
    }
    .lm-cat-chip .material-symbols-outlined { font-size: 0.9rem; }
}

/* ============================================================
   ABOUT / CONTACTO
   ============================================================ */
.lm-about-card {
    background: rgba(255,255,255,.92);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.6rem;
    height: 100%;
    transition: transform .25s ease, box-shadow .25s ease;
}
.lm-about-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.lm-about-card .ico {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: var(--holo-gradient);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    color: var(--ink);
    margin-bottom: 1rem;
}
.lm-about-card h5 { font-size: 1rem; margin-bottom: .5rem; }
.lm-about-card p { font-size: 0.87rem; color: var(--muted); line-height: 1.6; margin: 0; }

/* Contacto */
.lm-contact-card {
    background: rgba(255,255,255,.94);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.8rem;
}
.lm-contact-card .form-control, .lm-contact-card .form-select {
    border-radius: 10px;
    border: 1.5px solid var(--border);
    padding: 0.65rem 0.9rem;
    font-size: 0.92rem;
    background: #fff;
}
.lm-contact-card .form-control:focus, .lm-contact-card .form-select:focus {
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(17,17,17,.08);
}
.lm-contact-item {
    display: flex; gap: .9rem; align-items: flex-start;
    padding: 0.9rem 0;
    border-bottom: 1px dashed var(--border);
}
.lm-contact-item:last-child { border-bottom: 0; }
.lm-contact-item .ico {
    width: 42px; height: 42px; flex-shrink: 0;
    border-radius: 12px;
    background: var(--holo-gradient);
    display: flex; align-items: center; justify-content: center;
    color: var(--ink);
}
.lm-contact-item strong { font-size: 0.9rem; display: block; }
.lm-contact-item span { font-size: 0.85rem; color: var(--muted); }

/* ============================================================
   FOOTER
   ============================================================ */
.lm-footer {
    background: var(--negro);
    color: rgba(255,255,255,.8);
    padding: 3rem 0 1.2rem;
    margin-top: 2rem;
}
.lm-footer h6 {
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}
.lm-footer a { color: rgba(255,255,255,.75); font-size: 0.88rem; transition: color .2s ease; }
.lm-footer a:hover { color: #fff; }
.lm-footer .footer-link { display: block; padding: 0.22rem 0; }
.lm-footer .logo-footer { height: 40px; border-radius: 8px; margin-bottom: 0.9rem; }
.lm-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    margin-top: 2rem;
    padding-top: 1.1rem;
    font-size: 0.78rem;
    color: rgba(255,255,255,.5);
}

/* ============================================================
   BOTÓN WHATSAPP FLOTANTE
   ============================================================ */
.lm-wa-float {
    position: fixed;
    bottom: 22px; right: 22px;
    width: 58px; height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 10px 28px rgba(37,211,102,.45);
    z-index: 1040;
    transition: transform .25s ease;
}
.lm-wa-float:hover { transform: scale(1.12) rotate(6deg); color: #fff; }

/* ============================================================
   TOAST (feedback rápido)
   ============================================================ */
.lm-toast {
    position: fixed;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--negro);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.75rem 1.3rem;
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(0,0,0,.3);
    z-index: 2000;
    opacity: 0;
    transition: opacity .35s ease, transform .35s cubic-bezier(.2,.8,.3,1);
    max-width: 90vw;
    text-align: center;
}
.lm-toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   ANIMACIONES DE ENTRADA
   ============================================================ */
.lm-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.3,1);
}
.lm-reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
    .lm-hero { --alto-barras: 145px; }
    .lm-hero .hero-logo { max-width: 400px; }
    .lm-hero .hero-dist { font-size: 1.5rem; }  /* tablet: un poco más pequeño */
}
@media (max-width: 767px) {
    .lm-section { padding: 2.2rem 0 2.6rem; }
    /* Sección de categorías: sin padding inferior en móvil */
    #categorias { padding-bottom: 0; }
    .lm-section-titulo { font-size: 1.35rem; }
    /* En móvil la topbar se apila (2 líneas) → restar más a la altura */
    .lm-hero { --alto-barras: 170px; }
    .lm-hero .hero-logo { max-width: 285px; margin-bottom: 0; padding-bottom: 1.75rem; }
    .lm-hero .hero-dist {
        font-size: clamp(0.82rem, 4.2vw, 1.08rem);   /* más pequeño en móvil */
        letter-spacing: 0.22em;
        text-indent: 0.22em;
        white-space: normal;  /* "SOMOS" arriba y "DISTRIBUIDORES" abajo */
    }
    .lm-hero .hero-desc { font-size: 0.9rem; }
    /* Cards de producto compactas en móvil (2 por fila) */
    .lm-prod-img-wrap {
        aspect-ratio: 3 / 4;
        max-height: none;
        border-width: 3px;
        border-radius: 0;
    }
    .lm-prod-card:hover { transform: translateY(-2px); }
    .lm-prod-name { font-size: 0.7rem; line-height: 1.2; margin-bottom: .05rem; }
    .lm-prod-variant { font-size: 0.6rem; margin-bottom: .1rem; }
    .lm-prod-price { font-size: 0.7rem; }
    .lm-prod-info { padding: 0.25rem 0 0; }
    .lm-prod-badge { font-size: 0.45rem; padding: 0.12rem 0.35rem; top: 4px; left: 4px; }
    .lm-prod-no-img { font-size: 1.8rem; }
}

/* Accesibilidad: si el usuario prefiere menos movimiento, se muestra la frase completa */
@media (prefers-reduced-motion: reduce) {
    .hero-dist-letra {
        animation: none;
        opacity: 1;
        transform: none;
        filter: none;
    }
}

/* ============================================================
   CARRITO DROPDOWN (navbar)
   ============================================================ */
.cart-wrapper {
    position: relative;
}
.cart-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 370px;
    max-height: 480px;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 50px rgba(17,17,17,.16);
    padding: 0;
    overflow: hidden;
    display: none;
    flex-direction: column;
    background: #fff;
    z-index: 1050;
}
.cart-dropdown.abierto {
    display: flex;
}
@media (max-width: 479px) {
    .cart-dropdown { position: fixed; top: 60px; left: 1rem; right: 1rem; width: auto; max-width: none; transform: none; }
}
.cart-dd-header {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .85rem 1rem;
    background: var(--ink);
    color: #fff;
    font-weight: 800;
    font-size: .88rem;
    letter-spacing: .04em;
}
.cart-dd-count {
    margin-left: auto;
    background: rgba(255,255,255,.18);
    padding: .15rem .55rem;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 700;
}
.cart-dd-body {
    flex: 1;
    overflow-y: auto;
    min-height: 80px;
    max-height: 280px;
}
.cart-dd-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    color: var(--muted);
}
.cart-dd-empty p {
    margin: .5rem 0 0;
    font-size: .85rem;
    font-weight: 600;
}
.cart-dd-item {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .65rem 1rem;
    border-bottom: 1px solid rgba(17,17,17,.06);
    transition: background .15s;
}
.cart-dd-item:hover { background: rgba(17,17,17,.02); }
.cart-dd-item:last-child { border-bottom: none; }
.cart-dd-item-img {
    width: 50px; height: 50px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,.1);
    flex-shrink: 0;
}
.cart-dd-item-img-placeholder {
    width: 50px; height: 50px;
    border-radius: 8px;
    flex-shrink: 0;
    background: var(--holo-gradient);
    display: flex; align-items: center; justify-content: center;
}
.cart-dd-item-info { flex: 1; min-width: 0; }
.cart-dd-item-name {
    font-size: .78rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cart-dd-item-cat {
    font-size: .65rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.cart-dd-item-price {
    font-size: .82rem;
    font-weight: 800;
    margin-top: .15rem;
}
.cart-dd-item-qty {
    display: flex;
    align-items: center;
    gap: .3rem;
    flex-shrink: 0;
}
.cart-dd-qty-btn {
    width: 26px; height: 26px;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    background: #fff;
    font-size: .85rem;
    font-weight: 700;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all .15s;
}
.cart-dd-qty-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.cart-dd-qty-val {
    font-size: .78rem;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}
.cart-dd-item-remove {
    border: none;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    padding: .2rem;
    font-size: .95rem;
    transition: color .15s;
    flex-shrink: 0;
}
.cart-dd-item-remove:hover { color: #b91c1c; }
.cart-dd-footer {
    border-top: 1.5px solid var(--border);
    padding: .85rem 1rem;
    background: rgba(247,244,255,.6);
}
.cart-dd-subtotal, .cart-dd-descuento, .cart-dd-total {
    display: flex;
    justify-content: space-between;
    padding: .2rem 0;
    font-size: .82rem;
}
.cart-dd-descuento { color: #15803d; font-weight: 600; }
.cart-dd-total {
    font-size: .95rem;
    font-weight: 800;
    border-top: 1.5px solid var(--border);
    margin-top: .35rem;
    padding-top: .5rem;
}
.btn-cart-dd-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    width: 100%;
    margin-top: .65rem;
    padding: .6rem;
    background: #7c3aed;
    color: #fff;
    border: none;
    border-radius: 999px;
    font-weight: 800;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    text-decoration: none;
    transition: all .2s;
}
.btn-cart-dd-checkout:hover {
    background: #6d28d9;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(124,58,237,.3);
    color: #fff;
}
.btn-cart-dd-vaciar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    width: 100%;
    margin-top: .4rem;
    padding: .4rem;
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 600;
    cursor: pointer;
    transition: color .15s;
}
.btn-cart-dd-vaciar:hover { color: #b91c1c; }

/* Animación carrito badge */
@keyframes cartBounce {
    0% { transform: scale(1); }
    30% { transform: scale(1.35); }
    60% { transform: scale(0.9); }
    100% { transform: scale(1); }
}
.badge-cart.animating {
    animation: cartBounce .4s ease;
}
