@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

:root {
    /* ========= COLORES BASE (se mantienen para compatibilidad JS) ========= */
    --color-fondo: #08080F;
    --color-fondo-2: #0F0F1A;

    --color-primario: #ff0055;
    --color-secundario: #83391e;

    --color-texto-claro: #F0F0FF;
    --color-texto-oscuro: #111111;

    --color-card-fondo: rgba(18, 18, 28, 0.92);
    --color-borde: rgba(255,255,255,0.07);
    --color-hover: rgba(255,255,255,0.06);

    --sombra-primaria: 0 0 20px rgba(240,26,36,0.25);
    --sombra-secundaria: 0 0 20px rgba(255,59,48,0.18);

    /* ========= NUEVAS VARIABLES DE DISEÑO ========= */
    --surface:   #111118;
    --surface-2: #18181F;
    --surface-3: #20202A;
    --muted:     #7878A0;
    --radius:    16px;
    --radius-sm: 10px;
    --radius-xs: 8px;
    --brand:     #ff0055;
    --brand2:    #ff3d7d;
}

/* ==========================================
   RESET & BODY
========================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'DM Sans', 'Segoe UI', sans-serif;
    color: var(--color-texto-claro);
    padding-top: 68px;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 15% 10%, rgba(255, 0, 85, 0.13), transparent 28%),
        radial-gradient(circle at 85% 25%, rgba(120, 91, 255, 0.10), transparent 25%),
        #06070b;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    background-image:
        radial-gradient(rgba(255,255,255,0.18) 1px, transparent 1px),
        radial-gradient(rgba(255,255,255,0.10) 1px, transparent 1px);
    background-size: 120px 120px, 170px 170px;
    background-position: 0 0, 58px 80px;
    opacity: 0.14;
    z-index: -1;
}

/* ==========================================
   SCROLLBAR
========================================== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb {
    background: var(--brand);
    border-radius: 15px;
}

/* ==========================================
   LINKS Y BOTONES GENERALES
========================================== */
a {
    color: var(--color-secundario);
    text-decoration: none;
    transition: 0.3s;
}
a:hover { color: var(--color-primario); }

button { cursor: pointer; font-family: inherit; }

img { max-width: 100%; }

::selection {
    background: rgba(255, 0, 85, 0.28);
    color: #fff;
}

/* ==========================================
   HEADER — sticky glassmorphism
========================================== */
header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    background: rgba(8, 10, 16, 0.9);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 14px 40px rgba(0,0,0,0.28);
    padding: 0 28px;
    height: 68px;
    box-sizing: border-box;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: auto;
    height: 100%;
}

.logo {
    font-family: 'Syne', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(90deg, #ffffff 0%, #ff5b89 40%, #ff0055 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

/* ==========================================
   NAV PRINCIPAL
========================================== */
.nav-principal ul {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0; padding: 0;
}

.nav-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--muted);
    padding: 8px 16px;
    border-radius: var(--radius-xs);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    letter-spacing: 0.1px;
}
.nav-btn:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.08);
    color: var(--color-texto-claro);
}
.nav-btn.active {
    background: linear-gradient(135deg, rgba(255,0,85,0.18), rgba(255,255,255,0.03));
    border-color: rgba(255,0,85,0.35);
    color: var(--color-texto-claro);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

/* ==========================================
   ICONOS HEADER
========================================== */
.header-iconos {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-toggle {
    position: relative;
    background: var(--surface-2);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-xs);
    color: var(--color-texto-claro);
    font-size: 1.1rem;
    width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.cart-toggle:hover {
    background: rgba(240,26,36,0.15);
    border-color: var(--brand);
}

#cart-counter {
    position: absolute;
    top: -6px; right: -6px;
    background: var(--brand);
    color: #fff;
    padding: 2px 6px;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
}

/* Indicador de usuario en header */
#user-indicator {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
}

/* ==========================================
   TICKER DE PUBLICIDAD
   (nuevo elemento — se inserta via JS)
========================================== */
.ad-ticker-wrap {
    background: var(--surface-2);
    border-bottom: 10px solid rgba(255,255,255,0.05);
    overflow: hidden;
    height: 40px;
    display: flex;
    align-items: center;
}
.ad-ticker-track {
    display: flex;
    gap: 0;
    animation: tickerScroll 30s linear infinite;
    width: max-content;
    white-space: nowrap;
}
.ad-ticker-wrap:hover .ad-ticker-track {
    animation-play-state: paused;
}
@keyframes tickerScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.ad-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 28px;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.2s;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    height: 40px;
}
.ad-chip:hover { color: var(--color-texto-claro); }
.ad-chip-icon { font-size: 15px; }

/* ==========================================
   SECCIONES PRINCIPALES
========================================== */
.main-section {
    width: 100%;
    max-width: 1200px; /* un poco menos para que no se estire tanto en pantallas grandes */
    margin: 60px auto;  /* más espacio vertical entre secciones y centrado */
    background: rgba(53, 53, 42, 0.08); /* subí un poco la opacidad para que se note el glass */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px; /* bordes un poco más redondos */
    padding: 48px 40px;  /* más padding para que el contenido no esté pegado */
    text-align: center;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.25); /* sombra más suave */
    box-sizing: border-box;
}

/* Responsive para tablets y móviles */
@media (max-width: 768px) {
    .main-section {
        margin: 40px 16px; /* margen lateral en móvil */
        padding: 32px 20px; /* menos padding en móvil */
        border-radius: 18px;
    }
}

.section-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem); /* se adapta al tamaño de pantalla */
    font-weight: 800;
    margin-bottom: 16px;
    color: #fff;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.section-subtitle {
    color: var(--muted);
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    margin: 0 auto 36px; /* centrado y más espacio abajo */
    line-height: 1.7;
    max-width: 720px; /* para que el texto no se haga una línea gigante */
}

/* ==========================================
   HOME — HERO
========================================== */
#home-section {
    background: none;
    border: none;
    backdrop-filter: none;
    box-shadow: none;
    padding: 0;
    margin: 0 auto 0;
    max-width: 100%;
}

.hero-inner {
    max-width: 1300px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    padding: 60px 32px 48px;
}

.hero-text { text-align: left; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(240,26,36,0.1);
    border: 1px solid rgba(240,26,36,0.28);
    color: #FF7A70;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 16px 6px 12px;
    border-radius: 20px;
    margin-bottom: 1.6rem;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}
.hero-badge-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 0 rgba(240,26,36,0.5);
    animation: badgePulse 2s ease-out infinite;
    flex-shrink: 0;
}
@keyframes badgePulse {
    0%   { box-shadow: 0 0 0 0 rgba(240,26,36,0.45); }
    70%  { box-shadow: 0 0 0 7px rgba(240,26,36,0); }
    100% { box-shadow: 0 0 0 0 rgba(240,26,36,0); }
}

.hero-title {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(36px, 4.5vw, 60px);
    line-height: 1.04;
    letter-spacing: -1.8px;
    color: #fff;
    margin-bottom: 1.3rem;
    text-wrap: balance;
}
.hero-title .highlight {
    background: linear-gradient(90deg, var(--brand), var(--brand2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 420px;
}

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

.hero-stats {
    display: flex;
    gap: 0;
    margin-top: 2.6rem;
    padding-top: 1.8rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.hero-stat-item {
    padding: 0 1.6rem;
    border-right: 1px solid rgba(255,255,255,0.07);
}
.hero-stat-item:first-child { padding-left: 0; }
.hero-stat-item:last-child { border-right: none; }
.stat-num {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 23px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 5px;
}
.stat-num .fa-star { font-size: 15px; color: var(--brand2); }
.stat-lbl {
    font-size: 11.5px;
    color: var(--muted);
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tarjeta visual del hero */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 20px;
}

.hero-visual-glow {
    position: absolute;
    width: 420px; height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(240,26,36,0.16) 0%, rgba(255,59,48,0.05) 45%, transparent 72%);
    pointer-events: none;
    z-index: 0;
}

.hero-visual-grid {
    position: absolute;
    width: 340px; height: 340px;
    background-image: radial-gradient(rgba(255,255,255,0.16) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(circle, #000 40%, transparent 75%);
    mask-image: radial-gradient(circle, #000 40%, transparent 75%);
    pointer-events: none;
    z-index: 0;
}

.hero-card-stack { position: relative; width: 280px; height: 360px; z-index: 1; }

.product-card-hero {
    position: absolute;
    background: var(--surface-2);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 230px; height: 290px;
    box-shadow: 0 20px 50px -12px rgba(0,0,0,0.6);
}
.card-front { top: 0; left: 0; z-index: 2; box-shadow: 0 24px 60px -10px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.04); }
.card-front:hover { transform: translateY(-6px); }

.card-img {
    width: 100%; height: 170px;
    display: flex; align-items: center; justify-content: center;
    font-size: 64px;
}
.card-img.c-red    { background: linear-gradient(135deg, #1A0A10, #2D1020); }

.card-info { padding: 12px 14px; }
.card-info-name { font-weight: 600; font-size: 13px; color: var(--color-texto-claro); }
.card-info-cat  { font-size: 10px; color: var(--muted); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.5px; }
.card-info-price {
    font-family: 'Syne', sans-serif;
    font-weight: 700; font-size: 17px;
    color: var(--brand);
    margin-top: 8px;
}
.card-badge-new {
    position: absolute; top: 10px; left: 10px;
    background: var(--brand); color: #fff;
    font-size: 9px; font-weight: 700;
    padding: 3px 9px; border-radius: 20px;
    letter-spacing: 0.5px;
}

.float-pill {
    position: absolute;
    background: var(--surface-3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 30px;
    padding: 8px 16px 8px 8px;
    display: flex; align-items: center; gap: 9px;
    font-size: 12px; color: var(--color-texto-claro);
    font-weight: 600;
    white-space: nowrap;
    z-index: 3;
    box-shadow: 0 10px 28px rgba(0,0,0,0.45);
    backdrop-filter: blur(10px);
}
.float-pill.p1 { top: -12px; right: -8px; animation: floatY 3s ease-in-out infinite; }
.float-pill.p2 { bottom: 50px; right: -28px; animation: floatY 3s ease-in-out infinite 1.5s; }

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}
.pill-icon {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: rgba(34,197,94,0.16);
    color: #4ADE80;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}
.pill-icon.hot { background: rgba(255,59,48,0.18); color: var(--brand2); }

/* Botones Home */
.home-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 14px;
    margin-top: 0;
    flex-wrap: wrap;
}

/* ==========================================
   BANNERS PROMO (home)
========================================== */
.promo-section {
    max-width: 1250px;
    margin: 0 auto 36px;
    padding: 0 32px;
}
.promo-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 14px;
}
.promo-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 14px;
    height: 220px;
}
.promo-card {
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px 22px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.promo-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.16);
    box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

.promo-card.big { background: linear-gradient(150deg, #1A0510 0%, #350828 60%, #240a1c 100%); }
.promo-card.med { background: linear-gradient(150deg, #05101A 0%, #082030 60%, #061826 100%); }
.promo-card.sml { background: linear-gradient(150deg, #0A1505 0%, #152208 60%, #0e1a06 100%); }

.promo-emoji {
    position: absolute;
    top: 16px; right: 18px;
    font-size: 40px; opacity: 0.9;
    width: 64px; height: 64px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.05);
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.06);
}
.promo-emoji.big-e { font-size: 56px; top: 12px; width: 92px; height: 92px; }

.promo-tag {
    font-size: 10px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    padding: 3px 10px; border-radius: 20px;
    width: fit-content; margin-bottom: 7px;
}
.promo-tag.red   { background: rgba(240,26,36,0.18);  color: #FF7A70; }
.promo-tag.blue  { background: rgba(56,139,253,0.18); color: #79B8FF; }
.promo-tag.green { background: rgba(238, 41, 100, 0.18);  color: #7EE787; }

.promo-title {
    font-family: 'Syne', sans-serif;
    font-weight: 700; font-size: 18px;
    color: #fff; line-height: 1.2;
    letter-spacing: -0.2px;
}
.promo-title.sm { font-size: 15px; }
.promo-sub {
    font-size: 12.5px;
    color: rgba(255,255,255,0.5);
    margin-top: 5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.promo-sub .fa-arrow-right {
    font-size: 10px;
    transition: transform 0.2s;
}
.promo-card:hover .promo-sub .fa-arrow-right { transform: translateX(3px); }

/* ==========================================
   GRAN BANNER PUBLICITARIO (home)
========================================== */
.big-ad {
    max-width: 1250px;
    margin: 0 auto 36px;
    padding: 0 32px;
}
.big-ad-inner {
    background: linear-gradient(120deg, #0D0228 0%, #1A0438 50%, #0D0228 100%);
    border: 1px solid rgba(240,26,36,0.18);
    border-radius: 22px;
    padding: 2.4rem 2.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.big-ad-inner::before {
    content: '';
    position: absolute;
    width: 380px; height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(240,26,36,0.16) 0%, transparent 70%);
    right: -100px; top: -100px;
    pointer-events: none;
}
.big-ad-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    -webkit-mask-image: linear-gradient(120deg, transparent 40%, #000 100%);
    mask-image: linear-gradient(120deg, transparent 40%, #000 100%);
    pointer-events: none;
}
.big-ad-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase;
    color: #FF7A70; margin-bottom: 10px;
}
.big-ad-title {
    font-family: 'Syne', sans-serif;
    font-weight: 800; font-size: 30px;
    color: #fff; line-height: 1.12;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}
.big-ad-sub {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 1.5rem;
}
.big-ad-emoji { font-size: 72px; z-index: 1; filter: drop-shadow(0 10px 24px rgba(0,0,0,0.4)); }

/* ==========================================
   BOTONES ACCIÓN
========================================== */
.btn-publicar {
    border: none;
    border-radius: var(--radius-xs);
    padding: 12px 22px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.25s;
    background: linear-gradient(135deg, var(--brand), #cc2244);
    color: white;
    box-shadow: var(--sombra-primaria);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-publicar:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 8px 24px rgba(240,26,36,0.35);
}

.btn-outline {
    border: 1px solid rgba(255,255,255,0.15);
    background: transparent;
    color: var(--color-texto-claro);
    border-radius: var(--radius-xs);
    padding: 12px 22px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.25s;
}
.btn-outline:hover {
    border-color: rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.05);
}

/* ==========================================
   PRODUCTOS GRID
========================================== */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 22px;
    margin-top: 28px;
}

.producto-card {
    background: var(--surface-2);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
    padding-bottom: 16px;
}
.producto-card:hover {
    transform: translateY(-6px);
    border-color: rgba(240,26,36,0.35);
    box-shadow: 0 12px 32px rgba(0,0,0,0.45), 0 0 18px rgba(240,26,36,0.1);
}
.producto-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
}
.producto-card h3 {
    margin-top: 14px;
    font-size: 1rem;
    font-weight: 600;
    padding: 0 14px;
    color: var(--color-texto-claro);
}
.producto-card .price {
    color: var(--brand);
    font-family: 'Syne', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 10px 14px 12px;
}
.producto-card .btn-publicar,
.producto-card .btn-comprar {
    margin: 0 14px;
    width: calc(100% - 28px);
    justify-content: center;
}

/* ==========================================
   FILTROS CATEGORÍAS
========================================== */
.nav-categorias-principal {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.filtro-btn {
    background: var(--surface-2);
    border: 1px solid rgba(255,255,255,0.07);
    color: var(--muted);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}
.filtro-btn:hover {
    border-color: rgba(255,255,255,0.2);
    color: var(--color-texto-claro);
}
.filtro-btn.active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    box-shadow: var(--sombra-primaria);
}

/* ==========================================
   ACCESO-TILE — tarjetas grandes de entrada
   (Categorías / Ver todo el catálogo)
========================================== */
.paso-inicial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 720px;
    margin: 22px auto 0;
}

.acceso-tile {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    padding: 22px 20px;
    border-radius: var(--radius);
    transition: all 0.25s ease;
    width: 100%;
    height: 100%;
}

.acceso-tile-icon {
    flex-shrink: 0;
    width: 46px; height: 46px;
    border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
}

.acceso-tile-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.acceso-tile-title {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 15.5px;
    color: #fff;
    letter-spacing: -0.1px;
}

.acceso-tile-sub {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.4;
}

.acceso-tile-arrow {
    flex-shrink: 0;
    font-size: 13px;
    color: var(--muted);
    transition: transform 0.25s ease, color 0.25s ease;
}

.acceso-tile:hover .acceso-tile-arrow {
    transform: translateX(4px);
}

/* Variante primaria (Categorías) — el selector doble .acceso-tile.acceso-tile-primary
   iguala/supera la especificidad de .filtro-btn.active para que estos estilos
   siempre ganen, sin depender de !important */
.acceso-tile.acceso-tile-primary {
    background: linear-gradient(135deg, rgba(240,26,36,0.14), rgba(255,59,48,0.08));
    border: 1px solid rgba(240,26,36,0.3);
    color: var(--color-texto-claro);
    box-shadow: 0 10px 28px rgba(240,26,36,0.12);
}
.acceso-tile-primary .acceso-tile-icon {
    background: linear-gradient(135deg, var(--brand), var(--brand2));
    color: #fff;
    box-shadow: 0 6px 16px rgba(240,26,36,0.35);
}
.acceso-tile-primary .acceso-tile-arrow { color: #FF7A70; }
.acceso-tile.acceso-tile-primary:hover {
    border-color: rgba(240,26,36,0.5);
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(240,26,36,0.2);
}

/* Variante outline (Ver todo el catálogo) */
.acceso-tile.acceso-tile-outline {
    background: var(--surface-2);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--color-texto-claro);
}
.acceso-tile-outline .acceso-tile-icon {
    background: rgba(255,255,255,0.06);
    color: var(--color-texto-claro);
}
.acceso-tile.acceso-tile-outline:hover {
    border-color: rgba(255,255,255,0.22);
    background: var(--surface-3);
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(0,0,0,0.35);
}

@media (max-width: 640px) {
    .paso-inicial-grid { grid-template-columns: 1fr; }
    .acceso-tile { padding: 18px 16px; }
}

/* ==========================================
   FORMULARIOS
========================================== */
#form-vende {
    max-width: 680px;
    margin: auto;
    text-align: left;
}
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    text-align: left;
}
.form-group label {
    margin-bottom: 8px;
    color: var(--brand);
    font-weight: 600;
    font-size: 14px;
}
.form-group input,
.form-group textarea,
.form-group select {
    background: var(--surface-2);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-xs);
    padding: 13px 14px;
    color: var(--color-texto-claro);
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.25s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(240,26,36,0.12);
}
.form-group textarea {
    min-height: 120px;
    resize: vertical;
}
.form-group select option {
    background: var(--surface-2);
    color: var(--color-texto-claro);
}

/* ==========================================
   SIDEBAR
========================================== */
#sidebar {
    position: fixed;
    top: 0; right: -320px;
    width: 300px; height: 100%;
    background: rgba(12, 12, 20, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1500;
    padding: 28px;
    box-sizing: border-box;
    border-left: 1px solid rgba(255,255,255,0.06);
}
#sidebar.sidebar-visible { right: 0; }

.logo-sidebar {
    font-family: 'Syne', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--brand), var(--brand2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 32px;
    display: block;
}
.sidebar-nav ul { list-style: none; padding: 0; }
.sidebar-nav li { margin-bottom: 8px; }
.sidebar-nav button {
    width: 100%;
    background: transparent;
    border: 1px solid transparent;
    color: var(--color-texto-claro);
    text-align: left;
    padding: 12px 14px;
    border-radius: var(--radius-xs);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}
.sidebar-nav button:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.08);
}

.menu-cerrar, .cerrar-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-xs);
    color: var(--color-texto-claro);
    font-size: 1rem;
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    float: right;
}
.menu-cerrar:hover, .cerrar-btn:hover {
    background: rgba(240,26,36,0.18);
    border-color: var(--brand);
}

/* ==========================================
   MODALES
========================================== */
.login-modal,
.cart-modal {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.94);
    background: rgba(14, 14, 22, 0.98);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 22px;
    padding: 32px;
    width: 90%; max-width: 420px;
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
}
.login-modal.visible,
.cart-modal.visible {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.login-modal h2, .cart-modal h2 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

/* Tabs del modal */
.modal-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}
.modal-tabs button {
    flex: 1;
    padding: 10px;
    background: none;
    border: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
}

/* Carrito */
.cart-summary { margin-top: 20px; }
.payment-methods h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.payment-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--color-texto-claro);
    cursor: pointer;
}

/* ==========================================
   OVERLAY & UTILIDADES
========================================== */
#overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1400;
    display: none;
}
#overlay.visible { display: block; }

.hidden { display: none !important; }

/* ==========================================
   TOAST NOTIFICATION
========================================== */
.toast-notif {
    position: fixed;
    bottom: 24px; right: 24px;
    z-index: 9999;
    background: var(--surface-3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--color-texto-claro);
    font-weight: 500;
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 8px 28px rgba(0,0,0,0.4);
}
.toast-notif.show {
    opacity: 1;
    transform: translateY(0);
}
.toast-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #22C55E;
    flex-shrink: 0;
}

/* ==========================================
   PANEL ADMIN — tabla mejorada
========================================== */
#usuarios-container table {
    width: 100%;
    border-collapse: collapse;
    border-radius: var(--radius-sm);
    overflow: hidden;
    font-size: 14px;
}
#usuarios-container thead tr {
    background: var(--surface-3);
}
#usuarios-container th,
#usuarios-container td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
#usuarios-container th {
    color: var(--muted);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
#usuarios-container tr:hover td {
    background: rgba(255,255,255,0.03);
}

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

/* ---------- Tablet / 900px ---------- */
@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 32px 20px 28px;
    }
    .hero-text { order: 1; }
    .hero-visual { order: 0; display: none; }
    .hero-sub, .home-buttons { margin-left: auto; margin-right: auto; }
    .home-buttons { justify-content: center; }
    .hero-stats { justify-content: center; flex-wrap: wrap; gap: 1.4rem; }
    .promo-grid { grid-template-columns: 1fr; height: auto; gap: 10px; }
    .promo-card { height: 130px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Mobile / 768px ---------- */
@media (max-width: 768px) {

    body { padding-top: 60px; }

    /* Header */
    header { height: 58px; padding: 0 14px; }
    .logo  { font-size: 1.4rem; }
    .nav-principal { display: none; } /* el menú completo se mueve al sidebar */
    .header-iconos { gap: 8px; }
    #user-indicator { display: none; } /* se repite en el sidebar, no hace falta en el header */
    .cart-toggle, #menu-toggle-btn {
        width: 36px; height: 36px;
        font-size: 1rem;
    }

    /* Ticker */
    .ad-ticker-wrap { height: 34px; }
    .ad-chip { font-size: 11px; padding: 0 16px; height: 34px; }

    /* Secciones */
    .main-section  { margin: 12px; padding: 24px 16px; border-radius: 18px; }
    .section-title { font-size: 1.6rem; }
    .section-subtitle { font-size: 0.92rem; }

    /* Hero */
    .hero-inner { padding: 28px 16px 24px; }
    .hero-title { font-size: clamp(28px, 8vw, 38px); }
    .hero-sub   { font-size: 14px; max-width: 100%; }
    .home-buttons { flex-direction: column; width: 100%; }
    .home-buttons button { width: 100%; justify-content: center; }
    .hero-stats { gap: 1rem; }
    .stat-num { font-size: 19px; }

    /* Promos */
    .promo-section, .big-ad { padding: 0 12px; }
    .promo-label { font-size: 10px; }

    /* Big Ad */
    .big-ad-inner  { flex-direction: column; gap: 14px; text-align: center; padding: 1.8rem 1.4rem; }
    .big-ad-emoji  { font-size: 44px; }
    .big-ad-title  { font-size: 20px; }
    .big-ad-sub    { font-size: 13px; }

    /* Buscador */
    .buscador-wrap { padding: 0 4px; }
    .buscador-input { font-size: 14px; padding: 11px 42px 11px 40px; }

    /* Filtros categorías — scroll horizontal en vez de wrap */
    .nav-categorias-principal {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .nav-categorias-principal::-webkit-scrollbar { display: none; }
    .filtro-btn { flex-shrink: 0; font-size: 12px; padding: 7px 14px; }

    /* Productos */
    .productos-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .producto-card img { height: 150px; }
    .producto-card h3 { font-size: 0.85rem; margin-top: 10px; }
    .producto-card .price { font-size: 1rem; margin: 8px 12px 10px; }
    .producto-card .btn-publicar, .producto-card .btn-comprar { font-size: 12px; padding: 9px 12px; }

    /* Formularios */
    .form-group input, .form-group textarea, .form-group select { font-size: 14px; padding: 11px 12px; }

    /* Modales */
    .login-modal, .cart-modal {
        width: 92%;
        max-width: 360px;
        padding: 24px 20px;
    }

    /* Sidebar — ocupa toda la pantalla en móvil */
    #sidebar { width: 84%; max-width: 320px; }

    /* Dropdowns de SuperAdmin/Admin (en escritorio salen del nav, en móvil van al sidebar) */
    .dropdown-menu { position: static; width: 100%; box-shadow: none; margin-top: 4px; }

    /* Perfil */
    .perfil-card { flex-direction: column; text-align: center; padding: 22px 18px; gap: 14px; }
    .perfil-meta { margin-left: 0; gap: 20px; }
    .perfil-tabs { overflow-x: auto; }
    .perfil-tab  { font-size: 13px; padding: 9px 14px; white-space: nowrap; }

    /* Admin / publicidad / estadísticas — tablas con scroll horizontal */
    #admin-content, #usuarios-container, #publicidad-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    #admin-content table,
    #usuarios-container table,
    #publicidad-container table {
        min-width: 560px;
    }

    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stat-card  { padding: 18px 12px; }
    .stat-card-num { font-size: 20px; }
    .stat-card-icon { font-size: 26px; }

    .admin-product-row { flex-direction: column; align-items: stretch; gap: 12px; }
    .admin-product-actions { justify-content: stretch; }
    .admin-product-actions button { flex: 1; }

    /* Notificaciones */
    #notif-dropdown,
    #notif-dropdown-cliente { width: 280px !important; right: -10px !important; }
}

/* ---------- Mobile pequeño / 420px ---------- */
@media (max-width: 420px) {
    .productos-grid { grid-template-columns: 1fr; }
    .hero-stats { justify-content: space-between; width: 100%; }
    .logo { font-size: 1.25rem; }
}

/* ==========================================
   ROLES BADGES
========================================== */
.rol-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-left: 6px;
}
.rol-badge.rol-superadmin {
    background: rgba(240, 26, 36, 0.18);
    color: #FF3B30;
    border: 1px solid rgba(240,26,36,0.35);
}
.rol-badge.rol-administrador {
    background: rgba(240, 26, 36, 0.15);
    color: #FF7A70;
    border: 1px solid rgba(240,26,36,0.3);
}
.rol-badge.rol-cliente {
    background: rgba(34, 197, 94, 0.15);
    color: #4ADE80;
    border: 1px solid rgba(34,197,94,0.3);
}

/* ==========================================
   PANEL ADMIN — filas de productos pendientes
========================================== */
.admin-product-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--surface-2);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 12px;
    transition: border-color 0.2s;
}
.admin-product-row:hover {
    border-color: rgba(240,26,36,0.25);
}
.admin-product-info {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}
.admin-product-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.btn-aprobar {
    background: rgba(34,197,94,0.15);
    color: #4ADE80;
    border: 1px solid rgba(34,197,94,0.3);
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-aprobar:hover {
    background: rgba(34,197,94,0.3);
}
.btn-rechazar {
    background: rgba(240,26,36,0.12);
    color: #FF7A70;
    border: 1px solid rgba(240,26,36,0.25);
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-rechazar:hover {
    background: rgba(240,26,36,0.28);
}

/* ==========================================
   PUBLICIDAD — filas
========================================== */
.pub-row {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--surface-2);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 10px;
    transition: border-color 0.2s;
}
.pub-row:hover {
    border-color: rgba(240,26,36,0.2);
}

/* ==========================================
   ESTADÍSTICAS — grid de tarjetas
========================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 10px;
}
.stat-card {
    background: var(--surface-2);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    padding: 24px 20px;
    text-align: center;
    transition: all 0.25s;
}
.stat-card:hover {
    border-color: rgba(240,26,36,0.25);
    transform: translateY(-3px);
}
.stat-card.highlight {
    background: linear-gradient(135deg, rgba(240,26,36,0.12), rgba(255,59,48,0.08));
    border-color: rgba(240,26,36,0.3);
}
.stat-card-icon { font-size: 32px; margin-bottom: 10px; }
.stat-card-num {
    font-family: 'Syne', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}
.stat-card-lbl {
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* ==========================================
   VENDE — aviso para clientes
========================================== */
#vende-aviso {
    background: rgba(255,59,48,0.08);
    border: 1px solid rgba(255,59,48,0.2);
    border-radius: 8px;
    padding: 8px 14px;
    display: inline-block;
    margin-top: 10px;
}

/* ==========================================
   DROPDOWN MENÚ — Panel SuperAdmin / Admin
========================================== */
.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
}
.dropdown-arrow {
    font-size: 11px;
    transition: transform 0.2s;
}
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: rgba(14, 14, 22, 0.98);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
    padding: 6px;
    min-width: 200px;
    z-index: 2000;
    box-shadow: 0 12px 36px rgba(0,0,0,0.55);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: transparent;
    border: none;
    color: var(--color-texto-claro);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 14px;
    border-radius: var(--radius-xs);
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
}
.dropdown-item:hover {
    background: rgba(240, 26, 36, 0.12);
    color: #fff;
}

/* ==========================================
   PERFIL DE USUARIO
========================================== */
.perfil-card {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--surface-2);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 20px;
    padding: 28px 32px;
    margin-bottom: 28px;
    text-align: left;
    flex-wrap: wrap;
}

.perfil-avatar {
    width: 72px; height: 72px;
    background: linear-gradient(135deg, rgba(240,26,36,0.2), rgba(255,59,48,0.15));
    border: 2px solid rgba(240,26,36,0.3);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
}

.perfil-info {
    flex: 1;
}
.perfil-nombre {
    font-family: 'Syne', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.perfil-meta {
    display: flex;
    gap: 28px;
    margin-left: auto;
}
.perfil-meta-item { text-align: center; }
.perfil-meta-num {
    font-family: 'Syne', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--brand);
}
.perfil-meta-lbl {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tabs del perfil */
.perfil-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    margin-bottom: 24px;
}
.perfil-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--muted);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: -1px;
}
.perfil-tab:hover { color: var(--color-texto-claro); }
.perfil-tab.active {
    color: var(--brand);
    border-bottom-color: var(--brand);
}

.perfil-tab-content { text-align: left; }

/* Filas de mis productos */
.mi-producto-row {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--surface-2);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 10px;
    transition: border-color 0.2s;
}
.mi-producto-row:hover { border-color: rgba(240,26,36,0.2); }
.mi-producto-row img {
    width: 56px; height: 56px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}
.mi-producto-info { flex: 1; }
.mi-producto-nombre {
    font-weight: 600;
    font-size: 14px;
    color: var(--color-texto-claro);
}
.mi-producto-meta {
    font-size: 12px;
    color: var(--muted);
    margin-top: 3px;
}

/* Estado badges */
.estado-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    flex-shrink: 0;
}
.estado-aprobado  { background: rgba(34,197,94,0.15);  color: #4ADE80; border: 1px solid rgba(34,197,94,0.3); }
.estado-pendiente { background: rgba(255,59,48,0.15); color: #FF9A6C; border: 1px solid rgba(255,59,48,0.3); }
.estado-rechazado { background: rgba(240,26,36,0.15);  color: #FF7A70; border: 1px solid rgba(240,26,36,0.3); }

/* Filas de compras */
.mi-compra-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--surface-2);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-bottom: 10px;
    transition: border-color 0.2s;
}
.mi-compra-row:hover { border-color: rgba(240,26,36,0.2); }
.mi-compra-icon {
    font-size: 28px;
    flex-shrink: 0;
}
.mi-compra-info { flex: 1; }
.mi-compra-total {
    font-family: 'Syne', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--brand);
}
.mi-compra-meta {
    font-size: 12px;
    color: var(--muted);
    margin-top: 3px;
}

/* ==========================================
   BUSCADOR DE PRODUCTOS
========================================== */
.buscador-wrap {
    margin: 0 auto 24px;
    max-width: 560px;
}

.buscador-inner {
    position: relative;
    display: flex;
    align-items: center;
}

.buscador-icon {
    position: absolute;
    left: 16px;
    color: var(--muted);
    font-size: 15px;
    pointer-events: none;
    transition: color 0.2s;
}

.buscador-input {
    width: 100%;
    background: var(--surface-2);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50px;
    padding: 13px 48px 13px 44px;
    color: var(--color-texto-claro);
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    transition: all 0.25s;
    outline: none;
}

.buscador-input::placeholder {
    color: var(--muted);
}

.buscador-input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(240,26,36,0.12);
    background: var(--surface-3);
}

.buscador-input:focus + .buscador-icon,
.buscador-inner:focus-within .buscador-icon {
    color: var(--brand);
}

.buscador-clear {
    position: absolute;
    right: 12px;
    background: rgba(255,255,255,0.08);
    border: none;
    color: var(--muted);
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.buscador-clear:hover {
    background: rgba(240,26,36,0.2);
    color: var(--brand);
}

.buscador-contador {
    text-align: center;
    font-size: 13px;
    color: var(--muted);
    margin-top: 10px;
}
.buscador-contador span {
    color: var(--brand);
    font-weight: 700;
}

/* ==========================================
   NOTIFICACIONES — Admin y SuperAdmin
========================================== */
#notif-counter {
    position: absolute;
    top: -6px; right: -6px;
    background: var(--brand);
    color: #fff;
    padding: 2px 6px;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
}

.notif-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: background 0.2s;
}
.notif-item:hover {
    background: rgba(255,255,255,0.05);
}

.notif-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.notif-text { flex: 1; }
.notif-text strong {
    font-size: 13px;
    color: var(--color-texto-claro);
    display: block;
}
.notif-sub {
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px;
}

/* ==========================================
   SIDEBAR — links extra (móvil)
========================================== */
.sb-nav-link {
    width: 100%;
    background: transparent;
    border: 1px solid transparent;
    color: var(--color-texto-claro);
    text-align: left;
    padding: 12px 14px;
    border-radius: var(--radius-xs);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}
.sb-nav-link:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.08);
}
.sb-nav-link.active {
    background: rgba(240,26,36,0.12);
    border-color: rgba(240,26,36,0.25);
    color: #fff;
}

.sidebar-divider {
    height: 1px;
    background: rgba(255,255,255,0.07);
    margin: 14px 0;
}

#sb-admin-links button {
    width: 100%;
    background: transparent;
    border: 1px solid transparent;
    color: var(--color-texto-claro);
    text-align: left;
    padding: 12px 14px;
    border-radius: var(--radius-xs);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}
#sb-admin-links button:hover {
    background: rgba(255,59,48,0.1);
    border-color: rgba(255,59,48,0.2);
}

/* ==========================================
   FINANZAS — panel de ingresos detallado
========================================== */
.finanzas-periodos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 32px;
}

.periodo-card {
    background: var(--surface-2);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius);
    padding: 20px 18px;
    text-align: left;
    transition: all 0.25s;
}
.periodo-card:hover {
    border-color: rgba(240,26,36,0.25);
    transform: translateY(-2px);
}
.periodo-card.activo-hoy {
    background: linear-gradient(135deg, rgba(240,26,36,0.1), rgba(255,59,48,0.06));
    border-color: rgba(240,26,36,0.3);
}

.periodo-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
}
.periodo-monto {
    font-family: 'Syne', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}
.periodo-ventas {
    font-size: 12px;
    color: var(--muted);
}

.finanzas-subtitle {
    font-family: 'Syne', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 28px 0 14px;
    text-align: left;
}

.finanzas-grafica-wrap {
    margin-bottom: 8px;
}

.finanzas-grafica {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 180px;
    padding: 16px;
    background: var(--surface-2);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-sm);
}

.barra-grupo {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
    gap: 6px;
}

.barra {
    width: 100%;
    max-width: 36px;
    background: linear-gradient(180deg, var(--brand2), var(--brand));
    border-radius: 6px 6px 2px 2px;
    min-height: 4px;
    transition: all 0.3s;
    position: relative;
}
.barra:hover { filter: brightness(1.15); }

.barra-valor {
    font-size: 10px;
    color: var(--muted);
    white-space: nowrap;
}

.barra-label {
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
    margin-top: 4px;
}

.finanzas-empty {
    text-align: center;
    color: var(--muted);
    padding: 30px;
    font-size: 13px;
}

#finanzas-tabla-container table {
    margin-top: 4px;
}

/* ==========================================
   RENDIMIENTO — Mi Rendimiento (Cliente)
========================================== */
.rendimiento-resumen {
    display: flex;
    gap: 32px;
    background: var(--surface-2);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 20px;
    text-align: left;
}

.rendimiento-producto-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--surface-2);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 10px;
}

.rendimiento-producto-info { flex: 1; text-align: left; }
.rendimiento-producto-info strong {
    font-size: 14px;
    color: var(--color-texto-claro);
}

.rendimiento-barra-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 160px;
}
.rendimiento-barra-bg {
    flex: 1;
    height: 8px;
    background: rgba(255,255,255,0.07);
    border-radius: 20px;
    overflow: hidden;
}
.rendimiento-barra-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--brand2), var(--brand));
    border-radius: 20px;
    transition: width 0.4s ease;
}
.rendimiento-porcentaje {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: var(--brand);
    min-width: 40px;
    text-align: right;
}

/* ==========================================
   RENDIMIENTO DE CLIENTES — SuperAdmin
========================================== */
.cliente-perf-card {
    background: var(--surface-2);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin-bottom: 14px;
    text-align: left;
}

.cliente-perf-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.cliente-perf-total {
    font-family: 'Syne', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--brand);
}

.cliente-perf-meta {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 12px;
}

.cliente-perf-top {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cliente-perf-top-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--color-texto-claro);
}

/* ==========================================
   FILTROS — Género y Talla
========================================== */
.filtro-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
    margin: 24px 0 12px;
    text-align: center;
}

.filtro-divider {
    width: 60px;
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 18px auto 0;
}

.nav-genero,
.nav-tallas {
    margin-top: 0;
}

.filtro-genero,
#nav-tallas .filtro-btn {
    font-size: 12px;
    padding: 7px 16px;
}

#filtro-talla-wrap {
    margin-top: 4px;
}.preview-imagen{

    margin-top:15px;
    text-align:center;

}

.preview-imagen img{

    width:180px;
    height:180px;

    object-fit:cover;

    border-radius:12px;

    border:2px solid #36393f;

    background:#1d1f27;

}


/* =========================================================
   ShOPIseLL — REDISEÑO VISUAL BETA
   Referencia: marketplace oscuro premium con acentos rojo/fucsia.
   Esta capa queda al final para sobrescribir el legacy sin romper IDs.
========================================================= */
:root {
    --surface: #090b10;
    --surface-2: #151821;
    --surface-3: #1b1f2a;
    --brand: #ff0055;
    --brand2: #ff3d7d;
    --accent-violet: #7b72ff;
    --line-soft: rgba(255,255,255,.09);
    --text-main: #f8f8fb;
    --muted: #a1a5b2;
    --shadow-premium: 0 22px 70px rgba(0,0,0,.42);
}

html { background: #050609; }
body {
    background:
        radial-gradient(circle at 78% 10%, rgba(104,54,110,.13), transparent 28%),
        radial-gradient(circle at 15% 40%, rgba(245,31,72,.06), transparent 30%),
        #050609;
    color: var(--text-main);
}

.ad-ticker-wrap {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1200;
    height: 38px;
    background: #050609;
    border-bottom: 1px solid rgba(255,255,255,.10);
}
.ad-ticker-track { animation-duration: 42s; }
.ad-chip { font-size: 12px; letter-spacing: .01em; color: #eef0f5; }
.ad-chip + .ad-chip::before { color: #626875; }

header {
    top: 38px;
    height: 78px;
    background: rgba(5,6,9,.90);
    border-bottom: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 12px 34px rgba(0,0,0,.26);
}
.header-content {
    max-width: 1460px;
    min-height: 78px;
    padding: 0 28px;
    gap: 24px;
}
.logo {
    flex: 0 0 auto;
    font-size: 29px;
    letter-spacing: -1.6px;
    background: none;
    -webkit-text-fill-color: initial;
    color: #fff;
}
.logo-light { color: #fff; }
.logo-accent { color: var(--brand); }
.nav-principal { flex: 0 0 auto; }
.nav-principal ul { gap: 4px; }
.nav-btn {
    color: #e5e7ed;
    padding: 1px 14px;
    border-radius: 9px;
    font-size: 14px;
}
.nav-btn:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-btn.active {
    position: relative;
    color: #fff;
    background: linear-gradient(180deg, rgba(245,31,72,.16), rgba(245,31,72,.04));
    border-color: transparent;
}
.nav-btn.active::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: -21px;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: var(--brand);
    box-shadow: 0 0 16px rgba(245,31,72,.95);
}
.header-search {
    display: flex;
    align-items: center;
    flex: 1 1 430px;
    max-width: 470px;
    min-width: 190px;
    height: 46px;
    margin-left: auto;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    background: rgba(17, 17, 23, 0.9);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}
.header-search > i { color: #8f95a2; margin-left: 15px; font-size: 14px; }
.header-search input {
    min-width: 0;
    flex: 1;
    height: 100%;
    padding: 0 12px;
    background: transparent;
    border: 0;
    outline: 0;
    color: #fff;
    font: inherit;
    font-size: 13px;
}
.header-search input::placeholder { color: #8c909b; }
.header-search button {
    width: 48px;
    height: 100%;
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), #d9163c);
    cursor: pointer;
    transition: filter .2s ease, transform .2s ease;
}
.header-search button:hover { filter: brightness(1.08); transform: translateX(-1px); }
.header-iconos { gap: 9px; }
.cart-toggle, #menu-toggle-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 50%;
    color: #f4f5f8;
    background: transparent;
}
.cart-toggle:hover, #menu-toggle-btn:hover { background: rgba(245,31,72,.14); border-color: rgba(245,31,72,.45); }

main { padding-top: 132px; }
.main-section {
    max-width: 1460px;
    margin: 24px auto 46px;
    padding: 0 0 30px;
    background: transparent;
    border: 0;
    box-shadow: none;
}
#home-section { max-width: 1460px; }
.hero-inner {
    position: relative;
    min-height: 430px;
    margin: 0 28px;
    padding: 48px 58px 28px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 30px;
    background:
        linear-gradient(125deg, rgba(8,10,17,1) 0%, rgba(24,13,23,0.98) 42%, rgba(18,18,26,0.94) 100%);
    box-shadow: 0 25px 60px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.05);
}
.hero-inner::after {
    content: "";
    position: absolute;
    right: -10%;
    bottom: -55%;
    width: 72%;
    height: 120%;
    background: radial-gradient(ellipse, rgba(255,31,72,.30), transparent 65%);
    pointer-events: none;
}
.hero-text { position: relative; z-index: 2; max-width: 560px; }
.hero-badge {
    padding: 8px 14px;
    border-color: rgba(245,31,72,.55);
    background: rgba(245,31,72,.10);
    color: #ff6a82;
}
.hero-title {
    margin-top: 20px;
    font-size: clamp(44px, 5vw, 72px);
    line-height: .98;
    letter-spacing: -3px;
}
.hero-title .highlight { color: var(--brand); background: none; -webkit-text-fill-color: initial; }
.hero-sub { max-width: 510px; color: #b4b5bf; font-size: 16px; }
.home-buttons .btn-publicar, .home-buttons .btn-outline {
    min-height: 50px;
    padding: 0 22px;
    border-radius: 10px;
}
.home-buttons .btn-publicar { box-shadow: 0 12px 24px rgba(245,31,72,.25); }
.hero-stats { max-width: 610px; margin-top: 2rem; padding: 18px 0 0; }
.hero-stat-item { padding: 0 1.55rem; }
.hero-stat-item:first-child { padding-left: 0; }
.stat-num { font-size: 21px; }
.hero-visual { z-index: 1; }
.hero-visual-glow { width: 520px; height: 520px; background: radial-gradient(circle, rgba(245,31,72,.38), rgba(123,114,255,.08) 46%, transparent 72%); }
.hero-card-stack { transform: rotate(3deg) translate(18px, 6px); }
.float-pill { border-color: rgba(255,255,255,.15); background: rgba(12,13,19,.86); box-shadow: 0 12px 26px rgba(0,0,0,.35); }

.home-category-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(110px, 1fr)) minmax(140px, 1.2fr);
    gap: 12px;
    margin: 12px 28px 0;
}
.home-category-card {
    min-height: 108px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 15px;
    background: linear-gradient(145deg, #171a22, #0e1016);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: transform .22s ease, border-color .22s ease, background .22s ease;
}
.home-category-card:hover { transform: translateY(-4px); border-color: rgba(245,31,72,.5); background: linear-gradient(145deg, #24202a, #15111a); }
.home-category-icon {
    width: 48px; height: 48px; display: grid; place-items: center;
    border-radius: 13px; font-size: 28px; font-weight: 700;
    background: rgba(255,255,255,.08); color: #ffb347;
}
.category-icon-tech { color: #67a2ff; }
.category-icon-home { color: #89e07f; }
.category-icon-sport { color: #ff7b58; }
.category-icon-beauty { color: #ff6ba5; }
.category-icon-pets { color: #c09cff; }
.home-category-more { flex-direction: row; justify-content: space-around; padding: 18px; color: #e8e9ee; }
.home-category-more i { color: var(--brand); }

.home-trust-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin: 12px 28px 0;
    padding: 14px 18px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 15px;
    background: rgba(20,22,29,.92);
}
.home-trust-item { display: flex; align-items: center; gap: 12px; padding: 8px 24px; border-right: 1px solid rgba(255,255,255,.08); }
.home-trust-item { width: 100%; border-top: 0; border-left: 0; border-bottom: 0; color: inherit; background: transparent; text-align: left; cursor: pointer; font: inherit; transition: background .18s, transform .18s; }
.home-trust-item:hover { background: rgba(255,255,255,.045); transform: translateY(-1px); }
.home-trust-item:last-child { border-right: 0; }
.home-trust-icon { color: #ffac36; font-size: 26px; }
.home-trust-arrow { margin-left: auto; color: var(--brand); font-size: 11px; opacity: .8; }
.home-trust-item:nth-child(2) .home-trust-icon { color: #79a6ff; }
.home-trust-item:nth-child(3) .home-trust-icon { color: var(--brand); }
.home-trust-item:nth-child(4) .home-trust-icon { color: #ff9a44; }
.home-trust-item strong, .home-trust-item small { display: block; }
.home-trust-item strong { font-size: 14px; }
.home-trust-item small { margin-top: 4px; color: #9da1ad; font-size: 11px; }

.home-info-modal { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 20px; }
.home-info-modal.hidden { display: none; }
.home-info-backdrop { position: absolute; inset: 0; background: rgba(4,6,13,.78); backdrop-filter: blur(4px); }
.home-info-dialog { position: relative; width: min(520px, 100%); padding: 28px; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: #151821; box-shadow: 0 24px 80px rgba(0,0,0,.45); color: #fff; }
.home-info-close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; color: #cbd0dc; background: rgba(255,255,255,.07); cursor: pointer; }
.home-info-kicker { color: var(--brand); font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
.home-info-dialog h2 { margin: 8px 38px 10px 0; font-size: 24px; }
.home-info-dialog p { color: #b7bdca; line-height: 1.6; font-size: 14px; }
.home-info-dialog ul { margin: 14px 0 0; padding-left: 20px; color: #dfe2ea; line-height: 1.8; font-size: 13px; }
.home-info-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.home-info-action { display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; color: #fff; background: rgba(255,255,255,.06); cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; }
.home-info-action:hover { border-color: var(--brand); color: var(--brand); }

.home-featured-showcase {
    margin: 12px 28px 0;
    padding: 18px 18px 20px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(16,18,25,.94), rgba(9,11,16,.96));
    box-shadow: 0 18px 44px rgba(0,0,0,.16);
}
.home-featured-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.home-featured-kicker { margin: 0 0 4px; color: #8e93a1; text-transform: uppercase; letter-spacing: 1.5px; font-size: 10px; font-weight: 700; }
.home-featured-head h2 { margin: 0; font-size: 25px; letter-spacing: -.6px; }
.home-featured-head h2 span { color: var(--brand); }
.home-featured-link { border: 0; background: transparent; color: #fff; cursor: pointer; font: inherit; font-size: 13px; }
.home-featured-link i { margin-left: 8px; color: var(--brand); }
.home-featured-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.home-featured-card { overflow: hidden; border: 1px solid rgba(255,255,255,.09); border-radius: 14px; background: #151821; transition: transform .22s ease, border-color .22s ease; }
.home-featured-card:hover { transform: translateY(-4px); border-color: rgba(245,31,72,.45); }
.home-social-box {
    margin: 16px 28px 0;
    padding: 18px 18px 14px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(24,20,32,.98), rgba(13,15,22,.96));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 16px 34px rgba(0,0,0,.12);
}
.home-social-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.home-social-kicker { display: block; color: #ff7fb2; text-transform: uppercase; letter-spacing: 1.2px; font-size: 10px; font-weight: 800; }
.home-social-head h3 { margin: 6px 0 0; color: #fff; font-size: 20px; }
.home-social-link { color: #fff; text-decoration: none; font-size: 12px; font-weight: 700; opacity: 0.9; }
.home-social-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.home-social-links a {
    display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border-radius: 12px; border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.03); color: #fff; text-decoration: none; font-weight: 600; font-size: 13px; transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.home-social-links a:hover { border-color: rgba(255, 107, 170, 0.5); background: rgba(255, 107, 170, 0.08); transform: translateY(-1px); }
.home-social-links i { color: #ff7fb2; }
.home-featured-media { position: relative; height: 164px; overflow: hidden; background: #20232d; }
.home-featured-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-featured-badge { position: absolute; left: 9px; top: 9px; z-index: 1; padding: 4px 7px; border-radius: 5px; color: #fff; background: var(--brand); font-size: 10px; font-weight: 800; }
.home-featured-badge-new { background: #20b966; }
.home-featured-cart { position: absolute; right: 9px; bottom: 9px; width: 34px; height: 34px; border: 0; border-radius: 9px; color: #fff; background: var(--brand); cursor: pointer; box-shadow: 0 6px 14px rgba(245,31,72,.35); }
.home-featured-cart:disabled { opacity: .45; cursor: not-allowed; }
.home-featured-body { padding: 12px; }
.home-featured-category { color: #8f94a1; font-size: 10px; }
.home-featured-body h3 { margin: 6px 0 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.home-featured-price { color: #fff; font-size: 15px; font-weight: 800; }
.home-featured-price del { margin-left: 4px; color: #777b87; font-size: 10px; font-weight: 400; }
.home-featured-body small { display: block; margin-top: 7px; color: #8f94a1; font-size: 10px; }
.home-featured-empty { grid-column: 1 / -1; padding: 30px; color: #9297a4; text-align: center; }

.promo-section, .big-ad-wrap { margin-left: 28px; margin-right: 28px; }
.promo-section { margin-top: 18px; }
.big-ad-wrap { border-radius: 16px; }

#tienda-section { padding-top: 4px; }
.tienda-online-head { border: 1px solid rgba(255,255,255,.09); border-radius: 18px; background: rgba(17,19,26,.86); }
.catalogo-toolbar, .buscador-wrap, .filtro-cascada { border-color: rgba(255,255,255,.10); background: rgba(16,18,25,.72); }
.productos-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 20px; }
.producto-card { border-radius: 15px; background: #151821; border-color: rgba(255,255,255,.09); }
.producto-card:hover { transform: translateY(-5px); border-color: rgba(245,31,72,.48); box-shadow: 0 18px 34px rgba(0,0,0,.38); }
.producto-card img { height: 220px; }
.producto-card .btn-comprar { border-radius: 9px; }

@media (max-width: 1180px) {
    .header-content { gap: 12px; padding: 0 18px; }
    .nav-btn { padding-left: 9px; padding-right: 9px; }
    .home-category-strip { grid-template-columns: repeat(4, 1fr); }
    .home-featured-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .home-social-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
    .home-featured-showcase,
    .home-social-box,
    .hero-inner,
    .promo-section,
    .big-ad-wrap { margin-left: 16px; margin-right: 16px; }
    .home-featured-head,
    .home-social-head { flex-direction: column; align-items: flex-start; }
    .home-featured-head h2,
    .home-social-head h3 { font-size: clamp(20px, 2vw, 26px); }
    .home-featured-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .home-social-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    header { top: 38px; }
    .header-content { min-height: 72px; }
    .header-search { order: 5; flex-basis: 100%; max-width: none; margin: 4px 0 0; }
    header { height: auto; }
    main { padding-top: 172px; }
    .hero-inner { margin: 0 14px; padding: 38px 28px 26px; }
    .home-category-strip, .home-trust-strip, .home-featured-showcase, .home-social-box, .promo-section, .big-ad-wrap { margin-left: 14px; margin-right: 14px; }
    .home-featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-trust-strip { grid-template-columns: repeat(2, 1fr); }
    .home-trust-item:nth-child(2) { border-right: 0; }
    .home-trust-item:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.08); }
}
@media (max-width: 768px) {
    .home-featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-social-links { grid-template-columns: 1fr 1fr; }
    .hero-title { font-size: clamp(32px, 8vw, 44px); }
    .hero-sub { max-width: 100%; }
    .home-featured-card .home-featured-media { height: 148px; }
}
@media (max-width: 640px) {
    .ad-ticker-wrap { height: 34px; }
    header { top: 34px; }
    main { padding-top: 160px; }
    .logo { font-size: 24px; }
    .nav-principal { display: none; }
    .header-iconos { margin-left: auto; }
    .hero-inner { min-height: auto; padding: 32px 22px 22px; border-radius: 18px; }
    .hero-title { font-size: 45px; letter-spacing: -2px; }
    .hero-visual { display: none; }
    .hero-stats { gap: 14px 0; flex-wrap: wrap; }
    .hero-stat-item { padding: 0 12px; }
    .home-category-strip { grid-template-columns: repeat(2, 1fr); }
    .home-category-card { min-height: 92px; }
    .home-category-more { grid-column: span 2; }
    .home-trust-strip { grid-template-columns: 1fr; padding: 10px; }
    .home-trust-item, .home-trust-item:nth-child(-n+2) { padding: 10px 12px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
    .home-trust-item:last-child { border-bottom: 0; }
    .home-featured-grid { grid-template-columns: 1fr; }
    .home-featured-media { height: 136px; }
    .home-featured-head h2 { font-size: 20px; }
    .home-featured-link { font-size: 11px; }
    .home-social-links { grid-template-columns: 1fr; }
}


/* ==========================================
   EXTENSIONES SOLICITADAS — AUTH / VENDE / PAGOS
========================================== */
.auth-tab {
    flex: 1;
    padding: 10px;
    background: none;
    color: var(--muted);
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    font-family: inherit;
}
.auth-tab.active { color: #fff; border-bottom-color: var(--brand); }
.security-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 15px;
    margin: 14px 0 20px;
    border: 1px solid rgba(45, 212, 191, 0.24);
    border-radius: var(--radius-xs);
    background: rgba(45, 212, 191, 0.08);
    color: var(--color-texto-claro);
    font-size: 12px;
    line-height: 1.45;
}
.security-banner i { color: #2dd4bf; margin-top: 2px; }
.auth-security-banner { margin: 18px 0; }
.auth-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    margin-top: 10px;
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-xs);
    color: var(--color-texto-claro);
    background: rgba(255,255,255,0.05);
    text-decoration: none;
    font-weight: 600;
    transition: all .2s ease;
}
.auth-google-btn:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.09); }
.otp-panel {
    padding: 10px 0 4px;
    text-align: center;
}
.otp-panel h3 { margin: 8px 0; color: var(--color-texto-claro); font-size: 17px; }
.otp-panel p { color: var(--muted); font-size: 13px; line-height: 1.5; }
.otp-input {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    letter-spacing: 9px;
    font-size: 22px;
    font-weight: 700;
    margin: 12px 0;
    background: var(--surface-2);
    color: var(--color-texto-claro);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-xs);
    padding: 12px;
}
.auth-hint, .field-hint { display: block; color: var(--muted); font-size: 12px; line-height: 1.45; margin-top: 7px; }
.vende-shell { max-width: 980px; }
.section-kicker { color: var(--brand); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.vende-aviso { display: block; margin-top: 8px; color: var(--brand2); font-size: 13px; }
.vende-security-banner { max-width: 760px; margin-left: auto; margin-right: auto; }
.vende-form-card {
    max-width: 920px;
    margin: 24px auto 0;
    padding: clamp(20px, 4vw, 34px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018));
    box-shadow: 0 20px 55px rgba(0,0,0,.16);
}
.vende-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.vende-form-grid .form-group { margin-bottom: 16px; }
.media-upload-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.media-upload-card { padding: 16px; border: 1px dashed rgba(255,255,255,.14); border-radius: var(--radius-xs); background: rgba(0,0,0,.12); }
.media-upload-card label { display: flex; align-items: center; gap: 8px; }
.media-upload-card input[type=file] { padding: 10px; }
.media-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; margin-top: 12px; }
.media-preview-item { position: relative; overflow: hidden; border-radius: 10px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); }
.media-preview-item img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.media-preview-item span { display: block; padding: 5px 6px; color: var(--muted); font-size: 10px; text-align: center; }
.media-preview-360 { border-color: rgba(45,212,191,.35); }
.payment-method-label { display: block; margin: 14px 0 7px; color: var(--color-texto-claro); font-size: 12px; font-weight: 700; }
.payment-method-select { width: 100%; padding: 11px 12px; border-radius: var(--radius-xs); border: 1px solid rgba(255,255,255,.1); background: var(--surface-2); color: var(--color-texto-claro); font-family: inherit; }
@media (max-width: 700px) {
    .vende-form-grid, .media-upload-grid { grid-template-columns: 1fr; }
    .vende-form-card { padding: 18px; }
}


/* ==========================================
   CUENTA — perfil y seguridad
========================================== */
.perfil-cuenta-panel {
    margin: 0 0 24px;
    padding: clamp(18px, 3vw, 28px);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(18,20,29,.98), rgba(10,12,18,.96));
    box-shadow: 0 18px 46px rgba(0,0,0,.22);
}
.perfil-cuenta-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; margin-bottom:22px; }
.perfil-cuenta-head h3 { margin: 3px 0 7px; font-family:'Syne',sans-serif; font-size:20px; color:#fff; }
.perfil-kicker { margin:0; color:var(--brand2); font-size:11px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.perfil-panel-help { margin:0; color:var(--muted); font-size:13px; line-height:1.5; }
.perfil-security-pill { display:inline-flex; align-items:center; gap:7px; white-space:nowrap; padding:8px 11px; border:1px solid rgba(34,197,94,.25); border-radius:999px; color:#8ff0ae; background:rgba(34,197,94,.08); font-size:11px; font-weight:700; }
.perfil-cuenta-grid { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(280px,.8fr); gap:16px; align-items:start; }
.perfil-form-card { min-width:0; padding:18px; border:1px solid rgba(255,255,255,.08); border-radius:var(--radius-sm); background:rgba(255,255,255,.025); }
.perfil-form-card-title { display:flex; align-items:center; gap:8px; margin-bottom:16px; color:#fff; font-family:'Syne',sans-serif; font-size:15px; font-weight:700; }
.perfil-form-card-title i { color:var(--brand2); }
.perfil-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 14px; }
.perfil-form-card .form-group { margin-bottom:14px; }
.perfil-form-card .form-group label { color:#d7d9e4; font-size:12px; }
.perfil-form-card .form-group label span { color:var(--brand2); }
.perfil-form-card input[readonly] { color:#9da1ad; cursor:not-allowed; opacity:.9; }
.auth-resend-btn { display:block; width:100%; margin-top:10px; border:0; background:transparent; color:var(--brand2); font-size:12px; font-weight:700; }
.auth-resend-btn:hover { color:#fff; }
@media (max-width: 780px) {
    .perfil-cuenta-head { flex-direction:column; }
    .perfil-cuenta-grid, .perfil-form-grid { grid-template-columns:1fr; }
}


/* ==========================================
   DETALLE DE PRODUCTO — Home / Marketplace / tiendas
========================================== */
.producto-detalle-modal {
    position: fixed;
    inset: 50% auto auto 50%;
    width: min(1000px, calc(100% - 28px));
    max-height: min(760px, calc(100vh - 30px));
    overflow-y: auto;
    transform: translate(-50%, -46%) scale(.97);
    opacity: 0;
    visibility: hidden;
    z-index: 2100;
    padding: clamp(18px, 3vw, 30px);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(20,22,31,.99), rgba(9,11,17,.99));
    box-shadow: 0 28px 90px rgba(0,0,0,.65);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.producto-detalle-modal.visible { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.producto-detalle-close { z-index: 2; }
.producto-detalle-layout { display:grid; grid-template-columns:minmax(0,1.08fr) minmax(280px,.92fr); gap:28px; align-items:center; }
.producto-detalle-gallery { min-width:0; }
.producto-detalle-gallery-top { display:flex; align-items:center; gap:10px; min-height:27px; margin-bottom:10px; }
.producto-detalle-gallery-label { color:#fff; font-size:12px; font-weight:800; }
.producto-detalle-gallery-counter { margin-left:auto; color:var(--muted); font-size:12px; }
.producto-detalle-gallery-modes { display:flex; gap:6px; flex-wrap:wrap; margin:0 0 12px; }
.producto-detalle-mode { border:1px solid rgba(255,255,255,.1); border-radius:999px; padding:7px 10px; color:var(--muted); background:rgba(255,255,255,.03); font-size:11px; font-weight:700; }
.producto-detalle-mode.active, .producto-detalle-mode:hover { color:#fff; border-color:var(--brand); background:rgba(240,26,36,.15); }
.producto-detalle-image-wrap { position:relative; display:flex; align-items:center; justify-content:center; min-height:420px; overflow:hidden; border:1px solid rgba(255,255,255,.08); border-radius:16px; background:linear-gradient(135deg,#20232d,#10121a); }
.producto-detalle-image-wrap img { display:block; width:100%; height:420px; object-fit:contain; }
.producto-detalle-arrow { position:absolute; top:50%; transform:translateY(-50%); z-index:1; width:36px; height:36px; border:1px solid rgba(255,255,255,.13); border-radius:50%; color:#fff; background:rgba(8,8,15,.72); }
.producto-detalle-arrow:first-child { left:12px; }
.producto-detalle-arrow:last-child { right:12px; }
.producto-detalle-arrow:disabled { opacity:.3; cursor:not-allowed; }
.producto-detalle-thumbs { display:flex; gap:8px; overflow-x:auto; padding:10px 1px 2px; }
.producto-detalle-thumb { flex:0 0 60px; height:60px; padding:0; overflow:hidden; border:1px solid rgba(255,255,255,.1); border-radius:9px; background:var(--surface-2); }
.producto-detalle-thumb.active { border-color:var(--brand2); box-shadow:0 0 0 2px rgba(240,26,36,.18); }
.producto-detalle-thumb img { width:100%; height:100%; object-fit:cover; }
.producto-detalle-category { display:inline-flex; margin-bottom:10px; color:var(--brand2); font-size:11px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.producto-detalle-info h2 { margin:0 0 9px; color:#fff; font-family:'Syne',sans-serif; font-size:clamp(22px,3vw,34px); line-height:1.1; }
.producto-detalle-store { margin:0 0 18px; color:var(--muted); font-size:13px; }
.producto-detalle-store i { margin-right:6px; color:var(--brand2); }
.producto-detalle-price { color:#fc0356; font-family:'Syne',sans-serif; font-size:27px; font-weight:800; }
.producto-detalle-price del { margin-left:8px; color:var(--muted); font-size:13px; font-weight:400; }
.producto-detalle-description { margin:17px 0; color:#b9bdca; font-size:14px; line-height:1.65; white-space:pre-line; }
.producto-detalle-meta { display:flex; flex-wrap:wrap; gap:7px; margin-bottom:22px; }
.producto-detalle-meta span { padding:6px 9px; border:1px solid rgba(255,255,255,.09); border-radius:999px; color:var(--muted); background:rgba(255,255,255,.03); font-size:11px; }
.producto-detalle-actions { display:flex; gap:10px; flex-wrap:wrap; }
.producto-detalle-actions .disabled { pointer-events:none; opacity:.45; }
.producto-detalle-actions button:disabled { opacity:.45; cursor:not-allowed; }
@media (max-width: 760px) {
    .producto-detalle-modal { padding:18px; }
    .producto-detalle-layout { grid-template-columns:1fr; gap:18px; }
    .producto-detalle-image-wrap, .producto-detalle-image-wrap img { min-height:280px; height:280px; }
}


/* ==========================================
   HEADER FINAL — navegación arriba, buscador debajo
========================================== */
header {
    height: auto;
    min-height: 0;
}
.header-content {
    display: block;
    min-height: 0;
    padding: 10px 28px 12px;
}
.header-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    min-height: 58px;
}
.header-top-row .nav-principal { margin-left: auto; }
.header-top-row .header-iconos { flex: 0 0 auto; }
.header-search {
    width: min(760px, 100%);
    max-width: none;
    min-width: 0;
    height: 42px;
    margin: 10px auto 0;
}
.nav-btn.active::after { bottom: -7px; }
main { padding-top: 190px; }

/* Mayor legibilidad para las métricas y textos secundarios del Home */
.hero-stats .stat-num { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.hero-stats .stat-lbl { color: #d9dce6; font-weight: 600; }
.hero-sub { color: #d5d8e2; }
.big-ad-sub { color: #d5d8e2; }
.big-ad-title { color: #fff; text-shadow: 0 3px 18px rgba(0,0,0,.38); }

@media (max-width: 1180px) {
    .header-top-row { gap: 12px; }
    .header-content { padding-left: 18px; padding-right: 18px; }
    .nav-btn { padding-left: 9px; padding-right: 9px; }
}
@media (max-width: 900px) {
    header { top: 38px; }
    .header-top-row { min-height: 60px; }
    .header-search { margin-top: 8px; }
    main { padding-top: 192px; }
}
@media (max-width: 640px) {
    header { top: 34px; }
    .header-content { padding: 8px 14px 10px; }
    .header-top-row { min-height: 50px; gap: 8px; }
    .header-search { height: 40px; margin-top: 8px; }
    main { padding-top: 168px; }
    .nav-btn.active::after { bottom: -5px; }
}


/* ==========================================
   COPY COMERCIAL Y DETALLE INTERACTIVO
========================================== */
#vende-section .vende-shell { width: min(1060px, calc(100% - 28px)); max-width: 1060px; margin-left: auto; margin-right: auto; text-align: center; }
#vende-section .vende-form-card { width: min(100%, 980px); margin-left: auto; margin-right: auto; text-align: left; }
#vende-section .vende-form-grid, #vende-section .media-upload-grid { text-align: left; }
#vende-section .section-title { color: #fff; }
#vende-section .section-subtitle { color: #d5d8e2; }
.producto-card h3, .home-featured-body h3 { text-transform: none; }
.producto-card-tag { color: #e9ebf2; background: rgba(245,31,72,.11); border-color: rgba(245,31,72,.18); }
.producto-detalle-variantes { display: grid; gap: 15px; margin: 4px 0 22px; }
.producto-variante-group { display: block; }
.producto-variante-group.hidden { display: none; }
.producto-variante-title { margin-bottom: 8px; color: #f5f6fa; font-size: 12px; font-weight: 800; }
.producto-variante-options { display: flex; flex-wrap: wrap; gap: 8px; }
.producto-size-option { min-width: 42px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; color: #e9ebf2; background: rgba(255,255,255,.04); font-size: 12px; font-weight: 800; transition: .18s ease; }
.producto-size-option:hover, .producto-size-option.active { color: #fff; border-color: var(--brand); background: rgba(245,31,72,.18); box-shadow: 0 0 0 2px rgba(245,31,72,.12); }
.producto-color-options { align-items: center; }
.producto-color-swatch { display: grid; width: 32px; height: 32px; padding: 3px; place-items: center; border: 2px solid rgba(255,255,255,.18); border-radius: 50%; background: transparent; transition: .18s ease; }
.producto-color-swatch span { display: block; width: 100%; height: 100%; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; }
.producto-color-swatch:hover, .producto-color-swatch.active { border-color: #fff; box-shadow: 0 0 0 3px rgba(245,31,72,.35); transform: translateY(-1px); }
.producto-detalle-actions { align-items: stretch; }
.producto-detalle-actions .btn-primary-detail { order: 1; min-height: 46px; padding-left: 22px; padding-right: 22px; color: #fff; border: 1px solid rgba(255,255,255,.12); background: linear-gradient(135deg, #f51f48, #ff526e); box-shadow: 0 12px 28px rgba(245,31,72,.3); font-weight: 800; }
.producto-detalle-actions .btn-primary-detail:hover { filter: brightness(1.08); transform: translateY(-1px); }
.producto-detalle-actions .btn-secondary-detail { order: 2; }
@media (max-width: 760px) {
    #vende-section .vende-shell { width: min(100% - 24px, 1060px); }
    .producto-detalle-actions { display: grid; grid-template-columns: 1fr; }
    .producto-detalle-actions .btn-primary-detail, .producto-detalle-actions .btn-secondary-detail { width: 100%; justify-content: center; }
}


/* ==========================================
   UX POLISH — retícula global y vistas consistentes
========================================== */
:root { --page-gutter: clamp(14px, 2.2vw, 28px); --section-gap: clamp(18px, 2.2vw, 30px); }
header { position: fixed; }
header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(245,31,72,.95) 18%, #ff5372 50%, rgba(245,31,72,.95) 82%, transparent);
    box-shadow: 0 0 18px rgba(245,31,72,.45);
    pointer-events: none;
}
body.is-home-view main { padding-top: 190px; }
body:not(.is-home-view) main { padding-top: 132px; }
body:not(.is-home-view) .header-content { padding-bottom: 10px; }
.main-section {
    width: min(1460px, calc(100% - (var(--page-gutter) * 2)));
    max-width: none;
    margin: 24px auto 46px;
    box-sizing: border-box;
}
#home-section .hero-inner,
#home-section .home-category-strip,
#home-section .home-trust-strip,
#home-section .home-featured-section,
#home-section .promo-section,
#home-section .big-ad-wrap { margin-left: 0; margin-right: 0; }
#home-section { display: block; }
#home-section .hero-inner { margin-top: 0; }
#home-section .home-featured-section,
#home-section .big-ad-wrap,
#home-section .home-trust-strip,
#home-section .home-category-strip { width: 100%; box-sizing: border-box; }
#home-section .home-featured-section,
#home-section .big-ad-wrap { margin-top: var(--section-gap); }
#home-section .home-trust-strip { margin-top: var(--section-gap); }
#tienda-section, #vende-section { padding-top: 0; }
#tienda-section > .tienda-view-switch,
#tienda-section > .tienda-view,
#vende-section > .vende-shell { width: 100%; box-sizing: border-box; }
.tienda-view-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    min-height: 54px;
    margin: 0 0 var(--section-gap);
    padding: 8px 10px 8px 18px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 14px;
    background: rgba(17,19,26,.72);
    box-shadow: 0 12px 28px rgba(0,0,0,.18);
}
.tienda-view-switch-label { color: #cfd3de; font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.tienda-view-switch-label i { margin-right: 7px; color: var(--brand2); }
.tienda-view-switch .tienda-online-tabs { display: inline-flex; gap: 6px; padding: 4px; border: 1px solid rgba(255,255,255,.08); border-radius: 11px; background: rgba(0,0,0,.18); }
.tienda-view-switch .tienda-online-tab { min-height: 34px; padding: 0 14px; border: 0; border-radius: 8px; color: #aeb3c0; background: transparent; font-size: 12px; font-weight: 800; transition: .2s ease; }
.tienda-view-switch .tienda-online-tab:hover { color: #fff; background: rgba(255,255,255,.07); }
.tienda-view-switch .tienda-online-tab.active { color: #fff; background: linear-gradient(135deg, rgba(245,31,72,.95), rgba(255,82,110,.82)); box-shadow: 0 6px 16px rgba(245,31,72,.24); }
#catalogo-productos-legacy { width: 100%; max-width: none; margin: 0; padding: 0; border-top: 0; }
#catalogo-productos-legacy .mkt-legacy-head { margin-bottom: 20px; }
#catalogo-productos-legacy .catalogo-toolbar,
#catalogo-productos-legacy .buscador-wrap,
#catalogo-productos-legacy .filtro-cascada { width: 100%; box-sizing: border-box; }
#catalogo-productos-legacy .paso-inicial-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 4px;
}
#catalogo-productos-legacy .acceso-tile {
    min-height: 142px;
    padding: 24px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(25,28,39,.96), rgba(12,14,21,.98));
    box-shadow: 0 16px 34px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.04);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
}
#catalogo-productos-legacy .acceso-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(245,31,72,.52);
    background: linear-gradient(145deg, rgba(38,27,40,.98), rgba(16,17,27,.98));
    box-shadow: 0 22px 42px rgba(0,0,0,.32), 0 0 0 1px rgba(245,31,72,.08);
}
#catalogo-productos-legacy .acceso-tile-primary { background: linear-gradient(145deg, rgba(47,24,39,.98), rgba(17,16,25,.98)); }
#catalogo-productos-legacy .acceso-tile-outline { color: #fff; background: linear-gradient(145deg, rgba(24,28,39,.98), rgba(12,14,21,.98)); }
#catalogo-productos-legacy .acceso-tile-icon { width: 48px; height: 48px; border-radius: 14px; background: rgba(245,31,72,.14); color: #ff6d88; box-shadow: 0 8px 18px rgba(245,31,72,.12); }
#catalogo-productos-legacy .acceso-tile-outline .acceso-tile-icon { background: rgba(123,114,255,.14); color: #a59eff; }
#catalogo-productos-legacy .acceso-tile-title { color: #fff; font-size: 16px; font-weight: 800; }
#catalogo-productos-legacy .acceso-tile-sub { margin-top: 6px; color: #aeb3c0; font-size: 12px; line-height: 1.45; }
#catalogo-productos-legacy .acceso-tile-arrow { color: var(--brand2); font-size: 14px; }
#vende-section .section-subtitle:has(#vende-aviso) { min-height: 0; }
@media (max-width: 900px) {
    .main-section { width: calc(100% - 28px); }
    body.is-home-view main { padding-top: 192px; }
    body:not(.is-home-view) main { padding-top: 132px; }
    .tienda-view-switch { align-items: stretch; flex-direction: column; padding: 12px; }
    .tienda-view-switch-label { padding: 2px 4px; }
    .tienda-view-switch .tienda-online-tabs { width: 100%; }
    .tienda-view-switch .tienda-online-tab { flex: 1; }
}
@media (max-width: 640px) {
    body.is-home-view main { padding-top: 168px; }
    body:not(.is-home-view) main { padding-top: 108px; }
    #catalogo-productos-legacy .paso-inicial-grid { grid-template-columns: 1fr; gap: 12px; }
    #catalogo-productos-legacy .acceso-tile { min-height: 122px; padding: 19px; }
}


/* ==========================================
   ULTIMO AJUSTE — glass cards + estrellas animadas
========================================== */
body {
    position: relative;
    overflow-x: hidden;
}
body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-repeat: repeat;
    mix-blend-mode: screen;
}
body::before {
    opacity: .42;
    background-image:
        radial-gradient(circle at 8% 22%, rgba(255,255,255,.9) 0 1px, transparent 1.6px),
        radial-gradient(circle at 26% 68%, rgba(255,255,255,.72) 0 1px, transparent 1.7px),
        radial-gradient(circle at 57% 18%, rgba(255,120,150,.85) 0 1px, transparent 1.8px),
        radial-gradient(circle at 84% 43%, rgba(255,255,255,.72) 0 1px, transparent 1.7px),
        radial-gradient(circle at 72% 86%, rgba(255,255,255,.68) 0 1px, transparent 1.6px);
    background-size: 230px 210px, 310px 280px, 380px 340px, 270px 250px, 430px 390px;
    animation: shopisell-stars-drift 34s linear infinite;
}
body::after {
    opacity: .2;
    background-image:
        radial-gradient(circle at 15% 45%, rgba(255,255,255,.9) 0 1.5px, transparent 2.1px),
        radial-gradient(circle at 48% 82%, rgba(245,31,72,.95) 0 1.2px, transparent 2px),
        radial-gradient(circle at 91% 14%, rgba(255,255,255,.8) 0 1px, transparent 1.8px);
    background-size: 510px 470px, 330px 300px, 620px 570px;
    animation: shopisell-stars-drift-reverse 46s linear infinite;
}
@keyframes shopisell-stars-drift {
    0% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(-22px, 14px, 0); }
    100% { transform: translate3d(-44px, 28px, 0); }
}
@keyframes shopisell-stars-drift-reverse {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(18px, -12px, 0) scale(1.015); }
    100% { transform: translate3d(36px, -24px, 0) scale(1.03); }
}
main { position: relative; z-index: 1; }
#tienda-section { margin-top: 14px; }
#tienda-section > .tienda-view { margin-top: 0; }
#tienda-view-productos { padding-top: 0; }
#catalogo-productos-legacy { margin-top: 0; }

/* Tarjetas de acceso: estilo minimalista/glassmorphism */
#catalogo-productos-legacy .paso-inicial-grid { gap: 16px; }
#catalogo-productos-legacy .acceso-tile,
#catalogo-productos-legacy .acceso-tile.acceso-tile-primary,
#catalogo-productos-legacy .acceso-tile.acceso-tile-outline {
    min-height: 132px;
    padding: 22px 24px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    background: rgba(255,255,255,.03);
    color: #f8fafc;
    box-shadow: 0 12px 30px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.035);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: transform .24s ease, border-color .24s ease, background .24s ease, box-shadow .24s ease;
}
#catalogo-productos-legacy .acceso-tile:hover,
#catalogo-productos-legacy .acceso-tile.acceso-tile-primary:hover,
#catalogo-productos-legacy .acceso-tile.acceso-tile-outline:hover {
    transform: translateY(-4px);
    border-color: rgba(245,31,72,.42);
    background: rgba(255,255,255,.055);
    box-shadow: 0 18px 38px rgba(0,0,0,.28), 0 0 22px rgba(245,31,72,.12);
}
#catalogo-productos-legacy .acceso-tile-icon,
#catalogo-productos-legacy .acceso-tile-primary .acceso-tile-icon,
#catalogo-productos-legacy .acceso-tile-outline .acceso-tile-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(245,31,72,.12);
    color: #ff6680;
    box-shadow: none;
}
#catalogo-productos-legacy .acceso-tile-outline .acceso-tile-icon { background: rgba(123,114,255,.13); color: #aaa4ff; }
#catalogo-productos-legacy .acceso-tile-title {
    font-family: Inter, "Plus Jakarta Sans", Roboto, Arial, sans-serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -.01em;
    color: #fff;
}
#catalogo-productos-legacy .acceso-tile-sub {
    margin-top: 6px;
    font-family: Inter, "Plus Jakarta Sans", Roboto, Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
    color: #9CA3AF;
}
#catalogo-productos-legacy .acceso-tile-arrow { color: #ff6680; }
@media (prefers-reduced-motion: reduce) {
    body::before, body::after { animation: none; }
    #catalogo-productos-legacy .acceso-tile { transition: none; }
}
@media (max-width: 640px) {
    #catalogo-productos-legacy .acceso-tile { min-height: 118px; padding: 18px; }
    #catalogo-productos-legacy .acceso-tile-title { font-size: 16px; }
    #catalogo-productos-legacy .acceso-tile-sub { font-size: 13px; }
}

/* ==========================================
   AJUSTES FINALES — header, teletipo y detalle limpio
========================================== */
.ad-ticker-wrap {
    height: 32px;
    min-height: 32px;
}
.ad-ticker-track { height: 32px; }
.ad-chip { font-size: 11px; }
header { top: 45px; }
.header-content { padding-top: 8px; padding-bottom: 10px; }
.header-top-row { min-height: 15px; }
.header-top-row .nav-principal {
    margin-left: clamp(20px, 7vw, 130px);
    margin-right: auto;
}
.header-top-row .header-iconos { margin-left: auto; }
.header-search { margin-top: 8px; }
body.is-home-view main { padding-top: 178px; }
body:not(.is-home-view) main { padding-top: 120px; }

#catalogo-productos-legacy .acceso-tile-title,
#catalogo-productos-legacy .acceso-tile-sub {
    font-family: Inter, "Plus Jakarta Sans", Roboto, Arial, sans-serif;
}
#catalogo-productos-legacy .acceso-tile-title { font-size: 17px; font-weight: 600; }
#catalogo-productos-legacy .acceso-tile-sub { font-size: 14px; color: #9CA3AF; }

.producto-detalle-info h2 {
    max-width: 480px;
    font-family: Inter, "Plus Jakarta Sans", Roboto, Arial, sans-serif;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    letter-spacing: -.035em;
}
.producto-detalle-description { margin-top: 14px; }
.producto-detalle-variantes { margin-top: 18px; margin-bottom: 18px; }
.producto-variante-title { font-family: Inter, "Plus Jakarta Sans", Roboto, Arial, sans-serif; font-weight: 600; color: #f4f5f7; }
.producto-size-option, .producto-color-swatch { font-family: Inter, "Plus Jakarta Sans", Roboto, Arial, sans-serif; }
.producto-detalle-actions .btn-primary-detail { min-height: 44px; border-radius: 10px; }

@media (max-width: 900px) {
    header { top: 32px; }
    body.is-home-view main { padding-top: 184px; }
    body:not(.is-home-view) main { padding-top: 120px; }
    .header-top-row .nav-principal { margin-left: 18px; }
}
@media (max-width: 640px) {
    .ad-ticker-wrap, .ad-ticker-track { height: 30px; min-height: 30px; }
    header { top: 30px; }
    .header-content { padding-top: 6px; padding-bottom: 8px; }
    body.is-home-view main { padding-top: 158px; }
    body:not(.is-home-view) main { padding-top: 100px; }
}

/* ==========================================
   CORRECCION PRECISA — design system y reticula unica
========================================== */
:root {
    --content-max: 1320px;
    --content-gutter: 24px;
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --ui-font: Inter, "Plus Jakarta Sans", Roboto, Arial, sans-serif;
    --ui-bg: #121214;
    --ui-muted: #9ca3af;
    --ui-border: rgba(255,255,255,.08);
}
body, button, input, select, textarea { font-family: var(--ui-font); }
body { background-color: #0f0f11; }

/* Misma referencia vertical para header, buscador, Home y sesiones secundarias */
.header-content,
.main-section,
#home-section,
#tienda-section,
#vende-section {
    width: min(var(--content-max), calc(100% - (var(--content-gutter) * 2)));
    max-width: var(--content-max);
    margin-left: auto;
    margin-right: auto;
}
.header-content { width: min(var(--content-max), calc(100% - (var(--content-gutter) * 2))); }
.main-section { margin-top: 16px; margin-bottom: 24px; padding-bottom: 16px; }
#home-section { margin-top: 16px; }
#home-section .hero-inner,
#home-section .home-featured-section,
#home-section .home-trust-strip,
#home-section .big-ad-wrap,
#home-section .promo-section { width: 100%; max-width: none; margin-left: 0; margin-right: 0; }
#home-section .hero-inner { margin-top: 0; }
#home-section .home-featured-section,
#home-section .big-ad-wrap { margin-top: var(--space-2); }
#home-section .home-trust-strip { margin-top: var(--space-2); }
#tienda-section { margin-top: 16px; padding-top: 0; }
#tienda-view-tiendas, #tienda-view-productos { margin-top: 0; padding-top: 0; }
#catalogo-productos-legacy { width: 100%; max-width: none; margin: 0; padding: 0; }
#catalogo-productos-legacy .mkt-legacy-head { margin-bottom: var(--space-2); }

/* Ticker superior: se rehace el aspecto y se fuerza un desplazamiento visible continuo */
.ad-ticker-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    height: 25px;
    min-height: 40px;
    overflow: hidden;
    border-bottom: 1px solid rgba(245,31,72,.25);
    background: linear-gradient(90deg, #0f0f11 0%, #17131a 48%, #0f0f11 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.ad-ticker-track {
    display: flex;
    align-items: center;
    width: max-content;
    height: 30px;
    animation: tickerScrollPrecise 22s linear infinite;
    will-change: transform;
}
.ad-ticker-wrap:hover .ad-ticker-track { animation-play-state: paused; }
.ad-chip {
    display: inline-flex;
    align-items: center;
    height: 30px;
    min-height: 30px;
    padding: 0 22px;
    color: #d7d9e4;
    border-right: 1px solid rgba(255,255,255,.07);
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}
.ad-chip-icon { margin-right: 7px; font-size: 12px; }
@keyframes tickerScrollPrecise {
    from { transform: translate3d(0,0,0); }
    to { transform: translate3d(-50%,0,0); }
}

/* El banner publicitario principal conserva su función, pero ya no deja huecos extra */
.big-ad-wrap { margin-top: var(--space-2) !important; margin-bottom: 0 !important; }
.big-ad-inner { min-height: 190px; padding: 30px 36px; border-radius: 18px; }
.big-ad-title, .big-ad-sub { font-family: var(--ui-font); }
.big-ad-title { font-size: clamp(22px, 2.5vw, 32px); line-height: 1.12; }
.big-ad-sub { font-size: 13px; color: var(--ui-muted); }

/* Tarjetas exactas del TXT: fondo sutil, 16–20px, títulos 16–18/600, gris #9CA3AF */
#catalogo-productos-legacy .paso-inicial-grid { max-width: none; gap: var(--space-2); margin-top: var(--space-1); }
#catalogo-productos-legacy .acceso-tile,
#catalogo-productos-legacy .acceso-tile.acceso-tile-primary,
#catalogo-productos-legacy .acceso-tile.acceso-tile-outline {
    min-height: 128px;
    padding: var(--space-3);
    border: 1px solid var(--ui-border);
    border-radius: 18px;
    background: rgba(255,255,255,.03);
    box-shadow: 0 10px 28px rgba(0,0,0,.16);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
#catalogo-productos-legacy .acceso-tile:hover,
#catalogo-productos-legacy .acceso-tile.acceso-tile-primary:hover,
#catalogo-productos-legacy .acceso-tile.acceso-tile-outline:hover {
    transform: translateY(-2px);
    border-color: rgba(245,31,72,.38);
    background: rgba(255,255,255,.045);
    box-shadow: 0 14px 32px rgba(0,0,0,.24), 0 0 16px rgba(245,31,72,.08);
}
#catalogo-productos-legacy .acceso-tile-title {
    font-family: var(--ui-font);
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0;
}
#catalogo-productos-legacy .acceso-tile-sub {
    margin-top: 6px;
    font-family: var(--ui-font);
    font-size: 14px;
    font-weight: 400;
    color: #9CA3AF;
    line-height: 1.4;
}
#catalogo-productos-legacy .acceso-tile-icon { border-radius: 14px; background: rgba(245,31,72,.10); box-shadow: none; }
#catalogo-productos-legacy .acceso-tile-outline .acceso-tile-icon { background: rgba(123,114,255,.11); }

/* Mi tienda: exactamente el mismo ancho, margen y línea de referencia */
.tienda-topbar {
    width: min(var(--content-max), calc(100% - (var(--content-gutter) * 2)));
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 12px 0;
    box-sizing: border-box;
}
.tienda-wrap {
    width: min(var(--content-max), calc(100% - (var(--content-gutter) * 2)));
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 20px 0 40px;
}
.bd-wrap { width: 100%; max-width: none; margin: 0; }
.tienda-card, .bd-seccion { border-radius: 18px; }

/* Modal: flujo limpio y foto con menos peso visual */
.producto-detalle-modal {
    width: min(900px, calc(100% - 32px));
    max-height: calc(100vh - 40px);
    padding: 20px;
    border-radius: 18px;
}
.producto-detalle-layout { grid-template-columns: minmax(260px,.82fr) minmax(300px,1.18fr); gap: 20px; align-items: start; }
.producto-detalle-image-wrap { min-height: 300px; height: 300px; border-radius: 14px; }
.producto-detalle-image-wrap img { height: 300px; }
.producto-detalle-gallery-top { margin-bottom: 8px; }
.producto-detalle-thumbs { padding-top: 8px; }
.producto-detalle-info h2 { font-family: var(--ui-font); font-size: clamp(24px, 2.5vw, 30px); font-weight: 650; letter-spacing: -.02em; }
.producto-detalle-price { font-family: var(--ui-font); font-size: 25px; font-weight: 700; }
.producto-detalle-description { margin: var(--space-2) 0; color: #9CA3AF; }
.producto-detalle-variantes { gap: var(--space-2); margin: var(--space-2) 0; }
.producto-variante-title { font-family: var(--ui-font); font-size: 12px; font-weight: 650; }
.producto-size-option { min-height: 36px; border-radius: 10px; font-family: var(--ui-font); font-size: 12px; font-weight: 600; }
.producto-color-swatch { width: 32px; height: 32px; }
.producto-detalle-actions button, .producto-detalle-actions a { min-height: 44px; border-radius: 12px; }
.producto-detalle-actions .btn-primary-detail { box-shadow: none; }
@media (max-width: 900px) {
    :root { --content-gutter: 16px; }
    .header-content { width: calc(100% - 32px); }
    .main-section, #home-section, #tienda-section, #vende-section { width: calc(100% - 32px); }
    .tienda-topbar, .tienda-wrap { width: calc(100% - 32px); }
    .producto-detalle-layout { grid-template-columns: 1fr; }
    .producto-detalle-image-wrap, .producto-detalle-image-wrap img { height: 280px; min-height: 280px; }
}
@media (max-width: 640px) {
    :root { --content-gutter: 12px; }
    .ad-ticker-wrap, .ad-ticker-track, .ad-chip { height: 28px; min-height: 28px; }
    header { top: 28px; }
    .header-content { width: calc(100% - 24px); }
    .main-section, #home-section, #tienda-section, #vende-section { width: calc(100% - 24px); }
    .tienda-topbar, .tienda-wrap { width: calc(100% - 24px); }
    body.is-home-view main { padding-top: 154px; }
    body:not(.is-home-view) main { padding-top: 96px; }
    .producto-detalle-modal { width: calc(100% - 20px); padding: 16px; }
    .producto-detalle-image-wrap, .producto-detalle-image-wrap img { height: 240px; min-height: 240px; }
}

/* Ajuste final de separación: el contenido comienza cerca de la línea de header */
body.is-home-view main { padding-top: 132px; }
body:not(.is-home-view) main { padding-top: 92px; }
#home-section, #tienda-section, #vende-section { margin-top: 12px; }
#home-section .hero-inner { margin-top: 0; }
#home-section .home-featured-section,
#home-section .home-trust-strip,
#home-section .big-ad-wrap { margin-top: 16px !important; }
#catalogo-productos-legacy .mkt-legacy-head { margin-top: 0; }
@media (max-width: 900px) {
    body.is-home-view main { padding-top: 136px; }
    body:not(.is-home-view) main { padding-top: 92px; }
}
@media (max-width: 640px) {
    body.is-home-view main { padding-top: 130px; }
    body:not(.is-home-view) main { padding-top: 84px; }
}

/* ==========================================
   CORRECCION FINAL — menu, sesiones y banners
========================================== */
.nav-principal #btn-vende { display: inline-flex !important; }
.session-toolbar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    min-height: 15px;
    margin: 0 0 12px;
}
.session-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 10px;
    color: #d7d9e4;
    background: rgba(255,255,255,.035);
    font-family: var(--ui-font, Inter, Arial, sans-serif);
    font-size: 12px;
    font-weight: 600;
    transition: .2s ease;
}
.session-back:hover { color: #fff; border-color: rgba(245,31,72,.45); background: rgba(245,31,72,.10); transform: translateX(-2px); }
header::after,
.tienda-topbar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(245,31,72,.90) 18%, #ff5372 50%, rgba(245,31,72,.90) 82%, transparent);
    box-shadow: 0 0 14px rgba(245,31,72,.35);
    pointer-events: none;
}
.tienda-topbar { position: relative; }

/* El catálogo presenta directamente las categorías reales, sin accesos duplicados. */
#catalogo-productos-legacy #paso-inicial { display: none !important; }
#catalogo-productos-legacy #paso-categoria-real:not(.hidden) { display: block; }
#catalogo-productos-legacy #nav-categorias-reales {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 0 2px;
}
#catalogo-productos-legacy #nav-categorias-reales .filtro-btn {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.08);
    color: #d7d9e4;
    background: rgba(255,255,255,.03);
    font-family: var(--ui-font, Inter, Arial, sans-serif);
    font-size: 12px;
    font-weight: 600;
}
#catalogo-productos-legacy #nav-categorias-reales .filtro-btn:hover,
#catalogo-productos-legacy #nav-categorias-reales .filtro-btn.active { color: #fff; border-color: rgba(245,31,72,.42); background: rgba(245,31,72,.11); }

/* Banners Marketplace: menos altura, misma línea y lectura más limpia. */
.mkt-hero {
    min-height: 0 !important;
    padding: 34px 34px 24px !important;
    border-radius: 20px !important;
}
.mkt-hero-title { font-size: clamp(34px, 4.4vw, 58px) !important; line-height: 1.02 !important; margin-bottom: 12px !important; }
.mkt-hero-sub { max-width: 680px; margin-bottom: 14px !important; }
.mkt-hero-cta { margin-bottom: 14px !important; }
.mkt-stats { margin-top: 10px !important; padding-top: 12px !important; }
.mkt-collections { margin-top: 14px !important; }
.mkt-collection-grid { gap: 10px !important; }
.mkt-collection-card { min-height: 78px !important; padding: 14px 16px !important; border-radius: 14px !important; }
@media (max-width: 700px) {
    .mkt-hero { padding: 24px 18px 18px !important; }
    .mkt-hero-title { font-size: clamp(28px, 8vw, 42px) !important; }
    .session-toolbar { margin-bottom: 8px; }
}
/* =========================================================
   MARKETPLACE PRO — UNIFICACIÓN VISUAL (Home / Tienda Online /
   Vende en ShOPIseLL — Mi tienda)
   No se tocan colores de marca: el rosado sigue siendo #ff0055
   (ver variables --brand / --brand2 / --color-primario arriba)
   y el fondo de estrellas (body::before/::after) no se modifica.
   Esta capa solo quita cajas y ajusta espaciados/tipografía.
   ========================================================= */

/* ---- 1. Quitar cajas: contenedores de página transparentes ---- */
body > section,
body > div,
body > main > section,
main > section,
.mkt-hero,
.tienda-online-head,
.home-trust-strip,
.home-featured-section,
.vende-form-card,
.tienda-card,
.bd-seccion {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* ---- 2. Pegar secciones: scroll fluido ---- */
body > section + section,
body > div + div,
main > section + section,
main > div + div {
    margin-top: 10px !important;
}
#tienda-section,
.vende-shell,
.mkt-discovery {
    margin-top: 12px !important;
}

/* ---- 3. Responsive: padding lateral 20px en móvil ---- */
@media (max-width: 768px) {
    body > section,
    body > div,
    main > section,
    main > div,
    .mkt-hero,
    .mkt-section,
    #tienda-section,
    .vende-shell,
    .home-category-strip,
    .home-trust-strip,
    .home-featured-section {
        padding-left: 20px !important;
        padding-right: 20px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* ---- 4. Títulos grandes: degradado blanco → rosado de marca ---- */
.hero-title,
.mkt-hero-title {
    font-size: 60px !important;
    font-weight: 900 !important;
}
@media (max-width: 768px) {
    .hero-title,
    .mkt-hero-title {
        font-size: clamp(36px, 9vw, 42px) !important;
    }
}
.hero-title .highlight,
.mkt-hero-title .highlight {
    background: linear-gradient(90deg, #ffffff 0%, #ff0055 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
}

/* ---- 5. Botón "Volver": minimalista, sin caja ---- */
.session-toolbar {
    margin: 25px 0 20px !important;
}
.session-back {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    min-height: auto !important;
    color: rgba(255,255,255,0.7) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    transition: color .2s ease, transform .2s ease !important;
}
.session-back:hover {
    color: #ff0055 !important;
    background: transparent !important;
    border-color: transparent !important;
    transform: translateX(-3px) !important;
}
@media (max-width: 768px) {
    .session-toolbar {
        margin: 15px 0 15px !important;
    }
    .session-back {
        font-size: 12px !important;
    }
}

/* ---- 6. Vende en ShOPIseLL / Mi tienda: solo inputs, sin caja ---- */
.vende-form-card input,
.vende-form-card textarea,
.vende-form-card select,
#form-vende input,
#form-vende textarea,
#form-vende select,
.t-campo input,
.t-campo textarea,
.tienda-card input,
.tienda-card textarea,
.tienda-card select,
.bd-seccion input,
.bd-seccion textarea,
.bd-seccion select {
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
}
.vende-form-card input:focus,
.vende-form-card textarea:focus,
.vende-form-card select:focus,
#form-vende input:focus,
#form-vende textarea:focus,
#form-vende select:focus,
.t-campo input:focus,
.t-campo textarea:focus,
.tienda-card input:focus,
.tienda-card textarea:focus,
.tienda-card select:focus,
.bd-seccion input:focus,
.bd-seccion textarea:focus,
.bd-seccion select:focus {
    outline: none !important;
    border-color: #ff0055 !important;
    box-shadow: 0 0 0 3px rgba(255,0,85,0.14) !important;
}

/* Botón "Crear mi tienda": rosado sólido, radio 12px, full width en móvil */
#form-vende .btn-publicar,
.vende-shell .btn-publicar,
.vende-form-card .btn-publicar {
    background: #ff0055 !important;
    color: #fff !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}
#form-vende .btn-publicar:hover,
.vende-shell .btn-publicar:hover,
.vende-form-card .btn-publicar:hover {
    filter: brightness(1.1);
    background: #ff0055 !important;
}
@media (max-width: 768px) {
    #form-vende .btn-publicar,
    .vende-shell .btn-publicar,
    .vende-form-card .btn-publicar {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* ==========================================
   PERFIL — imagen de cuenta
========================================== */
.perfil-avatar-editor {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
}
.perfil-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.perfil-avatar-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--brand2);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}
.perfil-avatar-action:hover { color: #fff; }
.perfil-avatar-status {
    color: var(--muted);
    font-size: 10px;
    text-align: center;
    white-space: nowrap;
}
.perfil-avatar-status.is-loading { color: #ffd86b; }
.perfil-avatar-status.is-error { color: #ff7094; }
@media (max-width: 640px) {
    .perfil-avatar-editor { width: 100%; align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
    .perfil-avatar-status { width: 100%; text-align: left; }
}

/* Commerce Foundation — Checkout contact fields */
.checkout-contact-fields {
    margin: 16px 0;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    background: rgba(255,255,255,.025);
}
.checkout-contact-fields h3 { margin: 0 0 12px; font-size: 14px; }
.checkout-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.checkout-field-grid label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: var(--muted);
    font-size: 11px;
}
.checkout-field-grid label span { color: var(--brand); }
.checkout-field-grid input {
    width: 100%;
    min-height: 36px;
    padding: 8px 10px;
    color: var(--color-texto-claro);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    background: rgba(0,0,0,.24);
}
@media (max-width: 620px) {
    .checkout-field-grid { grid-template-columns: 1fr; }
}


/* VISUAL MERGE: current approved cart/profile/Mía overrides */
/* ==========================================
   PRICING & TOTALS — resumen visible
========================================== */
.cart-totals {
    display: grid;
    gap: 8px;
    margin-top: 16px;
    color: var(--muted);
    font-size: 13px;
}
.cart-totals > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.cart-totals strong {
    color: #fff;
    font-weight: 700;
}
.cart-totals .cart-total-row {
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.1);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}
.cart-totals .cart-total-row strong {
    color: var(--brand);
    font-family: 'Syne', sans-serif;
    font-size: 18px;
}


/* ==========================================
   CHECKOUT FOUNDATION — contacto y entrega
========================================== */
.checkout-fields {
    margin: 16px 0;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 12px;
    background: rgba(255,255,255,.025);
}
.checkout-fields h3 {
    margin: 0 0 6px;
}
.checkout-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}
.checkout-field {
    display: grid;
    gap: 5px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}
.checkout-field-wide {
    grid-column: 1 / -1;
}
.checkout-field input {
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    outline: none;
    background: rgba(0,0,0,.22);
    color: #fff;
    font: inherit;
    font-weight: 400;
}
.checkout-field input:focus {
    border-color: rgba(245,31,72,.72);
    box-shadow: 0 0 0 3px rgba(245,31,72,.12);
}
.checkout-field input:invalid:not(:placeholder-shown) {
    border-color: rgba(255,175,70,.75);
}
@media (max-width: 600px) {
    .checkout-field-grid { grid-template-columns: 1fr; }
    .checkout-field-wide { grid-column: auto; }
}


/* ==========================================
   CARRITO PREMIUM — compacto y orientado a producto
========================================== */
.cart-modal {
    width: min(94vw, 620px);
    max-width: 620px;
    max-height: 88vh;
    overflow-y: auto;
    padding: 22px 24px;
    scrollbar-width: thin;
    scrollbar-color: rgba(245,31,72,.65) transparent;
}
.cart-modal::-webkit-scrollbar { width: 6px; }
.cart-modal::-webkit-scrollbar-thumb { background: rgba(245,31,72,.65); border-radius: 999px; }
.cart-modal h2 {
    margin: 0 30px 14px 0;
    font-size: clamp(1.25rem, 2.2vw, 1.55rem);
}
#cart-items {
    display: grid;
    gap: 0;
    padding: 2px 0;
}
.cart-line {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.cart-product-thumb {
    width: 58px;
    height: 58px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(245,31,72,.18), rgba(255,255,255,.04));
    box-shadow: 0 8px 18px rgba(0,0,0,.18);
}
.cart-product-thumb img,
.cart-product-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cart-product-placeholder { color: var(--brand); font-size: 20px; }
.cart-line-main { gap: 3px; }
.cart-line-heading { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.cart-line-main strong { font-size: 13px; }
.cart-line-store {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    color: var(--brand2);
    font-size: 11px;
    text-decoration: none;
}
.cart-line-store:hover { text-decoration: underline; }
.cart-line-sku { color: rgba(255,255,255,.45); font-size: 10px; }
.cart-line-price { font-size: 11px; }
.cart-line-price small { color: rgba(255,255,255,.42); font-size: 10px; }
.cart-line-actions {
    display: grid;
    grid-template-columns: auto auto auto;
    align-items: center;
    justify-content: end;
    gap: 8px;
}
.cart-qty-control {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 10px;
    background: rgba(255,255,255,.035);
}
.cart-qty-control .cart-qty-btn {
    width: 25px;
    height: 25px;
    border-radius: 7px;
    background: rgba(255,255,255,.05);
    font-size: 16px;
}
.cart-qty-control .cart-qty-value { min-width: 20px; font-size: 12px; }
.cart-line-subtotal { min-width: 78px; font-size: 12px; }
.cart-remove-btn {
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 8px;
    font-size: 11px;
}
.cart-remove-btn i { pointer-events: none; }
.cart-clear-btn { margin: 10px 0 0; padding: 7px 10px; font-size: 11px; }
.checkout-fields {
    margin: 12px 0;
    padding: 12px;
    border-radius: 12px;
}
.checkout-fields h3 { font-size: 13px; }
.checkout-field-grid { gap: 8px; margin-top: 9px; }
.checkout-field input { min-height: 34px; padding: 7px 9px; font-size: 12px; }
.payment-methods {
    margin-top: 11px;
    padding-top: 11px;
    border-top: 1px solid rgba(255,255,255,.08);
}
.payment-methods h3 { margin-bottom: 5px; font-size: 12px; }
.payment-method-select { padding: 9px 10px; font-size: 12px; }
.cart-modal #btn-pagar { min-height: 40px; font-size: 13px; }
.cart-totals { gap: 5px; margin-top: 11px; font-size: 12px; }
.cart-totals .cart-total-row { margin-top: 4px; padding-top: 9px; font-size: 14px; }
.cart-totals .cart-total-row strong { font-size: 17px; }
@media (max-width: 640px) {
    .cart-modal {
        width: 94%;
        max-width: 430px;
        max-height: 90vh;
        padding: 18px 15px;
    }
    .cart-line {
        grid-template-columns: 50px minmax(0, 1fr);
        gap: 9px;
        padding: 9px 0;
    }
    .cart-product-thumb { width: 50px; height: 50px; border-radius: 10px; }
    .cart-line-actions {
        grid-column: 2;
        justify-content: start;
        width: 100%;
    }
    .cart-line-subtotal { margin-left: auto; }
}

/* ==========================================
   PERFIL — ONBOARDING SEGURO
   ========================================== */
.perfil-onboarding-card {
    margin: 0 0 28px;
    padding: 24px;
    background: linear-gradient(145deg, rgba(22,22,32,.98), rgba(14,14,22,.98));
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 20px;
    box-shadow: 0 18px 44px rgba(0,0,0,.24);
}
.perfil-onboarding-head { display:flex; align-items:flex-start; justify-content:space-between; gap:24px; }
.perfil-kicker { color:var(--brand); text-transform:uppercase; font-size:11px; font-weight:800; letter-spacing:1px; }
.perfil-onboarding-head h3 { margin:8px 0 6px; color:#fff; font-family:'Syne',sans-serif; font-size:21px; }
.perfil-onboarding-head p, .perfil-context-copy, .perfil-payment-safety p, .perfil-field-help { color:var(--muted); font-size:13px; line-height:1.55; margin:0; }
.perfil-progress { min-width:105px; text-align:right; }
.perfil-progress strong { display:block; color:var(--brand); font:800 26px 'Syne',sans-serif; }
.perfil-progress span { display:block; color:var(--muted); font-size:11px; text-transform:uppercase; letter-spacing:.6px; }
.perfil-progress-track { height:7px; margin:18px 0 14px; background:rgba(255,255,255,.07); border-radius:999px; overflow:hidden; }
.perfil-progress-track span { display:block; width:0; height:100%; background:linear-gradient(90deg,var(--brand),#ff6a71); border-radius:inherit; transition:width .3s ease; }
.perfil-context-copy { margin-bottom:18px; }
.perfil-form { display:grid; gap:16px; }
.perfil-form-section { padding:17px; border:1px solid rgba(255,255,255,.07); border-radius:14px; background:rgba(255,255,255,.018); }
.perfil-form-section-title { display:flex; align-items:center; gap:9px; margin-bottom:14px; color:#fff; font-size:14px; font-weight:700; }
.perfil-form-section-title i { color:var(--brand); width:16px; text-align:center; }
.perfil-form-section-title small { margin-left:auto; color:var(--muted); font-size:11px; font-weight:500; }
.perfil-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px 15px; }
.perfil-field { display:flex; flex-direction:column; gap:7px; color:#d9d9e7; font-size:12px; font-weight:600; }
.perfil-field input, .perfil-field select { width:100%; box-sizing:border-box; background:rgba(7,7,13,.72); border:1px solid rgba(255,255,255,.1); border-radius:9px; padding:11px 12px; color:#fff; font:400 13px 'DM Sans',sans-serif; }
.perfil-field input:focus, .perfil-field select:focus { outline:none; border-color:var(--brand); box-shadow:0 0 0 3px rgba(240,26,36,.12); }
.perfil-field-wide { grid-column:1 / -1; }
.perfil-form-actions { display:flex; align-items:center; justify-content:flex-end; gap:14px; }
.perfil-save-status { margin-right:auto; min-height:18px; color:#91e7aa; font-size:12px; }
.perfil-save-status.is-saving { color: #f7d27d; }
.perfil-save-status.is-error { color: #ff9ca5; }
.perfil-field input.is-invalid, .perfil-field select.is-invalid { border-color: rgba(255, 118, 140, 0.9); box-shadow: 0 0 0 3px rgba(255, 118, 140, 0.12); }
.perfil-payment-safety, .perfil-role-context { margin-top:16px; padding:17px; border-radius:14px; border:1px solid rgba(240,26,36,.18); background:linear-gradient(145deg,rgba(240,26,36,.08),rgba(255,255,255,.02)); }
.perfil-payment-safety .perfil-form-section-title, .perfil-role-context .perfil-form-section-title { margin-bottom:9px; }
.perfil-payment-safety strong { color:#fff; }
.perfil-payment-sources { display:grid; gap:8px; margin:14px 0; }
.perfil-payment-source { display:flex; align-items:center; gap:11px; padding:10px 12px; background:rgba(0,0,0,.2); border:1px solid rgba(255,255,255,.07); border-radius:10px; }
.perfil-payment-source-icon { color:var(--brand); width:24px; text-align:center; }
.perfil-payment-source strong, .perfil-payment-source small { display:block; }
.perfil-payment-source strong { font-size:12px; color:#fff; }
.perfil-payment-source small { margin-top:2px; color:var(--muted); font-size:11px; }
.perfil-payment-source-ok { margin-left:auto; color:#8ee7a6; font-size:10px; font-weight:800; text-transform:uppercase; }
.perfil-muted { color:var(--muted); font-size:12px; line-height:1.5; }
.perfil-role-context .btn-outline, .perfil-payment-safety .btn-outline { display:inline-flex; }
@media (max-width: 640px) {
    .perfil-onboarding-card { padding:17px; border-radius:16px; }
    .perfil-onboarding-head { flex-direction:column; gap:10px; }
    .perfil-progress { text-align:left; }
    .perfil-progress strong { display:inline-block; margin-right:7px; }
    .perfil-progress span { display:inline-block; }
    .perfil-form-grid { grid-template-columns:1fr; }
    .perfil-field-wide { grid-column:auto; }
    .perfil-form-actions { align-items:stretch; flex-direction:column; }
    .perfil-save-status { width:100%; margin-right:0; }
    .perfil-form-actions .btn-publicar { width:100%; justify-content:center; }
    .perfil-payment-source { align-items:flex-start; }
}


/* ==========================================
   HOME — Mía, asistente operativa
   Solo usa la foto circular de perfil; la tercera imagen es referencia visual.
   ========================================== */
.home-mia-section{
    max-width:1080px;
    margin:34px auto 0;
    padding:0 24px 52px;
}
.home-mia-heading{ margin-bottom:14px; }
.home-mia-kicker{
    display:inline-block;
    margin-bottom:5px;
    color:#d9a1ee;
    font-size:11px;
    font-weight:800;
    letter-spacing:.11em;
    text-transform:uppercase;
}
.home-mia-heading h2{
    margin:0;
    color:#fff;
    font-family:'Syne',sans-serif;
    font-size:24px;
    line-height:1.2;
}
.home-mia-heading p{
    max-width:620px;
    margin:6px 0 0;
    color:rgba(240,240,255,.62);
    font-size:13px;
}
.home-mia-card{
    display:grid;
    grid-template-columns:170px minmax(0,1fr);
    gap:24px;
    align-items:center;
    padding:20px 22px;
    border:1px solid rgba(185,141,221,.34);
    border-radius:16px;
    background:linear-gradient(135deg,rgba(22,26,43,.96),rgba(16,19,31,.96));
    box-shadow:0 14px 34px rgba(0,0,0,.2),inset 0 0 28px rgba(166,102,207,.06);
}
.home-mia-profile{
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    padding-right:22px;
    border-right:1px solid rgba(185,141,221,.2);
}
.home-mia-avatar-wrap{ position:relative; width:94px; height:94px; margin-bottom:9px; }
.home-mia-avatar{
    width:94px;
    height:94px;
    display:block;
    object-fit:cover;
    object-position:center;
    border:2px solid #c9a5df;
    border-radius:50%;
    background:#111521;
}
.home-mia-status{
    position:absolute;
    right:1px;
    bottom:3px;
    width:18px;
    height:18px;
    border:3px solid #151b2a;
    border-radius:50%;
    background:#55ef98;
    box-shadow:0 0 12px rgba(85,239,152,.5);
}
.home-mia-profile h3{ margin:0 0 3px; color:#fff; font-family:'Syne',sans-serif; font-size:21px; }
.home-mia-profile p{ margin:0 0 9px; color:#d5b0e4; font-size:11px; line-height:1.3; }
.home-mia-profile p span{ color:#63ed9b; }
.home-mia-chip{
    display:inline-flex;
    align-items:center;
    min-height:25px;
    padding:0 10px;
    border-radius:7px;
    background:rgba(116,75,149,.62);
    color:#fff;
    font-size:10px;
    font-weight:800;
}
.home-mia-main{ min-width:0; }
.home-mia-note{
    min-height:44px;
    display:flex;
    align-items:center;
    margin-bottom:12px;
    padding:9px 12px;
    border-left:4px solid #c9a5df;
    border-radius:0 8px 8px 0;
    background:rgba(85,56,105,.24);
    color:#f6effb;
    font-size:13px;
    font-weight:700;
}
.home-mia-card .personaje-ia-chat{ margin:0; padding:0; border:0; background:transparent; }
.home-mia-card .personaje-ia-chat-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
    margin-bottom:7px;
    color:#fff;
    font-size:12px;
    font-weight:800;
}
.home-mia-card .personaje-ia-chat-head small{ color:rgba(240,240,255,.64); font-size:10px; font-weight:500; }
.home-mia-card .assistant-quick-actions{ display:flex; flex-wrap:wrap; gap:6px; margin:0 0 8px; }
.home-mia-card .assistant-quick-actions button{
    padding:5px 9px;
    border:1px solid rgba(201,165,223,.34);
    border-radius:999px;
    background:rgba(85,56,105,.35);
    color:#eadcf1;
    cursor:pointer;
    font-size:10px;
}
.home-mia-card .assistant-quick-actions button:hover{ border-color:#d9a1ee; color:#fff; }
.home-mia-card .personaje-ia-messages{
    display:grid;
    gap:6px;
    min-height:68px;
    max-height:88px;
    margin-bottom:8px;
    padding-right:3px;
    overflow-y:auto;
    overflow-x:hidden;
    overscroll-behavior:contain;
    scroll-behavior:smooth;
    scrollbar-gutter:stable;
    -webkit-overflow-scrolling:touch;
    touch-action:pan-y;
}
.home-mia-card .personaje-ia-message{
    display:grid;
    gap:3px;
    min-height:68px;
    padding:9px 11px;
    border:1px solid rgba(188,142,220,.38);
    border-left:4px solid #c9a5df;
    border-radius:8px;
    background:linear-gradient(120deg,rgba(72,53,104,.8),rgba(53,40,78,.72));
    color:#f7f2fa;
    font-size:12px;
    line-height:1.35;
    overflow-wrap:anywhere;
}
.home-mia-card .personaje-ia-message-author{ color:#e4c9ef; font-size:10px; font-weight:700; }
.home-mia-card .personaje-ia-form{ display:flex; gap:8px; }
.home-mia-card .personaje-ia-form input{
    min-width:0;
    flex:1;
    height:42px;
    padding:0 11px;
    border:1px solid rgba(157,171,206,.55);
    border-radius:8px;
    background:rgba(29,38,57,.8);
    color:#fff;
    font-size:12px;
}
.home-mia-card .personaje-ia-form button{
    min-width:86px;
    height:42px;
    padding:0 11px;
    border:0;
    border-radius:8px;
    background:linear-gradient(135deg,#c65c91,#9754be);
    color:#fff;
    cursor:pointer;
    font-size:12px;
    font-weight:800;
}
.home-mia-card .personaje-ia-form button:disabled{ opacity:.5; cursor:wait; }
@media (max-width:760px){
    .home-mia-section{ padding:0 16px 38px; }
    .home-mia-card{ grid-template-columns:1fr; gap:14px; padding:17px; }
    .home-mia-profile{ flex-direction:row; flex-wrap:wrap; justify-content:flex-start; gap:8px 12px; padding:0 0 12px; border-right:0; border-bottom:1px solid rgba(185,141,221,.2); text-align:left; }
    .home-mia-avatar-wrap{ width:64px; height:64px; margin:0; }
    .home-mia-avatar{ width:64px; height:64px; }
    .home-mia-status{ width:15px; height:15px; border-width:2px; }
    .home-mia-profile h3{ align-self:center; }
    .home-mia-profile p{ align-self:center; margin-right:auto; }
    .home-mia-chip{ align-self:center; }
}
@media (max-width:430px){
    .home-mia-heading h2{ font-size:20px; }
    .home-mia-card .personaje-ia-form{ flex-direction:column; }
    .home-mia-card .personaje-ia-form button{ width:100%; }
}

/* HERO — tiendas destacadas reales del Marketplace */
.hero-store-showcase { position: relative; width: 100%; height: 100%; }
.hero-store-card {
    position: absolute;
    width: 238px;
    min-height: 286px;
    background: linear-gradient(160deg, rgba(27,29,42,.98), rgba(13,14,22,.98));
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 60px -12px rgba(0,0,0,.72), 0 0 0 1px rgba(245,31,72,.06);
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease;
}
.hero-store-card:hover { transform: translateY(-6px) rotate(0deg); border-color: rgba(245,31,72,.55); }
.hero-store-card-front { top: 0; left: 0; z-index: 2; transform: rotate(2deg); }
.hero-store-card-back { top: 62px; right: -18px; z-index: 1; transform: rotate(-5deg) scale(.91); opacity: .93; }
.hero-store-card-back:hover { transform: translateY(-6px) rotate(0deg) scale(.91); }
.hero-store-media { height: 154px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #211020, #101524); overflow: hidden; }
.hero-store-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-store-media img.hero-store-logo { object-fit: contain; padding: 28px; background: radial-gradient(circle, rgba(245,31,72,.22), rgba(13,14,22,.98) 72%); }
.hero-store-placeholder { padding: 18px; color: var(--muted); font-size: 11px; text-align: center; }
.hero-store-info { padding: 13px 15px 15px; }
.hero-store-kicker { color: var(--brand); font-size: 9px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.hero-store-info h3 { margin: 5px 0 4px; color: var(--color-texto-claro); font-family: 'Syne', sans-serif; font-size: 16px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-store-info p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.hero-store-metrics { display: flex; gap: 8px; margin-top: 9px; color: #e9eaf0; font-size: 10px; }
.hero-store-metrics span { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.hero-store-metrics i { color: var(--brand); font-size: 9px; }
.hero-store-empty { color: var(--muted); font-size: 11px; padding: 25px 14px; text-align: center; }
@media (max-width: 780px) {
    .hero-card-stack { transform: scale(.86) rotate(3deg) translate(8px, 0); transform-origin: center; }
    .hero-store-card-back { right: -8px; }
}

/* SHOPISELL AI LAYOUT — Home: Mía en bloque propio */
.home-mia-section{
    max-width:1180px;
    margin:30px auto 38px;
    padding:0 24px;
    box-sizing:border-box;
}
.home-mia-heading{ max-width:620px; margin:0 0 18px; }
.home-mia-heading h2{ margin:5px 0 7px; font-size:clamp(22px,3vw,32px); }
.home-mia-heading p{ max-width:560px; margin:0; line-height:1.5; }
.home-mia-card{
    display:grid;
    grid-template-columns:235px minmax(0,1fr);
    gap:30px;
    align-items:center;
    max-width:960px;
    margin:0 auto;
    padding:24px 30px;
    border-radius:20px;
}
.home-mia-profile{ align-self:stretch; display:flex; flex-direction:column; align-items:center; justify-content:center; padding-right:25px; border-right:1px solid rgba(201,165,223,.18); }
.home-mia-avatar-wrap{ width:128px; height:128px; }
.home-mia-avatar{ width:128px; height:128px; object-fit:cover; }
.home-mia-profile h3{ margin:12px 0 4px; font-size:25px; }
.home-mia-profile p{ margin:0 0 10px; text-align:center; font-size:12px; }
.home-mia-main{ min-width:0; }
.home-mia-note{ margin-bottom:12px; padding:10px 13px; border-left:3px solid #c9a5df; border-radius:0 9px 9px 0; font-size:12px; line-height:1.4; }
.home-mia-card .personaje-ia-chat{ margin:0; }
.home-mia-card .personaje-ia-messages{ max-height:118px; min-height:82px; overflow-y:auto; overscroll-behavior:contain; }
.home-mia-card .personaje-ia-message{ min-height:82px; padding:11px 13px; font-size:12px; }
.home-mia-card .personaje-ia-form input,.home-mia-card .personaje-ia-form button{ min-height:42px; }
@media (max-width:760px){
    .home-mia-section{ padding:0 14px; }
    .home-mia-card{ grid-template-columns:1fr; gap:18px; padding:20px; }
    .home-mia-profile{ padding:0 0 18px; border-right:0; border-bottom:1px solid rgba(201,165,223,.18); }
}

/* SHOPISELL AI CHAT THEME — Home */
.home-mia-card .personaje-ia-chat{position:relative;overflow:hidden;padding:16px;border:1px solid rgba(201,165,223,.46);border-radius:16px;background:radial-gradient(circle at 100% 0%,rgba(201,165,223,.16),transparent 38%),linear-gradient(145deg,rgba(35,24,48,.97),rgba(12,13,26,.98));box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 14px 30px rgba(0,0,0,.2)}
.home-mia-card .personaje-ia-chat::before{content:"";position:absolute;top:0;left:22px;right:22px;height:1px;background:linear-gradient(90deg,transparent,#d7aeea,#f53164,transparent);opacity:.85}
.home-mia-card .personaje-ia-chat-head{position:relative;z-index:1;padding-bottom:11px;border-bottom:1px solid rgba(255,255,255,.09)}.home-mia-card .personaje-ia-chat-head span::before{content:"✦";margin-right:7px;color:#d7aeea}
.home-mia-card .assistant-quick-actions{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:10px}.home-mia-card .assistant-quick-actions button{border:1px solid rgba(215,174,234,.28);border-radius:999px;padding:7px 11px;background:rgba(201,165,223,.09);color:#f3eaff;font-size:10px}.home-mia-card .assistant-quick-actions button:hover{border-color:#d7aeea;background:rgba(201,165,223,.18)}
.home-mia-card .personaje-ia-message{border:1px solid rgba(255,255,255,.08);border-left:3px solid #d7aeea;background:rgba(201,165,223,.09)}
.home-mia-card .personaje-ia-form input{border-color:rgba(215,174,234,.25);background:rgba(4,7,14,.72)}.home-mia-card .personaje-ia-form input:focus{outline:2px solid rgba(215,174,234,.28);border-color:#d7aeea}

/* SHOPISELL FLASH OF THE WEEK — producto real del catálogo */
.home-flash-offer{ position:relative; overflow:hidden; }
.home-flash-offer::before{ content:""; position:absolute; inset:0; background:radial-gradient(circle at 78% 50%,rgba(245,31,72,.18),transparent 32%),radial-gradient(circle at 96% 10%,rgba(126,92,255,.2),transparent 26%); pointer-events:none; }
.home-flash-offer .big-ad-inner{ position:relative; z-index:1; display:grid; grid-template-columns:minmax(0,1fr) 260px; align-items:center; gap:28px; }
.home-flash-offer .big-ad-text{ min-width:0; }
.home-flash-offer .big-ad-title{ max-width:620px; text-wrap:balance; }
.home-flash-offer .big-ad-sub{ max-width:560px; }
.home-offer-meta{ display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; min-height:30px; margin:10px 0 16px; color:#f4ecff; }
.home-offer-meta strong{ font-family:'Syne',sans-serif; font-size:26px; color:#ff5b98; }
.home-offer-meta del{ color:rgba(255,255,255,.45); font-size:14px; }
.home-offer-meta span{ padding:4px 9px; border-radius:999px; background:rgba(245,31,72,.16); border:1px solid rgba(245,31,72,.32); color:#ff9bbd; font-size:11px; font-weight:800; }
.home-offer-actions{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.home-offer-cart{ min-height:42px; padding:0 15px; border:1px solid rgba(255,255,255,.18); border-radius:9px; background:rgba(255,255,255,.06); color:#fff; font-weight:700; font-size:12px; }
.home-offer-cart:hover:not(:disabled){ border-color:#ff5b98; background:rgba(245,31,72,.16); }
.home-offer-cart:disabled{ opacity:.45; cursor:not-allowed; }
.home-offer-product-visual{ position:relative; min-height:220px; display:grid; place-items:center; padding:20px; border:1px solid rgba(255,255,255,.13); border-radius:20px; background:linear-gradient(145deg,rgba(15,21,38,.86),rgba(35,7,31,.74)); box-shadow:0 16px 42px rgba(0,0,0,.3),inset 0 1px 0 rgba(255,255,255,.08); }
.home-offer-product-visual::after{ content:""; position:absolute; width:170px; height:170px; border-radius:50%; background:radial-gradient(circle,rgba(255,78,139,.22),transparent 68%); z-index:0; }
.home-offer-product-visual img{ position:relative; z-index:1; width:190px; height:170px; object-fit:contain; border-radius:14px; filter:drop-shadow(0 15px 20px rgba(0,0,0,.42)); }
.home-offer-discount,.home-offer-stock{ position:absolute; z-index:2; padding:6px 10px; border-radius:999px; font-size:10px; font-weight:800; letter-spacing:.4px; }
.home-offer-discount{ top:12px; left:12px; background:#ff2d70; color:#fff; }
.home-offer-stock{ right:12px; bottom:12px; background:rgba(8,12,22,.86); border:1px solid rgba(255,255,255,.15); color:#bdf8d3; }
@media (max-width:760px){
    .home-flash-offer .big-ad-inner{ grid-template-columns:1fr; gap:18px; }
    .home-offer-product-visual{ min-height:190px; }
    .home-offer-product-visual img{ width:170px; height:140px; }
}

/* SHOPISELL PREMIUM ASSISTANTS — alineación final Home */
.home-mia-heading{ max-width:960px; margin:0 auto 18px; padding:0 4px; text-align:left; }
.home-mia-heading .home-mia-kicker{ display:inline-flex; align-items:center; gap:7px; letter-spacing:1.6px; }
.home-mia-heading .home-mia-kicker::before{ content:"✦"; color:#d7aeea; }
.home-mia-heading h2{ margin:7px 0 6px; font-size:clamp(24px,3.2vw,34px); line-height:1.08; letter-spacing:-.6px; }
.home-mia-heading p{ max-width:640px; font-size:12px; color:rgba(240,240,255,.58); }
.home-mia-card{ position:relative; grid-template-columns:218px minmax(0,1fr); gap:26px; max-width:960px; padding:22px 24px; border:1px solid rgba(164,139,211,.42); background:linear-gradient(145deg,rgba(18,22,39,.96),rgba(12,14,26,.98)); box-shadow:0 22px 55px rgba(0,0,0,.34),inset 0 1px 0 rgba(255,255,255,.06); }
.home-mia-card::before{ content:""; position:absolute; top:0; left:26px; right:26px; height:1px; background:linear-gradient(90deg,transparent,#d7aeea,#ff4f94,transparent); opacity:.9; }
.home-mia-profile{ padding-right:24px; border-right:1px solid rgba(201,165,223,.22); }
.home-mia-profile h3{ font-family:'Syne',sans-serif; font-size:27px; letter-spacing:-.3px; }
.home-mia-profile p{ color:rgba(240,240,255,.68); }
.home-mia-profile p span{ color:#71e2a7; }
.home-mia-chip{ border:1px solid rgba(215,174,234,.32); background:rgba(215,174,234,.12); color:#efd8ff; }
.home-mia-main{ display:flex; flex-direction:column; justify-content:center; min-width:0; }
.home-mia-note{ margin-bottom:11px; border:1px solid rgba(201,165,223,.18); border-left:3px solid #d7aeea; background:rgba(201,165,223,.08); color:#f3eaff; }
.home-mia-card .personaje-ia-chat{ border-radius:15px; background:linear-gradient(160deg,rgba(28,22,43,.96),rgba(12,14,27,.98)); box-shadow:inset 0 1px 0 rgba(255,255,255,.05); }
.home-mia-card .personaje-ia-chat-head{ display:flex; align-items:center; min-height:30px; }
.home-mia-card .personaje-ia-chat-head span{ font-weight:800; letter-spacing:.1px; }
.home-mia-card .assistant-quick-actions button{ font-weight:700; }
.home-mia-card .personaje-ia-message{ box-shadow:inset 0 1px 0 rgba(255,255,255,.04); }
@media (max-width:760px){
    .home-mia-heading{ padding:0; }
    .home-mia-card{ grid-template-columns:1fr; gap:16px; padding:20px; }
    .home-mia-profile{ padding:0 0 16px; border-right:0; border-bottom:1px solid rgba(201,165,223,.22); }
}


/* Chat IA compacto y accesible en Home — v2 */
.home-mia-section{
    max-width:960px;
    margin:26px auto 0;
    padding:0 18px 34px;
}
.home-mia-heading{ margin-bottom:10px; }
.home-mia-heading h2{ font-size:21px; }
.home-mia-heading p{ font-size:12px; }
.home-mia-card{
    grid-template-columns:118px minmax(0,1fr);
    gap:16px;
    align-items:start;
    padding:14px 16px;
    border-radius:14px;
}
.home-mia-profile{ padding-right:14px; }
.home-mia-avatar-wrap,.home-mia-avatar{ width:68px; height:68px; }
.home-mia-status{ width:14px; height:14px; border-width:2px; }
.home-mia-profile h3{ font-size:17px; }
.home-mia-profile p{ font-size:10px; }
.home-mia-chip{ min-height:21px; padding:0 8px; font-size:9px; }
.home-mia-note{
    min-height:34px;
    margin-bottom:8px;
    padding:7px 10px;
    border-left-width:3px;
    font-size:11px;
    font-weight:600;
}
.home-mia-card .personaje-ia-chat-head{ margin-bottom:6px; font-size:11px; }
.home-mia-card .personaje-ia-chat-head small{ font-size:9px; }
.home-mia-card .assistant-quick-actions{ gap:5px; margin-bottom:6px; }
.home-mia-card .assistant-quick-actions button{
    min-height:28px;
    padding:4px 8px;
    font-size:10px;
}
.home-mia-card .personaje-ia-messages{
    min-height:52px;
    max-height:112px;
    gap:5px;
    margin-bottom:7px;
}
.home-mia-card .personaje-ia-message{
    min-height:52px;
    padding:7px 9px;
    border-left-width:3px;
    font-size:11px;
    line-height:1.35;
}
.home-mia-card .personaje-ia-message-author{ font-size:9px; }
.home-mia-card .personaje-ia-form{ gap:6px; }
.home-mia-card .personaje-ia-form input{
    height:36px;
    padding:0 9px;
    font-size:11px;
}
.home-mia-card .personaje-ia-form button{
    min-width:72px;
    height:36px;
    padding:0 9px;
    font-size:10px;
}
.home-mia-card button:focus-visible,
.home-mia-card input:focus-visible{
    outline:3px solid rgba(217,161,238,.72);
    outline-offset:2px;
}
@media (max-width:680px){
    .home-mia-section{ padding:0 12px 26px; }
    .home-mia-card{ grid-template-columns:1fr; gap:11px; }
    .home-mia-profile{
        display:grid;
        grid-template-columns:54px minmax(0,1fr) auto;
        grid-template-rows:auto auto;
        column-gap:10px;
        align-items:center;
        padding:0 0 10px;
        border-right:0;
        border-bottom:1px solid rgba(185,141,221,.2);
        text-align:left;
    }
    .home-mia-avatar-wrap,.home-mia-avatar{ width:54px; height:54px; }
    .home-mia-avatar-wrap{ grid-row:1 / span 2; margin:0; }
    .home-mia-profile h3{ font-size:16px; }
    .home-mia-profile p{ margin:0; }
    .home-mia-chip{ grid-column:3; grid-row:1 / span 2; }
    .home-mia-card .personaje-ia-form input{ min-width:0; }
}
@media (prefers-reduced-motion:reduce){
    .home-mia-card .personaje-ia-messages{ scroll-behavior:auto; }
}


.mkt-card-logo-fallback{
    display:grid;
    place-items:center;
    width:100%;
    height:100%;
    color:#fff;
    font-weight:800;
    letter-spacing:.04em;
}


/* ==========================================
   CHAT IA — BURBUJAS CON AVATAR Y LAYOUT PRO
   ========================================== */
.home-mia-card .personaje-ia-messages,
.personaje-ia-messages{
    align-content:start;
}
.personaje-ia-message{
    display:flex !important;
    align-items:flex-start;
    gap:8px;
    width:min(92%, 560px);
    min-height:0 !important;
    padding:8px 10px !important;
    border:1px solid rgba(255,255,255,.1) !important;
    border-left:0 !important;
    border-radius:14px 14px 14px 5px !important;
    background:rgba(255,255,255,.055) !important;
    box-shadow:0 5px 14px rgba(0,0,0,.12);
}
.personaje-ia-message-user{
    justify-self:end;
    flex-direction:row-reverse;
    border-radius:14px 14px 5px 14px !important;
    border-right:3px solid #ff5e88 !important;
    background:rgba(245,31,72,.12) !important;
}
.personaje-ia-message-assistant{ border-left:3px solid #c9a5df !important; }
.personaje-ia-message-avatar{
    flex:0 0 28px;
    width:28px;
    height:28px;
    object-fit:cover;
    border:1px solid rgba(255,255,255,.25);
    border-radius:50%;
    background:#151a29;
}
.personaje-ia-message-body{
    display:grid;
    gap:2px;
    min-width:0;
}
.personaje-ia-message-user .personaje-ia-message-body{ text-align:right; }
.personaje-ia-message-text{ overflow-wrap:anywhere; }

/* Menús principales: navegación centrada, no apariencia de paginación */
.nav-principal ul{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
}
.nav-principal .nav-btn{
    min-height:38px;
    padding:0 16px;
    border:1px solid transparent;
    border-radius:999px;
    transition:background .2s ease, border-color .2s ease, transform .2s ease;
}
.nav-principal .nav-btn:hover{ transform:translateY(-1px); }
.nav-principal .nav-btn.active{
    border-color:rgba(255,255,255,.14);
    background:rgba(255,255,255,.09);
    box-shadow:0 7px 18px rgba(0,0,0,.16);
}
.tienda-online-head,
.tienda-view-switch{
    justify-content:center !important;
    text-align:center;
}
.tienda-online-tabs{
    justify-content:center;
    margin-inline:auto;
    border-radius:999px !important;
}
.tienda-online-tab{ border-radius:999px !important; }

@media (max-width:680px){
    .nav-principal ul{ gap:5px; }
    .nav-principal .nav-btn{ min-height:34px; padding:0 11px; font-size:11px; }
    .personaje-ia-message{ width:96%; }
}

/* ==========================================
   IA COMPACTA — burbuja con avatar y chat bajo demanda
   ========================================== */
.personaje-ia-launcher {
    display: flex; align-items: center; gap: 10px; width: 100%; min-height: 58px;
    padding: 8px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px;
    color: #fff; background: rgba(20,20,31,.88); cursor: pointer; text-align: left;
    box-shadow: 0 8px 22px rgba(0,0,0,.18); transition: border-color .18s, transform .18s, background .18s;
}
.personaje-ia-launcher:hover { border-color: var(--brand); background: rgba(255,255,255,.07); transform: translateY(-1px); }
.personaje-ia-launcher img { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.18); }
.personaje-ia-launcher span { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.personaje-ia-launcher strong { font-size: 13px; }
.personaje-ia-launcher small { margin-top: 2px; color: #aeb4c2; font-size: 10px; }
.personaje-ia-launcher > i { color: var(--brand); font-size: 16px; margin-right: 5px; }
.personaje-ia-chat:not(.personaje-ia-chat-open) { display: none !important; }
.personaje-ia-chat.personaje-ia-chat-open { display: block; margin-top: 10px; animation: iaChatOpen .18s ease-out; }
@keyframes iaChatOpen { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.home-mia-card .personaje-ia-launcher { max-width: 360px; }
@media (max-width: 680px) { .personaje-ia-launcher { min-height: 54px; } .personaje-ia-launcher img { width: 36px; height: 36px; flex-basis: 36px; } }

/* Home IA ultra compacto: la tarjeta desaparece y solo queda la burbuja */
.home-mia-bubble-slot { width: min(300px, calc(100% - 32px)); margin: 18px auto 28px; padding: 0; }
.home-mia-bubble-slot .personaje-ia-launcher { width: 100%; min-height: 52px; padding: 6px 10px; }
.home-mia-bubble-slot .personaje-ia-launcher img { width: 38px; height: 38px; flex-basis: 38px; }

/* A + C — píldora flotante persistente y sin bloques IA embebidos en la Home */
.home-mia-bubble-slot{
    position:fixed; right:18px; bottom:18px; z-index:1200; display:flex; flex-direction:column; gap:10px;
    width:min(310px,calc(100vw - 26px)); margin:0; filter:drop-shadow(0 16px 28px rgba(0,0,0,.42));
}
.home-mia-bubble-slot .personaje-ia-launcher{
    min-height:58px; border-color:rgba(255,91,152,.72); background:linear-gradient(135deg,rgba(36,19,39,.97),rgba(18,20,30,.96));
    border-radius:18px; padding:8px 14px;
}
.home-mia-bubble-slot .personaje-ia-launcher strong::after{ content:' · IA'; color:#ff8cba; font-size:10px; }
.home-mia-bubble-slot .personaje-ia-chat{ display:none !important; }
.home-mia-bubble-slot .personaje-ia-chat.personaje-ia-chat-open{ display:block !important; max-height:min(430px,calc(100vh - 110px)); overflow:auto; border-radius:16px; }
.home-ai-team, .home-ai-agent{ display:none !important; }
@media (max-width:680px){
    .home-mia-bubble-slot{ right:12px; bottom:12px; width:min(280px,calc(100vw - 24px)); }
}

/* Chats IA de sesiones: solo burbuja flotante, nunca un bloque dentro de una tarjeta. */
.personaje-ia-launcher.personaje-ia-floating-launcher{
    position:fixed; right:18px; bottom:calc(18px + (var(--ia-slot, 0) * 70px)); z-index:1400;
    width:58px; min-height:58px; height:58px; padding:5px; display:flex; justify-content:center;
    border-radius:50%; border-color:rgba(255,91,152,.7); background:linear-gradient(145deg,#321d3a,#151827);
    box-shadow:0 14px 30px rgba(0,0,0,.42),0 0 0 4px rgba(245,31,72,.08);
}
.personaje-ia-launcher.personaje-ia-floating-launcher img{width:46px;height:46px;flex-basis:46px;border-width:2px}
.personaje-ia-launcher.personaje-ia-floating-launcher span,
.personaje-ia-launcher.personaje-ia-floating-launcher > i{display:none}
.personaje-ia-launcher.personaje-ia-floating-launcher:hover{transform:translateY(-2px) scale(1.03)}
[data-personaje-chat][data-screen]:not([data-screen="home"]).personaje-ia-chat-open{
    position:fixed; right:18px; bottom:calc(84px + (var(--ia-slot, 0) * 70px)); z-index:1399;
    width:min(360px,calc(100vw - 28px)); max-height:min(430px,calc(100vh - 110px)); margin:0!important;
    overflow:auto; border-radius:16px; box-shadow:0 20px 55px rgba(0,0,0,.48);
}
@media (max-width:680px){
    .personaje-ia-launcher.personaje-ia-floating-launcher{right:12px;bottom:calc(12px + (var(--ia-slot, 0) * 64px))}
    [data-personaje-chat][data-screen]:not([data-screen="home"]).personaje-ia-chat-open{right:12px;bottom:calc(76px + (var(--ia-slot, 0) * 64px));width:calc(100vw - 24px)}
}


/* Home unificado: hero más corto, tarjetas con identidad de tienda y móvil despejado. */
.hero-inner{ min-height:0; padding-top:34px; padding-bottom:24px; }
.hero-title{ font-size:clamp(38px,4.4vw,56px); line-height:1.02; margin-bottom:1rem; }
.hero-sub{ margin-bottom:1.35rem; }
.hero-stats{ margin-top:1.25rem; padding-top:14px; }
.hero-store-card{
    --hero-store-primary:#f53164;
    --hero-store-secondary:#ff8b61;
    --hero-store-accent:#ffd166;
    border-color:color-mix(in srgb,var(--hero-store-primary) 42%,rgba(255,255,255,.1));
    background:linear-gradient(155deg,color-mix(in srgb,var(--hero-store-primary) 18%,#1b1d2a),#0d0e16 78%);
    box-shadow:0 24px 60px -12px rgba(0,0,0,.72),0 0 26px color-mix(in srgb,var(--hero-store-primary) 18%,transparent);
}
.hero-store-card:hover{ border-color:var(--hero-store-primary); }
.hero-store-media{ background:radial-gradient(circle at 25% 15%,color-mix(in srgb,var(--hero-store-secondary) 34%,transparent),transparent 52%),linear-gradient(135deg,color-mix(in srgb,var(--hero-store-primary) 22%,#211020),#101524); }
.hero-store-media img.hero-store-logo{ background:radial-gradient(circle,color-mix(in srgb,var(--hero-store-primary) 32%,transparent),rgba(13,14,22,.98) 72%); }
.hero-store-kicker{ color:var(--hero-store-primary); }
.hero-store-metrics i{ color:var(--hero-store-accent); }
@media (max-width:640px){
    .hero-title{ font-size:clamp(34px,9.5vw,44px); letter-spacing:-1.5px; }
    .hero-visual{ display:none !important; }
    .hero-inner{ padding-top:25px; padding-bottom:20px; }
}


/* Registro seguro: lectura completa de términos antes de aceptar. */
.sales-terms-consent { display:grid; gap:8px; margin:12px 0; font-size:12px; color:rgba(255,255,255,.72); }
.sales-terms-consent label { display:flex; align-items:flex-start; gap:8px; line-height:1.45; }
.sales-terms-consent input[type="checkbox"] { accent-color:#ff1464; margin-top:2px; }
.sales-terms-modal { position:fixed; inset:0; z-index:1500; display:grid; place-items:center; padding:18px; background:rgba(0,0,0,.78); }
.sales-terms-modal.hidden { display:none; }
.sales-terms-dialog { width:min(720px, 100%); max-height:min(82vh, 720px); display:flex; flex-direction:column; background:#17111f; border:1px solid rgba(255,20,100,.45); border-radius:18px; box-shadow:0 24px 80px rgba(0,0,0,.5); padding:18px; }
.sales-terms-header { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.sales-terms-header h3 { margin:0; }
.sales-terms-header button { border:0; background:none; color:#fff; font-size:26px; cursor:pointer; }
.sales-terms-content { white-space:pre-wrap; overflow:auto; min-height:180px; margin:14px 0 8px; padding:16px; border-radius:12px; background:rgba(255,255,255,.06); color:rgba(255,255,255,.84); line-height:1.65; }

/* Perfil premium: identidad ShOPIseLL aplicada al centro de cuenta. */
#perfil-section .container{max-width:1120px;}
#perfil-section .section-title{letter-spacing:-.03em;text-shadow:0 8px 30px rgba(245,31,72,.16);}
#perfil-section .perfil-card,#perfil-section .perfil-onboarding-card,#perfil-section .perfil-tabs,#perfil-section .perfil-tab-content{border:1px solid rgba(245,31,72,.18);background:linear-gradient(145deg,rgba(31,20,42,.94),rgba(11,14,25,.98));box-shadow:0 22px 70px rgba(0,0,0,.24),inset 0 1px 0 rgba(255,255,255,.06);}
#perfil-section .perfil-card{position:relative;overflow:hidden;border-radius:24px;padding:25px;}
#perfil-section .perfil-card::before,#perfil-section .perfil-onboarding-card::before{content:"";position:absolute;inset:0 0 auto;height:2px;background:linear-gradient(90deg,transparent,#f53164,#d7aeea,transparent);opacity:.9;}
#perfil-section .perfil-avatar{border:2px solid rgba(245,31,72,.72);box-shadow:0 0 0 6px rgba(245,31,72,.08),0 12px 32px rgba(0,0,0,.3);}
#perfil-section .perfil-nombre{font-family:'Syne',sans-serif;font-size:clamp(20px,3vw,30px);font-weight:800;}
#perfil-section .perfil-onboarding-card{position:relative;overflow:hidden;border-radius:24px;padding:26px;margin-top:22px;}
#perfil-section .perfil-form-section{border-color:rgba(255,255,255,.1);background:rgba(255,255,255,.025);border-radius:16px;}
#perfil-section .perfil-field{color:#f4f1ff;}
#perfil-section .perfil-field input,#perfil-section .perfil-field select{border-color:rgba(215,174,234,.22);background:rgba(7,10,19,.72);border-radius:12px;min-height:44px;transition:border-color .2s,box-shadow .2s,transform .2s;}
#perfil-section .perfil-field input:focus,#perfil-section .perfil-field select:focus{border-color:#f53164;box-shadow:0 0 0 3px rgba(245,31,72,.13);transform:translateY(-1px);}
#perfil-section #perfil-correo{color:#d7aeea;border-color:rgba(215,174,234,.4);background:rgba(215,174,234,.06);}
#perfil-section .perfil-form-actions .btn-publicar{box-shadow:0 12px 28px rgba(245,31,72,.22);}
@media (max-width:760px){#perfil-section .perfil-card,#perfil-section .perfil-onboarding-card{padding:18px;border-radius:18px;}#perfil-section .perfil-card{gap:14px;}}
