/* ═══════════════════════════════════════════════════════════
   store.css — FSF Store · Diseño premium
   ═══════════════════════════════════════════════════════════ */

/* ── Variables ──────────────────────────────────────────── */
:root {
  --orange:       #F05A00;
  --orange-dark:  #D94E00;
  --orange-light: rgba(240,90,0,0.12);
  --mp-blue:      #009ee3;

  --bg:           #F8F5F1;
  --bg-card:      #FFFFFF;
  --bg-glass:     rgba(255,255,255,0.72);
  --border:       #E8E2DA;
  --shadow:       0 2px 16px rgba(0,0,0,0.08);
  --shadow-lg:    0 8px 40px rgba(0,0,0,0.14);

  --text-main:    #111111;
  --text-sub:     #555555;
  --text-muted:   #999999;

  --radius:       4px;
  --radius-lg:    10px;
  --transition:   0.2s cubic-bezier(0.22,1,0.36,1);

  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Barlow', sans-serif;
  --font-ui:      'Barlow Condensed', sans-serif;

  --header-h:     72px;
  --container:    1200px;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  transition: background var(--transition), color var(--transition);
}
img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── Utilities ───────────────────────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only   { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center;
  height: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px;
  gap: 0;
}

/* Logo */
.header-logo {
  display: flex; align-items: center;
  flex-shrink: 0; text-decoration: none;
}
.header-logo-img { height: 48px; width: auto; display: block; }

/* Pipe separador */
.header-sep {
  display: inline-block;
  width: 1px; height: 22px;
  background: var(--border);
  flex-shrink: 0;
  margin: 0 16px;
}

/* Nav links */
.header-nav {
  display: flex; align-items: center; gap: 2px;
  flex: 1;
}
.header-nav a {
  font-family: var(--font-ui);
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-sub);
  padding: 6px 12px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
}
.header-nav a:hover, .header-nav a.active { color: var(--orange); background: var(--orange-light); }
.header-nav-fsf {
  border-left: 1px solid var(--border) !important;
  margin-left: 8px !important;
  padding-left: 16px !important;
  color: var(--text-muted) !important;
}
.header-nav-fsf:hover { color: var(--orange) !important; background: none !important; }

/* Acciones derecha: [lupa] [carrito] | [ingresar] */
.header-actions {
  display: flex; align-items: center; gap: 6px; margin-left: auto;
}


/* Búsqueda en header */
.header-search {
  display: flex; align-items: center;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 12px; gap: 8px;
  transition: border-color var(--transition);
  width: 220px;
}
.header-search:focus-within { border-color: var(--orange); }
.header-search input {
  background: none; border: none; outline: none;
  font-size: 0.85rem; color: var(--text-main); width: 100%;
  font-family: var(--font-body);
}
.header-search svg { width: 16px; height: 16px; color: var(--text-muted); flex-shrink: 0; }

/* Botones de acción en header */
.icon-btn {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: var(--radius);
  color: var(--text-sub);
  transition: color var(--transition), background var(--transition);
}
.icon-btn:hover { color: var(--orange); background: var(--orange-light); }
.icon-btn svg { width: 20px; height: 20px; }

.cart-badge {
  position: absolute; top: 2px; right: 2px;
  background: var(--orange); color: #fff;
  font-family: var(--font-ui); font-size: 0.6rem; font-weight: 700;
  width: 17px; height: 17px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}

.wishlist-badge {
  position: absolute; top: 2px; right: 2px;
  background: #e11d48; color: #fff;
  font-family: var(--font-ui); font-size: 0.6rem; font-weight: 700;
  width: 17px; height: 17px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}

/* Wishlist heart — filled when active */
#wishlistToggle.active svg {
  fill: #e11d48;
  stroke: #e11d48;
}

.theme-btn {
  font-size: 1rem; color: #4a9eff;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.theme-btn:hover { background: rgba(74,158,255,0.1); }

/* =========================
   HERO
========================= */
.hero {
    position: relative;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-image: url("../images/hero-tienda-principal.webp");
    background-size: cover;
    background-position: center right;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        90deg,
        rgba(8,12,20,.45) 0%,
        rgba(8,12,20,.25) 35%,
        rgba(8,12,20,.10) 60%,
        rgba(8,12,20,0) 100%
    );
}
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 650px;
    margin-left: 8%;
}

/* ── Auth modal: btn-primary siempre llena su columna (override de hero) ── */
.auth-col .btn-primary {
  width: 100%;
  height: 48px;
  border-radius: var(--radius);
}
/* =========================
   TEXTO
========================= */
.hero-label {
    display: block;
    margin-bottom: 18px;
    color: #FF6600;
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
}
.hero-title {
    margin: 0;
    color: #FFFFFF;
    font-size: clamp(4rem, 8vw, 7rem);
    font-weight: 900;
    line-height: .9;
    text-transform: uppercase;
}
.hero-title span {
    display: block;
    color: #FF6600;
}
.hero-description {
    margin-top: 28px;
    margin-bottom: 42px;
    max-width: 580px;
    color: rgba(255,255,255,.85);
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.8;
}
/* =========================
   BOTONES
========================= */
.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: nowrap;
}
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 62px;
    width: 200px;
    border-radius: 22px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all .25s ease;
    color: #FFFFFF;
    box-shadow:
        0 1px 2px rgba(255,255,255,.08) inset,
        0 -1px 2px rgba(0,0,0,.15) inset,
        0 8px 20px rgba(0,0,0,.20);
}
.btn-primary {
    background: #FF6600;
    border: 1px solid rgba(255,255,255,.12);
}
.btn-primary:hover {
    background: #FF7A1A;
    transform: translateY(-2px);
    box-shadow:
        0 1px 2px rgba(255,255,255,.12) inset,
        0 -1px 2px rgba(0,0,0,.15) inset,
        0 12px 28px rgba(0,0,0,.25);
}
.btn-secondary {
    background: rgba(255,255,255,.04);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.18);
}
.btn-secondary:hover {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.65);
    transform: translateY(-2px);
    box-shadow:
        0 1px 2px rgba(255,255,255,.12) inset,
        0 -1px 2px rgba(0,0,0,.15) inset,
        0 12px 28px rgba(0,0,0,.25);
}

/* ── Section ─────────────────────────────────────────────── */
.section { padding: 72px 0; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; flex-wrap: wrap; gap: 16px; }
.section-label {
  font-family: var(--font-ui); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--orange);
  margin-bottom: 6px; display: block;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: 0.06em; line-height: 1;
  color: var(--text-main);
}
.section-link {
  font-family: var(--font-ui); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--orange); border-bottom: 1px solid var(--orange);
  padding-bottom: 2px; white-space: nowrap;
  transition: opacity var(--transition);
}
.section-link:hover { opacity: 0.75; }

/* ── Product Grid ────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ── Product Card ────────────────────────────────────────── */
.product-card {
  background: var(--bg-card);
  border: 1px solid transparent;
  border-radius: 0;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  display: flex; flex-direction: column;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.product-img-wrap {
  position: relative; aspect-ratio: 4/5;
  overflow: hidden; background: var(--bg);
}
.product-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--transition);
}
.product-card:hover .product-img-wrap img { transform: scale(1.06); }

.product-badge {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--font-ui); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--orange); color: #fff;
  padding: 3px 8px; border-radius: 2px;
}
.product-badge--oferta { background: #e11d48; }
.product-badge--nuevo  { background: #059669; }

.product-quick-add {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
  padding: 32px 12px 12px;
  opacity: 0; transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition);
}
.product-card:hover .product-quick-add { opacity: 1; transform: translateY(0); }
.product-quick-add button {
  width: 100%;
  background: #fff; color: #111;
  font-family: var(--font-ui); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 9px 12px;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}
.product-quick-add button:hover { background: var(--orange); color: #fff; }

.product-info {
  padding: 16px;
  display: flex; flex-direction: column; gap: 6px;
  flex: 1;
}
.product-cat {
  font-family: var(--font-ui); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted);
}
.product-name {
  font-family: var(--font-ui); font-size: 0.95rem; font-weight: 700;
  letter-spacing: 0.03em; color: var(--text-main);
  line-height: 1.3;
  /* Recorte a 2 líneas con puntos suspensivos: mantiene todas las
     tarjetas parejas sin importar el largo del nombre del producto. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em; /* reserva el alto de 2 líneas para alinear tarjetas */
}
.product-prices {
  display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 8px;
}
.product-price {
  font-family: var(--font-display); font-size: 1.3rem; color: var(--text-main);
  letter-spacing: 0.04em;
}
.product-price--original { font-size: 0.9rem; color: var(--text-muted); text-decoration: line-through; }
.product-price--oferta   { color: #e11d48; }

/* ── Skeleton ────────────────────────────────────────────── */
@keyframes skeleton-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
.skeleton {
  background: var(--border);
  border-radius: var(--radius);
  animation: skeleton-pulse 1.4s ease-in-out infinite;
}
.skeleton-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.skeleton-img  { aspect-ratio: 1; width: 100%; }
.skeleton-text { height: 12px; margin: 4px 16px; }
.skeleton-text.short  { width: 40%; }
.skeleton-text.medium { width: 65%; }
.skeleton-text.long   { width: 85%; }
.skeleton-price { height: 20px; width: 50%; margin: 12px 16px 16px; }

/* ── Categories ──────────────────────────────────────────── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.category-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--orange); }
.category-icon { font-size: 2rem; }
.category-name {
  font-family: var(--font-ui); font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-main);
}
.category-count { font-family: var(--font-ui); font-size: 0.7rem; color: var(--text-muted); }

/* ── Cart Sidebar ────────────────────────────────────────── */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 500; opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
  backdrop-filter: blur(3px);
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-sidebar {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(420px, 100vw);
  background: var(--bg-card); z-index: 501;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
  box-shadow: -8px 0 40px rgba(0,0,0,0.2);
}
.cart-sidebar.open { transform: translateX(0); }

.cart-header {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 18px 52px 18px 24px; border-bottom: 1px solid var(--border);
}
.cart-title { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 0.1em; }
/* Cruz en esquina superior derecha (absoluta) */
.cart-close {
  position: absolute;
  top: 10px; right: 10px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); border-radius: var(--radius);
  background: none; border: none; cursor: pointer;
  transition: color var(--transition), background var(--transition);
  touch-action: manipulation; z-index: 2;
}
.cart-close:hover { color: var(--text-main); background: var(--bg); }
.cart-close svg { width: 18px; height: 18px; }

.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; gap: 12px; color: var(--text-muted);
  font-family: var(--font-ui); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.cart-empty svg { width: 48px; height: 48px; opacity: 0.4; }

.cart-item {
  display: flex; gap: 12px; padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
  width: 68px; height: 68px; border-radius: var(--radius); object-fit: cover;
  background: var(--bg); flex-shrink: 0;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
  font-family: var(--font-ui); font-size: 0.85rem; font-weight: 700;
  color: var(--text-main); margin-bottom: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cart-item-variant { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 8px; }
.cart-item-controls { display: flex; align-items: center; gap: 8px; }
.qty-btn {
  width: 26px; height: 26px; border: 1px solid var(--border); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--text-sub);
  transition: border-color var(--transition), color var(--transition);
}
.qty-btn:hover { border-color: var(--orange); color: var(--orange); }
.qty-num { font-family: var(--font-ui); font-size: 0.82rem; font-weight: 700; width: 24px; text-align: center; }
.cart-item-price {
  font-family: var(--font-display); font-size: 1rem;
  color: var(--text-main); letter-spacing: 0.04em;
  display: flex; align-items: flex-start;
  flex-shrink: 0;
}
.cart-item-remove {
  color: var(--text-muted); font-size: 0.7rem; margin-left: auto;
  transition: color var(--transition);
}
.cart-item-remove:hover { color: #e11d48; }

.cart-footer { padding: 20px 24px; border-top: 1px solid var(--border); }
.cart-totals { margin-bottom: 16px; }
.cart-total-row {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-ui); font-size: 0.78rem; letter-spacing: 0.08em;
  color: var(--text-sub); padding: 4px 0;
}
.cart-total-row.final {
  font-size: 1rem; font-weight: 700; color: var(--text-main);
  padding-top: 10px; border-top: 1px solid var(--border); margin-top: 6px;
}
.cart-total-row.final .amount { font-family: var(--font-display); font-size: 1.4rem; }

.btn-checkout {
  width: 100%;
  background: var(--orange); color: #fff;
  font-family: var(--font-ui); font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 14px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background var(--transition), transform var(--transition);
}
.btn-checkout:hover { background: var(--orange-dark); transform: translateY(-1px); }
.btn-checkout:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-checkout svg { width: 16px; height: 16px; }

.btn-mp {
  width: 100%; margin-top: 10px;
  background: var(--mp-blue); color: #fff;
  font-family: var(--font-ui); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 12px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background var(--transition);
}
.btn-mp:hover { background: #0080c0; }

/* ── Toast ───────────────────────────────────────────────── */
.toast-container {
  position: fixed; bottom: 24px; right: 24px;
  display: flex; flex-direction: column; gap: 10px;
  z-index: 9999; pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-left: 3px solid var(--orange);
  padding: 12px 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-family: var(--font-ui); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-main);
  max-width: 320px;
  opacity: 0; transform: translateX(20px);
  transition: opacity var(--transition), transform var(--transition);
  pointer-events: auto;
}
.toast.show    { opacity: 1; transform: translateX(0); }
.toast--success { border-left-color: #059669; }
.toast--error   { border-left-color: #e11d48; }
.toast--info    { border-left-color: var(--mp-blue); }
.toast svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ── Auth modal ──────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  z-index: 1000; display: none; align-items: center; justify-content: center;
  padding: 24px; backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }

.modal-box {
  background: var(--bg-card); border: 1px solid var(--border);
  border-top: 3px solid var(--orange);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 820px;
  padding: 40px;
  position: relative;
  animation: modalIn 0.25s cubic-bezier(0.22,1,0.36,1);
  max-height: 90vh; overflow-y: auto;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(-20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); border-radius: var(--radius);
  font-size: 1.3rem; line-height: 1;
  transition: color var(--transition), background var(--transition);
}
.modal-close:hover { color: var(--text-main); background: var(--bg); }

.auth-cols { display: flex; gap: 32px; align-items: flex-start; }
.auth-col  { flex: 1; }
.auth-col-title {
  font-family: var(--font-display); font-size: 1.1rem; letter-spacing: 0.16em;
  color: var(--text-main); margin-bottom: 20px;
  padding-bottom: 10px; border-bottom: 2px solid var(--orange); display: inline-block;
}
.auth-divider {
  width: 1px; background: var(--border); align-self: stretch;
  display: flex; align-items: center; justify-content: center; position: relative;
}
.auth-divider span {
  background: var(--bg-card); padding: 8px 0;
  font-family: var(--font-ui); font-size: 0.7rem; letter-spacing: 0.1em;
  color: var(--text-muted); text-transform: uppercase;
}

.form-field { margin-bottom: 14px; }
.form-field label {
  display: block;
  font-family: var(--font-ui); font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 6px;
}
.form-field input {
  width: 100%; padding: 10px 14px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text-main);
  font-family: var(--font-body); font-size: 0.92rem;
  outline: none; transition: border-color var(--transition);
}
.form-field input:focus { border-color: var(--orange); }
.form-error {
  font-family: var(--font-ui); font-size: 0.72rem; letter-spacing: 0.05em;
  color: #e11d48; min-height: 18px; margin: -8px 0 8px;
}
.form-btn-primary {
  width: 100%; padding: 12px;
  background: var(--orange); color: #fff;
  font-family: var(--font-ui); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
  margin-top: 6px;
}
.form-btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); }

/* ── Perfil modal ────────────────────────────────────────── */
.perfil-box { max-width: 560px; }
.perfil-info {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 20px 0 24px; border-bottom: 1px solid var(--border); margin-bottom: 24px;
}
.perfil-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--orange); color: #fff;
  font-family: var(--font-display); font-size: 2rem;
  display: flex; align-items: center; justify-content: center;
}
.perfil-nombre { font-family: var(--font-display); font-size: 1.2rem; letter-spacing: 0.1em; }
.perfil-email  { font-family: var(--font-ui); font-size: 0.78rem; color: var(--text-muted); }

.historial-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.historial-item:last-child { border-bottom: none; }
.historial-estado {
  font-family: var(--font-ui); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 2px;
  background: var(--orange-light); color: var(--orange);
}
.historial-estado.approved { background: rgba(5,150,105,0.12); color: #059669; }
.historial-estado.rejected,
.historial-estado.cancelled { background: rgba(225,29,72,0.1); color: #e11d48; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: #111111; color: rgba(255,255,255,0.7);
  padding: 56px 0 24px; border-top: 1px solid #222;
}

.footer-grid {
  display: grid; grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px; margin-bottom: 48px;
}
.footer-brand-name {
  font-family: var(--font-display); font-size: 1.2rem; letter-spacing: 0.12em;
  color: #fff; margin-bottom: 10px;
}
.footer-brand-desc { font-size: 0.85rem; line-height: 1.6; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: border-color var(--transition), color var(--transition);
}
.footer-social a:hover { border-color: var(--orange); color: var(--orange); }
.footer-social a svg { width: 16px; height: 16px; }

.footer-col-title {
  font-family: var(--font-ui); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: #fff; margin-bottom: 16px;
}
.footer-col a {
  display: block; font-size: 0.85rem;
  color: rgba(255,255,255,0.55); margin-bottom: 10px;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--orange); }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px; border-top: 1px solid #222;
  font-family: var(--font-ui); font-size: 0.7rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,0.35);
  flex-wrap: wrap; gap: 12px;
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: rgba(255,255,255,0.35); transition: color var(--transition); }
.footer-legal a:hover { color: var(--orange); }

/* ── Filters ─────────────────────────────────────────────── */
.filters-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 0; border-bottom: 1px solid var(--border); margin-bottom: 32px;
  flex-wrap: wrap;
}
.filter-chip {
  font-family: var(--font-ui); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 14px; border: 1px solid var(--border); border-radius: 100px;
  color: var(--text-sub); background: transparent;
  transition: all var(--transition);
}
.filter-chip:hover, .filter-chip.active {
  background: var(--orange); border-color: var(--orange); color: #fff;
}
.filter-select {
  font-family: var(--font-ui); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 8px 32px 8px 12px;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-sub); border-radius: var(--radius);
  outline: none; cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
  transition: border-color var(--transition);
}
.filter-select:focus { border-color: var(--orange); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .header-search { width: 160px; }
}

@media (max-width: 768px) {
  :root { --header-h: 56px; }
  .header-nav { display: none; }
  .header-search { display: none; }
  .hero { min-height: 600px; }
  .hero-content { margin: 0 24px; }
  .hero-title { font-size: 4rem; }
  .hero-description { font-size: 1rem; line-height: 1.7; }
  .hero-buttons { flex-wrap: wrap; }
  .btn-primary,
  .btn-secondary { width: 100%; }
  .section { padding: 48px 0; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .auth-cols { flex-direction: column; gap: 24px; }
  .auth-divider { width: 100%; height: 1px; flex-direction: row; }
  .modal-box { padding: 28px 20px; }
  /* Footer mobile: marca a lo ancho + columnas de links en 2 (como desktop, adaptado) */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 430px) {
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  /* products-grid stays 2-col on mobile */
  .container { padding: 0 16px; }

}

/* ══════════════════════════════════════════════════════
   FAQ — Accordion
   ══════════════════════════════════════════════════════ */
.faq-section {
  text-align: center;
  padding: 72px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-item {
  background: var(--bg-card);
  border: none;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  transition: background var(--transition);
}
.faq-item:last-child { border-bottom: none; }
.faq-item.open { background: #fff; }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-main);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--orange); }
.faq-item.open .faq-question { color: var(--orange); }

.faq-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-muted);
  transition: transform 0.25s, border-color 0.2s, color 0.2s;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  border-color: var(--orange);
  color: var(--orange);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 20px;
}
.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 0 20px 18px;
}
.faq-answer p {
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.8;
  margin: 0;
}
.faq-answer a { color: var(--orange); text-decoration: none; }
.faq-answer a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════════
   REVIEWS — Reseñas verificadas
   ══════════════════════════════════════════════════════ */
.reviews-section {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.reviews-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.reviews-summary {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviews-avg {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--text-main);
  letter-spacing: 0.04em;
  line-height: 1;
}

.stars-display {
  display: flex;
  gap: 2px;
}
.star { font-size: 1.1rem; }
.star.filled { color: #f59e0b; }
.star.empty  { color: var(--border); }

.reviews-count {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

.btn-write-review {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 9px 20px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition);
}
.btn-write-review:hover { background: var(--orange-dark); }

.reviews-list { display: flex; flex-direction: column; gap: 16px; }

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}

.review-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.review-nombre {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-main);
}

.review-fecha {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.review-verificado {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #059669;
  background: rgba(5,150,105,0.1);
  padding: 2px 8px;
  border-radius: 2px;
}

.review-titulo {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}

.review-texto {
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.65;
  margin: 0;
}

.review-empty {
  text-align: center;
  padding: 40px 0;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Review form modal */
.review-form { display: flex; flex-direction: column; gap: 16px; margin-top: 4px; }

.star-picker { display: flex; gap: 6px; }
.star-btn {
  font-size: 1.6rem;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--border);
  transition: color var(--transition), transform 0.1s;
  padding: 2px;
}
.star-btn:hover, .star-btn.selected { color: #f59e0b; }
.star-btn:hover { transform: scale(1.15); }

/* ══════════════════════════════════════════════════════
   SHIPPING CALCULATOR — en carrito
   ══════════════════════════════════════════════════════ */
.shipping-calc {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.shipping-calc-label {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: block;
}

.shipping-calc-row {
  display: flex;
  gap: 8px;
}

.shipping-select {
  flex: 1;
  padding: 8px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-main);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  outline: none;
  transition: border-color var(--transition);
}
.shipping-select:focus { border-color: var(--orange); }

.btn-calc {
  padding: 8px 14px;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}
.btn-calc:hover { background: var(--orange-dark); }

.shipping-result {
  margin-top: 8px;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--text-sub);
  display: none;
  padding: 8px 10px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.shipping-result.gratis { color: #059669; border-color: rgba(5,150,105,0.3); }
.shipping-result.show { display: block; }

/* ══════════════════════════════════════════════════════
   SIZE GUIDE — Guía de talles
   ══════════════════════════════════════════════════════ */
.size-guide-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-top: 8px;
  transition: color var(--transition);
}
.size-guide-btn:hover { color: var(--orange); }
.size-guide-btn svg { width: 14px; height: 14px; }

.size-guide-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
}
.size-guide-modal.open { display: flex; }

.size-guide-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--orange);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 640px;
  padding: 32px;
  position: relative;
  animation: modalIn 0.25s cubic-bezier(0.22,1,0.36,1);
  max-height: 90vh;
  overflow-y: auto;
}

.size-guide-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}

.size-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.size-table th {
  padding: 8px 12px;
  background: var(--bg);
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
  text-align: left;
}
.size-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-sub);
  font-family: var(--font-body);
}
.size-table tr:last-child td { border-bottom: none; }
.size-table .size-label {
  font-family: var(--font-ui);
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.08em;
}

.size-note {
  margin-top: 16px;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

/* ══════════════════════════════════════════════════════
   IMAGE ZOOM — Producto
   ══════════════════════════════════════════════════════ */
.zoom-wrap {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
}
.zoom-wrap.zoomed { cursor: zoom-out; }
.zoom-wrap img {
  transition: transform 0.3s ease;
  transform-origin: center center;
  will-change: transform;
}
.zoom-wrap.zoomed img { transform: scale(1.25); }

/* ══════════════════════════════════════════════════════
   RESPONSIVE — nuevos elementos
   ══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .faq-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════
   AUTH MODAL NUEVO — modo claro, panel único con transición
   ══════════════════════════════════════════════════════════ */
.auth-dialog-tienda {
  position: relative;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  width: 100%;
  max-width: 400px;
  padding: 28px 28px 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18), 0 4px 16px rgba(0,0,0,0.08);
  animation: tiendaDialogIn 0.22s cubic-bezier(0.22,1,0.36,1);
  overflow: hidden;
}
@keyframes tiendaDialogIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-dialog-close-tienda {
  position: absolute;
  top: 12px; right: 12px;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.auth-dialog-close-tienda:hover { background: #f3f4f6; color: #111; }

.auth-panels-tienda { position: relative; overflow: hidden; }

.auth-panel-tienda { width: 100%; }
.auth-panel-tienda--hidden { display: none; }

.auth-panel-tienda--enter {
  animation: tiendaPanelEnter 0.28s cubic-bezier(0.22,1,0.36,1) forwards;
}
@keyframes tiendaPanelEnter {
  from { opacity: 0; transform: translateX(32px); }
  to   { opacity: 1; transform: translateX(0); }
}
.auth-panel-tienda--enter-back {
  animation: tiendaPanelEnterBack 0.28s cubic-bezier(0.22,1,0.36,1) forwards;
}
@keyframes tiendaPanelEnterBack {
  from { opacity: 0; transform: translateX(-32px); }
  to   { opacity: 1; transform: translateX(0); }
}

.auth-dialog-header-tienda { margin-bottom: 20px; }
.auth-dialog-title-tienda {
  font-family: var(--font-ui, 'Barlow', sans-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.auth-dialog-desc-tienda {
  font-family: var(--font-ui, 'Barlow', sans-serif);
  font-size: 0.83rem;
  color: #6b7280;
  margin: 0;
}

.auth-switch-tienda {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
  font-family: var(--font-ui, 'Barlow', sans-serif);
  font-size: 0.82rem;
  color: #6b7280;
}
.auth-switch-btn-tienda {
  font-family: var(--font-ui, 'Barlow', sans-serif);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--orange, #f05a00);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s;
}
.auth-switch-btn-tienda:hover { color: #d94e00; }

/* ══════════════════════════════════════
   CHECKOUT RESULT OVERLAY
   ══════════════════════════════════════ */
.checkout-result-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center; justify-content: center;
  padding: 24px;
}
.checkout-result-overlay.open { display: flex; }

.checkout-result-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 48px 40px;
  max-width: 480px; width: 100%;
  text-align: center;
  animation: resultIn 0.3s ease;
}
@keyframes resultIn {
  from { opacity:0; transform:translateY(20px) scale(0.97); }
  to   { opacity:1; transform:translateY(0)    scale(1); }
}

.checkout-result-icon  { font-size: 3.5rem; margin-bottom: 16px; line-height: 1; }
.checkout-result-title {
  font-family: var(--font-display);
  font-size: 2rem; letter-spacing: 0.1em;
  color: var(--text-main); margin-bottom: 10px;
}
.checkout-result-desc  {
  font-size: 0.92rem; color: var(--text-sub);
  line-height: 1.7; margin-bottom: 20px;
}
.checkout-result-ref   {
  font-family: var(--font-ui); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted); background: var(--bg);
  padding: 8px 14px; border-radius: 4px;
  display: inline-block; margin-bottom: 28px;
}
.checkout-result-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.checkout-result-actions a {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-ui); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 11px 22px; border-radius: 4px;
  text-decoration: none; transition: all 0.2s;
}
.cr-btn-primary  { background: var(--orange); color: #fff; }
.cr-btn-primary:hover  { background: #d94e00; }
.cr-btn-ghost    { border: 1px solid var(--border); color: var(--text-sub); }
.cr-btn-ghost:hover    { border-color: var(--orange); color: var(--orange); }

/* ── Wishlist sidebar ──────────────────────────────────────── */
.wishlist-sidebar {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(380px, 100vw);
  background: var(--bg-card); z-index: 501;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
  box-shadow: -8px 0 40px rgba(0,0,0,0.2);
}
.wishlist-sidebar.open { transform: translateX(0); }


/* ── Shared footer (contacto, legal) ──────────────── */
.shared-footer {
  background: #111;
  border-top: 3px solid var(--orange);
  padding: 48px 0 24px;
  margin-top: 64px;
}
.shared-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.shared-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}
.shared-footer-grid .footer-col-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255,255,255,0.4); margin-bottom: 14px;
}
.shared-footer-grid a {
  display: block; color: rgba(255,255,255,0.65);
  font-size: 0.88rem; text-decoration: none;
  margin-bottom: 8px; transition: color 0.15s;
}
.shared-footer-grid a:hover { color: #F05A00; }
.shared-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}
@media (max-width: 640px) {
  .shared-footer-grid { grid-template-columns: 1fr 1fr; }
}

/* FAQ title centering */
.faq-section .section-header { justify-content: center; text-align: center; }
.faq-section .section-header h2 { text-align: center; }
.faq-section .section-label { text-align: center; display: block; }

/* Ingresar button — hover: solo cambia color, sin fondo naranja */
#userNavBtn:hover {
  background: none !important;
  color: var(--orange);
}
#userNavBtn:hover svg {
  stroke: var(--orange);
}
#userNavBtn:hover span {
  color: var(--orange);
}

/* Botón Ingresar — sin fondo, solo color en hover */
.user-ingresar-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  background: none; border: none; cursor: pointer;
  color: var(--text-sub);
  border-radius: var(--radius);
  transition: color 0.15s;
}
.user-ingresar-btn svg { width: 18px; height: 18px; transition: stroke 0.15s; }
.user-ingresar-btn span {
  font-family: var(--font-ui); font-size: 0.72rem;
  font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.user-ingresar-btn:hover { background: none; color: var(--orange); }
.user-ingresar-btn:hover svg { stroke: var(--orange); }

/* ══════════════════════════════════════════════════════════════
   MOBILE-FIRST RESPONSIVE — Comprehensive improvements
   ══════════════════════════════════════════════════════════════ */

/* ── Ajustes touch targets ──────────────────────────────────── */
@media (max-width: 768px) {
  /* Header compacto */
  .header-logo-img { height: 38px; }
  .header-sep:first-of-type { display: none; }
  .icon-btn { width: 44px; height: 44px; }

  /* Hero tienda: blanco desde la izquierda para texto legible */
  .hero { min-height: 520px; background-position: 65% center; }
  .hero::before {
    background: linear-gradient(
      90deg,
      rgba(8,12,20,.82) 0%,
      rgba(8,12,20,.65) 45%,
      rgba(8,12,20,.20) 75%,
      rgba(8,12,20,0) 100%
    );
  }
  .hero-content { margin: 0 20px; padding: 48px 0; }
  .hero-title { font-size: clamp(2.8rem, 10vw, 4rem); }
  .hero-description { font-size: .95rem; margin-bottom: 28px; }

  /* Auth modal: stack en columna, sin desborde */
  .modal-overlay { padding: 16px; align-items: flex-end; }
  .modal-box {
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px 12px 8px 8px;
    padding: 24px 18px 32px;
    width: 100%;
  }
  .auth-col .btn-primary { height: 50px; font-size: .82rem; }

  /* Cart sidebar: deja ver el fondo, no pantalla completa */
  .cart-sidebar { width: min(380px, 88vw); box-shadow: -12px 0 40px rgba(0,0,0,0.35); }
  .cart-items { padding: 12px 16px; }
  .cart-footer { padding: 16px; }
  .cart-item { gap: 10px; }
  .cart-item-img { width: 56px; height: 56px; }
  .btn-checkout { height: 52px; font-size: .8rem; }

  /* Product grid: 2 columnas cómodas */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-card { border-radius: 6px; }
  .product-info { padding: 10px 10px 12px; }
  .product-name { font-size: .78rem; }
  .product-price { font-size: .95rem; }

  /* FAQ: sin overflow */
  .faq-item { padding: 16px 0; }
  .faq-question { font-size: .9rem; padding-right: 32px; }

  /* Shipping calculator */
  .shipping-calc-row { flex-direction: column; gap: 8px; }
  .shipping-select { width: 100%; }
  .btn-calc { width: 100%; }

  /* Footer compacto */
  .footer-col { padding-top: 0; }
  .footer-brand-name { font-size: 1.4rem; }

  /* Sección destacados */
  .section-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  /* FAQ: título centrado también en mobile */
  .faq-section .section-header { align-items: center; text-align: center; }
  .faq-section .section-label,
  .faq-section .section-title { text-align: center; }

  /* Toast: bottom-center en mobile */
  .toast-container {
    bottom: 80px;
    top: auto;
    right: 16px;
    left: 16px;
    align-items: stretch;
  }
  .toast { min-width: 0; width: 100%; }

  /* Wishlist sidebar */
  .wishlist-sidebar { width: 100vw; }
}

@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .hero-title { font-size: 2.6rem; }
  .hero-label { font-size: .75rem; letter-spacing: 2.5px; }
  .hero-price { font-size: 1.9rem; }
  .btn-hero-buy { height: 52px; font-size: .88rem; letter-spacing: 1.5px; }

  /* Product grid: en pantallas muy chicas (320px) una sola col */
  .products-grid { grid-template-columns: 1fr; }

  /* Modal: ocupa toda la pantalla en screens muy chicas */
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal-box {
    max-height: 96vh;
    border-radius: 16px 16px 0 0;
    width: 100%;
  }
  .auth-cols { gap: 20px; }

  /* Cart items: más compactos */
  .cart-item-img { width: 48px; height: 48px; border-radius: 4px; }
  .cart-item-name { font-size: .78rem; }

  /* Botones full-width */
  .btn-primary, .btn-secondary { width: 100%; }

  /* FAQ */
  .faq-answer { font-size: .88rem; }

  /* Producto detail mobile */
  .product-detail .product-name { font-size: 1.6rem; }
  .product-meta { flex-direction: column; gap: 12px; }
}

@media (max-width: 360px) {
  .header-inner { padding: 0 12px; }
  .container { padding: 0 12px; }
  .hero-content { margin: 0 14px; }
  .hero-title { font-size: 2.2rem; line-height: .95; }
  .products-grid { gap: 8px; }
  .modal-box { padding: 20px 14px 28px; }
}

/* ── iOS scroll inercial y overscroll en sidebars ──────────── */
.cart-sidebar, .wishlist-sidebar, .mobile-nav-drawer {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.cart-items, .cart-body {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

/* ══════════════════════════════════════════════════════════════
   AUTH MODAL — Igual al sitio principal (overlay compacto blanco)
   ══════════════════════════════════════════════════════════════ */

/* Reemplaza la lógica del modal-box para authModal */
#authModal.auth-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.80);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
#authModal.auth-overlay.open { display: flex; }

.auth-dialog {
  position: relative;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  width: 100%;
  max-width: 400px;
  padding: 28px 28px 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18), 0 4px 16px rgba(0,0,0,0.08);
  animation: authDialogIn .22s cubic-bezier(.22,1,.36,1);
  overflow: hidden;
}
@keyframes authDialogIn {
  from { opacity:0; transform: translateY(-10px) scale(0.96); }
  to   { opacity:1; transform: translateY(0) scale(1); }
}

.auth-dialog-close {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: none; border: none;
  color: #9ca3af; cursor: pointer;
  transition: color .15s, background .15s;
}
.auth-dialog-close:hover { background: #f3f4f6; color: #111; }
.auth-dialog-close:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.auth-dialog-header { margin-bottom: 22px; }
.auth-dialog-title {
  font-family: var(--font-body, "Barlow", sans-serif);
  font-size: 1.15rem; font-weight: 700;
  color: #111; margin: 0 0 4px;
  letter-spacing: -0.01em; line-height: 1.3;
}
.auth-dialog-desc {
  font-family: var(--font-body, "Barlow", sans-serif);
  font-size: 0.85rem; color: #6b7280; margin: 0; line-height: 1.5;
}

.auth-panels { position: relative; overflow: hidden; }
.auth-panel { width: 100%; }
.auth-panel--hidden { display: none; opacity: 0; transform: translateX(32px); }
.auth-panel--enter {
  animation: storeAuthEnter .28s cubic-bezier(.22,1,.36,1) forwards;
}
.auth-panel--enter-back {
  animation: storeAuthEnterBack .28s cubic-bezier(.22,1,.36,1) forwards;
}
@keyframes storeAuthEnter {
  from { opacity:0; transform: translateX(32px); }
  to   { opacity:1; transform: translateX(0); }
}
@keyframes storeAuthEnterBack {
  from { opacity:0; transform: translateX(-32px); }
  to   { opacity:1; transform: translateX(0); }
}

.auth-field { margin-bottom: 14px; }
.auth-field label {
  display: block;
  font-family: var(--font-body, "Barlow", sans-serif);
  font-size: .8rem; font-weight: 600; color: #374151; margin-bottom: 6px;
}
.auth-field input {
  width: 100%;
  padding: 10px 13px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  color: #111;
  font-family: var(--font-body, "Barlow", sans-serif);
  font-size: 16px;    /* evita zoom iOS */
  outline: none;
  box-sizing: border-box;
  transition: border-color .18s, box-shadow .18s;
}
.auth-field input::placeholder { color: #9ca3af; }
.auth-field input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(240,90,0,.12);
}

.auth-error {
  font-family: var(--font-body, "Barlow", sans-serif);
  font-size: .78rem; color: #dc2626;
  margin: -6px 0 10px; min-height: 18px;
}

/* ── Modal de checkout: grilla de dirección ──────────────── */
.checkout-dialog { max-width: 460px; }
.co-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 12px;
}
.co-grid .auth-field { margin-bottom: 12px; }
.co-col-2 { grid-column: span 2; }
.co-col-3 { grid-column: span 3; }
.co-opt   { font-weight: 400; color: #9ca3af; }
.co-select {
  width: 100%;
  padding: 10px 13px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  color: #111;
  font-family: var(--font-body, "Barlow", sans-serif);
  font-size: 16px;
  outline: none;
  box-sizing: border-box;
  transition: border-color .18s, box-shadow .18s;
}
.co-select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(240,90,0,.12);
}
.co-note {
  font-family: var(--font-body, "Barlow", sans-serif);
  font-size: .74rem; color: #9ca3af;
  text-align: center; margin: 12px 0 0; line-height: 1.4;
}
@media (max-width: 420px) {
  .co-grid { grid-template-columns: repeat(2, 1fr); }
  .co-col-2, .co-col-3 { grid-column: span 2; }
}

.auth-submit {
  width: 100%; padding: 11px;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-body, "Barlow", sans-serif);
  font-size: .9rem; font-weight: 700;
  letter-spacing: .02em;
  border: none; border-radius: 8px;
  cursor: pointer; margin-top: 4px;
  transition: background .15s, transform .1s;
}
.auth-submit:hover  { background: #d94e00; }
.auth-submit:active { transform: scale(0.98); }

.auth-switch-row {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; margin-top: 18px; padding-top: 16px;
  border-top: 1px solid #f3f4f6;
}
.auth-switch-text {
  font-family: var(--font-body, "Barlow", sans-serif);
  font-size: .82rem; color: #6b7280;
}
.auth-switch-btn {
  font-family: var(--font-body, "Barlow", sans-serif);
  font-size: .82rem; font-weight: 700;
  color: var(--orange); background: none; border: none;
  cursor: pointer; padding: 0;
  transition: color .15s;
  text-decoration: underline; text-underline-offset: 2px;
}
.auth-switch-btn:hover { color: #d94e00; }

/* Mobile: modal ocupa bien la pantalla chica */
@media (max-width: 480px) {
  #authModal.auth-overlay { padding: 16px; align-items: center; }
  .auth-dialog {
    border-radius: 14px;
    padding: 24px 18px 20px;
    max-height: 92vh;
    overflow-y: auto;
  }
}


/* ══════════════════════════════════════════════════════════════
   UNIFIED MOBILE NAV — Igual que la página de inicio
   ══════════════════════════════════════════════════════════════ */

/* En desktop: .fsf-nav oculto (cada página usa su propio header) */
.fsf-nav.fsf-nav--store { display: none; }
.mobile-nav-overlay     { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 998; }
.mobile-nav-overlay.open { display: block; }
.mobile-nav-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(300px, 85vw); background: #fff; z-index: 999;
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.22,1,.36,1);
  box-shadow: -8px 0 40px rgba(0,0,0,.12);
  overflow-y: auto; overscroll-behavior: contain;
}
.mobile-nav-drawer.open { transform: translateX(0); }
.mobile-nav-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid rgba(13,13,13,.1); flex-shrink: 0;
}
.mobile-nav-logo { height: 36px; width: auto; }
.mobile-nav-close {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  background: none; border: none; color: #999; font-size: 1.4rem;
  cursor: pointer; border-radius: 8px; transition: color .2s, background .2s;
  min-width: 40px; touch-action: manipulation;
}
.mobile-nav-close:hover { color: #111; background: #f3f4f6; }
.mobile-nav-links { display: flex; flex-direction: column; padding: 8px 0; flex: 1; }
.mobile-nav-links a {
  display: flex; align-items: center; padding: 16px 24px; min-height: 52px;
  font-family: 'Barlow Condensed', sans-serif; font-size: .92rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: #333; text-decoration: none;
  border-bottom: 1px solid rgba(13,13,13,.07); transition: color .15s, background .15s;
}
.mobile-nav-links a:hover, .mobile-nav-links a.active { color: #F05A00; background: rgba(240,90,0,.04); }

/* ── Hamburger button ── */
.nav-hamburger {
  display: none; flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 40px; height: 40px; background: none; border: none;
  cursor: pointer; padding: 6px; border-radius: 8px; flex-shrink: 0; margin-left: 4px;
  touch-action: manipulation;
}
.nav-hamburger span {
  display: block; width: 20px; height: 2px; background: #111;
  border-radius: 2px; transition: transform .25s, opacity .2s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Separadores mobile/desktop ── */
.nav-sep--mobile  { display: none; color: rgba(13,13,13,.25); font-size: .8rem; }
.nav-sep--desktop { display: inline-block; }

@media (max-width: 768px) {
  /* Ocultar header de escritorio de la tienda */
  .site-header { display: none !important; }

  /* Mostrar .fsf-nav mobile */
  .fsf-nav.fsf-nav--store {
    display: flex !important;
    position: fixed; top: 0; left: 0; right: 0;
    width: auto; border-radius: 0; border: none;
    border-bottom: 2px solid rgba(13,13,13,.10);
    padding: 0 16px; height: 56px; z-index: 1000;
    background: rgba(255,255,255,.97); backdrop-filter: blur(8px);
    align-items: center; justify-content: space-between;
    /* Eliminar estilos pill del desktop */
    box-shadow: none;
  }

  /* Logo izquierda */
  .fsf-nav.fsf-nav--store .nav-brand { flex-shrink: 0; display: flex; align-items: center; }
  .fsf-nav.fsf-nav--store .nav-logo-img { height: 30px; width: auto; }
  .fsf-nav.fsf-nav--store .nav-sep:not(.nav-sep--mobile) { display: none; }
  .fsf-nav.fsf-nav--store .nav-list { display: none; }

  /* Derecha: userNavArea | pipe | hamburger */
  .fsf-nav.fsf-nav--store .nav-login-wrap {
    display: flex; align-items: center; gap: 6px; margin-left: auto;
  }
  .nav-sep--mobile { display: inline-block !important; }
  .nav-sep--desktop { display: none !important; }
  .nav-hamburger { display: flex !important; }

  /* Padding-top para el contenido debajo de la navbar fija */
  body { padding-top: 56px; }
}

/* ── Botón Ingresar en .fsf-nav--store mobile nav ── */
.fsf-nav--store #userNavArea,
.fsf-nav--store #userNavAreaDesktop {
  display: flex;
  align-items: center;
}
.fsf-nav--store .user-ingresar-btn,
.fsf-nav--store .user-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-sub);
  background: transparent;
  border: none;
  padding: 6px 4px;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
  touch-action: manipulation;
}
.fsf-nav--store .user-ingresar-btn svg,
.fsf-nav--store .user-nav-btn svg {
  width: 16px; height: 16px; flex-shrink: 0;
}
