/* =========================================================
   LOS REMATES — Hoja de estilos
   Diseño limpio y moderno. Verde de marca, tipografía con
   carácter (Plus Jakarta Sans), sombras suaves y micro-interacciones.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --green-50:  #ecfdf3;
    --green-100: #d1fadf;
    --green-400: #32d583;
    --green-500: #12b76a;
    --green-600: #039855;
    --green-700: #027a48;

    --ink:   #101828;
    --body:  #475467;
    --muted: #667085;
    --line:  #eaecf0;
    --bg:    #f7f8fa;
    --card:  #ffffff;
    --soft:       #f2f4f7;
    --soft-hover: #eef1f4;

    --radius-sm: 10px;
    --radius:    16px;
    --radius-lg: 22px;

    --shadow-xs: 0 1px 2px rgba(16,24,40,.05);
    --shadow-sm: 0 1px 3px rgba(16,24,40,.08), 0 1px 2px rgba(16,24,40,.04);
    --shadow:    0 8px 24px rgba(16,24,40,.08);
    --shadow-lg: 0 18px 40px rgba(16,24,40,.14);

    --bs-body-font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

/* ---- Modo oscuro ----
   Activado con data-theme="dark" en <html> (ver inline script en <head> y
   el toggle en el header). Los componentes usan var(--card)/var(--soft)/etc.,
   así que la mayoría se adapta sola; solo el verde de marca se aclara un
   poco para mantener 4.5:1 de contraste sobre fondo oscuro. */
:root[data-theme="dark"] {
    --green-50:  #0b2e22;
    --green-100: #113a2b;
    --green-400: #34d399;
    --green-500: #2fd492;
    --green-600: #34d399;
    --green-700: #5eead4;

    --ink:   #f3f5f7;
    --body:  #cdd5df;
    --muted: #98a2b3;
    --line:  #262c36;
    --bg:    #0b0e14;
    --card:  #12161f;
    --soft:       #1b212c;
    --soft-hover: #232a36;

    --shadow-xs: 0 1px 2px rgba(0,0,0,.4);
    --shadow-sm: 0 1px 3px rgba(0,0,0,.5), 0 1px 2px rgba(0,0,0,.3);
    --shadow:    0 8px 24px rgba(0,0,0,.45);
    --shadow-lg: 0 18px 40px rgba(0,0,0,.55);
}

/* ---- Base ---- */
* { -webkit-font-smoothing: antialiased; }
body {
    font-family: var(--bs-body-font-family);
    color: var(--body);
    background: var(--bg);
    line-height: 1.55;
}
h1, h2, h3, h4, h5, h6 { color: var(--ink); font-weight: 700; letter-spacing: -.01em; }
a { text-decoration: none; }

/* ---- Overrides de color (verde de marca) ---- */
.btn { --bs-btn-font-weight: 600; border-radius: 10px; }
.btn-lg { border-radius: 12px; }
.btn-success {
    --bs-btn-bg: var(--green-600); --bs-btn-border-color: var(--green-600);
    --bs-btn-hover-bg: var(--green-700); --bs-btn-hover-border-color: var(--green-700);
    --bs-btn-active-bg: var(--green-700); --bs-btn-active-border-color: var(--green-700);
    --bs-btn-color: #fff; --bs-btn-hover-color: #fff;
    --bs-btn-focus-shadow-rgb: 5,152,85;
    box-shadow: 0 4px 12px rgba(3,152,85,.22);
}
.btn-outline-success {
    --bs-btn-color: var(--green-700); --bs-btn-border-color: var(--green-600);
    --bs-btn-hover-bg: var(--green-600); --bs-btn-hover-border-color: var(--green-600);
    --bs-btn-active-bg: var(--green-700);
}
/* Bootstrap fija el texto de .btn-light en negro puro sin importar el tema;
   lo atamos a nuestras variables para que no se vuelva invisible en modo oscuro. */
.btn-light {
    --bs-btn-color: var(--ink); --bs-btn-bg: var(--soft); --bs-btn-border-color: var(--line);
    --bs-btn-hover-color: var(--ink); --bs-btn-hover-bg: var(--soft-hover); --bs-btn-hover-border-color: var(--line);
    --bs-btn-active-color: var(--ink); --bs-btn-active-bg: var(--soft-hover); --bs-btn-active-border-color: var(--line);
    --bs-btn-disabled-color: var(--muted); --bs-btn-disabled-bg: var(--soft); --bs-btn-disabled-border-color: var(--line);
}
.text-success { color: var(--green-600) !important; }
.bg-success   { background-color: var(--green-600) !important; }
.form-control, .form-select { border-radius: 10px; border-color: var(--line); padding: .55rem .8rem; }
.form-control:focus, .form-select:focus { border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(18,183,106,.15); }
.form-label { color: var(--ink); font-size: .9rem; margin-bottom: .35rem; }
.input-group-text { background: var(--card); border-color: var(--line); color: var(--muted); }

.container { max-width: 1200px; }
.section { padding: 2.6rem 0; }
.container.section { padding-left: .75rem; padding-right: .75rem; }
.section__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.3rem; gap: 1rem; }
.section__title { font-size: 1.4rem; margin: 0; }
.section__link { color: var(--green-700); font-weight: 600; font-size: .92rem; }
.section__link:hover { color: var(--green-600); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-xs); z-index: 1030; }
.site-header .navbar { padding: .7rem 0; }
.brand-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 10px; margin-right: .45rem;
    background: linear-gradient(135deg, var(--green-500), var(--green-700));
    color: #fff; font-size: 1.05rem;
}
.brand-text { font-weight: 800; font-size: 1.28rem; color: var(--ink); letter-spacing: -.02em; }
.navbar-brand { display: flex; align-items: center; }
.header-search .form-control { border-color: var(--line); }
.header-search .input-group { box-shadow: var(--shadow-xs); border-radius: 12px; }
.header-search .input-group > * { border-radius: 0; }
.header-search .input-group-text:first-child { border-radius: 12px 0 0 12px; }
.header-search .btn { border-radius: 0 12px 12px 0; }
.nav-link { color: var(--body); font-weight: 600; }
.nav-link:hover { color: var(--green-700); }

.theme-toggle {
    width: 44px; height: 44px; padding: 0; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--soft); border: 1px solid var(--line); color: var(--ink); font-size: 1.05rem;
}
.theme-toggle:hover { background: var(--soft-hover); color: var(--green-700); }

.breadcrumb-bar { background: var(--card); border-bottom: 1px solid var(--line); }
.breadcrumb-bar .breadcrumb-item a { color: var(--green-700); }
.breadcrumb-bar .breadcrumb-item.active { color: var(--muted); }
.breadcrumb-bar .breadcrumb-item + .breadcrumb-item::before { color: var(--muted); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
    /* --card en vez de #fff: en modo oscuro --card es un gris oscuro elevado,
       no blanco puro, así que el degradado no corta en diagonal de blanco a
       negro contra --bg (que sí es casi negro en modo oscuro). */
    background:
        radial-gradient(1200px 400px at 90% -10%, var(--green-50), transparent),
        linear-gradient(180deg, var(--card), var(--bg));
    padding: 3.4rem 0 2.6rem;
    border-bottom: 1px solid var(--line);
}
.hero__eyebrow {
    display: inline-flex; align-items: center; gap: .4rem;
    background: var(--green-50); color: var(--green-700);
    font-weight: 700; font-size: .82rem; padding: .35rem .8rem; border-radius: 999px;
    border: 1px solid var(--green-100);
}
.hero__title {
    font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 800; line-height: 1.08;
    margin: 1rem 0 .8rem; letter-spacing: -.03em;
}
.hero__subtitle { font-size: 1.08rem; color: var(--muted); max-width: 34rem; margin-bottom: 1.5rem; }
.hero__search { max-width: 34rem; }
.hero__search .input-group { border-radius: 14px; overflow: hidden; }
.hero__search .form-control { border: none; padding: .9rem 1rem; font-size: 1rem; }
.hero__search .input-group-text { border: none; }
.hero__search-submit { padding-inline: 1rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 1.2rem; color: var(--muted); font-size: .9rem; font-weight: 500; }
@media (max-width: 575.98px) {
    .hero__search .input-group-lg > .input-group-text { padding-inline: .65rem; }
    .hero__search .input-group-lg > .form-control { min-width: 0; padding: .75rem .6rem; font-size: .95rem; }
    .hero__search-submit { padding-inline: .75rem; }
}
.hero__banner { border-radius: var(--radius-lg); overflow: hidden; }
.hero__banner img { aspect-ratio: 16/11; object-fit: cover; }
.hero__banner--default { position: relative; isolation: isolate; background: #101828; }
.hero__banner--default::after { content: ''; position: absolute; z-index: 0; inset: 48% 0 0; background: linear-gradient(180deg, transparent, rgba(16,24,40,.78)); pointer-events: none; }
.hero__banner-caption { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: .15rem; padding: 1rem 1.25rem; color: #fff; }
.hero__banner-caption span { font-size: .76rem; font-weight: 600; color: rgba(255,255,255,.82); }
.hero__banner-caption strong { font-size: 1.08rem; line-height: 1.3; }
.hero__banner-wrap { position: relative; }

/* Tarjeta flotante con la última venta real (datos de $sold, nunca
   inventados). Le da profundidad al héroe y refuerza la prueba social: la
   idea de "ofertas reales, todos los días" se ve, no solo se dice. */
.hero__sold-card {
    position: absolute;
    left: 1.25rem;
    bottom: -1.1rem;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: .65rem;
    max-width: calc(100% - 2.5rem);
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: .7rem 1rem;
    animation: heroSoldIn .5s ease .3s both;
}
.hero__sold-dot {
    flex-shrink: 0;
    width: .55rem; height: .55rem; border-radius: 50%;
    background: var(--green-500);
    box-shadow: 0 0 0 0 rgba(18,183,106,.55);
    animation: heroSoldPulse 2s ease-out infinite;
}
.hero__sold-text { min-width: 0; display: flex; flex-direction: column; gap: .05rem; }
.hero__sold-text strong { font-size: .86rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero__sold-text span { font-size: .76rem; color: var(--muted); }

@keyframes heroSoldPulse {
    0%   { box-shadow: 0 0 0 0 rgba(18,183,106,.55); }
    70%  { box-shadow: 0 0 0 8px rgba(18,183,106,0); }
    100% { box-shadow: 0 0 0 0 rgba(18,183,106,0); }
}
@keyframes heroSoldIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .hero__sold-card { animation: none; }
    .hero__sold-dot { animation: none; }
}
@media (max-width: 575.98px) {
    .hero__sold-card { left: .75rem; bottom: -0.9rem; padding: .55rem .8rem; }
    .hero__sold-text strong { font-size: .8rem; }
    .hero__sold-text span { font-size: .72rem; }
}

.hero__illustration {
    aspect-ratio: 16/11; border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--green-500), var(--green-700));
    display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.85); font-size: 6rem;
    box-shadow: var(--shadow-lg);
}

/* =========================================================
   CATEGORÍAS
   ========================================================= */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; }
.category-chip {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.1rem 1rem; display: flex; flex-direction: column; align-items: flex-start; gap: .3rem;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    position: relative;
}
.category-chip:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--green-100); }
.category-chip__icon { font-size: 1.7rem; line-height: 1; }
.category-chip__name { color: var(--ink); font-weight: 700; font-size: .95rem; }
.category-chip__count { color: var(--muted); font-size: .8rem; font-weight: 600; }

/* =========================================================
   TARJETA DE PRODUCTO
   ========================================================= */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 260px)); justify-content: center; gap: 1.1rem; }
.remates-carousel { position: relative; }
.remates-carousel__controls { display: flex; justify-content: flex-end; gap: .5rem; margin: -.35rem 0 .8rem; }
.remates-carousel__control, .category-carousel__control { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--ink); box-shadow: var(--shadow-xs); transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease; }
.remates-carousel__control:hover, .category-carousel__control:hover { color: #fff; background: var(--green-600); border-color: var(--green-600); transform: translateY(-1px); }
.remates-carousel__control:focus-visible, .category-carousel__control:focus-visible { outline: 3px solid var(--green-100); outline-offset: 2px; }
.remates-carousel__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-inline: contain; }
.remates-carousel__viewport::-webkit-scrollbar { display: none; }
.remates-carousel__track { display: flex; align-items: stretch; gap: 1rem; }
.remates-carousel__item { flex: 0 0 calc((100% - 2rem) / 3); min-width: 0; scroll-snap-align: start; }
.remates-empty { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(0, 1.4fr); align-items: center; gap: clamp(1.25rem, 4vw, 3rem); padding: clamp(1.25rem, 3vw, 2rem); background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-xs); }
.remates-empty__image { aspect-ratio: 16 / 10; min-width: 0; border-radius: 8px; background: linear-gradient(135deg, rgba(16,24,40,.12), rgba(16,24,40,.54)), url('../img/stock/remates-gemini.jpeg') center 48% / cover; }
.remates-empty__eyebrow { display: block; color: var(--green-700); font-size: .78rem; font-weight: 700; margin-bottom: .45rem; }
.remates-empty__copy h3 { color: var(--ink); font-size: clamp(1.2rem, 2vw, 1.55rem); margin: 0 0 .45rem; }
.remates-empty__copy p { color: var(--muted); margin: 0; max-width: 42rem; }
.remates-empty__actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1rem; }
.remates-empty__actions .btn { border-radius: 8px; }
.product-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line); }
.product-card__media { position: relative; display: block; aspect-ratio: 1/1; background: var(--soft); overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-card__media img { transform: scale(1.04); }
.product-card__badge { position: absolute; top: .6rem; left: .6rem; font-weight: 700; }
.product-card__condition {
    position: absolute; bottom: .6rem; left: .6rem; background: rgba(16,24,40,.72); color: #fff;
    font-size: .72rem; font-weight: 600; padding: .2rem .55rem; border-radius: 999px; backdrop-filter: blur(4px);
}
.product-card__sold {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(16,24,40,.5); color: #fff; font-weight: 800; letter-spacing: .1em; font-size: 1.1rem;
}
.product-card__body { padding: .85rem .9rem 1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.product-card__prices { display: flex; flex-direction: column; align-items: flex-start; gap: .12rem; }
.product-card__original, .product-detail__original { color: var(--muted); font-size: .8rem; }
.product-card__price-line, .product-detail__sale-line { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; }
.product-card__price { font-size: 1.22rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.product-card__discount, .product-detail__discount { display: inline-flex; align-items: center; background: var(--green-50); color: var(--green-700); font-size: .72rem; font-weight: 700; padding: .18rem .42rem; border-radius: 4px; white-space: nowrap; }
.product-card__title { font-size: .92rem; font-weight: 600; margin: 0; line-height: 1.35; }
.product-card__title a { color: var(--body); }
.product-card__title a:hover { color: var(--green-700); }
.product-card__meta { margin-top: auto; display: flex; flex-direction: column; gap: .15rem; color: var(--muted); font-size: .78rem; }
.product-card__meta i { color: var(--green-600); }

/* =========================================================
   CTA + FOOTER
   ========================================================= */
.cta-band {
    margin-top: 1rem; padding: 3rem 0;
    background: linear-gradient(135deg, var(--green-600), var(--green-700));
    color: #fff; text-align: center;
}
.cta-band__title { color: #fff; font-size: 1.8rem; margin-bottom: .5rem; }
.cta-band__text { color: rgba(255,255,255,.9); max-width: 34rem; margin: 0 auto 1.4rem; }

.site-footer { background: #0d1117; color: #98a2b3; }
.site-footer .brand-text { color: #fff; }
.footer-title { color: #fff; font-size: .95rem; font-weight: 700; margin-bottom: .9rem; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: #98a2b3; font-size: .9rem; }
.footer-links a:hover { color: var(--green-400); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }

/* =========================================================
   LISTADO / FILTROS
   ========================================================= */
.filters-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; position: sticky; top: 90px; }
.filters-card__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.results-bar { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 1.3rem; gap: 1rem; flex-wrap: wrap; }
.results-bar__title { font-size: 1.35rem; margin: 0; }
.results-bar__count { color: var(--muted); margin: .2rem 0 0; font-size: .9rem; }
.filter-status { display: inline-flex; align-items: center; gap: .4rem; margin-top: .35rem; color: var(--green-700); font-size: .82rem; font-weight: 600; }
.filter-status[hidden] { display: none; }
.filter-status .spinner-border { width: .85rem; height: .85rem; border-width: .12rem; }
.results-bar__sort { display: flex; align-items: center; }

/* =========================================================
   DETALLE DE PRODUCTO
   ========================================================= */
.gallery__main { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--soft); border: 1px solid var(--line); aspect-ratio: 4/3; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; opacity: 1; transition: opacity .18s ease, transform .18s ease; }
.gallery__main img.is-changing { opacity: .2; transform: scale(.99); }
.gallery__sold { position: absolute; top: 1rem; left: 1rem; background: var(--ink); color: #fff; font-weight: 800; letter-spacing: .08em; padding: .4rem .9rem; border-radius: 8px; }
.gallery__thumbs { display: flex; gap: .6rem; margin-top: .7rem; flex-wrap: wrap; }
.gallery__thumb { width: 72px; height: 72px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--soft); cursor: pointer; transition: border-color .18s ease, transform .18s ease; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover { transform: translateY(-2px); }
.gallery__thumb.active { border-color: var(--green-500); box-shadow: 0 0 0 2px var(--green-100); }
.gallery__thumb:focus-visible { outline: 3px solid var(--green-400); outline-offset: 2px; }

.product-detail__badges { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .8rem; }
.badge-pill { font-size: .76rem; font-weight: 700; padding: .3rem .7rem; border-radius: 999px; display: inline-flex; align-items: center; gap: .3rem; }
.badge-pill--green { background: var(--green-50); color: var(--green-700); }
.badge-pill--gray  { background: var(--soft); color: var(--body); }
.badge-pill--soft  { background: var(--soft); color: var(--muted); }
.badge-pill--gold  { background: #fef7e6; color: #b54708; }
.badge-pill--red   { background: #fef3f2; color: #d92d20; }
.badge-pill--dark  { background: #101828; color: #fff; }
.product-detail__title { font-size: 1.6rem; margin-bottom: .5rem; line-height: 1.2; }
.product-detail__prices { display: flex; flex-direction: column; align-items: flex-start; gap: .12rem; margin-bottom: 1.1rem; }
.product-detail__original { font-size: .92rem; }
.product-detail__price { font-size: 2.2rem; font-weight: 800; color: var(--ink); letter-spacing: 0; line-height: 1.15; }
.product-detail__facts { list-style: none; padding: 0; margin: 0 0 1.4rem; display: flex; flex-direction: column; gap: .55rem; }
.product-detail__facts li { display: flex; align-items: center; gap: .6rem; color: var(--body); font-size: .95rem; }
.product-detail__facts i { color: var(--green-600); width: 18px; }

.btn-whatsapp {
    display: flex; align-items: center; justify-content: center; gap: .6rem;
    width: 100%; padding: 1rem; border-radius: 14px; font-size: 1.15rem; font-weight: 700;
    color: #fff; background: linear-gradient(135deg, #25d366, #1da851);
    box-shadow: 0 8px 20px rgba(29,168,81,.35); transition: transform .15s ease, box-shadow .15s ease;
}
.btn-whatsapp:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(29,168,81,.45); }
.btn-whatsapp i { font-size: 1.5rem; }
.product-detail__note { font-size: .82rem; color: var(--muted); margin-top: .7rem; text-align: center; }

.seller-card { display: flex; align-items: center; gap: .8rem; margin-top: 1.3rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); transition: box-shadow .18s ease; }
.seller-card:hover { box-shadow: var(--shadow-sm); }
.seller-card__avatar { width: 46px; height: 46px; border-radius: 12px; background: var(--green-50); color: var(--green-700); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.seller-card__label { display: block; font-size: .75rem; color: var(--muted); }
.seller-card__name { font-weight: 700; color: var(--ink); }

.content-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; margin-bottom: 1.2rem; }
.content-card__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.content-card__title { font-size: 1.1rem; margin: 0 0 1rem; }
.content-card__head .content-card__title { margin-bottom: 0; }
.content-card__body { color: var(--body); white-space: normal; }

/* =========================================================
   PERFIL DE COMPRAVENTA
   ========================================================= */
.store-cover { height: 240px; background: linear-gradient(135deg, var(--green-500), var(--green-700)); background-size: cover; background-position: center; position: relative; }
.store-cover__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(0,0,0,.15)); }
.store-header { display: flex; align-items: flex-start; gap: 1.2rem; padding-top: 14px; position: relative; flex-wrap: wrap; }
.store-header__logo { width: 120px; height: 120px; margin-top: -55px; border-radius: 22px; border: 4px solid var(--card); background: var(--card); box-shadow: var(--shadow); overflow: hidden; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.store-header__logo img { width: 100%; height: 100%; object-fit: cover; }
.store-header__logo span { font-size: 2.5rem; color: var(--green-600); }
.store-header__info { flex: 1; padding-bottom: .4rem; }
.store-header__name { margin: 0; font-size: 1.7rem; }
.store-header__meta { color: var(--muted); margin: .2rem 0 0; }
.store-header__badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.store-header__actions { padding-bottom: .5rem; }
.store-map iframe, .store-map { width: 100%; border: 0; border-radius: var(--radius); overflow: hidden; }
.store-map iframe { height: 320px; }

/* =========================================================
   PANEL (admin / compraventa)
   ========================================================= */
.panel-body { background: var(--bg); }
.panel-layout { display: flex; min-height: 100vh; }
.panel-sidebar {
    width: 250px; background: #0d1117; color: #cdd5df; display: flex; flex-direction: column;
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 1040; transition: transform .25s ease;
}
.panel-brand { padding: 1.3rem 1.3rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.panel-brand .brand-text { color: #fff; font-size: 1.2rem; }
.panel-nav { padding: 1rem .8rem; display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.panel-nav__link { display: flex; align-items: center; gap: .75rem; padding: .7rem .9rem; border-radius: 10px; color: #98a2b3; font-weight: 600; font-size: .93rem; transition: all .15s ease; }
.panel-nav__link:hover { background: rgba(255,255,255,.06); color: #fff; }
.panel-nav__link.active { background: var(--green-600); color: #fff; box-shadow: 0 4px 12px rgba(3,152,85,.35); }
.panel-nav__link i { font-size: 1.1rem; }
.panel-sidebar__footer { padding: 1rem; border-top: 1px solid rgba(255,255,255,.08); }
.panel-main { flex: 1; margin-left: 250px; display: flex; flex-direction: column; min-width: 0; }
.panel-topbar { background: var(--card); border-bottom: 1px solid var(--line); padding: .9rem 1.6rem; display: flex; align-items: center; gap: 1rem; position: sticky; top: 0; z-index: 1020; }
.panel-topbar__title { font-size: 1.1rem; margin: 0; }
.panel-content { padding: 1.7rem 1.6rem; flex: 1; }

.page-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.4rem; gap: 1rem; flex-wrap: wrap; }
.page-head__title { font-size: 1.5rem; margin: 0; }
.back-link { color: var(--muted); font-size: .85rem; font-weight: 600; display: inline-block; margin-bottom: .3rem; }
.back-link:hover { color: var(--green-700); }
.form-actions { display: flex; justify-content: flex-end; gap: .7rem; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }

.welcome-banner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: linear-gradient(135deg, var(--green-600), var(--green-700)); color: #fff; padding: 1.4rem 1.6rem; border-radius: var(--radius); margin-bottom: 1.4rem; flex-wrap: wrap; }
.welcome-banner__title { color: #fff; margin: 0 0 .2rem; font-size: 1.35rem; }
.welcome-banner__text { color: rgba(255,255,255,.9); }
.welcome-banner .btn-success { background: #fff; color: var(--green-700); border-color: #fff; box-shadow: none; }
.welcome-banner .btn-success:hover { background: var(--green-50); color: var(--green-700); }

/* Stats */
.quick-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .8rem; margin-bottom: 1.5rem; }
.quick-actions__item {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1rem; display: flex; flex-direction: column; align-items: center; gap: .5rem;
    text-align: center; font-weight: 700; color: var(--ink); box-shadow: var(--shadow-xs);
    transition: all .15s ease;
}
.quick-actions__item:hover { border-color: var(--green-400); box-shadow: var(--shadow-sm); transform: translateY(-1px); color: var(--ink); }
.quick-actions__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--green-50); color: var(--green-700); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
.stat-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; position: relative; overflow: hidden; }
.stat-card__icon { width: 42px; height: 42px; border-radius: 11px; background: var(--soft); color: var(--muted); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: .7rem; }
.stat-card__value { font-size: 1.9rem; font-weight: 800; color: var(--ink); line-height: 1; letter-spacing: -.02em; }
.stat-card__label { color: var(--muted); font-size: .85rem; font-weight: 600; margin-top: .25rem; }
.stat-card--green .stat-card__icon { background: var(--green-50); color: var(--green-700); }
.stat-card--gold .stat-card__icon { background: #fef7e6; color: #b54708; }
.stat-card--red  .stat-card__icon { background: #fef3f2; color: #d92d20; }
.stat-card--dark .stat-card__icon { background: #101828; color: #fff; }

.total-due-banner {
    background: var(--green-700); color: #fff; border-radius: var(--radius); padding: 1.1rem 1.4rem;
    display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem;
}
.total-due-banner__label { font-size: .85rem; font-weight: 600; opacity: .85; }
.total-due-banner__value { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }

/* Tablas */
.data-table { --bs-table-color: var(--body); }
.data-table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 700; border-bottom: 1px solid var(--line); }
.data-table td { border-color: var(--soft); vertical-align: middle; }
.cell-product { display: flex; align-items: center; gap: .7rem; }
.cell-product img, .cell-avatar { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--soft); flex-shrink: 0; }
.cell-avatar { display: flex; align-items: center; justify-content: center; color: var(--green-600); font-size: 1.2rem; overflow: hidden; }
.cell-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cell-product__title { font-weight: 600; color: var(--ink); }
.cell-product__title:hover { color: var(--green-700); }
.cell-product__meta { font-size: .78rem; color: var(--muted); }
.table-actions { display: inline-flex; gap: .3rem; }
.table-actions .btn-light.text-danger { color: #dc3545; }

/* Gráfico de barras */
.bar-chart { display: flex; align-items: flex-end; gap: .8rem; height: 200px; padding-top: 1rem; }
.bar-chart__col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; }
.bar-chart__bar { width: 100%; max-width: 46px; background: linear-gradient(180deg, var(--green-400), var(--green-600)); border-radius: 8px 8px 0 0; position: relative; min-height: 4px; transition: height .4s ease; }
.bar-chart__value { position: absolute; top: -1.3rem; left: 50%; transform: translateX(-50%); font-size: .78rem; font-weight: 700; color: var(--ink); }
.bar-chart__label { margin-top: .5rem; font-size: .78rem; color: var(--muted); font-weight: 600; }

/* Mini lista */
.mini-list { list-style: none; padding: 0; margin: 0; }
.mini-list li { display: flex; align-items: center; gap: .7rem; padding: .7rem 0; border-bottom: 1px solid var(--soft); }
.mini-list li:last-child { border-bottom: none; }
.mini-list__avatar { width: 38px; height: 38px; border-radius: 10px; background: var(--green-50); color: var(--green-700); display: flex; align-items: center; justify-content: center; }

/* =========================================================
   FIRMA del cliente (prendas)
   ========================================================= */
.signature-pad {
    border: 2px dashed var(--line); border-radius: var(--radius); background: #fff;
    height: 160px; position: relative; overflow: hidden;
}
.signature-pad canvas { width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }
.signature-pad__preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; pointer-events: none; }

/* =========================================================
   UPLOADER estilo Facebook
   ========================================================= */
.uploader__dropzone {
    border: 2px dashed var(--line); border-radius: var(--radius); padding: 1.8rem 1rem; text-align: center;
    color: var(--muted); transition: all .18s ease; cursor: pointer; background: var(--bg);
}
.uploader__dropzone:hover, .uploader__dropzone.dragover { border-color: var(--green-500); background: var(--green-50); color: var(--green-700); }
.uploader__dropzone i { font-size: 2.2rem; display: block; margin-bottom: .4rem; color: var(--green-600); }
.uploader__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-top: .9rem; }
.uploader__item { position: relative; aspect-ratio: 1/1; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--soft); }
.uploader__item img { width: 100%; height: 100%; object-fit: cover; }
.uploader__item.is-removing { opacity: .35; }
.uploader__item.is-removing img { filter: grayscale(1); }
.uploader__remove { position: absolute; top: 5px; right: 5px; width: 26px; height: 26px; border-radius: 50%; border: none; background: rgba(16,24,40,.75); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .75rem; cursor: pointer; transition: background .15s ease; }
.uploader__remove:hover { background: #d92d20; }
/* "Portada" solo aplica donde la primera foto de verdad se usa como portada
   (productos, para el listado público) — una prenda no tiene ese concepto. */
.uploader--with-cover .uploader__item:first-child::after { content: 'Portada'; position: absolute; bottom: 5px; left: 5px; background: var(--green-600); color: #fff; font-size: .65rem; font-weight: 700; padding: .12rem .45rem; border-radius: 5px; }

/* Perfil: portada y logo editables */
.profile-cover { height: 200px; background: linear-gradient(135deg, var(--green-500), var(--green-700)); background-size: cover; background-position: center; position: relative; }
.profile-cover__btn, .profile-logo__edit { cursor: pointer; }
.profile-cover__btn { position: absolute; bottom: 1rem; right: 1rem; background: rgba(255,255,255,.92); color: #101828; font-size: .85rem; font-weight: 600; padding: .45rem .8rem; border-radius: 8px; box-shadow: var(--shadow-sm); }
.profile-logo-row { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.4rem; margin-top: -45px; }
.profile-logo { width: 90px; height: 90px; border-radius: 18px; border: 3px solid #fff; background: var(--green-50); box-shadow: var(--shadow-sm); position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: pointer; flex-shrink: 0; }
.profile-logo img { width: 100%; height: 100%; object-fit: cover; }
.profile-logo span { font-size: 2rem; color: var(--green-600); }
.profile-logo__edit { position: absolute; bottom: 0; right: 0; width: 28px; height: 28px; background: var(--green-600); color: #fff; display: flex; align-items: center; justify-content: center; border-radius: 8px 0 16px 0; font-size: .8rem; }

/* Banners admin */
.banner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.1rem; }
.banner-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.banner-item__img { aspect-ratio: 21/9; background: var(--soft); }
.banner-item__img img { width: 100%; height: 100%; object-fit: cover; }
.banner-item__body { padding: 1rem; }

/* Estados vacíos */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty-state i { font-size: 3rem; color: #cdd5df; display: block; margin-bottom: .6rem; }

/* =========================================================
   LOGIN
   ========================================================= */
.auth-body { background: linear-gradient(135deg, var(--green-600), var(--green-700)); min-height: 100vh; display: flex; align-items: center; }
.auth-wrapper { width: 100%; }
.auth-card { background: var(--card); max-width: 420px; margin: 2rem auto; padding: 2.4rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

/* =========================================================
   PÁGINAS DE ERROR
   ========================================================= */
.error-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem; }
.error-page__code { font-size: 6rem; font-weight: 800; color: var(--green-600); line-height: 1; letter-spacing: -.04em; }
.error-page__title { font-size: 1.6rem; margin: .5rem 0; }
.error-page__text { color: var(--muted); margin-bottom: 1.6rem; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 991.98px) {
    .panel-sidebar { transform: translateX(-100%); }
    .panel-sidebar.open { transform: translateX(0); }
    .panel-main { margin-left: 0; }
}
@media (max-width: 575.98px) {
    .product-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 190px)); justify-content: center; gap: .7rem; }
    .product-card__price { font-size: 1.05rem; }
    .hero { padding: 2rem 0; }
    .uploader__grid { grid-template-columns: repeat(3, 1fr); }
    .store-header__logo { width: 90px; height: 90px; }
}

/* =========================================================
   LANDINGS Y HOME RESUMEN
   Un color de acento por camino de negocio:
   remates = verde · vender = azul · empeñar = oro · vehículos = pizarra · aliados = tinta
   ========================================================= */
.landing--green { --accent: #027a48; --accent-hover: #015e38; --accent-soft: #ecfdf3; --accent-ink: #027a48; --accent-line: #d1fadf; }
.landing--blue  { --accent: #1570ef; --accent-hover: #175cd3; --accent-soft: #eff8ff; --accent-ink: #175cd3; --accent-line: #d1e9ff; }
.landing--gold  { --accent: #b54708; --accent-hover: #93370d; --accent-soft: #fffaeb; --accent-ink: #b54708; --accent-line: #fef0c7; }
.landing--slate { --accent: #475467; --accent-hover: #344054; --accent-soft: #f2f4f7; --accent-ink: #344054; --accent-line: #eaecf0; }
.landing--ink   { --accent: #101828; --accent-hover: #1d2939; --accent-soft: #f2f4f7; --accent-ink: #101828; --accent-line: #eaecf0; }

/* Mismos 5 acentos, pero para fondo oscuro: --accent-soft pasa de un tinte
   clarito a uno oscuro (si no, el radial-gradient del landing-hero deja un
   parche claro sobre fondo oscuro, el mismo problema que el degradado
   blanco-a-negro de arriba). */
:root[data-theme="dark"] .landing--green { --accent: #34d399; --accent-hover: #5eead4; --accent-soft: #0b2e22; --accent-ink: #5eead4; --accent-line: #113a2b; }
:root[data-theme="dark"] .landing--blue  { --accent: #5aa8ff; --accent-hover: #7cc0ff; --accent-soft: #0f2538; --accent-ink: #7cc0ff; --accent-line: #1b3a54; }
:root[data-theme="dark"] .landing--gold  { --accent: #f0b429; --accent-hover: #f7cc5c; --accent-soft: #2e2308; --accent-ink: #f7cc5c; --accent-line: #4a3b10; }
:root[data-theme="dark"] .landing--slate { --accent: #98a2b3; --accent-hover: #cdd5df; --accent-soft: #1b212c; --accent-ink: #cdd5df; --accent-line: #262c36; }
:root[data-theme="dark"] .landing--ink   { --accent: #cdd5df; --accent-hover: #f3f5f7; --accent-soft: #1b212c; --accent-ink: #f3f5f7; --accent-line: #262c36; }

.landing-hero {
    padding: 3.4rem 0 2.6rem;
    background:
        radial-gradient(1000px 380px at 90% -10%, var(--accent-soft), transparent),
        linear-gradient(180deg, var(--card), var(--bg));
}
.landing-hero .hero__eyebrow { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent-line); }
.landing-hero .hero__subtitle { max-width: 40rem; }

.landing-btn {
    --bs-btn-bg: var(--accent); --bs-btn-border-color: var(--accent);
    --bs-btn-hover-bg: var(--accent-hover); --bs-btn-hover-border-color: var(--accent-hover);
    --bs-btn-color: #fff; --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--accent-hover); --bs-btn-active-border-color: var(--accent-hover);
    --bs-btn-disabled-bg: var(--accent); --bs-btn-disabled-border-color: var(--accent);
    font-weight: 600; border-radius: 12px;
    box-shadow: 0 4px 14px rgba(16,24,40,.12);
}

.landing-hero__art {
    aspect-ratio: 1 / 1; max-width: 360px; margin-left: auto;
    display: grid; place-items: center;
    background: var(--card); border: 1px solid var(--accent-line);
    border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.landing-hero__art i { font-size: 9rem; color: var(--accent); }

/* ---- Beneficios ---- */
.benefit-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.4rem; box-shadow: var(--shadow-xs);
}
.benefit-card__icon {
    display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
    background: var(--green-50); color: var(--green-600); font-size: 1.25rem; margin-bottom: .9rem;
}
.benefit-card__title { font-size: 1.05rem; margin-bottom: .35rem; }
.benefit-card__text { color: var(--muted); font-size: .92rem; }

/* ---- Pasos ---- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; counter-reset: none; }
.steps__item {
    display: flex; gap: 1rem; align-items: flex-start;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.2rem 1.4rem; box-shadow: var(--shadow-xs);
}
.steps__num {
    flex: 0 0 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--accent);
}
.steps__title { font-size: 1.05rem; margin-bottom: .2rem; }

/* ---- Vitrina de producto (capturas reales, aliados) ---- */
.showcase-section__lead { max-width: 42rem; }
.showcase-row {
    display: flex; align-items: center; gap: 3rem; flex-wrap: wrap;
    padding: 2.5rem 0; border-bottom: 1px solid var(--line);
}
.showcase-row:last-of-type { border-bottom: none; }
.showcase-row--reverse { flex-direction: row-reverse; }
.showcase-row__media, .showcase-row__text { flex: 1 1 320px; }
.showcase-row__media { display: flex; justify-content: center; }
.phone-frame {
    width: 240px; border-radius: 32px; padding: 10px; background: #0b0d12;
    box-shadow: 0 20px 50px -20px rgba(16, 24, 40, .35), 0 0 0 1px var(--line);
}
.phone-frame img { width: 100%; display: block; border-radius: 22px; }
.showcase-row__icon {
    display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
    background: var(--accent-soft); color: var(--accent-ink); font-size: 1.25rem; margin-bottom: .9rem;
}
.showcase-row__text h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.showcase-row__text p { color: var(--muted); font-size: 1rem; margin-bottom: 0; }
.showcase-section__note {
    text-align: center; color: var(--muted); font-size: .92rem; margin: 1.5rem 0 0;
}
.showcase-section__note i { color: var(--accent); margin-right: .3rem; }
@media (max-width: 767.98px) {
    .showcase-row, .showcase-row--reverse { flex-direction: column; gap: 1.5rem; padding: 1.8rem 0; }
    .phone-frame { width: 200px; }
}

/* ---- Planes (aliados) ---- */
.plan-card {
    position: relative; background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius-lg); padding: 1.8rem; box-shadow: var(--shadow-xs);
}
.plan-card--featured { border: 2px solid var(--green-600); box-shadow: var(--shadow); }
.plan-card__tag {
    position: absolute; top: -12px; left: 1.8rem; background: var(--green-600); color: #fff;
    font-size: .75rem; font-weight: 700; padding: .25rem .7rem; border-radius: 999px;
}
.plan-card__name { font-size: 1.15rem; margin-bottom: .3rem; }
.plan-card__price { font-size: 1.8rem; font-weight: 800; color: var(--ink); margin-bottom: 1rem; }
.plan-card__price small { font-size: .9rem; font-weight: 500; color: var(--muted); }
.plan-card__free { color: var(--green-600); margin-right: .5rem; }
.plan-card__was { font-size: 1.05rem; font-weight: 500; color: var(--muted); }
.plan-card__launch-note { margin: -.6rem 0 1rem; font-size: .82rem; font-weight: 600; color: var(--green-700); }

.launch-offer {
    display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
    background: var(--green-50); border: 1px solid var(--green-100); color: var(--green-700);
    border-radius: var(--radius); padding: .9rem 1.2rem; margin-bottom: 1.5rem; font-size: .95rem;
}
.launch-offer i { font-size: 1.3rem; flex-shrink: 0; }

/* ---- Formulario de contacto ---- */
.lead-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 2rem; box-shadow: var(--shadow-sm);
}
.lead-form .form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 .2rem var(--accent-line); }
#contacto { scroll-margin-top: 90px; }

/* ---- FAQ ---- */
.faq .accordion-item { border: 1px solid var(--line); border-radius: var(--radius) !important; margin-bottom: .6rem; overflow: hidden; background: var(--card); }
.faq .accordion-button { font-weight: 600; color: var(--ink); background: var(--card); box-shadow: none; }
.faq .accordion-button:not(.collapsed) { color: var(--accent-ink); background: var(--accent-soft); }
.faq .accordion-button:focus { box-shadow: 0 0 0 .2rem var(--accent-line); }

/* ---- Aviso legal ---- */
.legal-note {
    font-size: .88rem; color: var(--muted);
    background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius-sm);
    padding: .9rem 1.1rem;
}
.legal-note i { color: var(--accent); }

/* ---- Cierre con color de camino ---- */
.landing-cta-band { background: var(--accent); }

/* ---- Home resumen: cuatro caminos ---- */
.path-card {
    display: flex; flex-direction: column; height: 100%;
    background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--accent);
    border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-xs);
    color: inherit; transition: transform .15s ease, box-shadow .15s ease;
}
.path-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.path-card--green { --accent: #12b76a; --accent-ink: #027a48; }
.path-card--blue  { --accent: #1570ef; --accent-ink: #175cd3; }
.path-card--gold  { --accent: #f79009; --accent-ink: #b54708; }
.path-card--slate { --accent: #475467; --accent-ink: #344054; }
.path-card__icon {
    display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
    background: var(--accent-soft, #f2f4f7); color: var(--accent-ink); font-size: 1.4rem; margin-bottom: 1rem;
}
.path-card--green .path-card__icon { background: var(--green-50); }
.path-card--blue .path-card__icon  { background: #eff8ff; }
.path-card--gold .path-card__icon  { background: #fffaeb; }
.path-card--slate .path-card__icon { background: #f2f4f7; }
.path-card__title { font-size: 1.1rem; color: var(--ink); margin-bottom: .4rem; }
.path-card__text { color: var(--muted); font-size: .92rem; flex: 1; }
.path-card__cta { color: var(--accent-ink); font-weight: 700; font-size: .92rem; margin-top: .6rem; }

/* Arte decorativo del hero del home */
.hub-hero-art {
    position: relative; aspect-ratio: 1 / 1; max-width: 420px; margin-left: auto;
    background: radial-gradient(circle at 30% 30%, var(--green-50), #fff 70%);
    border-radius: 32px; border: 1px solid var(--green-100); box-shadow: var(--shadow);
}
.hub-hero-art i { position: absolute; display: grid; place-items: center; border-radius: 22px; background: var(--card); box-shadow: var(--shadow-sm); font-size: 3rem; }
.hub-hero-art__tag  { top: 12%; left: 12%; width: 120px; height: 120px; color: var(--green-600); font-size: 4rem !important; }
.hub-hero-art__gem  { top: 14%; right: 10%; width: 100px; height: 100px; color: #dc6803; }
.hub-hero-art__car  { bottom: 12%; left: 14%; width: 110px; height: 110px; color: #475467; }
.hub-hero-art__cash { bottom: 14%; right: 12%; width: 120px; height: 120px; color: #1570ef; }

@media (max-width: 991px) {
    .landing-hero__art, .hub-hero-art { margin: 0 auto; max-width: 280px; }
    .landing-hero__art i { font-size: 6rem; }
}
@media (max-width: 575px) {
    .landing-hero { padding: 2rem 0; }
    .lead-card { padding: 1.3rem; }
}

/* =========================================================
   EXPERIENCIA DE COMPRA (listado, tarjetas, filtros, ficha)
   Patrón de Mercado Libre / Marketplace: categorías en íconos,
   filtros con chips, tarjetas con foto estable y fecha/ciudad visibles.
   ========================================================= */

/* ---- Barra de categorías en íconos ---- */
.cat-bar {
    display: flex; gap: .6rem; overflow-x: auto; padding: .4rem .1rem .8rem;
    scroll-snap-type: x proximity; scrollbar-width: none;
}
.cat-bar::-webkit-scrollbar { display: none; }
.cat-tile {
    flex: 0 0 auto; width: 88px; display: flex; flex-direction: column; align-items: center; gap: .45rem;
    text-decoration: none; scroll-snap-align: start; color: var(--body);
}
.cat-tile__icon {
    width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center;
    background: var(--card); border: 1px solid var(--line); color: var(--green-700); font-size: 1.45rem;
    box-shadow: var(--shadow-xs); transition: all .15s ease;
}
.cat-tile__name { font-size: .8rem; font-weight: 600; text-align: center; line-height: 1.2; color: var(--ink); }
.cat-tile:hover .cat-tile__icon { border-color: var(--green-400); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.cat-tile.is-active .cat-tile__icon { background: var(--green-600); border-color: var(--green-600); color: #fff; }
.cat-tile.is-active .cat-tile__name { color: var(--green-700); }
.cat-tile:focus-visible { outline: 3px solid var(--green-100); outline-offset: 3px; border-radius: 18px; }

/* ---- Tarjeta de producto ---- */
.product-card { border-radius: var(--radius); }
.product-card__media { aspect-ratio: 4 / 3; background: var(--soft); }
.product-card__media img { object-fit: cover; }
.product-card__noimg {
    width: 100%; height: 100%; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--green-50), var(--soft)); color: var(--green-600);
}
.product-card__noimg i { font-size: 2.6rem; opacity: .85; }
.product-card__badge {
    position: absolute; top: .6rem; left: .6rem; z-index: 2;
    background: #fef0c7; color: #93370d; font-size: .72rem; font-weight: 700;
    padding: .2rem .55rem; border-radius: 999px;
}
.product-card__condition {
    position: absolute; top: .6rem; right: .6rem; bottom: auto; left: auto; width: auto; height: auto; z-index: 2;
    display: inline-block; line-height: 1.2;
    background: rgba(16,24,40,.72); color: #fff; font-size: .72rem; font-weight: 700;
    padding: .2rem .55rem; border-radius: 999px;
}
.product-card__condition.is-new { background: var(--green-600); }
.product-card__sold {
    position: absolute; inset: 0; z-index: 3; display: grid; place-items: center;
    background: rgba(16,24,40,.45); color: #fff; font-weight: 800; letter-spacing: .04em; font-size: .95rem;
}
.product-card.is-sold .product-card__media img { filter: grayscale(.5) brightness(.85); }
.product-card__body { padding: .8rem .95rem 1rem; gap: .3rem; }
.product-card__price { font-size: 1.2rem; }
.product-card__title { font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.product-card__meta { flex-direction: row; flex-wrap: wrap; gap: .15rem .7rem; margin-top: .2rem; font-size: .8rem; }
.product-card__store { color: var(--muted); font-size: .8rem; margin-top: .1rem; }
.product-card__store i { color: var(--muted); }

@media (max-width: 767px) {
    .remates-carousel__item { flex-basis: min(82%, 300px); }
    .remates-empty { grid-template-columns: 1fr; }
    .remates-empty__image { max-height: 190px; }
}

/* ---- Filtros ---- */
.filters-card { box-shadow: var(--shadow-xs); }
.filter-group { margin-bottom: 1.2rem; }
.filter-group > .form-label { font-weight: 700; color: var(--ink); font-size: .9rem; margin-bottom: .45rem; }
.price-presets { display: flex; flex-wrap: wrap; gap: .4rem; }
.price-preset {
    font-size: .8rem; font-weight: 600; padding: .32rem .7rem; border-radius: 999px;
    border: 1px solid var(--line); color: var(--body); background: var(--card); text-decoration: none;
}
.price-preset:hover { border-color: var(--green-400); color: var(--green-700); }
.price-preset.is-active { background: var(--green-600); border-color: var(--green-600); color: #fff; }
.segmented { display: flex; gap: .4rem; }
.segmented .btn { flex: 1; border: 1px solid var(--line); background: var(--card); color: var(--body); font-weight: 600; border-radius: 10px; }
.segmented .btn:hover { border-color: var(--green-400); color: var(--green-700); }
.segmented .btn-check:checked + .btn { background: var(--green-600); border-color: var(--green-600); color: #fff; }
.segmented .btn-check:focus-visible + .btn { box-shadow: 0 0 0 .2rem var(--green-100); }

/* ---- Barra de resultados y chips activos ---- */
.results-bar__tools { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.active-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: -.4rem 0 1.1rem; }
.active-chip {
    display: inline-flex; align-items: center; gap: .4rem; font-size: .84rem; font-weight: 600;
    background: var(--green-50); color: var(--green-700); border: 1px solid var(--green-100);
    padding: .3rem .75rem; border-radius: 999px; text-decoration: none;
}
.active-chip:hover { background: var(--green-100); color: var(--green-700); }
.active-chip__x { font-size: .7rem; opacity: .7; }

/* ---- Estado vacío con acciones ---- */
.empty-state--rich { padding: 2.6rem 1.5rem; }
.empty-state__icon {
    display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
    background: var(--green-50); color: var(--green-600); font-size: 1.7rem; margin-bottom: .9rem;
}
.empty-state--rich h2 { margin-bottom: .3rem; }

/* ---- Ficha: acciones y estado vendido ---- */
.btn-whatsapp.is-disabled, .btn-whatsapp:disabled { background: #98a2b3; box-shadow: none; cursor: not-allowed; transform: none; }
.product-detail__actions { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; margin-top: .9rem; }
.product-detail__actions .product-detail__note { margin: 0; }

/* ---- Barra de contacto fija (móvil) ---- */
.contact-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030;
    display: flex; align-items: center; justify-content: space-between; gap: .8rem;
    background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(16,24,40,.08);
    padding: .65rem 1rem calc(.65rem + env(safe-area-inset-bottom));
}
.contact-bar__info { display: flex; flex-direction: column; min-width: 0; }
.contact-bar__price { font-weight: 800; color: var(--ink); font-size: 1.05rem; line-height: 1.2; }
.contact-bar__title { font-size: .82rem; color: var(--muted); max-width: 52vw; }
.contact-bar .btn { min-height: 48px; display: inline-flex; align-items: center; padding-inline: 1rem; flex-shrink: 0; }

@media (max-width: 991px) {
    .cat-tile { width: 78px; }
    .cat-tile__icon { width: 52px; height: 52px; font-size: 1.3rem; }
    .product-card__media { aspect-ratio: 1 / 1; }
}

/* Pie oscuro: texto legible (text-muted de Bootstrap no contrasta sobre fondo negro) */
.site-footer .text-muted { color: #b4bcc8 !important; }
.site-footer .footer-links a { color: #d0d5dd; }
.site-footer .footer-links a:hover { color: #fff; }
.site-footer .footer-title { color: #fff; }

/* Panel de filtros: en escritorio siempre visible como columna lateral */
@media (min-width: 992px) {
    #filtersPanel.offcanvas-lg {
        position: static !important; visibility: visible !important;
        transform: none !important; background: transparent; width: auto; height: auto;
    }
}

/* Panel de filtros en móvil: sin posición pegajosa ni tarjeta dentro del panel */
@media (max-width: 991px) {
    #filtersPanel .filters-card { position: static; border: 0; border-radius: 0; box-shadow: none; padding: 1rem 1.1rem; }
    #filtersPanel .filters-card__head { display: none; }
    #filtersPanel .filter-group { margin-bottom: 1.1rem; }
}

/* =========================================================
   CATEGORÍAS: rejilla a lo ancho (sin huecos a la derecha)
   compact = íconos repartidos (listado) · cards = tarjetas con cantidad (home)
   ========================================================= */
.cat-bar { display: grid; grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: .7rem; overflow: visible; padding: .2rem 0 .6rem; }
.cat-bar .cat-tile { width: auto; flex: initial; }
.cat-tile__text { display: flex; flex-direction: column; align-items: center; gap: .05rem; min-width: 0; }
.cat-tile__name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-tile__count { font-size: .76rem; font-weight: 500; color: var(--muted); white-space: nowrap; }

.cat-bar--cards { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .8rem; }
.cat-bar--cards .cat-tile {
    flex-direction: row; align-items: center; justify-content: flex-start; gap: .85rem;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: .85rem 1rem; box-shadow: var(--shadow-xs); transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.cat-bar--cards .cat-tile:hover { border-color: var(--green-400); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.cat-bar--cards .cat-tile__icon { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 50%; font-size: 1.15rem; box-shadow: none; }
.cat-bar--cards .cat-tile__text { align-items: flex-start; }
.cat-bar--cards .cat-tile__name { font-size: .95rem; font-weight: 700; color: var(--ink); white-space: normal; }

.category-carousel { display: flex; align-items: center; gap: .55rem; }
.category-carousel__viewport { flex: 1 1 auto; min-width: 0; }
.category-carousel__control { flex: 0 0 36px; width: 36px; height: 36px; }
.cat-bar--rail { display: flex; gap: .65rem; overflow-x: auto; overflow-y: hidden; padding: .3rem .1rem .65rem; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.cat-bar--rail::-webkit-scrollbar { display: none; }
.cat-bar--rail .cat-tile { flex: 0 0 112px; width: 112px; min-height: 104px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; padding: .65rem .5rem; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-xs); scroll-snap-align: start; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.cat-bar--rail .cat-tile:hover { transform: translateY(-2px); border-color: var(--green-400); box-shadow: var(--shadow-sm); }
.cat-bar--rail .cat-tile__icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--green-50); color: var(--green-700); font-size: 1.3rem; }
.cat-bar--rail .cat-tile.is-active .cat-tile__icon { background: var(--green-600); color: #fff; }
.cat-bar--rail .cat-tile__text { min-width: 0; }
.cat-bar--rail .cat-tile__name { max-width: 100%; font-size: .8rem; font-weight: 700; line-height: 1.2; text-align: center; white-space: normal; }

@media (max-width: 767px) {
    .cat-bar--compact { display: flex; overflow-x: auto; gap: .6rem; scroll-snap-type: x proximity; scrollbar-width: none; }
    .cat-bar--compact::-webkit-scrollbar { display: none; }
    .cat-bar--compact .cat-tile { width: 84px; flex: 0 0 84px; scroll-snap-align: start; }
    .cat-bar--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
    .cat-bar--cards .cat-tile { min-width: 0; padding: .7rem; gap: .6rem; }
    .cat-bar--cards .cat-tile__icon { width: 40px; height: 40px; flex-basis: 40px; font-size: 1rem; }
    .cat-bar--cards .cat-tile__name { font-size: .88rem; }
    .cat-bar--cards .cat-tile__count { white-space: normal; }
}

/* Tarjetas de categoría en columnas fijas: filas completas, sin huecos al final */
@media (min-width: 992px) { .cat-bar--cards { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 768px) and (max-width: 991px) { .cat-bar--cards { grid-template-columns: repeat(3, 1fr); } }
.cat-tile__count.is-empty { color: #98a2b3; font-weight: 500; }

/* Íconos de beneficios más presentes dentro de su recuadro */
.benefit-card__icon { font-size: 1.5rem; width: 48px; height: 48px; }

/* Foto del hero de las landings (imagen ilustrativa, con leyenda) */
.landing-hero__photo {
    position: relative; margin-left: auto; max-width: 480px; aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
    border: 1px solid var(--accent-line);
}
.landing-hero__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.landing-hero__caption {
    position: absolute; left: 0; right: 0; bottom: 0; margin: 0;
    padding: .55rem .9rem; font-size: .76rem; font-weight: 600; color: #fff;
    background: linear-gradient(transparent, rgba(16,24,40,.78));
}
@media (max-width: 991px) { .landing-hero__photo { margin: 0 auto; max-width: 100%; } }

/* =========================================================
   HOME RESUMEN: fotos en los cuatro caminos y mosaico del hero
   ========================================================= */
.path-card { padding: 0; overflow: hidden; }
.path-card__photo { display: block; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); }
.path-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.path-card:hover .path-card__photo img { transform: scale(1.05); }
.path-card__title, .path-card__text, .path-card__cta { padding-left: 1.5rem; padding-right: 1.5rem; }
.path-card__title { margin-top: 1.1rem; }
.path-card__cta { padding-bottom: 1.4rem; }
.path-card > .path-card__text:last-of-type { margin-bottom: 0; }

.hub-mosaic {
    position: relative;
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 16px; max-width: 460px; margin-left: auto;
    background: var(--card); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow);
}
.hub-mosaic img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 18px; display: block; opacity: 0; filter: blur(5px); animation: hub-mosaic-reveal .7s cubic-bezier(.2,.75,.2,1) forwards; transition: transform .35s ease, box-shadow .35s ease; }
.hub-mosaic img:nth-child(2) { animation-delay: .1s; }
.hub-mosaic img:nth-child(3) { animation-delay: .2s; }
.hub-mosaic img:nth-child(4) { animation-delay: .3s; }
.hub-mosaic img:hover { transform: scale(1.025); box-shadow: var(--shadow); }
@keyframes hub-mosaic-reveal { to { opacity: 1; filter: blur(0); } }
@media (max-width: 991px) { .hub-mosaic { margin: 0 auto; } }

@media (prefers-reduced-motion: reduce) {
    .hub-mosaic img { opacity: 1; filter: none; animation: none; transition: none; }
    .hub-mosaic img:hover, .cat-bar--rail .cat-tile:hover, .remates-carousel__control:hover, .category-carousel__control:hover { transform: none; }
    .cat-bar--rail, .remates-carousel__viewport { scroll-behavior: auto; }
}

/* =========================================================
   PANEL — Clientes y prendas (administración interna de la
   compraventa). Directorio de clientes y feed de actividad,
   reutilizando .content-card / .badge-pill / .uploader ya
   existentes para el resto del panel.
   ========================================================= */
.avatar-circle {
    width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
    background: var(--green-50); color: var(--green-700);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.05rem;
}
.avatar-circle--lg { width: 72px; height: 72px; font-size: 1.5rem; }

.client-card {
    display: flex; align-items: flex-start; gap: .9rem;
    padding: 1rem 1.1rem; border-radius: var(--radius-sm);
    border: 1px solid var(--line); background: var(--card);
    margin-bottom: .7rem; transition: box-shadow .15s ease, border-color .15s ease;
}
.client-card:hover { box-shadow: var(--shadow-sm); border-color: var(--green-100); }
.client-card__body { flex: 1; min-width: 0; }
.client-card__name {
    font-weight: 700; color: var(--ink); margin: 0;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
    overflow: hidden; text-overflow: ellipsis;
}
.client-card__meta { color: var(--muted); font-size: .85rem; }
.client-card > .badge-pill, .client-card > .text-end { flex-shrink: 0; white-space: nowrap; }

.profile-header { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.profile-header__info h1 { margin: 0 0 .2rem; font-size: 1.4rem; }
.profile-header__actions { margin-left: auto; display: flex; gap: .5rem; flex-wrap: wrap; }

.feed-item {
    position: relative; padding: 1rem 1.1rem 1rem 1.3rem;
    border-left: 2px solid var(--line); margin-left: .4rem;
}
.feed-item::before {
    content: ''; position: absolute; left: -6px; top: 1.3rem;
    width: 10px; height: 10px; border-radius: 50%; background: var(--green-500);
}
.feed-item--muted::before { background: var(--line); }
.feed-item__head { display: flex; justify-content: space-between; gap: .6rem; align-items: baseline; flex-wrap: wrap; }
.feed-item__amount { font-weight: 800; color: var(--ink); }
.feed-item__time { color: var(--muted); font-size: .8rem; }
.feed-item__note { color: var(--body); font-size: .9rem; margin-top: .2rem; }

.pledge-card { display: block; color: inherit; text-decoration: none; }
.pledge-card:hover { color: inherit; }
.pledge-card__photo { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--soft); flex-shrink: 0; }

/* En celular, "Certificado"/"Editar"/"Nueva prenda" quedan pegados a la
   derecha por el margin-left:auto — bien en escritorio, pero al envolver en
   una pantalla angosta termina como una fila de botones flotando a la
   derecha, lejos del pulgar. Se estiran a ancho completo en su propia fila. */
@media (max-width: 575.98px) {
    .profile-header__actions { margin-left: 0; width: 100%; }
    .profile-header__actions .btn { flex: 1 1 auto; }
}

/* =========================================================
   FOTOS EN WEBP, POCOS REMATES Y MICROINTERACCIONES
   ========================================================= */
/* stock_picture() envuelve el <img> en <picture>: que el envoltorio no cuente
   para la rejilla ni para las alturas en %, y el <img> se comporte como antes. */
.stock-picture { display: contents; }
.stock-picture source { display: none; }
.hub-mosaic > :nth-child(2) img { animation-delay: .1s; }
.hub-mosaic > :nth-child(3) img { animation-delay: .2s; }
.hub-mosaic > :nth-child(4) img { animation-delay: .3s; }
.remates-empty__image {
    background-image: linear-gradient(135deg, rgba(16,24,40,.12), rgba(16,24,40,.54)), url('../img/stock/remates-gemini.jpeg');
    background-image: linear-gradient(135deg, rgba(16,24,40,.12), rgba(16,24,40,.54)),
        image-set(url('../img/stock/remates-gemini.webp') type('image/webp'), url('../img/stock/remates-gemini.jpeg') type('image/jpeg'));
}

/* Producto sin foto: dibujo de su categoría sobre verde claro, no un ícono gris. */
.product-card__noimg { background: #EAF7EE; }
.product-card__noimg .cat-illus { width: 62%; max-width: 170px; height: auto; display: block; }
:root[data-theme="dark"] .product-card__noimg { background: #12261b; }
/* Vendido sin foto: la etiqueta va en una píldora y no tapa el dibujo de gris. */
.product-card__noimg ~ .product-card__sold {
    inset: auto auto .7rem 50%; transform: translateX(-50%); display: block;
    background: rgba(16,24,40,.8); padding: .25rem .85rem; border-radius: 999px; font-size: .8rem;
}

/* Invitación que completa la fila cuando hay menos de tres remates. */
.invite-card {
    display: flex; flex-direction: column; overflow: hidden; color: inherit; text-decoration: none;
    background: var(--card); border: 1.5px dashed #86d6a3; border-radius: var(--radius);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.invite-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #16A34A; color: inherit; }
.invite-card__art { display: grid; place-items: center; aspect-ratio: 4 / 3; background: #EAF7EE; }
.invite-card__art svg { width: 62%; max-width: 170px; height: auto; }
@media (max-width: 991px) { .invite-card__art { aspect-ratio: 1 / 1; } }  /* igual que .product-card__media */
.invite-card__body { display: flex; flex-direction: column; gap: .3rem; padding: .8rem .95rem 1rem; flex: 1; }
.invite-card__title { font-size: 1rem; color: var(--ink); line-height: 1.25; }
.invite-card__text { color: var(--muted); font-size: .85rem; flex: 1; }
.invite-card__cta { color: #15803D; font-weight: 700; font-size: .88rem; margin-top: .2rem; }
.invite-card:hover .invite-card__cta i { transform: translateX(3px); }
.invite-card__cta i { display: inline-block; transition: transform .18s ease; }
:root[data-theme="dark"] .invite-card { border-color: #1f6b43; }
:root[data-theme="dark"] .invite-card__art { background: #12261b; }
:root[data-theme="dark"] .invite-card__cta { color: var(--green-600); }

/* "Negocios verificados": un brillo que cruza la píldora cada pocos segundos. */
.trust-verified {
    position: relative; overflow: hidden; isolation: isolate;
    padding: .15rem .6rem; border-radius: 999px; background: var(--green-50); color: var(--green-700);
}
.trust-verified::after {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.85) 50%, transparent 65%);
    transform: translateX(-120%); animation: trust-shine 4.5s ease-in-out 1.2s infinite;
}
:root[data-theme="dark"] .trust-verified::after { background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.18) 50%, transparent 65%); }
@keyframes trust-shine { 0% { transform: translateX(-120%); } 30%, 100% { transform: translateX(120%); } }

/* Celular: el mosaico del hero repetía en grande las mismas cuatro fotos de
   los caminos de abajo. Ahí se vuelve una tira de cuatro miniaturas, y las
   fotos de los caminos pasan a 16:9 para no ocupar media pantalla cada una. */
@media (max-width: 575.98px) {
    .hub-mosaic { grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 8px; border-radius: 18px; max-width: 100%; }
    .hub-mosaic img { border-radius: 12px; }
    .path-card__photo { aspect-ratio: 16 / 9; }
    /* Con minmax(150px, 190px) y auto-fit cabía UNA columna de 190 px en un
       celular de 390: cada tarjeta ocupaba una pantalla. Dos columnas que
       llenan el ancho, como cualquier vitrina en el celular. */
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); justify-content: stretch; }
    /* Si la fila queda coja por una invitación, esa invitación sobra. */
    .product-grid > .invite-card:last-child:nth-child(odd) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .trust-verified::after { animation: none; display: none; }
    .product-card, .invite-card, .path-card, .invite-card__cta i,
    .product-card__media img, .path-card__photo img { transition: none; }
    .product-card:hover, .invite-card:hover, .path-card:hover,
    .product-card:hover .product-card__media img, .path-card:hover .path-card__photo img,
    .invite-card:hover .invite-card__cta i { transform: none; }
}
