/* DECOR ART · estilos compartidos (inicio, catálogo, mayoreo) */

:root {
    --ink: #1E1A16;
    --ink-2: #27221C;
    --text: #24201B;
    --muted: #6B6258;
    --line: #E7E0D6;
    --paper: #FBF9F6;
    --paper-2: #F3EEE6;
    --brand: #8F7E66;
    --brand-dk: #5F5242;
    --brand-lt: #D9CAB0;
    --wa: #0F8541;
    --wa-dk: #0B6B34;

    --r-lg: 24px;
    --r: 16px;
    --r-sm: 10px;
    --sh: 0 10px 30px -12px rgba(46, 34, 20, .28);
    --sh-lg: 0 24px 60px -20px rgba(46, 34, 20, .38);
    --ease: cubic-bezier(.22, 1, .36, 1);
    --hdr-h: 64px;
    --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 16px; line-height: 1.6;
    background: var(--paper); color: var(--text);
    -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; }
h1, h2, h3 { text-wrap: balance; letter-spacing: -.025em; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.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(--wrap); margin: 0 auto; padding: 0 20px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.i { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- Header ---------- */
.hdr {
    position: fixed; inset: 0 0 auto; z-index: 50; height: var(--hdr-h);
    background: rgba(30, 26, 22, .94);
    -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
    color: #fff; transition: background-color .35s var(--ease), box-shadow .35s var(--ease);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}
.hdr.is-clear { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.hdr-in { height: 100%; display: flex; align-items: center; gap: 8px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; min-height: 44px; }
.brand img { height: 32px; width: auto; }
.brand span { display: none; font-weight: 800; font-size: 17px; letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
    position: relative; display: flex; align-items: center; min-height: 44px; padding: 0 11px;
    font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .72); border-radius: 999px;
    transition: color .2s, background-color .2s;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"]::after {
    content: ''; position: absolute; left: 11px; right: 11px; bottom: 7px; height: 2px;
    border-radius: 2px; background: var(--brand-lt);
}
.hdr .hdr-cta { display: none; }
@media (min-width: 560px) { .brand span { display: inline; } }
@media (min-width: 900px) {
    .hdr-in { gap: 12px; }
    .nav { margin-right: 8px; }
    .hdr .hdr-cta { display: inline-flex; }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 0 24px; border-radius: 999px;
    font-size: 16px; font-weight: 700; line-height: 1.2; white-space: nowrap;
    transition: transform .2s var(--ease), background-color .2s, border-color .2s, box-shadow .25s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 17px; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dk); box-shadow: 0 10px 26px -10px rgba(11, 107, 52, .7); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost {
    background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .38);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .22); }
.btn-line { color: var(--text); border: 1.5px solid var(--line); background: transparent; }
.btn-line:hover { border-color: var(--text); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--brand-dk); min-height: 44px; }
.link-arrow .i { transition: transform .25s var(--ease); }
.link-arrow:hover .i { transform: translateX(4px); }

/* ---------- Sections ---------- */
.sec { padding: clamp(64px, 9vw, 112px) 0; }
.sec-alt { background: var(--paper-2); }
.sec-head { margin-bottom: clamp(28px, 4vw, 44px); }
.sec-head.row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; }
.title { font-size: clamp(28px, 4.2vw, 46px); font-weight: 800; line-height: 1.08; color: var(--ink); }
.lead { font-size: clamp(16px, 1.6vw, 18px); color: var(--muted); max-width: 60ch; margin-top: 12px; }

/* ---------- Mobile CTA bar (one WhatsApp button) ---------- */
.cta-bar {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 40; transform: translateY(160%); opacity: 0; pointer-events: none;
    transition: transform .45s var(--ease), opacity .3s;
}
.cta-bar.is-on { transform: none; opacity: 1; pointer-events: auto; }
.cta-bar .btn { width: 100%; min-height: 54px; box-shadow: 0 14px 34px -12px rgba(15, 60, 34, .55); }
@media (min-width: 900px) { .cta-bar { display: none; } }

/* ---------- Footer ---------- */
.ftr { background: var(--ink-2); color: rgba(255, 255, 255, .62); font-size: 15px; padding: 64px 0 calc(96px + env(safe-area-inset-bottom)); }
.ftr-grid { display: grid; gap: 36px; grid-template-columns: 1fr 1fr; }
.ftr-brand { grid-column: 1 / -1; max-width: 340px; }
.ftr-grid > :last-child { grid-column: 1 / -1; }
.ftr-brand .brand { margin-bottom: 14px; color: #fff; }
.ftr-brand .brand span { display: inline; }
.ftr h2 { font-size: 13px; font-weight: 700; color: #fff; letter-spacing: .04em; margin-bottom: 14px; }
.ftr li + li { margin-top: 8px; }
.ftr a:hover { color: #fff; }
.ftr-btm { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 13px; color: rgba(255, 255, 255, .42); }
.socials { display: flex; gap: 8px; }
.socials a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .07); transition: background-color .2s; }
.socials a:hover { background: var(--brand-dk); }
.socials .i { width: 18px; height: 18px; }
@media (min-width: 900px) {
    .ftr { padding-bottom: 40px; }
    .ftr-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
    .ftr-brand, .ftr-grid > :last-child { grid-column: auto; }
}

/* ---------- Reveal ---------- */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .08s; } .rv.d2 { transition-delay: .16s; } .rv.d3 { transition-delay: .24s; } .rv.d4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    .js .rv { opacity: 1; transform: none; }
}
