/* ==========================================================================
   Casa Reza — Tienda en línea
   Tokens de marca (salen del logo: rojo + azul marino) y estilos del sitio.
   Bootstrap 5 da la base; aquí solo va lo propio de la tienda.
   ========================================================================== */

:root {
    --cr-red: #D81E28;
    --cr-red-dark: #B3151E;
    --cr-red-soft: #FDECEC;
    --cr-blue: #2B3A8F;
    --cr-navy: #1E2A5E;
    --cr-navy-deep: #151E45;
    --cr-blue-soft: #EBEEF9;

    --cr-bg: #F4F5F9;
    --cr-surface: #FFFFFF;
    --cr-text: #1B1F2E;
    --cr-muted: #5D6478;
    --cr-border: #E2E5EE;
    --cr-success: #1B7F4B;
    --cr-success-soft: #E5F5EC;
    --cr-warning: #9A5B00;
    --cr-warning-soft: #FFF4DE;

    --cr-radius: 14px;
    --cr-radius-sm: 10px;
    --cr-shadow: 0 1px 2px rgba(20, 28, 60, .06), 0 4px 14px rgba(20, 28, 60, .06);
    --cr-shadow-hover: 0 2px 4px rgba(20, 28, 60, .08), 0 12px 28px rgba(20, 28, 60, .12);

    --cr-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --cr-font-display: "Poppins", var(--cr-font);

    /* Bootstrap */
    --bs-body-font-family: var(--cr-font);
    --bs-body-color: var(--cr-text);
    --bs-body-bg: var(--cr-bg);
    --bs-primary: var(--cr-red);
    --bs-primary-rgb: 216, 30, 40;
    --bs-link-color: var(--cr-blue);
    --bs-link-color-rgb: 43, 58, 143;
    --bs-link-hover-color: var(--cr-navy);
    --bs-link-hover-color-rgb: 30, 42, 94;
    --bs-border-color: var(--cr-border);
    --bs-secondary-color: var(--cr-muted);
    --bs-focus-ring-color: rgba(43, 58, 143, .3);
}

html { scroll-padding-top: 6rem; }
body {
    font-size: 15px;
    background: var(--cr-bg);
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
@media (min-width: 768px) { body { font-size: 16px; } }

h1, h2, h3, .h1, .h2, .h3, .display-font {
    font-family: var(--cr-font-display);
    letter-spacing: -.01em;
    color: var(--cr-navy);
}

.site-main { flex: 1 0 auto; padding-bottom: 3rem; }

.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 2000;
    background: var(--cr-navy); color: #fff; padding: .5rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid rgba(43, 58, 143, .45); outline-offset: 2px; }

/* ---------- Botones ---------- */
.btn { font-weight: 600; border-radius: 10px; }
.btn-primary {
    --bs-btn-bg: var(--cr-red);
    --bs-btn-border-color: var(--cr-red);
    --bs-btn-hover-bg: var(--cr-red-dark);
    --bs-btn-hover-border-color: var(--cr-red-dark);
    --bs-btn-active-bg: var(--cr-red-dark);
    --bs-btn-active-border-color: var(--cr-red-dark);
    --bs-btn-disabled-bg: var(--cr-red);
    --bs-btn-disabled-border-color: var(--cr-red);
    --bs-btn-focus-shadow-rgb: 216, 30, 40;
}
.btn-navy {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--cr-navy);
    --bs-btn-border-color: var(--cr-navy);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--cr-navy-deep);
    --bs-btn-hover-border-color: var(--cr-navy-deep);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--cr-navy-deep);
    --bs-btn-focus-shadow-rgb: 30, 42, 94;
}
.btn-outline-navy {
    --bs-btn-color: var(--cr-navy);
    --bs-btn-border-color: #C9CEE0;
    --bs-btn-hover-color: var(--cr-navy);
    --bs-btn-hover-bg: var(--cr-blue-soft);
    --bs-btn-hover-border-color: var(--cr-blue);
    --bs-btn-active-color: var(--cr-navy);
    --bs-btn-active-bg: var(--cr-blue-soft);
    --bs-btn-active-border-color: var(--cr-blue);
    --bs-btn-focus-shadow-rgb: 43, 58, 143;
}
.btn-lg { padding: .8rem 1.4rem; border-radius: 12px; }

/* ---------- Barra superior ---------- */
.topbar { background: var(--cr-navy-deep); color: #C8CEEA; font-size: .82rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: .4rem; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar .bi { color: #FF6B72; margin-right: .25rem; }
@media (max-width: 575.98px) {
    .topbar-lema { display: none; }
    .topbar-inner { justify-content: center; }
}

/* ---------- Encabezado ---------- */
.site-header {
    position: sticky; top: 0; z-index: 1030;
    background: var(--cr-surface);
    border-bottom: 1px solid var(--cr-border);
}
.header-grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "brand search actions";
    align-items: center;
    gap: 1.25rem;
    padding-block: .6rem;
}
.brand { grid-area: brand; display: inline-flex; }
.brand img { height: 58px; width: auto; }

.header-search {
    grid-area: search;
    position: relative;
    display: flex;
    max-width: 680px;
    width: 100%;
    justify-self: center;
}
.header-search .bi-search {
    position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
    color: var(--cr-muted); pointer-events: none;
}
.header-search input {
    flex: 1; min-width: 0;
    border: 2px solid var(--cr-border);
    border-right: 0;
    border-radius: 12px 0 0 12px;
    padding: .65rem .9rem .65rem 2.6rem;
    background: var(--cr-bg);
    font-size: 1rem;
    transition: border-color .15s, background .15s;
}
.header-search input:focus { outline: none; border-color: var(--cr-blue); background: #fff; }
.header-search .btn { border-radius: 0 12px 12px 0; padding-inline: 1.3rem; }

.header-actions { grid-area: actions; display: flex; align-items: center; gap: .25rem; }
.header-action {
    display: inline-flex; flex-direction: column; align-items: center; gap: .1rem;
    padding: .35rem .7rem;
    border: 0; background: none;
    color: var(--cr-navy); text-decoration: none;
    font-size: .78rem; font-weight: 600;
    border-radius: 10px;
}
.header-action:hover, .header-action[aria-expanded="true"] { background: var(--cr-blue-soft); color: var(--cr-navy); }
.header-action > .bi, .header-cart-icon > .bi { font-size: 1.45rem; line-height: 1; }
.header-user-name { max-width: 9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-cart-icon { position: relative; display: inline-flex; }
.cart-badge {
    position: absolute; top: -.55rem; right: -.95rem;
    min-width: 1.25rem; height: 1.25rem; padding: 0 .3rem;
    border-radius: 999px; background: var(--cr-red); color: #fff;
    font-size: .7rem; font-weight: 700; line-height: 1.25rem; text-align: center;
    border: 2px solid #fff;
    box-sizing: content-box;
}

@media (max-width: 767.98px) {
    .header-grid {
        grid-template-columns: auto 1fr;
        grid-template-areas: "brand actions" "search search";
        gap: .5rem 1rem;
    }
    .brand img { height: 42px; }
    .header-actions { justify-self: end; }
    .header-search { max-width: none; }
    .header-search input { font-size: 16px; } /* evita el zoom automático de iOS */
}
@media (max-width: 400px) {
    .header-action-label { display: none; }
    .header-action { padding: .5rem; }
}

/* ---------- Franja de categorías ---------- */
.cat-strip { background: var(--cr-navy); }
.cat-strip-inner { display: flex; align-items: center; gap: .5rem; }
.cat-strip-all {
    flex: none;
    display: inline-flex; align-items: center; gap: .4rem;
    background: var(--cr-red); color: #fff;
    border: 0; border-radius: 8px;
    padding: .4rem .8rem; margin: .45rem 0;
    font-weight: 600; font-size: .88rem;
}
.cat-strip-all:hover { background: var(--cr-red-dark); }
.cat-strip-list {
    flex: 1; min-width: 0;
    display: flex; gap: .15rem;
    list-style: none; margin: 0; padding: 0;
    overflow-x: auto; scrollbar-width: none;
    mask-image: linear-gradient(to right, #000 92%, transparent);
}
.cat-strip-list::-webkit-scrollbar { display: none; }
.cat-strip-list a {
    display: block; white-space: nowrap;
    color: #DCE0F3; text-decoration: none;
    font-size: .88rem; font-weight: 500;
    padding: .55rem .75rem;
    border-radius: 8px;
}
.cat-strip-list a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.cat-strip-list a.active { color: #fff; background: rgba(255, 255, 255, .14); }

/* Panel con todas las categorías */
.panel-categorias { --bs-offcanvas-width: 340px; }
.panel-categorias .offcanvas-header { border-bottom: 1px solid var(--cr-border); }
.panel-categorias .offcanvas-body { padding: .5rem; }
.panel-cat-link {
    display: flex; align-items: center; gap: .75rem;
    padding: .45rem .6rem;
    border-radius: 10px;
    color: var(--cr-text); text-decoration: none;
}
.panel-cat-link:hover { background: var(--cr-bg); }
.panel-cat-link.active { background: var(--cr-blue-soft); font-weight: 600; }
.panel-cat-name { flex: 1; }
.panel-cat-count { color: var(--cr-muted); font-size: .8rem; font-variant-numeric: tabular-nums; }

/* Ícono de categoría con su tono (CategoriaVisual.Tono) */
.cat-icon {
    flex: none;
    display: inline-grid; place-items: center;
    width: 2.1rem; height: 2.1rem; border-radius: 9px;
    font-size: 1.05rem;
}
.tono-0 { --tono-bg: #EBEEF9; --tono-fg: #2B3A8F; }
.tono-1 { --tono-bg: #FDECEC; --tono-fg: #B3151E; }
.tono-2 { --tono-bg: #E5F5EC; --tono-fg: #1B7F4B; }
.tono-3 { --tono-bg: #FFF4DE; --tono-fg: #9A5B00; }
.tono-4 { --tono-bg: #EEE8FB; --tono-fg: #5B3AA8; }
.tono-5 { --tono-bg: #E3F4F8; --tono-fg: #116A80; }
.cat-icon, .product-media-empty, .cat-tile-icon { background: var(--tono-bg); color: var(--tono-fg); }

/* ---------- Encabezado de página ---------- */
.page-head { padding: 1.5rem 0 1rem; }
.page-head h1 { font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.1rem); margin: 0; }
.page-head .lead-sm { color: var(--cr-muted); margin: .25rem 0 0; }
.breadcrumb { --bs-breadcrumb-divider-color: var(--cr-muted); font-size: .85rem; margin-bottom: .5rem; }
.breadcrumb a { text-decoration: none; }

/* ---------- Superficies ---------- */
.surface {
    background: var(--cr-surface);
    border: 1px solid var(--cr-border);
    border-radius: var(--cr-radius);
    box-shadow: var(--cr-shadow);
}

/* ---------- Tarjeta de producto ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } }
@media (min-width: 1200px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; } }
/* En el catálogo la barra lateral quita espacio: 3 columnas hasta pantallas anchas. */
@media (min-width: 992px) { .catalog-layout .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1400px) { .catalog-layout .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Anaqueles del inicio (4 productos): en 3 columnas se oculta el 4.º para no dejar uno huérfano. */
@media (min-width: 768px) and (max-width: 1199.98px) { .product-grid-shelf > :nth-child(4) { display: none; } }

.product-card {
    display: flex; flex-direction: column;
    background: var(--cr-surface);
    border: 1px solid var(--cr-border);
    border-radius: var(--cr-radius);
    overflow: hidden;
    transition: box-shadow .2s, transform .2s, border-color .2s;
}
.product-card:hover { box-shadow: var(--cr-shadow-hover); border-color: #D3D8E6; transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .product-card, .product-card:hover { transition: none; transform: none; } }

.product-media { position: relative; aspect-ratio: 4 / 3; background: #fff; }
.product-media img { width: 100%; height: 100%; object-fit: contain; padding: .75rem; }
.product-media-empty {
    width: 100%; height: 100%;
    display: grid; place-items: center;
    background-image: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .7), transparent 60%);
}
.product-media-empty .bi { font-size: clamp(2.2rem, 1.6rem + 2vw, 3rem); opacity: .9; }
.product-chip {
    position: absolute; left: .6rem; top: .6rem;
    max-width: calc(100% - 1.2rem);
    background: rgba(255, 255, 255, .92);
    color: var(--cr-navy);
    font-size: .7rem; font-weight: 600;
    padding: .2rem .55rem;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}
.product-chip:hover { background: #fff; color: var(--cr-red); }

.product-body { display: flex; flex-direction: column; flex: 1; padding: .8rem .85rem .9rem; gap: .35rem; }
.product-title {
    font-family: var(--cr-font);
    font-size: .92rem; font-weight: 600; line-height: 1.3;
    color: var(--cr-text);
    margin: 0;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
    min-height: calc(1.3em * 3);
}
.product-code { font-size: .72rem; color: var(--cr-muted); }

.price { font-family: var(--cr-font-display); color: var(--cr-navy); font-weight: 700; line-height: 1; white-space: nowrap; }
.price-lg { font-size: 1.45rem; }
.price sup { font-size: .55em; top: -.7em; margin-left: .05em; }
.price .currency { font-size: .65em; vertical-align: .35em; margin-right: .05em; }

.stock { display: flex; align-items: flex-start; gap: .35rem; font-size: .78rem; line-height: 1.3; }
.stock .bi { margin-top: .1rem; }
.stock-ok { color: var(--cr-success); }
.stock-check { color: var(--cr-warning); }
.stock-check a { color: inherit; font-weight: 600; white-space: nowrap; }

.add-form { margin-top: auto; padding-top: .4rem; display: flex; gap: .4rem; }
.add-form .btn { flex: 1; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; padding-inline: .5rem; white-space: nowrap; }

/* Selector de cantidad (− 1 +), ver site.js */
.qty {
    display: inline-flex; align-items: stretch;
    border: 1.5px solid var(--cr-border); border-radius: 10px;
    background: #fff; overflow: hidden; flex: none;
}
.qty button {
    border: 0; background: transparent; color: var(--cr-navy);
    width: 2rem; font-size: 1rem; line-height: 1;
}
.qty button:hover { background: var(--cr-bg); }
.qty input {
    width: 2.4rem; border: 0; text-align: center; font-weight: 600;
    -moz-appearance: textfield; appearance: textfield;
    padding: 0; background: transparent;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { outline: none; }
.qty:focus-within { border-color: var(--cr-blue); }

@media (max-width: 400px) {
    .add-form { flex-direction: column; }
    .add-form .qty { align-self: stretch; justify-content: space-between; }
    .add-form .qty input { flex: 1; }
}

/* ---------- Catálogo ---------- */
.catalog-layout { display: grid; gap: 1.5rem; }
@media (min-width: 992px) { .catalog-layout { grid-template-columns: 260px minmax(0, 1fr); } }

.filters { position: sticky; top: 8.5rem; max-height: calc(100vh - 10rem); overflow: auto; padding: .5rem; }
.filters-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--cr-muted); font-weight: 700; padding: .6rem .6rem .3rem; margin: 0; font-family: var(--cr-font); }
.filters .panel-cat-link { font-size: .9rem; padding: .35rem .6rem; }
.filters .cat-icon { width: 1.75rem; height: 1.75rem; font-size: .9rem; border-radius: 7px; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.toolbar-count { color: var(--cr-muted); font-size: .9rem; margin-right: auto; }
.chip-filter {
    display: inline-flex; align-items: center; gap: .4rem;
    background: var(--cr-blue-soft); color: var(--cr-navy);
    border-radius: 999px; padding: .3rem .4rem .3rem .8rem;
    font-size: .85rem; font-weight: 500; text-decoration: none;
}
.chip-filter .bi { display: inline-grid; place-items: center; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: rgba(43, 58, 143, .12); font-size: .7rem; }
.chip-filter:hover { background: #DDE2F4; color: var(--cr-navy); }

.empty-state { text-align: center; padding: 3rem 1.5rem; }
.empty-state-icon {
    display: inline-grid; place-items: center;
    width: 4.5rem; height: 4.5rem; border-radius: 50%;
    background: var(--cr-blue-soft); color: var(--cr-blue);
    font-size: 2rem; margin-bottom: 1rem;
}
.empty-state h2 { font-size: 1.3rem; }
.empty-state p { color: var(--cr-muted); max-width: 32rem; margin: .25rem auto 1.25rem; }

/* Paginación */
.pager { display: flex; justify-content: center; margin-top: 2rem; }
.pagination { --bs-pagination-color: var(--cr-navy); --bs-pagination-active-bg: var(--cr-navy); --bs-pagination-active-border-color: var(--cr-navy); --bs-pagination-border-radius: 10px; --bs-pagination-hover-color: var(--cr-navy); --bs-pagination-focus-box-shadow: 0 0 0 .2rem rgba(43, 58, 143, .25); gap: .3rem; flex-wrap: wrap; justify-content: center; }
.pagination .page-link { border-radius: 10px !important; min-width: 2.5rem; text-align: center; font-weight: 600; }
.pagination .page-gap .page-link { border-color: transparent; background: transparent; }

/* ---------- Inicio ---------- */
.hero {
    position: relative; overflow: hidden;
    background: linear-gradient(120deg, var(--cr-navy-deep) 0%, var(--cr-navy) 45%, var(--cr-blue) 100%);
    color: #fff;
    padding: clamp(2.5rem, 2rem + 4vw, 5rem) 0;
}
.hero::before, .hero::after {
    content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.hero::before { width: 520px; height: 520px; right: -140px; top: -220px; background: radial-gradient(circle, rgba(216, 30, 40, .55), transparent 65%); }
.hero::after { width: 380px; height: 380px; left: -160px; bottom: -220px; background: radial-gradient(circle, rgba(255, 255, 255, .12), transparent 65%); }
.hero .container { position: relative; z-index: 1; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: .4rem;
    background: rgba(255, 255, 255, .12); color: #fff;
    border: 1px solid rgba(255, 255, 255, .2);
    padding: .3rem .8rem; border-radius: 999px;
    font-size: .82rem; font-weight: 600; margin-bottom: 1rem;
}
.hero h1 { color: #fff; font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); font-weight: 800; line-height: 1.08; max-width: 16ch; }
.hero h1 em { font-style: normal; color: #FF8A8F; }
.hero-lead { color: #D3D8F0; font-size: clamp(1rem, .95rem + .3vw, 1.15rem); max-width: 40rem; margin: 1rem 0 1.75rem; }
.hero-search { display: flex; max-width: 620px; background: #fff; border-radius: 14px; padding: .35rem; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.hero-search .bi-search { align-self: center; color: var(--cr-muted); margin: 0 .25rem 0 .75rem; }
.hero-search input { flex: 1; min-width: 0; border: 0; padding: .6rem .5rem; font-size: 1rem; background: transparent; }
.hero-search input:focus { outline: none; }
.hero-search .btn { border-radius: 10px; padding-inline: 1.4rem; }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 992px) { .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.hero-art { display: none; }
@media (min-width: 992px) {
    .hero-art { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; transform: rotate(-4deg); }
    .hero-art-tile {
        display: grid; place-items: center; gap: .5rem; aspect-ratio: 1;
        background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
        border-radius: 20px; backdrop-filter: blur(4px);
        color: #fff; font-size: .78rem; font-weight: 600; text-align: center; padding: .75rem;
    }
    .hero-art-tile:nth-child(2n) { transform: translateY(1.25rem); }
    .hero-art-tile .cat-tile-icon { width: 3.25rem; height: 3.25rem; font-size: 1.6rem; border-radius: 14px; }
}
.hero-stats { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; margin-top: 2rem; }
.hero-stat strong { display: block; font-family: var(--cr-font-display); font-size: 1.6rem; color: #fff; line-height: 1.1; }
.hero-stat span { color: #B9C0E2; font-size: .85rem; }

.section { padding: 2.5rem 0 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.section-head h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); margin: 0; }
.section-head p { color: var(--cr-muted); margin: .2rem 0 0; }
.section-link { font-weight: 600; text-decoration: none; white-space: nowrap; }
.section-link .bi { transition: transform .15s; display: inline-block; }
.section-link:hover .bi { transform: translateX(3px); }

.steps { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem; }
.step-num {
    flex: none; display: grid; place-items: center;
    width: 2.75rem; height: 2.75rem; border-radius: 12px;
    background: var(--cr-red-soft); color: var(--cr-red);
    font-size: 1.3rem;
}
.step h3 { font-family: var(--cr-font); font-size: 1rem; font-weight: 700; margin: 0 0 .2rem; color: var(--cr-text); }
.step p { margin: 0; color: var(--cr-muted); font-size: .9rem; }

.cat-tiles { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 576px) { .cat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 992px) { .cat-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.cat-tile {
    display: flex; flex-direction: column; align-items: flex-start; gap: .6rem;
    padding: 1rem;
    background: var(--cr-surface);
    border: 1px solid var(--cr-border);
    border-radius: var(--cr-radius);
    text-decoration: none; color: var(--cr-text);
    transition: box-shadow .2s, transform .2s, border-color .2s;
}
.cat-tile:hover { box-shadow: var(--cr-shadow-hover); transform: translateY(-2px); color: var(--cr-text); }
.cat-tile-icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 12px; font-size: 1.35rem; }
.cat-tile strong { font-size: .92rem; line-height: 1.25; }
.cat-tile-count { color: var(--cr-muted); font-size: .78rem; }

.cta-band {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
    background: linear-gradient(120deg, var(--cr-red) 0%, #E8434B 100%);
    color: #fff; border-radius: var(--cr-radius);
    padding: 1.5rem 1.75rem;
}
.cta-band h2 { color: #fff; font-size: 1.35rem; margin: 0; }
.cta-band p { margin: .25rem 0 0; color: #FFE1E3; }
.cta-band .btn { background: #fff; color: var(--cr-red); border: 0; }
.cta-band .btn:hover { background: #FFF1F1; color: var(--cr-red-dark); }

/* ---------- Carrito ---------- */
.cart-layout { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 992px) { .cart-layout { grid-template-columns: minmax(0, 1fr) 360px; } }
.cart-list { padding: 0; }
.cart-item {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) auto;
    grid-template-areas: "media info total" "media qty remove";
    gap: .35rem 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--cr-border);
}
.cart-item:last-child { border-bottom: 0; }
.cart-item-media { grid-area: media; width: 76px; height: 76px; border-radius: 12px; overflow: hidden; }
.cart-item-media .product-media-empty .bi { font-size: 1.8rem; }
.cart-item-media img { width: 100%; height: 100%; object-fit: contain; }
.cart-item-info { grid-area: info; min-width: 0; }
.cart-item-title { font-weight: 600; margin: 0; line-height: 1.3; }
.cart-item-meta { color: var(--cr-muted); font-size: .8rem; margin-top: .15rem; }
.cart-item-total { grid-area: total; text-align: right; }
.cart-item-total .price { font-size: 1.1rem; }
.cart-item-qty { grid-area: qty; display: flex; align-items: center; gap: .5rem; }
.cart-item-remove { grid-area: remove; justify-self: end; align-self: center; }
.cart-item-unavailable { color: var(--cr-red); font-size: .82rem; font-weight: 600; }
.btn-icon { display: inline-flex; align-items: center; gap: .3rem; color: var(--cr-muted); background: none; border: 0; font-size: .85rem; padding: .3rem .4rem; border-radius: 8px; }
.btn-icon:hover { color: var(--cr-red); background: var(--cr-red-soft); }
@media (max-width: 575.98px) {
    .cart-item { grid-template-columns: 60px minmax(0, 1fr); grid-template-areas: "media info" "media total" "qty remove"; padding: 1rem; }
    .cart-item-media { width: 60px; height: 60px; }
    .cart-item-total { text-align: left; }
}

.summary { padding: 1.35rem; position: sticky; top: 8.5rem; }
.summary h2 { font-size: 1.15rem; margin-bottom: 1rem; }
.summary-row { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; color: var(--cr-muted); }
.summary-row strong { color: var(--cr-text); font-weight: 600; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed var(--cr-border); margin-top: .5rem; padding-top: .9rem; }
.summary-total span { font-weight: 700; color: var(--cr-text); }
.summary-note { display: flex; gap: .5rem; font-size: .8rem; color: var(--cr-muted); background: var(--cr-bg); border-radius: 10px; padding: .7rem .8rem; margin: 1rem 0; }
.summary-note .bi { color: var(--cr-blue); }

/* ---------- Checkout ---------- */
.stepper { display: flex; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1.5rem; flex-wrap: wrap; }
.stepper li { display: flex; align-items: center; gap: .5rem; color: var(--cr-muted); font-size: .88rem; font-weight: 600; }
.stepper li + li::before { content: ""; width: 1.75rem; height: 2px; background: var(--cr-border); margin-right: .25rem; }
.stepper .dot { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--cr-border); color: var(--cr-muted); font-size: .8rem; }
.stepper .done .dot { background: var(--cr-success); color: #fff; }
.stepper .current { color: var(--cr-navy); }
.stepper .current .dot { background: var(--cr-navy); color: #fff; }

.order-lines { list-style: none; margin: 0; padding: 0; }
.order-lines li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--cr-border); font-size: .92rem; }
.order-lines li:last-child { border-bottom: 0; }
.order-lines .qty-tag { color: var(--cr-muted); font-variant-numeric: tabular-nums; margin-right: .4rem; }

.result-card { text-align: center; padding: 2.5rem 1.5rem; max-width: 560px; margin: 1rem auto; }
.result-icon { display: inline-grid; place-items: center; width: 5rem; height: 5rem; border-radius: 50%; font-size: 2.4rem; margin-bottom: 1rem; }
.result-ok .result-icon { background: var(--cr-success-soft); color: var(--cr-success); }
.result-error .result-icon { background: var(--cr-red-soft); color: var(--cr-red); }
.folio { display: inline-block; font-family: ui-monospace, Consolas, monospace; background: var(--cr-bg); border: 1px dashed var(--cr-border); border-radius: 8px; padding: .35rem .7rem; font-size: .85rem; word-break: break-all; }

/* ---------- Login / registro ---------- */
.auth-wrap { display: grid; place-items: center; padding: 2.5rem 0; }
.auth-card { width: 100%; max-width: 440px; padding: 2rem; text-align: center; }
.auth-card img.auth-logo { height: 64px; width: auto; margin-bottom: 1rem; }
.auth-card h1 { font-size: 1.5rem; margin-bottom: .35rem; }
.auth-card p { color: var(--cr-muted); }
.btn-google {
    display: inline-flex; align-items: center; justify-content: center; gap: .75rem;
    width: 100%; padding: .75rem 1rem;
    background: #fff; color: #1F1F1F;
    border: 1.5px solid #D5D9E2; border-radius: 12px;
    font-weight: 600;
}
.btn-google:hover { background: #F7F8FA; border-color: #B9BFCC; }
.btn-google:disabled { opacity: .7; }
.auth-benefits { list-style: none; padding: 0; margin: 1.5rem 0 0; text-align: left; display: grid; gap: .55rem; }
.auth-benefits li { display: flex; gap: .6rem; font-size: .9rem; color: var(--cr-muted); }
.auth-benefits .bi { color: var(--cr-success); }
.auth-legal { font-size: .78rem; color: var(--cr-muted); margin-top: 1.25rem; }

.form-card { padding: 1.75rem; }
.form-section-title { display: flex; align-items: center; gap: .5rem; font-family: var(--cr-font); font-size: .95rem; font-weight: 700; color: var(--cr-navy); margin: 0 0 1rem; }
.form-section-title .bi { color: var(--cr-red); }
.form-control, .form-select { border-radius: 10px; border-width: 1.5px; padding: .6rem .8rem; }
.form-control:focus, .form-select:focus { border-color: var(--cr-blue); box-shadow: 0 0 0 .2rem rgba(43, 58, 143, .15); }
.form-label { font-weight: 600; font-size: .88rem; margin-bottom: .3rem; }
.form-label .opt { font-weight: 400; color: var(--cr-muted); }

/* ---------- Pie de página ---------- */
.site-footer { background: var(--cr-navy-deep); color: #B9C0E2; padding: 3rem 0 1.25rem; font-size: .9rem; margin-top: auto; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.3fr 1fr; } }
.footer-logo { display: inline-flex; background: #fff; border-radius: 12px; padding: .45rem .7rem; margin-bottom: .9rem; }
.footer-logo img { height: 44px; width: auto; }
.footer-brand p { max-width: 22rem; }
.footer-title { font-family: var(--cr-font); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; font-weight: 700; margin-bottom: .9rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-links a { color: #B9C0E2; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-steps { counter-reset: paso; }
.footer-steps li { counter-increment: paso; display: flex; gap: .5rem; }
.footer-steps li::before { content: counter(paso); flex: none; display: grid; place-items: center; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; font-size: .72rem; font-weight: 700; }
.footer-tel { display: inline-flex; align-items: center; gap: .5rem; color: #fff; font-size: 1.15rem; font-weight: 700; text-decoration: none; font-family: var(--cr-font-display); }
.footer-tel .bi { color: #FF6B72; }
.footer-note { margin-top: .5rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .8rem; }

/* ---------- Avisos ---------- */
.toast-tienda { background: var(--cr-navy); color: #fff; border: 0; border-radius: 12px; box-shadow: var(--cr-shadow-hover); }
.toast-tienda .btn-close { filter: invert(1) grayscale(1) brightness(2); }
.alert { border-radius: 12px; }

/* ---------- Texto legal ---------- */
.prose { max-width: 46rem; padding: 2rem; }
.prose h2 { font-size: 1.15rem; margin-top: 1.5rem; }
