/* RIMA · Joyas de autor — estilos del sitio (versión vidriera) */
:root {
  --ink: #1D1D1D; --paper: #FAF8F5; --warm: #F4EFE9; --stone: #E8E0D8;
  --cocoa: #604B3B; --taupe: #A48A7B; --taupe-text: #7D6455; --lav-soft: #C9C5DF;
  --line: #E3DBD3; --muted: #6F6961; --ok: #5A7A56; --err: #B04040; --wa: #1F8F4E;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-weight: 300; font-size: 15px; line-height: 1.65; }
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--cocoa); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; margin: 0; line-height: 1.08; text-wrap: balance; }
h1 em, h2 em { font-style: italic; color: var(--cocoa); }
p { margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--taupe-text); }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* Barra */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--ink); color: var(--paper); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--ink); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; flex-wrap: wrap; }
.logo { font-family: var(--serif); font-weight: 600; font-size: 26px; letter-spacing: .14em; text-decoration: none; }
.nav { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .16em; }
.nav a { text-decoration: none; opacity: .82; }
.nav a:hover { opacity: 1; }
.nav a[aria-current="page"] { opacity: 1; border-bottom: 1px solid var(--taupe); padding-bottom: 2px; }
.nav .cta { border: 1px solid #4A4642; padding: 6px 10px; opacity: 1; }

/* Buscador grande */
.searchbar { background: var(--warm); border-bottom: 1px solid var(--line); }
.searchbar .wrap { padding-block: 14px; }
.sbox { display: flex; align-items: center; background: var(--paper); border: 1px solid var(--ink); min-height: 56px; }
.sbox svg { width: 22px; height: 22px; margin-left: 16px; flex: none; stroke: var(--ink); fill: none; stroke-width: 1.6; }
.sbox input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 14px; font-size: 18px; min-height: 54px; }
.sbox input:focus { outline: none; }
.sbox:focus-within { outline: 2px solid var(--cocoa); outline-offset: 2px; }
.sbox button { border: 0; background: var(--ink); color: var(--paper); min-height: 54px; padding: 0 22px; font-size: 11px; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; }
.shelp { margin-top: 8px; font-size: 12px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.shelp button { border: 1px solid var(--line); background: var(--paper); padding: 4px 12px; border-radius: 999px; font-size: 12px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 24px; font: 500 11px/1 var(--sans); letter-spacing: .15em; text-transform: uppercase; text-decoration: none; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); text-align: center; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.cocoa { background: var(--cocoa); border-color: var(--cocoa); }
.btn.light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn.wa { background: var(--wa); border-color: var(--wa); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* Portada */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; }
.hero .txt { display: grid; align-content: center; gap: 22px; padding: 56px max(16px, env(safe-area-inset-left, 0px)) 56px max(16px, calc((100vw - 1160px) / 2 + 16px)); }
.hero h1 { font-size: clamp(44px, 6.4vw, 84px); }
.hero .lead { font-size: 17px; max-width: 42ch; }
.hero figure { margin: 0; position: relative; overflow: hidden; }
.hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cap { position: absolute; left: 16px; bottom: 16px; background: var(--paper); padding: 6px 10px; font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.marquee { background: var(--ink); color: var(--paper); overflow: hidden; }
.marquee .track { display: flex; width: max-content; animation: slide 38s linear infinite; }
.marquee span { padding: 13px 0; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.marquee i { font-style: normal; color: var(--taupe); padding: 0 18px; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee .track { animation: none; } }

section.block { padding-block: 72px; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.sec-head h2 { font-size: clamp(32px, 4.4vw, 48px); }

.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 210px; gap: 12px; }
.tile { position: relative; overflow: hidden; background: var(--stone); text-decoration: none; display: block; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.tile:hover img { transform: scale(1.04); }
.tile .lbl { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; background: linear-gradient(to top, rgba(29,29,29,.66), rgba(29,29,29,0)); color: var(--paper); display: flex; justify-content: space-between; align-items: end; gap: 8px; }
.tile .lbl b { font-family: var(--serif); font-size: 26px; font-weight: 400; line-height: 1; }
.tile .lbl small { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }
.tile.text { background: var(--warm); border: 1px solid var(--line); display: grid; align-content: end; padding: 14px; }
.tile.text .lbl { position: static; background: none; color: var(--ink); padding: 0; }
.tile.text .lbl small { color: var(--taupe-text); }
.t-big { grid-column: span 2; grid-row: span 2; }
.t-wide { grid-column: span 2; }

.born { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: s; }
.born figure { margin: 0; display: grid; gap: 10px; }
.born img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.born figcaption { font-size: 13px; display: grid; gap: 2px; }
.born figcaption b { font-family: var(--serif); font-size: 22px; font-weight: 400; }
.born figcaption b::before { counter-increment: s; content: counter(s) " · "; color: var(--taupe-text); }

.dark { background: var(--ink); color: var(--paper); }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; padding-block: 72px; }
.split > * { min-width: 0; }
.split img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 60% 30%; display: block; }
.split h2 { font-size: clamp(34px, 4.6vw, 52px); }
.dark h2 em { color: var(--stone); }
.dark .eyebrow { color: var(--lav-soft); }
.dark p { color: #DCD5CD; max-width: 52ch; }
.split .txt { display: grid; gap: 18px; }
.sign { font-family: var(--serif); font-size: 22px; font-style: italic; color: var(--stone); }

.list2 { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; font-size: 14px; }
.list2 li::before { content: "— "; color: var(--taupe); }

.promises { border-top: 1px solid var(--line); }
.promises .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-block: 36px; }
.promises div { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.promises b { font-family: var(--serif); font-size: 21px; font-weight: 500; color: var(--ink); }

/* Páginas de texto */
.page { padding-block: 48px 72px; display: grid; gap: 20px; max-width: 760px; }
.page h1 { font-size: clamp(36px, 5vw, 54px); }
.page h2 { font-size: 28px; margin-top: 18px; }
.page p, .page li { font-size: 15px; }
.page ul { padding-left: 20px; margin: 0; display: grid; gap: 6px; }
.note { background: var(--warm); border: 1px solid var(--line); padding: 14px 16px; font-size: 14px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--ink); counter-reset: st; }
.steps li { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 52px 1fr; gap: 12px; }
.steps li::before { counter-increment: st; content: counter(st); font-family: var(--serif); font-size: 34px; color: var(--taupe-text); line-height: 1; }
details.faq { border-bottom: 1px solid var(--line); }
details.faq summary { cursor: pointer; padding: 14px 0; font-family: var(--serif); font-size: 22px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-family: var(--sans); color: var(--muted); }
details.faq[open] summary::after { content: "−"; }
details.faq p { padding-bottom: 14px; }

/* Formularios */
.form { background: var(--warm); border: 1px solid var(--line); padding: 22px; display: grid; gap: 14px; }
.field { display: grid; gap: 4px; min-width: 0; }
.field label { font-size: 12px; font-weight: 500; }
.field input, .field textarea, .field select { min-height: 46px; border: 1px solid var(--line); background: var(--paper); padding: 10px 12px; font-size: 15px; width: 100%; }
.field textarea { min-height: 110px; resize: vertical; }
.err { color: var(--err); font-size: 13px; font-weight: 500; }
.ok { border: 1px solid var(--ok); background: #EEF3EC; padding: 14px 16px; }

/* Pie */
footer { background: var(--warm); border-top: 1px solid var(--line); }
footer .cols { padding-block: 36px; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 24px; font-size: 13px; }
footer .cols > * { min-width: 0; }
footer .flogo { font-family: var(--serif); font-weight: 600; font-size: 28px; letter-spacing: .14em; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }
.arrep { display: inline-block; border: 1px solid var(--ink); padding: 8px 12px; font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; margin-top: 10px; }
.legal { border-top: 1px solid var(--line); }
.legal .wrap { padding-block: 14px; font-size: 11px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wa-float { position: fixed; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); width: 56px; height: 56px; border-radius: 50%; background: #25D366; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(29,29,29,.2); z-index: 15; }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero figure { aspect-ratio: 4 / 3; order: -1; }
  .hero .txt { padding: 36px max(16px, env(safe-area-inset-right, 0px)) 40px max(16px, env(safe-area-inset-left, 0px)); }
  .split { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 170px; }
  .born { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promises .wrap { grid-template-columns: 1fr 1fr; }
  footer .cols { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .tile .lbl small { display: none; }
  .tile .lbl b { font-size: 22px; }
  .list2 { grid-template-columns: 1fr; }
  .nav { gap: 14px; }
  .sbox button { padding: 0 14px; }
  .sbox input { font-size: 16px; }
}
