/* Friends&Moms — estilos de la tienda. Tokens del sistema de diseño (design/sistema-de-diseno/tokens.json). */
:root {
  --surface-100: #fff7f7;
  --surface-200: #fdeceb;
  --surface-card: #ffffff;
  --line: #f0d4d2;
  --ink: #3b1a14;
  --ink-muted: #7a5048;
  --brand: #942d1e;
  --brand-hover: #7a2416;
  --pink: #fcc8d4;
  --pink-soft: #fde3e9;
  --orange: #f79a38;
  --on-brand: #ffffff;
  --whatsapp: #0f7a40;
  --available-bg: #e2f1e4;
  --available-ink: #245c30;
  --order-bg: #fde6cc;
  --order-ink: #7f420a;
  --font-display: Marcellus, "Times New Roman", serif;
  --font-sans: "Nunito Sans", system-ui, sans-serif;
  --space-1: 4px; --space-2: 8px; --space-4: 16px; --space-6: 24px; --space-10: 40px;
  --radius-sm: 8px; --radius-lg: 18px; --radius-pill: 999px;
  --shadow-card: 0 6px 20px rgba(148, 45, 30, 0.08);
  --gutter: 16px;
  --max: 1600px;
}
@media (min-width: 900px) { :root { --gutter: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface-100); color: var(--ink); font: 16px/24px var(--font-sans); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--brand); }
a:hover { color: var(--brand-hover); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; margin: 0; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.eyebrow { font-family: var(--font-display); font-size: 13px; line-height: 18px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-muted); }
.muted { color: var(--ink-muted); }
.section { padding-block: 40px; }
@media (min-width: 900px) { .section { padding-block: 64px; } }
.section--alt { background: var(--surface-200); }
.section-title { font-size: 28px; line-height: 34px; color: var(--brand); }
@media (min-width: 900px) { .section-title { font-size: 34px; line-height: 40px; } }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--surface-100); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { font-family: var(--font-display); font-size: 24px; color: var(--brand); text-decoration: none; white-space: nowrap; }
@media (min-width: 900px) { .brand { font-size: 28px; } }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--brand); cursor: pointer; border-radius: var(--radius-pill); position: relative; text-decoration: none; }
.cart-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: var(--radius-pill); background: var(--brand); color: var(--on-brand); font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }
.cart-count[hidden] { display: none; }
.main-nav { display: none; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; padding-block: 4px; border-bottom: 2px solid transparent; }
.main-nav a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--orange); }
.menu-btn { order: -1; }
.site-header .cart-link-desk { display: none; }
.mobile-nav { border-top: 1px solid var(--line); padding: 8px var(--gutter) 16px; display: flex; flex-direction: column; }
.mobile-nav[hidden] { display: none; }
.mobile-nav a { padding: 12px 0; color: var(--ink); text-decoration: none; font-weight: 700; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) {
  .menu-btn, .cart-link-mob, .mobile-nav { display: none !important; }
  .main-nav { display: flex; gap: 28px; }
  .site-header .cart-link-desk { display: inline-flex; }
}

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: var(--radius-pill); border: 1.5px solid transparent; font-weight: 700; font-size: 15px; line-height: 20px; text-decoration: none; cursor: pointer; text-align: center; }
.btn--primary { background: var(--brand); color: var(--on-brand); }
.btn--primary:hover { background: var(--brand-hover); color: var(--on-brand); }
.btn--secondary { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn--secondary:hover { background: var(--pink-soft); }
.btn--whatsapp { background: var(--whatsapp); color: var(--on-brand); }
.btn--whatsapp:hover { background: #0b6534; color: var(--on-brand); }
.btn--wa-outline { background: transparent; color: var(--whatsapp); border-color: var(--whatsapp); }
.btn--wa-outline:hover { background: #e9f6ee; color: var(--whatsapp); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Etiquetas */
.badge { display: inline-block; padding: 4px 12px; border-radius: var(--radius-pill); font-size: 12px; line-height: 18px; font-weight: 700; }
.badge--disponible { background: var(--available-bg); color: var(--available-ink); }
.badge--encargo { background: var(--order-bg); color: var(--order-ink); }
.badge--new { background: var(--pink); color: var(--brand); }

/* Hero */
.hero { display: grid; gap: 24px; justify-items: center; text-align: center; padding-block: 24px 40px; }
.hero__logo { width: 240px; height: 240px; border-radius: 50%; object-fit: cover; }
.hero__title { font-size: 36px; line-height: 42px; color: var(--brand); }
.hero__text { max-width: 480px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero__copy { display: grid; gap: 16px; justify-items: center; }
@media (min-width: 900px) {
  .hero { grid-template-columns: repeat(2, minmax(0, 1fr)); text-align: left; justify-items: start; align-items: center; gap: 64px; padding-block: 64px 80px; }
  .hero__copy { justify-items: start; gap: 20px; }
  .hero__title { font-size: 60px; line-height: 66px; }
  .hero__text { font-size: 18px; line-height: 28px; }
  .hero__actions { justify-content: flex-start; }
  .hero__logo { width: 440px; height: 440px; justify-self: center; }
}

/* Categorías */
.cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) { .cats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.cat { height: 96px; border-radius: var(--radius-lg); display: flex; align-items: flex-end; padding: 14px; font-family: var(--font-display); font-size: 20px; color: var(--ink); text-decoration: none; }
.cat:hover { color: var(--ink); filter: brightness(.97); }
@media (min-width: 900px) { .cat { height: 160px; padding: 22px; font-size: 26px; } }
.cat--mujer { background: var(--pink); }
.cat--hombre { background: var(--order-bg); }
.cat--ninos { background: var(--pink-soft); }
.cat--accesorios { background: var(--brand); color: var(--on-brand); }
.cat--accesorios:hover { color: var(--on-brand); }

/* Grilla y tarjeta de producto */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.card { background: var(--surface-card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: box-shadow .2s; }
.card:hover { box-shadow: var(--shadow-card); color: var(--ink); }
.card__media { position: relative; aspect-ratio: 4 / 5; background: var(--pink-soft); overflow: hidden; flex-shrink: 0; }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__media .badge { position: absolute; top: 8px; left: 8px; }
.card__body { padding: 12px; display: flex; flex-direction: column; gap: 2px; }
@media (min-width: 900px) { .card__body { padding: 16px; } }
.card__cat { font-family: var(--font-display); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-muted); }
.card__name { font-family: var(--font-display); font-size: 17px; line-height: 22px; }
.card__sizes { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.price { font-weight: 800; color: var(--brand); }
.card .price { margin-top: 4px; font-size: 16px; }
.placeholder-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.placeholder-img svg { width: 40%; opacity: .9; }

.empty { padding: 40px 16px; text-align: center; color: var(--ink-muted); border: 1px dashed var(--line); border-radius: var(--radius-lg); background: var(--surface-card); }

/* Cómo comprar */
.steps { display: grid; gap: 16px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.step { display: flex; gap: 14px; align-items: flex-start; }
@media (min-width: 900px) { .step { flex-direction: column; padding: 28px; background: var(--surface-card); border: 1px solid var(--line); border-radius: var(--radius-lg); } }
.step__n { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--pink); color: var(--brand); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.step__title { font-weight: 700; }
@media (min-width: 900px) { .step__title { font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 28px; } }

/* Footer */
.site-footer { background: var(--brand); color: var(--on-brand); padding-block: 32px; font-size: 14px; line-height: 20px; }
.site-footer a { color: var(--on-brand); }
.site-footer .wrap { display: grid; gap: 12px; text-align: center; }
.site-footer .brand { color: var(--on-brand); }
@media (min-width: 900px) { .site-footer .wrap { grid-template-columns: 1fr auto; text-align: left; align-items: center; } .site-footer .contact { text-align: right; } }

/* Catálogo */
.catalog { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 24px 64px; }
@media (min-width: 900px) { .catalog { grid-template-columns: 240px minmax(0, 1fr); gap: 40px; padding-block: 40px 80px; align-items: start; } }
.filters { display: flex; flex-direction: column; gap: 16px; }
.page-title { font-size: 32px; line-height: 38px; color: var(--brand); }
@media (min-width: 900px) { .page-title { font-size: 40px; line-height: 46px; } }
.search { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface-card); color: var(--ink-muted); }
.search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 15px; color: var(--ink); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chip { flex: none; min-height: 40px; padding: 0 16px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--surface-card); color: var(--ink); font-size: 14px; font-weight: 700; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.filter-label { display: none; }
@media (min-width: 900px) {
  .filter-label { display: block; margin-top: 8px; }
  .chips { flex-direction: column; overflow: visible; gap: 4px; }
  .chip { text-align: left; border: 0; background: transparent; font-weight: 400; font-size: 15px; }
  .chip[aria-pressed="true"] { font-weight: 700; }
}
.hint-box { padding: 16px; border-radius: var(--radius-lg); background: var(--pink-soft); font-size: 14px; line-height: 20px; }

/* Producto */
.product { display: grid; gap: 24px; padding-block: 16px 64px; }
@media (min-width: 900px) { .product { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; padding-block: 24px 80px; align-items: start; } }
.gallery { display: grid; gap: 10px; }
.gallery__main { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: var(--pink-soft); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__main .badge { position: absolute; top: 12px; left: 12px; font-size: 13px; }
.thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.thumb { aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--pink-soft); cursor: pointer; }
.thumb[aria-current="true"] { border-color: var(--brand); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.product__info { display: flex; flex-direction: column; gap: 20px; }
.product__name { font-size: 28px; line-height: 34px; }
@media (min-width: 900px) { .product__name { font-size: 40px; line-height: 46px; } }
.product__price { font-size: 24px; }
@media (min-width: 900px) { .product__price { font-size: 28px; } }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size { min-width: 52px; min-height: 44px; padding: 0 14px; border-radius: var(--radius-pill); border: 1.5px solid var(--line); background: var(--surface-card); font-weight: 700; cursor: pointer; }
.size[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.actions { display: grid; gap: 12px; }
@media (min-width: 900px) { .actions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.perks { padding: 16px; border-radius: var(--radius-lg); background: var(--surface-200); display: grid; gap: 12px; font-size: 15px; }
.perk { display: flex; gap: 12px; align-items: center; }
.perk svg { flex: none; }
.breadcrumb { font-size: 14px; color: var(--ink-muted); padding-top: 16px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: var(--radius-pill); font-weight: 700; font-size: 15px; z-index: 50; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.toast a { color: #fff; }
.form-error { color: #a01818; font-weight: 700; font-size: 14px; }

/* Carrito */
.cart { display: grid; gap: 24px; padding-block: 24px 64px; }
@media (min-width: 900px) {
  .cart { grid-template-columns: minmax(0, 1fr) 420px; grid-template-rows: auto 1fr; gap: 24px 48px; padding-block: 40px 80px; align-items: start; }
  .cart > .panel { grid-column: 2; grid-row: 1 / span 2; }
  .cart > .preview-block { grid-column: 1; grid-row: 2; }
}
.cart-lines { display: grid; gap: 12px; }
.line { display: flex; gap: 12px; padding: 12px; background: var(--surface-card); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.line__img { flex: none; width: 84px; height: 104px; border-radius: var(--radius-sm); overflow: hidden; background: var(--pink-soft); }
.line__img img { width: 100%; height: 100%; object-fit: cover; }
.line__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.line__name { font-family: var(--font-display); font-size: 17px; line-height: 22px; color: var(--ink); text-decoration: none; }
.line__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-pill); }
.qty button { width: 40px; height: 40px; border: 0; background: transparent; color: var(--brand); font-size: 20px; cursor: pointer; }
.qty span { min-width: 22px; text-align: center; font-weight: 700; }
.line__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.remove { flex: none; display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 10px; margin-top: -4px; border: 1px solid #e7b3b3; border-radius: var(--radius-pill); background: transparent; color: #a01818; font-size: 13px; font-weight: 700; cursor: pointer; }
.remove:hover { background: #fdeaea; }
.panel { padding: 20px; background: var(--surface-card); border: 1px solid var(--line); border-radius: var(--radius-lg); display: grid; gap: 16px; }
@media (min-width: 900px) { .panel { padding: 28px; position: sticky; top: 92px; } }
.total { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-weight: 700; }
.total .price { font-size: 22px; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.field input, .field textarea, .field select { min-height: 46px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-100); font-weight: 400; font-size: 16px; color: var(--ink); width: 100%; }
.field textarea { resize: vertical; }
.note { padding: 14px; border-radius: 12px; background: var(--pink-soft); font-size: 14px; line-height: 20px; }
.wa-choose { display: grid; gap: 10px; }
.wa-choose p { font-size: 14px; font-weight: 700; }
.message-preview { padding: 12px 14px; border-radius: 16px 16px 4px 16px; background: #dcf3e3; color: #1d3b26; font-size: 14px; line-height: 20px; white-space: pre-line; max-width: 420px; }

.about { text-align: center; }
.about .section-title { margin-bottom: 12px; }
.about__text { max-width: 560px; margin-inline: auto; color: var(--ink-muted); }
@media (min-width: 900px) { .about__text { font-size: 18px; line-height: 28px; } }

/* Encabezado: Instagram + carrito */
.header-actions { display: flex; align-items: center; gap: 4px; }
@media (min-width: 900px) { .header-actions { gap: 10px; } }

/* Contacto en inicio */
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.contact-actions .btn { gap: 8px; }
.btn--insta { background: linear-gradient(45deg, #f79a38, #d6336c 55%, #8a3ab9); color: #fff; border-color: transparent; }
.btn--insta:hover { color: #fff; filter: brightness(1.05); }
@media (max-width: 899px) { .contact-actions .btn { width: 100%; max-width: 340px; } }

/* Botón flotante de WhatsApp */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,.22); text-decoration: none; transition: transform .15s; }
.wa-float:hover { transform: scale(1.06); color: #fff; }
@media (min-width: 900px) { .wa-float { right: 28px; bottom: 28px; width: 62px; height: 62px; } }
.btn--wa { background: var(--whatsapp); color: #fff; border-color: var(--whatsapp); }
.btn--wa:hover { background: #0c6634; color: #fff; }
@media (max-width: 899px) {
  .site-header .wrap { gap: 8px; }
  .site-header .icon-btn { width: 40px; }
  .header-actions { gap: 0; margin-right: -6px; }
  .menu-btn { margin-left: -8px; }
  .site-footer { padding-bottom: 96px; }
}
@media (max-width: 359px) { .site-header .brand { font-size: 20px; } }
.more-cta { display: flex; justify-content: center; margin-top: 32px; }
.cart-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.clear-cart { min-height: 40px; padding: 0 16px; border: 1px solid #e7b3b3; border-radius: var(--radius-pill); background: transparent; color: #a01818; font-size: 14px; font-weight: 700; cursor: pointer; }
.clear-cart:hover, .clear-cart[data-armed] { background: #fdeaea; }

/* Ofertas */
.badge--sale { background: #c0262d; color: #fff; }
.price-group { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.price--sale { color: #c0262d; }
.price-old { color: var(--ink-muted); font-size: .85em; font-weight: 400; }
.main-nav a[href*="ofertas"], .mobile-nav a[href*="ofertas"] { color: #c0262d; }
.section-title--sale { color: #c0262d; }
@media (min-width: 900px) and (max-width: 1100px) { .main-nav { gap: 16px; } .main-nav a { font-size: 14px; } .site-header .brand { font-size: 24px; } }
.clear-sale { font-weight: 700; font-size: 14px; }
.cat-sale { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.cat-sale .section-title { font-size: 26px; line-height: 32px; }
