/* Casa Roble · tienda en línea — diseño premium, pensado primero para celular. */
:root {
  --ivory: #FAF8F4; --sand: #F1ECE4; --stone: #E4DCD0; --ink: #16130f; --ink2: #3d362f; --muted: #857b70;
  --gold: #a8853f; --gold-l: #d9bf8a; --sale: #8a3a28; --ok: #3d6b52;
  --serif: "Cormorant Garamond", Baskerville, Georgia, serif; --sans: "Jost", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-weight: 400; color: var(--ink); background: var(--ivory); -webkit-font-smoothing: antialiased; letter-spacing: .01em; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; margin: 0; letter-spacing: 0; }
.eyebrow { display: inline-block; font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-l); font-weight: 500; }
.eyebrow.dark { color: var(--gold); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 0; padding: 14px 26px; font: inherit; font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; cursor: pointer; text-decoration: none; transition: background .25s, color .25s, border-color .25s; }
.btn.light { background: var(--ivory); color: var(--ink); } .btn.light:hover { background: #fff; }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); } .btn.ghost:hover { background: rgba(255,255,255,.12); }
.btn.dark { background: var(--ink); color: var(--ivory); } .btn.dark:hover { background: #2b2620; }
.btn.gold { background: var(--gold); color: #fff; } .btn.gold:hover { background: #95752f; }
.btn.block { width: 100%; padding: 16px; } .btn:disabled { opacity: .4; cursor: not-allowed; }

/* aviso y encabezado */
.announce { background: var(--ink); color: var(--gold-l); text-align: center; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; padding: 9px 12px; }
.top { position: sticky; top: 0; z-index: 20; background: rgba(250,248,244,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--stone); }
.top-in { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; column-gap: 26px; padding-top: 14px; }
.brand img { height: 34px; }
.tagline { flex: 1; margin: 0; text-align: center; font-family: var(--serif); font-style: italic; font-size: 21px; color: var(--ink2); letter-spacing: .01em; }
@media (max-width: 760px) { .tagline { display: none; } }
.top-cats { order: 3; flex: 0 0 100%; display: flex; align-items: center; justify-content: center; gap: 6px 28px; flex-wrap: wrap; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink2); padding: 12px 0 10px; margin-top: 12px; border-top: 1px solid var(--stone); }
.top-cats::-webkit-scrollbar { display: none; }
.top-cats a { white-space: nowrap; text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; } .top-cats a:hover { border-color: var(--gold); }
.cart-btn { display: inline-flex; align-items: center; gap: 6px; background: none; color: var(--ink); border: 0; padding: 6px; font: inherit; font-size: 13px; cursor: pointer; }
.cart-btn svg { width: 24px; height: 24px; } .cart-btn span { background: var(--ink); color: var(--ivory); border-radius: 50%; min-width: 20px; height: 20px; font-size: 11px; display: grid; place-items: center; padding: 0 5px; }

/* portada */
.hero { position: relative; min-height: min(58vh, 540px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: #16130f center/cover no-repeat; transform: scale(1.02); }
.hero:after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,19,15,.05) 30%, rgba(22,19,15,.82)); }
.hero-tx { position: relative; z-index: 2; padding-bottom: 64px; }
.hero h1 { font-size: clamp(38px, 6.4vw, 72px); line-height: 1.02; font-weight: 400; margin: 14px 0 16px; max-width: 820px; }
.hero p { color: #ece5da; max-width: 540px; margin: 0 0 28px; line-height: 1.65; font-weight: 300; font-size: 16.5px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* beneficios */
.values { background: var(--sand); border-bottom: 1px solid var(--stone); }
.values-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 22px 20px; }
.values-in div { display: flex; flex-direction: column; gap: 2px; }
.values svg { grid-row: span 2; width: 28px; height: 28px; fill: none; stroke: var(--gold); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.values b { font-family: var(--serif); font-size: 19px; font-weight: 500; } .values span { color: var(--muted); font-size: 13px; font-weight: 300; }

/* bloques */
.block { padding-top: 44px; }
.block-head { text-align: center; margin-bottom: 30px; } .block-head h2 { font-size: clamp(30px, 4vw, 44px); margin-top: 8px; font-weight: 400; }
.row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; text-align: left; border-bottom: 1px solid var(--stone); padding-bottom: 16px; margin-bottom: 0; }
.spaces { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.space { position: relative; aspect-ratio: 4 / 5; background: var(--sand); overflow: hidden; cursor: pointer; border: 0; padding: 0; font: inherit; text-align: left; color: var(--ink); }
.space img { position: absolute; inset: 7% 8% 26%; width: 84%; height: 67%; object-fit: contain; transition: transform .6s ease; }
.space:hover img { transform: scale(1.05); }
.space .lbl { position: absolute; left: 18px; right: 18px; bottom: 16px; display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--stone); padding-top: 10px; }
.space .lbl b { font-family: var(--serif); font-size: 22px; font-weight: 500; } .space .lbl em { font-style: normal; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* colección */
.catalog { padding-bottom: 80px; scroll-margin-top: 80px; }
.search { border: 0; border-bottom: 1px solid var(--ink2); background: transparent; padding: 10px 2px; font: inherit; font-size: 14px; width: min(320px, 100%); outline: none; }
.chips { display: flex; gap: 6px 18px; flex-wrap: wrap; padding: 20px 0 8px; }
.chip { border: 0; border-bottom: 1px solid transparent; background: none; padding: 5px 0; font: inherit; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; color: var(--muted); }
.chip:hover { color: var(--ink); } .chip.on { color: var(--ink); border-color: var(--ink); } .chip.sale { color: var(--sale); } .chip.sale.on { border-color: var(--sale); }
.chip em { font-style: normal; font-size: 10.5px; margin-left: 4px; opacity: .7; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 40px 22px; padding-top: 22px; }
.sec-title { grid-column: 1 / -1; font-size: 30px; font-weight: 400; margin: 26px 0 -8px; }
.card { display: flex; flex-direction: column; background: transparent; }
.card .im { position: relative; aspect-ratio: 4 / 3; background: var(--sand); cursor: pointer; overflow: hidden; }
.card .im img { position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain; transition: transform .6s ease; }
.card:hover .im img { transform: scale(1.03); }
.off { position: absolute; top: 12px; left: 12px; background: var(--sale); color: #fff; font-size: 11px; letter-spacing: .1em; padding: 4px 9px; z-index: 2; }
.card .in { padding: 14px 2px 0; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card .code { font-size: 10.5px; color: var(--muted); letter-spacing: .18em; text-transform: uppercase; }
.card .nm { font-family: var(--serif); font-size: 21px; line-height: 1.15; cursor: pointer; }
.card .sp { font-size: 12.5px; color: var(--muted); font-weight: 300; }
.card .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 8px; }
.price { font-size: 16px; font-weight: 500; letter-spacing: .02em; } .price s { color: #a39a90; font-weight: 300; font-size: 13px; margin-right: 6px; } .price .now { color: var(--sale); }
.add { background: none; color: var(--ink); border: 1px solid var(--ink); padding: 8px 14px; font: inherit; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; transition: background .25s, color .25s; }
.add:hover { background: var(--ink); color: var(--ivory); }
.avail { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; } .avail.yes { color: var(--ok); } .avail.no { color: var(--muted); }
.loading, .empty { grid-column: 1 / -1; color: var(--muted); padding: 40px 0; text-align: center; }

/* asesoría */
.advice { background: var(--ink); color: var(--ivory); }
.advice-in { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding: 60px 20px; }
.advice h2 { font-size: clamp(30px, 4vw, 42px); font-weight: 400; margin: 8px 0 8px; } .advice p { color: #cdc4b8; font-weight: 300; max-width: 520px; margin: 0; line-height: 1.6; }

/* ventanas */
.sheet { position: fixed; inset: 0; z-index: 50; }
.sheet-bg { position: absolute; inset: 0; background: rgba(22,19,15,.55); }
.sheet-box { position: absolute; background: var(--ivory); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.prod-sheet { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(1020px, 94vw); max-height: 92vh; padding: 34px; }
.side { right: 0; top: 0; bottom: 0; width: min(460px, 100vw); padding: 28px 24px calc(26px + env(safe-area-inset-bottom)); }
.x { position: absolute; top: 12px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--sand); font-size: 24px; line-height: 1; cursor: pointer; z-index: 3; color: var(--ink); }
.pd { display: grid; grid-template-columns: 1.2fr 1fr; gap: 38px; }
.pd-main { position: relative; aspect-ratio: 4 / 3; background: var(--sand); }
.pd-main img { position: absolute; inset: 4%; width: 92%; height: 92%; object-fit: contain; }
.pd-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.pd-thumbs button { width: 66px; height: 66px; border: 1px solid transparent; background: var(--sand); padding: 4px; cursor: pointer; } .pd-thumbs button.on { border-color: var(--ink); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pd .code { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.pd h3 { font-size: 36px; line-height: 1.08; font-weight: 400; margin: 8px 0 12px; }
.pd .price { font-size: 22px; }
.pd dl { display: grid; grid-template-columns: auto 1fr; gap: 9px 18px; font-size: 14px; margin: 20px 0; padding: 18px 0; border-top: 1px solid var(--stone); border-bottom: 1px solid var(--stone); font-weight: 300; } .pd dt { color: var(--muted); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; padding-top: 2px; } .pd dd { margin: 0; }
.pd .desc { font-size: 14.5px; color: var(--ink2); line-height: 1.7; white-space: pre-wrap; font-weight: 300; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--ink2); } .qty button { width: 38px; height: 44px; border: 0; background: none; font-size: 18px; cursor: pointer; color: var(--ink); } .qty span { min-width: 30px; text-align: center; font-weight: 500; }
.ends { color: var(--sale); font-size: 12px; letter-spacing: .08em; margin-top: 6px; }
.help { font-size: 13px; color: var(--muted); margin-top: 16px; font-weight: 300; } .help a { color: var(--ink); }

/* carrito */
.side h3 { font-size: 32px; font-weight: 400; margin-bottom: 14px; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--stone); }
.line .im { position: relative; width: 72px; height: 72px; background: var(--sand); } .line .im img { position: absolute; inset: 5%; width: 90%; height: 90%; object-fit: contain; }
.line b { display: block; font-family: var(--serif); font-size: 18px; font-weight: 500; line-height: 1.15; } .line small { color: var(--muted); font-size: 11.5px; display: block; letter-spacing: .04em; }
.line .rm { border: 0; background: none; color: var(--muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; padding: 0; }
.line .qty button { width: 30px; height: 30px; } .line .pr { text-align: right; font-weight: 500; font-size: 14px; } .line .pr s { display: block; color: #a39a90; font-weight: 300; font-size: 12px; }
.tot { display: flex; justify-content: space-between; font-size: 14px; padding: 5px 0; font-weight: 300; } .tot.save { color: var(--ok); font-weight: 500; }
.tot.big { font-size: 19px; font-weight: 500; border-top: 1px solid var(--stone); margin-top: 8px; padding-top: 12px; }
.box { background: var(--sand); padding: 16px; margin: 16px 0; font-size: 13.5px; }
.box label { display: block; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.inp { width: 100%; border: 1px solid var(--stone); border-radius: 0; padding: 12px; font: inherit; font-size: 15px; background: #fff; color: var(--ink); }
.inp:focus { outline: none; border-color: var(--ink2); }
.ship-ok { color: var(--ok); font-weight: 500; } .ship-bad { color: var(--sale); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .form-grid .full { grid-column: 1 / -1; }
.form-grid .note { display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 5px; }
.pay { border: 1px solid var(--stone); padding: 13px 14px; margin: 8px 0; display: flex; gap: 12px; align-items: center; cursor: pointer; font-size: 14px; background: #fff; } .pay.on { border-color: var(--ink); } .pay small { display: block; color: var(--muted); font-size: 12px; font-weight: 300; }
.pay input { accent-color: var(--ink); }
.note { font-size: 12.5px; color: var(--muted); line-height: 1.55; font-weight: 300; }
.back { border: 0; background: none; color: var(--muted); cursor: pointer; font: inherit; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 0; margin-bottom: 12px; }

/* pie */
.foot { background: #0f0d0a; color: #b9b0a4; padding: 60px 0 calc(28px + env(safe-area-inset-bottom)); font-size: 14px; font-weight: 300; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 34px; }
.foot h4 { font-family: var(--sans); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-l); font-weight: 500; margin-bottom: 14px; }
.foot p { margin: 0; line-height: 1.8; } .foot a { color: #e9e2d7; text-decoration: none; } .foot a:hover { color: var(--gold-l); }
.foot-logo { height: 38px; margin-bottom: 14px; } .foot [data-foot-cats] a, .foot [data-contact] a, .foot [data-contact] span { display: block; line-height: 1.9; }
.foot-legal { margin-top: 42px; padding-top: 20px; border-top: 1px solid #2a251f; font-size: 11.5px; color: #7d7468; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: var(--ivory); padding: 13px 22px; font-size: 13px; letter-spacing: .06em; z-index: 80; box-shadow: 0 10px 24px rgba(0,0,0,.25); }

/* menús desplegables de categorías agrupadas */
.dd { position: relative; display: inline-block; }
.top-dd { border: 0; background: none; font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; padding: 6px 0; cursor: pointer; white-space: nowrap; }
.car { font-size: 9px; margin-left: 4px; opacity: .6; }
.dd-menu { display: none; position: absolute; top: calc(100% + 8px); left: 0; z-index: 30; min-width: 230px; background: var(--ivory); border: 1px solid var(--stone); box-shadow: 0 16px 34px rgba(22,19,15,.12); padding: 8px; text-transform: none; letter-spacing: .01em; }
.dd.open .dd-menu { display: block; }
.dd-menu button { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; border: 0; background: none; font: inherit; font-size: 14px; color: var(--ink); text-align: left; padding: 10px 12px; cursor: pointer; }
.dd-menu button:hover { background: var(--sand); } .dd-menu button:first-child { font-weight: 500; border-bottom: 1px solid var(--stone); }
.dd-menu em { font-style: normal; color: var(--muted); font-size: 12px; }

/* lupa (sólo en la ficha) */
[data-zoom] { overflow: hidden; }
[data-zoom] img { transition: transform .15s ease-out; will-change: transform; }
@media (hover: hover) and (pointer: fine) { [data-zoom] { cursor: zoom-in; } }
[data-zoom].zooming img { transition: transform .05s linear; }
[data-zoom].zooming .off { opacity: 0; }

@media (max-width: 900px) {
  .top-cats { display: none; }
  .top-in { padding: 12px 16px; }
  .spaces { grid-template-columns: repeat(3, 1fr); }
  .values-in { grid-template-columns: 1fr 1fr; gap: 20px 16px; padding: 24px 20px; }
  .foot-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero { min-height: 440px; } .hero-tx { padding-bottom: 44px; } .hero p { font-size: 15px; }
  .values-in { grid-template-columns: 1fr 1fr; gap: 14px; }
  .hide-sm { display: none; } .announce { font-size: 10px; letter-spacing: .16em; }
  .block { padding-top: 54px; }
  .spaces { grid-template-columns: 1fr 1fr; gap: 10px; } .space .lbl { left: 12px; right: 12px; bottom: 10px; } .space .lbl b { font-size: 17px; line-height: 1.1; } .space .lbl em { font-size: 10px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 26px 12px; }
  .card .nm { font-size: 17px; } .card .sp { display: none; } .card .row { flex-direction: column; align-items: stretch; } .add { width: 100%; }
  .prod-sheet { top: auto; bottom: 0; transform: translateX(-50%); width: 100vw; max-height: 94vh; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); }
  .pd { grid-template-columns: 1fr; gap: 18px; } .pd h3 { font-size: 30px; }
  .form-grid { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr; }
}

/* código de broker */
.promo-row { display: flex; gap: 8px; } .promo-row .inp { flex: 1; text-transform: uppercase; } .promo-row .btn { padding: 0 18px; }
.promo-on { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; } .promo-on small { display: block; color: var(--muted); font-size: 12px; }

/* ---------- 6 oct 2026: filtros, imagen ilustrativa, WhatsApp flotante, aceptación y páginas de información ---------- */
.tools { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; margin: -6px 0 18px; }
.sel { appearance: none; -webkit-appearance: none; border: 1px solid var(--stone); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23857b70'/%3E%3C/svg%3E") no-repeat right 12px center; padding: 9px 32px 9px 12px; font: inherit; font-size: 13px; color: var(--ink2); border-radius: 0; cursor: pointer; }
.sel:focus { outline: 1px solid var(--gold); }
.tools .count { margin-left: auto; font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.card .im { position: relative; } .card .im img:not([src]) { visibility: hidden; }
.ilus { position: absolute; left: 8px; bottom: 8px; background: rgba(250,248,244,.9); color: var(--ink2); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; padding: 3px 7px; pointer-events: none; }
.pd-main { position: relative; }
.share { border: 0; background: none; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; cursor: pointer; }
.accept { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--ink2); line-height: 1.5; margin: 6px 0 12px; cursor: pointer; }
.accept input { margin-top: 3px; accent-color: var(--ink); } .accept a { color: var(--ink); }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 54px; height: 54px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.18); transition: transform .2s; }
.wa-float:hover { transform: scale(1.06); } .wa-float svg { width: 30px; height: 30px; }
.foot-links { margin-top: 12px !important; } .foot-links a { display: block; }
.foot-legal a { color: inherit; }
.doc { max-width: 780px; padding-top: 46px; padding-bottom: 70px; }
.doc .eyebrow { margin-bottom: 8px; } .doc h1 { font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1.05; margin: 0 0 8px; color: var(--ink); }
.doc .upd { color: var(--muted); font-size: 13px; margin-bottom: 30px; }
.doc h2 { font-family: var(--serif); font-weight: 500; font-size: 25px; margin: 34px 0 10px; color: var(--ink); }
.doc h3 { font-family: var(--sans); font-size: 15px; font-weight: 600; margin: 22px 0 6px; color: var(--ink); }
.doc p, .doc li { font-size: 15px; line-height: 1.75; color: var(--ink2); font-weight: 300; } .doc ul { padding-left: 20px; } .doc a { color: var(--ink); }
.doc .back { display: block; width: fit-content; margin-bottom: 26px; text-decoration: none; }
.doc details { border-bottom: 1px solid var(--stone); padding: 16px 0; } .doc summary { cursor: pointer; font-family: var(--serif); font-size: 21px; color: var(--ink); list-style: none; }
.doc summary::-webkit-details-marker { display: none; } .doc summary::after { content: "+"; float: right; color: var(--gold); } .doc details[open] summary::after { content: "–"; }
.doc details p { margin: 10px 0 0; }
.doc-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--stone); } .doc-nav a { text-decoration: none; color: var(--ink2); }
@media (max-width: 640px) { .doc h1 { font-size: 34px; } .tools .count { width: 100%; margin-left: 0; } .sel { flex: 1 1 45%; } .wa-float { right: 14px; bottom: 14px; width: 50px; height: 50px; } }
