/* =====================================================================
   iLoop — Tienda pública · sistema de diseño + carrito
   Se carga DESPUÉS de styles.css/carts.css y sobrescribe lo anterior.
   Marca: bordó #800020 sobre base clara tipo Apple.
   ===================================================================== */
:root {
    --bg: #fbfbfd;
    --surface: #ffffff;
    --soft: #f5f5f7;
    --ink: #1d1d1f;
    --muted: #6e6e73;
    --line: #e8e8ed;
    --brand: #800020;
    --brand-hover: #9c0029;
    --brand-soft: rgba(128, 0, 32, .08);
    --ok: #1f8a4c;
    --wa: #25d366;
    --wa-hover: #1fb557;
    --radius: 20px;
    --radius-sm: 12px;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 14px rgba(0, 0, 0, .05);
    --shadow-2: 0 2px 4px rgba(0, 0, 0, .04), 0 14px 32px rgba(0, 0, 0, .10);
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

html { -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}
body.cart-lock, html.cart-lock { overflow: hidden; }

:focus-visible { outline: 3px solid rgba(128, 0, 32, .35); outline-offset: 2px; border-radius: 8px; }

/* ---------- Navbar: vidrio esmerilado ---------- */
body .custom-navbar {
    background: rgba(255, 255, 255, .82);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid var(--line);
    border-bottom-right-radius: 0;
    box-shadow: none;
}
body .navbar-menu ul li a { font-family: var(--font); font-weight: 500; letter-spacing: -.01em; }

/* ---------- Encabezados de página ---------- */
body .cart-container { background: var(--bg); }
body .catalog-header {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 28px 8px 8px;
    border-radius: 0;
}
body .catalog-header .catalogo-title {
    color: var(--ink) !important;
    font-family: var(--font);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: -.03em;
    text-shadow: none !important;
    -webkit-text-fill-color: var(--ink);
    background: none !important;
    text-transform: none;
    margin: 0;
}
body .catalog-header .catalog-subtitle {
    color: var(--muted) !important;
    font-style: normal;
    font-size: 1.1rem;
    margin: 6px 0 0;
}
body .catalogo-logo { display: none; }

body .welcome-section h1 {
    color: var(--ink);
    font-size: clamp(2.2rem, 6vw, 3.4rem);
    font-weight: 700;
    letter-spacing: -.03em;
    text-shadow: none;
}
body .welcome-section p { color: var(--muted); font-size: 1.2rem; }
body .featured-products h2 {
    color: var(--ink);
    font-size: clamp(1.6rem, 3.5vw, 2.1rem);
    font-weight: 700;
    letter-spacing: -.02em;
    text-shadow: none;
}

/* ---------- Barra de filtros ---------- */
body .filter-bar-fixed {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-1);
    padding: 12px;
    margin: 12px auto 18px;
}
body .filter-bar-content { gap: 10px; }
body .filter-input,
body .filter-select {
    font-family: var(--font);
    font-size: .95rem;
    color: var(--ink);
    background-color: var(--soft);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    height: 46px;
    box-shadow: none;
    transition: border-color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}
body .filter-input:focus,
body .filter-select:focus {
    background-color: #fff;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-soft);
    outline: none;
}
body .filter-reset-btn {
    background: transparent;
    color: var(--brand);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    height: 46px;
    font-weight: 600;
    box-shadow: none;
}
body .filter-reset-btn:hover { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); transform: none; }

/* ---------- Chips de estado ---------- */
body .estado-chips-container { margin: 0 0 18px; padding: 0; }
body .estado-chips-wrapper { justify-content: flex-start; gap: 8px; flex-wrap: wrap; padding: 0; margin: 0; }
body .estado-chip,
body .estado-chip:nth-child(n) {
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink);
    border-radius: 999px;
    padding: 8px 16px;
    box-shadow: none;
    font-family: var(--font);
    font-weight: 600;
    font-size: .88rem;
    letter-spacing: .01em;
    transition: all .2s var(--ease);
}
body .estado-chip .chip-icon { display: none; }
body .estado-chip:hover { border-color: var(--brand); transform: none; box-shadow: none; }
body .estado-chip.active,
body .estado-chip.active:nth-child(n) {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}
body .estado-chip .chip-check { display: none; }
body .estado-chip.active .chip-check { display: inline; margin-left: 4px; }

/* ---------- Grilla de productos ---------- */
body .products-container,
body .products-container.row {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(236px, 1fr));
    gap: 20px !important;
    margin: 0 !important;
    justify-content: stretch;
}

/* ---------- Tarjeta de producto ---------- */
body .product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: auto;
    width: 100%;
    max-width: none;
    flex: none;
    margin: 0;
    padding: 12px;
    text-align: left;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-1);
    cursor: default;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
body .product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2);
    border-color: transparent;
    cursor: default;
}
body .product-card .product-image-container {
    display: block !important;
    position: relative;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    background: var(--soft) !important;
    border-radius: 14px !important;
    padding: 12px;
    overflow: hidden !important;
    text-decoration: none;
}
body .product-card .product-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    border-radius: 0 !important;
    mix-blend-mode: multiply;
    transition: transform .5s var(--ease);
}
body .product-card:hover .product-image { transform: scale(1.05); }

body .product-card .product-details {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 12px 4px 4px;
}
body .product-card .pc-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    min-height: 22px;
}
body .product-card .pc-pill {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--soft);
    padding: 3px 9px;
    border-radius: 999px;
}
body .product-card .battery-status { display: inline-flex; align-items: center; gap: 4px; margin: 0; }
body .product-card .battery-icon { width: 14px; height: 14px; object-fit: contain; }
body .product-card .bateria { margin: 0; font-size: .8rem; font-weight: 600; color: var(--ok); }
body .product-card .pc-title,
body .product-card .product-details h3.pc-title {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 650;
    line-height: 1.25;
    letter-spacing: -.01em;
    color: var(--ink);
    text-transform: none;
}
body .product-card .pc-title a { color: inherit; text-decoration: none; }
body .product-card .pc-title a:hover { color: var(--brand); }
body .product-card .pc-sub {
    margin: 3px 0 0;
    font-size: .84rem;
    color: var(--muted);
    line-height: 1.3;
}
body .product-card .product-price {
    margin: 10px 0 0;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--ink);
    text-align: left;
}

/* Ofertas */
body .product-card .oferta-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
    background: var(--brand);
    color: #fff;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .03em;
    padding: 4px 10px;
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(128, 0, 32, .3);
}
body .product-card .precio-container--oferta { margin: 10px 0 0; background: none; border: 0; padding: 0; }
body .product-card .oferta-precios { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
body .product-card .precio-oferta { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; color: var(--brand); }
body .product-card .precio-original { font-size: .85rem; color: var(--muted); text-decoration: line-through; }
body .product-card .oferta-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
body .product-card .ahorro-text { font-size: .78rem; font-weight: 600; color: var(--ok); }
body .product-card .oferta-chip { font-size: .72rem; font-weight: 600; color: var(--brand); background: var(--brand-soft); padding: 2px 8px; border-radius: 999px; }

/* Cuotas: texto simple en vez de caja verde */
body .product-card .cuotas-badge {
    display: block;
    background: none;
    border: 0;
    padding: 0;
    margin: 6px 0 0;
    font-size: .8rem;
    line-height: 1.35;
    color: var(--muted);
}
body .product-card .cuotas-badge strong { color: var(--ink); font-weight: 600; }
body .product-card .cuotas-badge__icon { display: none; }
body .product-card .cuotas-sin-interes { color: var(--ok); font-weight: 600; margin-left: 4px; }

/* Acciones */
body .product-card .product-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding: 14px 0 0;
    border: 0;
}

/* ---------- Botones ---------- */
.btn-add-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 1;
    height: 42px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font: 600 .92rem/1 var(--font);
    letter-spacing: -.01em;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(128, 0, 32, .22);
    transition: background .2s var(--ease), transform .15s var(--ease), box-shadow .2s var(--ease);
}
.btn-add-cart:hover { background: var(--brand-hover); color: #fff; text-decoration: none; box-shadow: 0 6px 16px rgba(128, 0, 32, .32); }
.btn-add-cart:active { transform: scale(.97); }
.btn-add-cart[disabled] { background: var(--line); color: var(--muted); box-shadow: none; cursor: not-allowed; }
.btn-add-cart--lg { height: 52px; font-size: 1rem; flex: none; padding: 0 28px; }

body .product-card .btn-ver-mas-small,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    font: 600 .9rem/1 var(--font);
    text-decoration: none;
    cursor: pointer;
    transition: border-color .2s var(--ease), background .2s var(--ease);
}
body .product-card .btn-ver-mas-small:hover,
.btn-ghost:hover { border-color: var(--ink); background: var(--soft); color: var(--ink); text-decoration: none; }

body .btn-generico {
    background: var(--brand);
    border-radius: 999px;
    padding: 14px 32px;
    font-size: 1rem;
    letter-spacing: -.01em;
    box-shadow: 0 6px 18px rgba(128, 0, 32, .25);
}

/* ---------- Carrito flotante ---------- */
.cart-fab {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 9000;
    width: 58px;
    height: 58px;
    border: 0;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
    transition: transform .2s var(--ease), background .2s var(--ease);
}
.cart-fab[hidden] { display: none; }
.cart-fab:hover { background: #000; transform: translateY(-2px); }
.cart-fab__count {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font: 700 .75rem/22px var(--font);
    text-align: center;
    border: 2px solid var(--bg);
}
.cart-fab.bump { animation: cart-bump .45s var(--ease); }
@keyframes cart-bump { 0% { transform: scale(1); } 35% { transform: scale(1.18); } 100% { transform: scale(1); } }

/* ---------- Panel del carrito ---------- */
.cart-overlay {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(0, 0, 0, .38);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity .25s var(--ease);
}
.cart-overlay[hidden] { display: none; }
.cart-overlay.is-open { opacity: 1; }

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 10002;
    width: min(440px, 100%);
    display: flex;
    flex-direction: column;
    background: var(--surface);
    transform: translateX(104%);
    visibility: hidden;
    box-shadow: none;
    transition: transform .35s var(--ease), visibility 0s linear .35s, box-shadow .35s var(--ease);
    font-family: var(--font);
    color: var(--ink);
}
.cart-drawer.is-open {
    transform: translateX(0);
    visibility: visible;
    box-shadow: -20px 0 60px rgba(0, 0, 0, .18);
    transition: transform .35s var(--ease), visibility 0s, box-shadow .35s var(--ease);
}

.cart-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
}
.cart-drawer__head h2 { margin: 0; font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; }
.cart-drawer__close {
    width: 38px; height: 38px;
    border: 0; border-radius: 50%;
    background: var(--soft);
    color: var(--ink);
    font-size: 1.5rem; line-height: 1;
    cursor: pointer;
    transition: background .2s var(--ease);
}
.cart-drawer__close:hover { background: var(--line); }

.cart-drawer__body { flex: 1; overflow-y: auto; padding: 8px 20px; -webkit-overflow-scrolling: touch; }

.cart-list { list-style: none; margin: 0; padding: 0; }
.cart-item {
    display: grid;
    grid-template-columns: 76px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}
.cart-item:last-child { border-bottom: 0; }
.cart-item.is-out { opacity: .6; }
.cart-item__img {
    width: 76px; height: 76px;
    background: var(--soft);
    border-radius: 14px;
    display: grid; place-items: center;
    overflow: hidden;
}
.cart-item__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 6px; }
.cart-item__title { display: block; font-weight: 650; font-size: .98rem; line-height: 1.25; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.cart-item__title:hover { color: var(--brand); text-decoration: none; }
.cart-item__sub { margin-top: 2px; font-size: .8rem; color: var(--muted); }
.cart-item__price { margin-top: 6px; font-weight: 700; font-size: .95rem; }
.cart-item__price s { margin-left: 6px; font-weight: 400; font-size: .8rem; color: var(--muted); }
.cart-item__warn { margin-top: 4px; font-size: .78rem; font-weight: 600; color: var(--brand); }
.cart-item__ctrl { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.qty { display: inline-flex; align-items: center; background: var(--soft); border-radius: 999px; }
.qty button {
    width: 32px; height: 32px;
    border: 0; background: transparent;
    font-size: 1.1rem; font-weight: 600; color: var(--ink);
    border-radius: 50%; cursor: pointer;
}
.qty button:hover { background: var(--line); }
.qty span { min-width: 22px; text-align: center; font-weight: 600; font-size: .92rem; }
.cart-item__rm { border: 0; background: none; padding: 0; font-size: .78rem; color: var(--muted); text-decoration: underline; cursor: pointer; }
.cart-item__rm:hover { color: var(--brand); }

.cart-loading { padding: 8px 0; }
.cart-skeleton {
    height: 76px;
    margin: 16px 0;
    border-radius: 14px;
    background: linear-gradient(90deg, var(--soft) 25%, #ececf0 37%, var(--soft) 63%);
    background-size: 400% 100%;
    animation: cart-shimmer 1.3s ease infinite;
}
@keyframes cart-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.cart-empty { text-align: center; padding: 56px 12px; }
.cart-empty__icon { font-size: 3rem; margin-bottom: 8px; }
.cart-empty__title { margin: 0 0 4px; font-size: 1.15rem; font-weight: 700; }
.cart-empty__text { margin: 0 0 20px; color: var(--muted); font-size: .95rem; }
.cart-empty .btn-add-cart { flex: none; padding: 0 26px; }

.cart-drawer__foot {
    padding: 16px 20px calc(18px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 0 -10px 24px rgba(0, 0, 0, .04);
}
.cart-drawer__foot[hidden] { display: none; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1rem; margin-bottom: 4px; }
.cart-total strong { font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; }
.cart-input {
    width: 100%;
    height: 46px;
    margin: 10px 0;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: var(--soft);
    font: 400 .95rem var(--font);
    color: var(--ink);
}
.cart-input:focus { outline: none; background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.btn-whatsapp {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; height: 54px;
    border: 0; border-radius: 999px;
    background: var(--wa); color: #fff;
    font: 700 1.02rem/1 var(--font);
    letter-spacing: -.01em;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(37, 211, 102, .35);
    transition: background .2s var(--ease), transform .15s var(--ease);
}
.btn-whatsapp:hover { background: var(--wa-hover); }
.btn-whatsapp:active { transform: scale(.98); }
.btn-whatsapp[disabled] { background: var(--line); color: var(--muted); box-shadow: none; cursor: not-allowed; }
.btn-link { display: block; width: 100%; margin-top: 10px; border: 0; background: none; font: 500 .85rem var(--font); color: var(--muted); text-decoration: underline; cursor: pointer; }
.btn-link:hover { color: var(--brand); }
.cart-note { margin: 10px 0 0; text-align: center; font-size: .76rem; color: var(--muted); line-height: 1.4; }

/* ---------- Aviso (toast) ---------- */
.cart-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 10003;
    display: flex; align-items: center; gap: 14px;
    max-width: calc(100% - 32px);
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(29, 29, 31, .94);
    color: #fff;
    font: 500 .9rem var(--font);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .28);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 16px);
    transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.cart-toast.is-visible { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.cart-toast__btn { border: 0; background: none; color: #ff9db4; font: 700 .9rem var(--font); cursor: pointer; padding: 0; white-space: nowrap; }
.cart-toast__btn:hover { color: #fff; }

/* =====================================================================
   FICHA DE PRODUCTO
   ===================================================================== */
.btn-ghost--lg { height: 52px; padding: 0 24px; font-size: .98rem; }
.btn-ghost[disabled] { opacity: .5; cursor: not-allowed; }

.pp { max-width: 1180px; margin: 0 auto; padding: 84px 20px 64px; font-family: var(--font); }
.pp-crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .85rem; color: var(--muted); margin: 8px 0 22px; }
.pp-crumbs a { color: var(--muted); text-decoration: none; }
.pp-crumbs a:hover { color: var(--brand); }
.pp-crumbs span[aria-current] { color: var(--ink); font-weight: 600; }

.pp-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 44px; align-items: start; }

.pp-media {
    position: sticky;
    top: 78px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    place-items: center;
    aspect-ratio: 1 / 1;
    padding: clamp(20px, 4vw, 44px);
    background: var(--soft);
    border-radius: 32px;
    overflow: hidden;
}
.pp-media img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; mix-blend-mode: multiply; animation: pp-in .7s var(--ease) both; }
@keyframes pp-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.pp-noimg { color: var(--muted); }
.pp-badge {
    position: absolute; top: 20px; left: 20px; z-index: 2;
    background: var(--brand); color: #fff;
    font: 700 .85rem/1 var(--font); letter-spacing: .03em;
    padding: 8px 14px; border-radius: 999px;
    box-shadow: 0 6px 16px rgba(128, 0, 32, .3);
}

.pp-info { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.pp-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pp-chip { font-size: .8rem; font-weight: 600; color: var(--muted); background: var(--soft); padding: 6px 12px; border-radius: 999px; }
.pp-edit { font-size: .85rem; font-weight: 600; color: var(--brand); text-decoration: none; border: 1px solid var(--brand-soft); padding: 6px 12px; border-radius: 999px; }
.pp-edit:hover { background: var(--brand-soft); color: var(--brand); text-decoration: none; }

.pp-title { margin: -6px 0 0; font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; color: var(--ink); text-transform: none; }
.pp-sub { margin: -14px 0 0; font-size: 1.15rem; color: var(--muted); letter-spacing: -.01em; }

.pp-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pp-facts li { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.pp-facts__k { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pp-facts__v { font-size: 1.05rem; font-weight: 650; color: var(--ink); letter-spacing: -.01em; }
.pp-facts li.is-out .pp-facts__v { color: var(--brand); }
.pp-meter { display: block; height: 5px; margin-top: 8px; background: var(--soft); border-radius: 999px; overflow: hidden; }
.pp-meter i { display: block; height: 100%; background: linear-gradient(90deg, #34c759, var(--ok)); border-radius: 999px; }

.pp-price { display: flex; flex-direction: column; gap: 4px; padding-top: 4px; }
.pp-price__row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pp-price__now { font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 700; letter-spacing: -.035em; line-height: 1; color: var(--ink); }
.pp-price__old { font-size: 1.15rem; color: var(--muted); text-decoration: line-through; }
.pp-price__save { display: inline-block; align-self: flex-start; margin-top: 4px; font-size: .85rem; font-weight: 600; color: var(--ok); background: rgba(31, 138, 76, .1); padding: 4px 12px; border-radius: 999px; }
.pp-price__ars { font-size: 1.05rem; font-weight: 600; color: var(--ink); opacity: .75; margin-top: 4px; }
.pp-price__ars small { font-weight: 400; color: var(--muted); font-size: .8rem; }

.pp-cuotas { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 0 18px; }
.pp-cuotas summary { cursor: pointer; padding: 14px 0; font-weight: 650; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.pp-cuotas summary::-webkit-details-marker { display: none; }
.pp-cuotas summary::after { content: '+'; font-size: 1.3rem; font-weight: 400; color: var(--muted); }
.pp-cuotas[open] summary::after { content: '–'; }
.pp-cuotas summary small { font-weight: 400; color: var(--muted); margin-left: 6px; }
.pp-cuotas ul { list-style: none; margin: 0; padding: 0 0 8px; }
.pp-cuotas li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.pp-cuotas em { font-style: normal; font-size: .72rem; font-weight: 700; color: var(--ok); background: rgba(31, 138, 76, .1); padding: 2px 8px; border-radius: 999px; margin-left: 6px; }
.pp-cuotas strong { font-weight: 700; }
.pp-cuotas strong small { font-weight: 400; color: var(--muted); }

.pp-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pp-actions form { margin: 0; }
.pp-actions .btn-add-cart { flex: 1 1 220px; }

.pp-trust { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pp-trust li { position: relative; padding-left: 26px; font-size: .92rem; color: var(--muted); }
.pp-trust li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 18px; height: 18px; display: grid; place-items: center; font-size: .72rem; font-weight: 700; color: #fff; background: var(--ok); border-radius: 50%; line-height: 18px; text-align: center; }

.pp-specs { margin-top: 56px; padding: clamp(20px, 4vw, 36px); background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow-1); }
.pp-specs h2 { margin: 0 0 20px; font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
.pp-specs__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 36px; margin: 0; }
.pp-specs__grid > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.pp-specs__grid dt { font-size: .9rem; font-weight: 500; color: var(--muted); }
.pp-specs__grid dt { flex: 1 1 auto; min-width: 0; }
.pp-specs__grid dd { margin: 0; flex: 0 0 auto; max-width: 55%; font-size: .95rem; font-weight: 600; color: var(--ink); text-align: right; }
.pp-specs__text { margin: 0; color: var(--muted); line-height: 1.7; }

/* Barra de compra fija: solo celular */
.pp-buybar { display: none; }
.has-buybar .cart-fab { bottom: 94px; }

/* =====================================================================
   PORTADA — tramo final: sobre nosotros, beneficios, ubicación, footer
   ===================================================================== */
.about-eyebrow { display: inline-block; margin-bottom: 10px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }

body .about-section { margin: 56px 0; }
body .about-container {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: clamp(24px, 5vw, 56px);
    padding: clamp(24px, 5vw, 56px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 32px;
    box-shadow: var(--shadow-1);
}
body .about-container.about-container--solo { grid-template-columns: minmax(0, 1fr); max-width: 860px; margin-left: auto; margin-right: auto; text-align: left; }
body .about-content, body .about-image-container { width: auto; padding: 0; text-align: left; }
body .about-text { white-space: pre-line; }
.store-tail { max-width: 1180px; }
.visit__info { align-items: flex-start; text-align: left; }
body .about-title { margin: 0 0 14px; font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; color: var(--ink); text-shadow: none; text-align: left; }
body .about-text { margin: 0 0 26px; font-size: 1.05rem; line-height: 1.7; color: var(--muted); text-align: left; }
body .about-button-container { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: flex-start; }
body .about-button {
    display: inline-flex; align-items: center; justify-content: center;
    height: 50px; padding: 0 26px; border-radius: 999px;
    background: var(--brand); color: #fff; text-decoration: none;
    font: 600 1rem var(--font); letter-spacing: -.01em;
    box-shadow: 0 8px 20px rgba(128, 0, 32, .25);
    transition: background .2s var(--ease), transform .15s var(--ease);
}
body .about-button:hover { background: var(--brand-hover); color: #fff; text-decoration: none; transform: translateY(-1px); }
.about-link { font-weight: 600; color: var(--ink); text-decoration: none; }
.about-link:hover { color: var(--brand); text-decoration: none; }
body .about-image-container { border-radius: 24px; overflow: hidden; background: var(--soft); }
body .about-image { display: block; width: 100%; height: auto; max-height: 440px; object-fit: cover; border-radius: 24px; }
.about-admin { grid-column: 1 / -1; display: flex; gap: 10px; flex-wrap: wrap; }

.perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 0 56px; }
.perk { padding: 24px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; text-align: left; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.perk:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); }
.perk__icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 14px; font-size: 1.4rem; background: var(--soft); border-radius: 14px; }
.perk h3 { margin: 0 0 6px; font-size: 1.05rem; font-weight: 650; letter-spacing: -.01em; color: var(--ink); }
.perk p { margin: 0; font-size: .9rem; line-height: 1.5; color: var(--muted); }

.visit { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(20px, 4vw, 44px); align-items: stretch; margin: 0 0 56px; padding: clamp(20px, 4vw, 36px); background: var(--soft); border-radius: 32px; }
.visit__info { display: flex; flex-direction: column; justify-content: center; }
.visit__map { min-height: 340px; border-radius: 22px; overflow: hidden; background: var(--line); }
.visit__map iframe { display: block; width: 100%; height: 100%; min-height: 340px; border: 0; }

/* Footer */
.site-footer { margin-top: 24px; background: var(--surface); border-top: 1px solid var(--line); font-family: var(--font); }
.site-footer__inner { max-width: 1180px; margin: 0 auto; padding: 36px 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer__brand img { display: block; }
.site-footer__brand p { margin: 8px 0 0; font-size: .9rem; color: var(--muted); }
.site-footer__nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer__nav a { font-size: .95rem; font-weight: 500; color: var(--ink); text-decoration: none; }
.site-footer__nav a:hover { color: var(--brand); }
.site-footer__social { display: flex; gap: 10px; }
.site-footer__social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--soft); color: var(--ink); font-size: 1.1rem; text-decoration: none; transition: background .2s var(--ease), color .2s var(--ease), transform .15s var(--ease); }
.site-footer__social a:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }
.site-footer__legal { max-width: 1180px; margin: 0 auto; padding: 16px 20px 28px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }

@media (max-width: 900px) {
    .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body .about-container, .visit { grid-template-columns: 1fr; }
    .visit__map, .visit__map iframe { min-height: 280px; }
}
@media (max-width: 860px) {
    .pp-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .pp-media { position: relative; top: 0; border-radius: 24px; }
}
@media (max-width: 768px) {
    .pp { padding: 72px 16px 100px; }
    .pp-actions { display: none; }          /* en celular compra la barra fija de abajo */
    .pp-buybar {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 9500;
        display: flex; align-items: center; justify-content: space-between; gap: 14px;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, .92);
        -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
        border-top: 1px solid var(--line);
    }
    .pp-buybar__price { display: flex; flex-direction: column; line-height: 1.15; }
    .pp-buybar__price strong { font-size: 1.25rem; letter-spacing: -.02em; }
    .pp-buybar__price s { font-size: .8rem; color: var(--muted); }
    .pp-buybar .btn-add-cart { flex: 0 0 auto; height: 48px; padding: 0 30px; }
    .pp-specs { margin-top: 32px; }
    .perks { gap: 10px; }
    .perk { padding: 18px 16px; }
    .site-footer__inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    body .products-container,
    body .products-container.row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px !important;
    }
    body .product-card { padding: 8px; border-radius: 16px; }
    body .product-card .product-image-container { padding: 6px; border-radius: 12px !important; }
    body .product-card .product-details { padding: 10px 2px 2px; }
    body .product-card .product-price,
    body .product-card .precio-oferta { font-size: 1.1rem; }
    body .product-card .oferta-badge { top: 14px; left: 14px; }
    body .product-card .product-footer { gap: 6px; }
    body .product-card .btn-add-cart { height: 38px; font-size: .84rem; padding: 0 10px; }
    body .product-card .btn-add-cart svg { display: none; }
    body .product-card .btn-ver-mas-small { height: 38px; padding: 0 12px; font-size: .84rem; }
    body .filter-bar-fixed { padding: 10px; }
    .cart-fab { right: 14px; bottom: 14px; }
}
@media (max-width: 380px) {
    body .product-card .btn-ver-mas-small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Accesos de gestión dentro de la tienda ---------- */
.admin-pill {
    position: fixed; left: 14px; bottom: 14px; z-index: 8990;
    display: inline-flex; align-items: center; gap: 6px;
    height: 40px; padding: 0 16px; border-radius: 999px;
    background: rgba(29, 29, 31, .92); color: #fff;
    font: 600 .85rem var(--font); text-decoration: none;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .25);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.admin-pill:hover { background: #000; color: #fff; text-decoration: none; }
.has-buybar .admin-pill { bottom: 94px; }
.site-footer__staff { margin-left: 14px; color: var(--muted); font-size: .8rem; text-decoration: underline; }
.site-footer__staff:hover { color: var(--brand); }
body .navbar-menu ul li a.nav-panel { color: var(--brand); font-weight: 700; }
