/* SOMAINI · identidad v2. Se carga después de style.css. */
:root {
  --paper: #fcfaf6;
  --blush: #f0ede6;
  --blush-2: #ded9cf;
  --stitch: #c5beb2;
  --plum: #181818;
  --plum-2: #48453f;
  --ink: #181818;
  --muted: #6c675e;
  --berry: #45413b;
  --berry-2: #292724;
  --line: #dedad1;
  --stone: #eeeae2;
  --wa: #232923;
  --wa-2: #111811;
  --sold: #76695e;
  --display: "LXL Sans", "Segoe UI", system-ui, sans-serif;
  --sans: "LXL Sans", "Segoe UI", system-ui, sans-serif;
  --gutter: 36px;
  --radius: 0px;
  --head-h: 92px;
}

body { font-size: 16px; }
h1, h2 { font-weight: 450; letter-spacing: -.035em; line-height: 1.12; }
h2 { font-size: clamp(27px, 3.1vw, 42px); }
.container { width: min(1400px, calc(100% - var(--gutter)*2)); }
.btn { border-radius: 0; font-size: 14px; letter-spacing: .025em; min-height: 48px; padding: 13px 22px; }
.btn-lg { min-height: 52px; padding: 15px 24px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary:hover, .btn-dark:hover { background: var(--berry); }
.btn-whatsapp { background: var(--wa); }
.btn-wa-line { background: transparent; border-color: var(--line); }
.text-link { color: var(--ink); font-size: 14px; text-underline-offset: 6px; }
.eyebrow { margin: 0 0 11px; color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .17em; line-height: 1.5; text-transform: uppercase; }
.block-heading h2 { margin: 0; }

/* Cabecera: el logo personalizado mantiene su archivo y sus colores. */
.announce { color: var(--paper); font-size: 11px; letter-spacing: .11em; }
.announce-track { height: 32px; }
.site-header { background: rgba(252, 250, 246, .97); backdrop-filter: blur(10px); }
.head-row { gap: 22px; }
.brand-word { display: inline-block; font-family: var(--sans); font-size: 36px; font-weight: 550; line-height: 1; letter-spacing: .07em; }
.brand-word--somaini { letter-spacing: .12em; }
.brand img { height: 60px; max-width: 250px; }
.head-cart { color: var(--ink); font-size: 12px; letter-spacing: .02em; }
.head-label { font-size: 12px; font-weight: 400; }
.head-wa { background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 0; font-size: 12px; padding: 8px 12px; }
.head-wa:hover { color: var(--paper); }
.head-social .social-icon { width: 36px; flex-basis: 36px; }
.head-social svg { width: 17px; height: 17px; }
.main-nav { border-top-color: var(--line); }
.main-nav-in { gap: 4px 29px; }
.main-nav a { min-height: 44px; font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; border-bottom-width: 1px; }
.main-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.head-search, .drawer-panel { background: var(--paper); }
.drawer-backdrop { background: rgba(24, 24, 24, .4); }
.drawer-brand { font-family: var(--sans); font-weight: 550; font-size: 23px; letter-spacing: .08em; }
.drawer-nav a { font-size: 16px; }

/* Portada editorial: solo portada guardada, fotos reales o tipografía. */
.hero--editorial, .hero--editorial.hero--photo { background: var(--blush); }
.hero--editorial::after { display: none; }
.hero--editorial .hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: clamp(36px, 7vw, 112px); min-height: 0; align-items: center; padding: 48px 0; }
.hero--editorial .hero-copy { padding: 28px 0; }
.hero-kicker { font-size: 11px; font-weight: 500; letter-spacing: .16em; line-height: 1.5; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; }
.hero--editorial .hero-title { color: var(--ink); font-family: var(--sans); font-size: clamp(43px, 5.4vw, 82px); line-height: 1.03; font-weight: 450; letter-spacing: -.045em; max-width: 11ch; margin-bottom: 26px; overflow-wrap: break-word; }
.hero--editorial .hero-sub { color: var(--plum-2); font-size: 17px; line-height: 1.7; max-width: 29em; margin-bottom: 30px; }
.hero--editorial .hero-actions { align-items: center; gap: 16px; }
.hero--editorial .btn-primary { background: var(--ink); color: var(--paper); gap: 22px; }
.hero--editorial .btn-primary:hover { background: var(--berry); }
.hero--editorial .btn-ghost { color: var(--ink); border: 0; border-bottom: 1px solid var(--stitch); min-height: 44px; padding: 10px 0; background: transparent; }
.hero--editorial .btn-ghost:hover { border-bottom-color: var(--ink); background: transparent; color: var(--ink); }
.hero-arrow { width: 22px; height: 16px; }
.hero-visual { min-width: 0; }
.hero-editorial { position: relative; margin: 0; aspect-ratio: 4/4.5; overflow: hidden; background: var(--stone); }
.hero--editorial .hero-photo { position: static; width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.hero-story { position: relative; aspect-ratio: 4/4.5; }
.hero-story img { position: absolute; object-fit: cover; }
.hero-story-main { inset: 0 auto auto 0; width: 78%; height: 88%; }
.hero-story-detail { width: 43%; height: 49%; right: 0; bottom: 0; border: 8px solid var(--blush); border-right: 0; border-bottom: 0; }
.hero-story--single .hero-story-main { width: 100%; height: 100%; }
.hero-type-art { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 30px; aspect-ratio: 4/4.5; padding: 38px; background: var(--ink); color: var(--paper); overflow: hidden; }
.hero-type-art .brand-word { width: 100%; font-size: clamp(34px, 4.3vw, 70px); font-weight: 450; text-align: center; white-space: normal; overflow-wrap: anywhere; letter-spacing: .045em; }
.hero-type-art .brand-word--somaini { white-space: nowrap; }
.hero-type-art .hero-type-rule { width: 58px; height: 1px; background: currentColor; opacity: .55; }
.hero-type-caption { font-size: 10px; line-height: 1.6; letter-spacing: .16em; text-transform: uppercase; text-align: center; }
.hero-type-art--logo { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.hero-type-art img { width: auto; height: auto; max-width: 100%; max-height: 200px; object-fit: contain; }
.hero-bottomline { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--stitch); color: var(--muted); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.hero-bottomline span { padding: 16px 0; }
.hero-bottomline a { display: inline-flex; align-items: center; gap: 9px; min-height: 48px; text-decoration: none; color: var(--ink); }
.hero-bottomline .ui-icon { width: 14px; height: 14px; flex-basis: 14px; transform: rotate(90deg); }
.hero--editorial .hero-sizes { margin-top: 30px; }
.hero--editorial .hero-sizes-label { color: var(--muted); font-weight: 400; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }

/* Ayuda breve y categorías con fotos del catálogo. */
.perks { background: var(--paper); }
.perks-in { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.perk { padding: 27px 28px; gap: 16px; }
.perk .ui-icon { color: var(--ink); width: 25px; height: 25px; flex-basis: 25px; }
.perk strong { font-size: 14px; font-weight: 500; }
.perk span { font-size: 12px; }
.block { padding-top: 80px; }
.block-head { margin-bottom: 30px; }
.cat-grid { gap: 24px; }
.cat-tile { gap: 0; }
.cat-media { margin: 0; border-radius: 0; aspect-ratio: 4/4.7; background: var(--stone); }
.cat-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0 5px; }
.cat-label { display: grid; gap: 5px; }
.cat-name { font-family: var(--sans); font-size: 19px; line-height: 1.35; font-weight: 500; }
.cat-count { font-size: 10px; letter-spacing: .09em; text-transform: uppercase; }
.cat-meta > .ui-icon { width: 18px; height: 18px; flex-basis: 18px; }
.cat-tile:hover .cat-name { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.grid-products { gap: 40px 24px; }
.card-media { border-radius: 0; background: var(--stone); }
.card-body { padding-top: 17px; }
.card-cat { font-size: 10px; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 8px; }
.card-title { font-size: 15px; line-height: 1.45; }
.card-price { font-size: 17px; font-weight: 500; margin-top: 3px; }
.card-sizes, .card-colors { font-size: 12px; }
.card-body > .btn-wa-line { min-height: 44px; font-size: 12px; padding-inline: 8px; }
.card-body > .btn-wa-line .ui-icon { width: 17px; height: 17px; flex-basis: 17px; }
.badge { border-radius: 0; top: 10px; left: 10px; font-size: 11px; letter-spacing: .02em; min-height: 25px; padding: 5px 9px; }

/* Controles sobrios, con los mismos filtros y combinaciones de v1. */
.catalog { padding: 80px 0 90px; }
.is-catalog .catalog { padding-top: 32px; }
.result-count { font-size: 12px; }
.cat-tabs { gap: 25px; margin-bottom: 24px; }
.cat-tab { font-size: 13px; border-bottom-width: 1px; }
.cat-tab b { font-size: 10px; }
.search-box, .search-btn, .sort select, .field, .filter-grid select { border-radius: 0; }
.search-box { background: transparent; padding-left: 13px; }
.search-box input { font-size: 14px; }
.search-btn { font-size: 12px; letter-spacing: .02em; }
.sort { font-size: 12px; }
.sort select { font-size: 13px; padding-left: 12px; }
.more-filters summary { font-size: 13px; }
.filter-grid label > span { font-size: 12px; }
.filter-count { background: var(--ink); }
.size-filter { background: transparent; padding: 17px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.size-filter-label { font-size: 13px; font-weight: 500; }
.size-tag { border-radius: 0; box-shadow: none; border: 1px solid var(--stitch); font-family: var(--sans); font-size: 14px; min-width: 48px; background: transparent; }
.size-tag::before { display: none; }
.size-filter .size-tag, .hero--editorial .size-tag { font-size: 12px; min-width: 44px; min-height: 44px; padding: 8px 12px; }
.size-tag--pick span { font-size: 14px; }
.size-tag:hover, .size-tag.is-active { border-color: var(--ink); }
.chip { border-radius: 0; font-size: 12px; }
.clear-link { font-size: 12px; color: var(--ink); }
.empty { border: 1px solid var(--line); padding: 58px 24px; background: var(--blush); }
.empty h3 { font-family: var(--sans); font-size: 28px; font-weight: 450; letter-spacing: -.025em; }
.empty p { font-size: 14px; max-width: 43em; margin-inline: auto; }
.empty .eyebrow { font-size: 10px; }
.empty--collection { border: 0; }
.pagination a { border-color: var(--line); border-radius: 0; font-size: 14px; }
.pagination [aria-current] { background: var(--ink); }

/* Cómo comprar, ficha y carrito mantienen sus formularios. */
.howto { background: var(--blush); margin-top: 0; padding: 65px 0; }
.howto-head p { font-size: 14px; }
.steps { gap: 30px; }
.step-n { font-family: var(--sans); font-size: 40px; font-weight: 400; color: var(--muted); margin-bottom: 19px; }
.steps h3 { font-size: 15px; font-weight: 500; }
.steps p { font-size: 13px; line-height: 1.7; }
.product-page { padding-top: 28px; }
.product-layout { gap: 65px; }
.gallery-main, .thumb { border-radius: 0; }
.gallery-main img { object-fit: contain; }
.info-title { font-size: clamp(30px, 3.2vw, 45px); font-weight: 450; line-height: 1.15; }
.info-cat { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 15px; }
.info-price { font-size: 24px; font-weight: 500; }
.info-price small { font-size: 11px; font-weight: 400; color: var(--muted); }
.stock { font-size: 12px; margin-bottom: 22px; }
.color-pick span { border-radius: 0; font-size: 13px; }
.pick-group legend, .accordion summary { font-size: 14px; font-weight: 500; }
.pick-help, .buy-notes { font-size: 12px; }
.acc-body { font-size: 14px; line-height: 1.75; }
.variant-select, .add-cart-form, .checkout-form { font-size: 14px; }
.variant-select select, .add-cart-form select, .add-cart-form input, .checkout-form > input, .cart-line input { border-color: var(--line); border-radius: 0; background: var(--paper); }
.variant-summary { background: var(--blush); border-radius: 0; font-size: 13px; }
.variant-details { overflow-x: auto; font-size: 12px; margin-bottom: 22px; }
.variant-details summary { cursor: pointer; padding: 8px 0; min-height: 44px; }
.variant-details table { width: 100%; min-width: 390px; text-align: left; border-collapse: collapse; }
.variant-details th, .variant-details td { padding: 9px 8px; border-bottom: 1px solid var(--line); }
.notice, .preview-note { border-radius: 0; }
.cart-line { border-color: var(--line); }
.cart-line h2 { font-size: 22px; }
.wa-float { box-shadow: 0 5px 20px rgba(24, 24, 24, .12); font-size: 13px; min-height: 52px; }
.wa-float .ui-icon { width: 23px; height: 23px; flex-basis: 23px; }

/* Pie de marca. No se aplican filtros ni se altera el logo del usuario. */
.footer { background: var(--ink); color: #d7d1c7; font-size: 13px; padding-top: 64px; }
.footer-name { font-family: var(--sans); font-weight: 500; font-size: 35px; letter-spacing: .06em; text-transform: uppercase; }
.footer-h { font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.footer-list { gap: 9px; }
.footer-extra { color: #d7d1c7; }
.footer-bottom { color: #a8a196; font-size: 11px; }
.footer-contact .ui-icon { color: #d7d1c7; }

@media (max-width: 1100px) {
  .hero--editorial .hero-in { gap: 45px; }
  .hero--editorial .hero-title { font-size: clamp(43px, 5.7vw, 68px); }
  .hero-type-art { padding: 26px; }
  .hero-type-art .brand-word { font-size: 4.5vw; }
  .main-nav-in { gap: 4px 20px; }
  .product-layout { gap: 38px; }
}

@media (max-width: 900px) {
  :root { --gutter: 24px; --head-h: 72px; }
  .head-row { gap: 8px; }
  .brand-word { font-size: 29px; }
  .brand img { height: 45px; max-width: 180px; }
  .hero--editorial .hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; padding: 34px 0; }
  .hero--editorial .hero-title { font-size: 43px; }
  .hero--editorial .hero-sub { font-size: 15px; }
  .hero--editorial .hero-copy { padding: 10px 0; }
  .hero-kicker { margin-bottom: 20px; font-size: 10px; }
  .hero--editorial .hero-actions { gap: 10px; }
  .hero-type-art { padding: 24px; gap: 24px; }
  .hero-type-caption { font-size: 8px; }
  .perks-in { grid-template-columns: 1fr; }
  .perk, .perk:first-child { padding: 18px 0; }
  .perk strong { font-size: 14px; }
  .perk span { font-size: 12px; }
  .product-layout { gap: 28px; }
  .steps li { grid-template-columns: 46px 1fr; }
  .step-n { font-size: 34px; margin-bottom: 0; }
}

@media (max-width: 720px) {
  :root { --gutter: 18px; --head-h: 68px; }
  body { font-size: 16px; }
  .head-row { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 6px; }
  .head-left { margin-left: -6px; }
  .head-right { margin-right: -6px; gap: 0; }
  .brand-word { font-size: clamp(23px, 5.5vw, 30px); }
  .brand img { height: 40px; max-width: min(150px, 100%); }
  .head-cart { font-size: 10.5px; padding: 8px 5px; }
  .announce { font-size: 10px; }
  .hero--editorial .hero-in { grid-template-columns: 1fr; gap: 30px; padding: 33px 0 24px; }
  .hero--editorial .hero-copy { padding: 0; }
  .hero-kicker { margin-bottom: 22px; }
  .hero--editorial .hero-title { font-size: clamp(40px, 10.5vw, 64px); max-width: 14ch; margin-bottom: 20px; }
  .hero--editorial .hero-sub { font-size: 15px; max-width: 30em; margin-bottom: 24px; }
  .hero--editorial .hero-actions { gap: 18px; }
  .hero--editorial .hero-actions .btn { flex: 0 1 auto; }
  .hero--editorial .hero-actions .btn-primary { min-width: 190px; }
  .hero--editorial .hero-sizes { margin-top: 25px; }
  .hero-editorial, .hero-story { aspect-ratio: 4/4.2; }
  .hero--editorial .hero-photo { height: 100%; min-height: 0; }
  .hero-type-art { aspect-ratio: 4/2.6; padding: 35px 24px; gap: 22px; }
  .hero-type-art .brand-word { font-size: clamp(38px, 10.5vw, 69px); }
  .hero-type-caption { font-size: 9px; }
  .hero-bottomline { font-size: 8px; letter-spacing: .1em; }
  .hero-bottomline span { padding: 14px 0; }
  .block { padding-top: 52px; }
  .block-head { gap: 14px; margin-bottom: 24px; }
  .cat-grid, .cat-grid[style] { grid-auto-columns: 74%; gap: 18px; }
  .cat-media { aspect-ratio: 4/4.6; }
  .cat-name { font-size: 18px; }
  .cat-meta { padding-top: 14px; }
  .grid-products { gap: 30px 14px; }
  .grid-rail { grid-auto-columns: 72%; }
  .card-title { font-size: 14px; }
  .card-price { font-size: 16px; }
  .card-sizes, .card-colors { font-size: 11px; }
  .card-body > .btn-wa-line { font-size: 11px; gap: 5px; }
  .catalog { padding: 52px 0 64px; }
  .catalog-head { align-items: flex-end; gap: 12px; }
  .catalog-head h1, .catalog-head h2 { font-size: 28px; }
  .result-count { font-size: 11px; }
  .search-box input, .sort select, .variant-select select, .add-cart-form select, .add-cart-form input, .checkout-form > input { font-size: 16px; }
  .toolbar-side { flex-wrap: wrap; gap: 8px; }
  .sort { margin-left: auto; }
  .size-filter { margin-inline: 0; padding: 16px 0; }
  .empty { padding: 40px 22px; }
  .empty h3 { font-size: 25px; }
  .empty-actions { gap: 12px; }
  .empty-actions .btn { width: 100%; }
  .howto { margin-top: 0; padding: 48px 0; }
  .howto-head p { max-width: 30em; }
  .info-title { font-size: 31px; }
  .footer { padding-top: 48px; }
  .footer-name { font-size: 32px; }
  .wa-float { width: 52px; height: 52px; }
}

@media (max-width: 380px) {
  .hero--editorial .hero-title { font-size: 40px; }
  .hero--editorial .hero-actions { gap: 12px; }
  .hero--editorial .hero-actions .btn-primary { width: 100%; }
  .hero-type-art .brand-word { font-size: 10.5vw; }
  .hero-type-caption { font-size: 8px; }
  .sort { margin-left: 0; }
}
