/* ═══════════════════════════════════════════════════════
   CON ALMA — DESIGN SYSTEM
   Blanco · Terracota · Arena · Dorado
   Cálido, moderno, artesanal premium
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Nunito+Sans:wght@300;400;500;600&display=swap');

:root {
  /* Blancos */
  --white:   #ffffff;
  --snow:    #fdfbf8;
  --ivory:   #f8f4ee;
  --linen:   #f0e9de;

  /* Terracota / Arena */
  --terra-lt:#e8c4a8;
  --terra:   #c8845a;
  --terra-dk:#a05a34;
  --rust:    #7a3e1c;

  /* Dorado */
  --gold-lt: #f0d080;
  --gold:    #d4a840;
  --gold-dk: #a07828;

  /* Neutros oscuros */
  --warm-dk: #3a2010;
  --ink:     #1e0e04;

  /* Texto */
  --t1: #1e0e04;
  --t2: #6a4428;
  --t3: #a07050;
  --t4: #c8a888;

  /* UI */
  --line:  rgba(160,88,52,.14);
  --lineM: rgba(160,88,52,.24);
  --lineD: rgba(160,88,52,.36);

  /* Type */
  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'Nunito Sans', system-ui, sans-serif;

  /* Layout */
  --max:   1400px;
  --mq-h:  36px;
  --hdr-h: 70px;
  --px:    80px;
  --ease:  cubic-bezier(.22,1,.36,1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--t1);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}
@media (pointer:coarse) { body { cursor: auto; } }
a { text-decoration: none; color: inherit; }
img, video { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font-family: inherit; }
.hidden { display: none !important; }

/* ── GRAIN TEXTURE ── */
body::after {
  content: '';
  position: fixed; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='.025'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9997; mix-blend-mode: multiply;
}

/* ── CURSOR ── */
#ca-cur {
  width: 10px; height: 10px;
  background: var(--terra);
  border-radius: 50%;
  position: fixed; pointer-events: none;
  z-index: 9992; transform: translate(-50%,-50%);
  transition: width .18s, height .18s, background .18s;
  mix-blend-mode: multiply;
}
#ca-ring {
  width: 34px; height: 34px;
  border: 1.5px solid rgba(200,132,90,.32);
  border-radius: 50%;
  position: fixed; pointer-events: none;
  z-index: 9991; transform: translate(-50%,-50%);
}
#ca-cur.hover { width: 22px; height: 22px; background: var(--gold); }
@media (pointer:coarse) { #ca-cur, #ca-ring { display: none; } }

/* ── PARTICLES ── */
#ca-cnv { position: fixed; inset: 0; pointer-events: none; z-index: 1; }

/* ── PAGE CURTAIN ── */
#curtain {
  position: fixed; inset: 0; z-index: 9980;
  background: var(--terra-dk);
  transform: translateY(100%);
  pointer-events: none;
}
#curtain.in  { animation: cin  .52s var(--ease) forwards; }
#curtain.out { animation: cout .52s var(--ease) forwards; }
@keyframes cin  { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes cout { from { transform: translateY(0); }    to { transform: translateY(-100%); } }

/* ── MARQUEE ── */
.mq {
  height: var(--mq-h);
  background: var(--ink);
  color: var(--terra-lt);
  overflow: hidden; display: flex; align-items: center;
  font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase;
  font-weight: 300; position: relative; z-index: 200;
}
.mq__t {
  display: inline-flex; align-items: center;
  min-width: max-content;
  animation: mq 28s linear infinite;
}
.mq__t span { padding: 0 28px; white-space: nowrap; }
.mq__t .dot { color: var(--gold); opacity: .7; padding: 0; }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── HAMBURGER ── */
#mb {
  position: fixed;
  top: calc(var(--mq-h) + 12px);
  left: 18px;
  z-index: 8000;
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 2px 14px rgba(30,14,4,.08);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
  cursor: pointer;
  transition: background .22s, border-color .22s, box-shadow .22s, top .38s var(--ease);
}
#mb:hover { border-color: var(--lineM); box-shadow: 0 4px 22px rgba(30,14,4,.12); }
.bar {
  width: 19px; height: 1.5px;
  background: var(--warm-dk);
  border-radius: 2px;
  transition: transform .36s var(--ease), opacity .22s, width .26s;
}
body.scrolled #mb { top: 11px; }
body.nav-open #mb  { background: var(--ivory); border-color: var(--lineM); }
body.nav-open .bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.nav-open .bar:nth-child(2) { opacity: 0; width: 0; }
body.nav-open .bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
/* En hero oscuro */
body.hero-dark #mb { background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.18); }
body.hero-dark .bar { background: #fff; }

/* ── DRAWER OVERLAY ── */
#ov {
  position: fixed; inset: 0;
  background: rgba(30,14,4,.44);
  backdrop-filter: blur(5px);
  z-index: 7900; opacity: 0; pointer-events: none;
  transition: opacity .34s ease;
}
#ov.open { opacity: 1; pointer-events: auto; }

/* ── DRAWER ── */
#dw {
  position: fixed; top: 0; left: 0;
  width: min(390px, 90vw); height: 100dvh;
  background: var(--snow);
  z-index: 7950;
  transform: translateX(-100%);
  transition: transform .4s var(--ease);
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 6px 0 44px rgba(30,14,4,.12);
}
#dw.open { transform: translateX(0); }

.dw-head {
  padding: 24px 26px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 12px;
  flex-shrink: 0;
}
.dw-brand {
  font-family: var(--serif);
  font-size: 26px; font-weight: 400;
  color: var(--ink); letter-spacing: 2px; line-height: 1;
}
.dw-sub {
  font-size: 9px; color: var(--t3);
  letter-spacing: 4px; text-transform: uppercase;
  margin-top: 4px;
}
.dw-x {
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 50%; border: 1px solid var(--line);
  background: var(--ivory); color: var(--t2);
  font-size: 14px; display: grid; place-items: center;
  cursor: pointer; transition: background .2s, border-color .2s;
}
.dw-x:hover { background: var(--linen); border-color: var(--lineM); }

.dw-nav {
  flex: 1; overflow-y: auto; padding: 8px 0 14px;
  overscroll-behavior: contain;
}
.dw-nav::-webkit-scrollbar { width: 3px; }
.dw-nav::-webkit-scrollbar-thumb { background: var(--terra-lt); border-radius: 2px; }

.d-lnk {
  display: block; padding: 12px 26px;
  font-size: 14px; font-weight: 300; color: var(--t1);
  transition: background .15s, color .15s, padding-left .2s var(--ease);
}
.d-lnk:hover { background: var(--ivory); color: var(--terra); padding-left: 34px; }
.d-sep { height: 1px; background: var(--line); margin: 6px 26px; }

.d-ab {
  width: 100%; display: flex; align-items: center;
  justify-content: space-between;
  padding: 12px 26px;
  font-size: 14px; font-weight: 500; color: var(--t1);
  text-align: left; cursor: pointer;
  transition: background .15s, color .15s;
}
.d-ab:hover { background: var(--ivory); color: var(--terra); }
.d-ai {
  width: 22px; height: 22px; flex-shrink: 0;
  border-radius: 50%; border: 1px solid var(--lineM);
  display: grid; place-items: center;
  font-size: 13px; color: var(--terra); line-height: 1;
  transition: transform .32s var(--ease), background .2s;
}
.d-ab.open .d-ai { transform: rotate(45deg); background: var(--terra); color: #fff; border-color: var(--terra); }
.d-ap {
  max-height: 0; overflow: hidden;
  transition: max-height .36s var(--ease);
  background: var(--ivory);
}
.d-ap.open { max-height: 420px; }
.d-ap .d-lnk { font-size: 13px; font-weight: 300; color: var(--t2); padding-left: 42px; }
.d-ap .d-lnk:hover { padding-left: 50px; color: var(--terra); }

.dw-foot {
  flex-shrink: 0; padding: 14px 26px 26px;
  border-top: 1px solid var(--line);
  background: var(--white);
  display: flex; flex-direction: column; gap: 9px;
}

/* ── HEADER ── */
#hdr {
  position: fixed;
  top: var(--mq-h); left: 0; right: 0;
  height: var(--hdr-h); z-index: 500;
  display: flex; align-items: center;
  transition: background .42s var(--ease), box-shadow .42s, top .38s var(--ease);
}
#hdr.scrolled {
  top: 0;
  background: rgba(253,251,248,.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.hdr-in {
  width: 100%; max-width: var(--max); margin: 0 auto;
  padding: 0 36px 0 76px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo {
  font-family: var(--serif);
  font-size: 21px; font-weight: 400;
  letter-spacing: 3.5px; color: #fff;
  line-height: 1; display: flex; flex-direction: column; gap: 3px;
  white-space: nowrap; transition: color .3s;
}
.logo small {
  font-family: var(--sans);
  font-size: 8px; font-weight: 300;
  letter-spacing: 5px; text-transform: uppercase;
  color: rgba(255,255,255,.48); transition: color .3s;
}
#hdr.scrolled .logo       { color: var(--ink); }
#hdr.scrolled .logo small { color: var(--t3); }

.hdr-mid { flex: 1; display: flex; justify-content: center; }
.hdr-search {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 10px;
  border-bottom: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.56);
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  transition: border-color .2s, color .2s;
}
.hdr-search svg { width: 13px; height: 13px; fill: currentColor; }
.hdr-search:hover { border-bottom-color: rgba(255,255,255,.65); color: #fff; }
#hdr.scrolled .hdr-search { border-bottom-color: var(--line); color: var(--t3); }
#hdr.scrolled .hdr-search:hover { border-bottom-color: var(--terra); color: var(--terra); }

.hdr-acts { display: flex; gap: 18px; align-items: center; }
.h-a {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 9px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,.72); transition: color .2s;
}
.h-a:hover { color: #fff; }
.h-a svg { width: 15px; height: 15px; fill: currentColor; }
.h-a span { display: none; }
#hdr.scrolled .h-a       { color: var(--t2); }
#hdr.scrolled .h-a:hover { color: var(--terra); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center;
  justify-content: center; gap: 8px;
  height: 50px; padding: 0 30px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 10px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  border: 1.5px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform .22s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .22s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(30,14,4,.12); }
.btn:active { transform: none; box-shadow: none; }

.btn-p  { background: var(--terra); color: #fff; border-color: var(--terra); }
.btn-p:hover { background: var(--terra-dk); }
.btn-gold { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-dk); }
.btn-o  { background: transparent; border-color: var(--terra); color: var(--terra); }
.btn-o:hover { background: var(--terra); color: #fff; }
.btn-g  { background: transparent; border-color: rgba(255,255,255,.35); color: rgba(255,255,255,.92); }
.btn-g:hover { border-color: rgba(255,255,255,.75); background: rgba(255,255,255,.1); }
.btn-s  { background: var(--ivory); border-color: var(--lineM); color: var(--warm-dk); }
.btn-s:hover { background: var(--linen); }
.btn-dg { background: transparent; border-color: var(--lineM); color: var(--t2); }
.btn-dg:hover { border-color: var(--terra); color: var(--terra); }
.btn-sm { height: 40px; padding: 0 20px; font-size: 9px; }
.btn-lg { height: 54px; padding: 0 38px; font-size: 11px; }
.btn-full { width: 100%; justify-content: center; }

/* ── SECTIONS ── */
.sec { padding: 108px var(--px); position: relative; z-index: 10; }
.s-w   { background: var(--white); }
.s-iv  { background: var(--ivory); }
.s-ln  { background: var(--linen); }
.s-dk  { background: var(--ink); color: #fff; }
.s-tr  { background: var(--terra-dk); color: var(--terra-lt); }

/* ── LABELS & HEADINGS ── */
.lbl {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 9px; letter-spacing: 5px; text-transform: uppercase;
  color: var(--terra); font-weight: 500; margin-bottom: 12px;
}
.lbl::before { content: ''; width: 22px; height: 1px; background: var(--gold); }
.lbl-lt { color: var(--terra-lt); }
.lbl-lt::before { background: var(--gold-lt); }

.h2 {
  font-family: var(--serif);
  font-size: clamp(36px, 5.5vw, 74px);
  font-weight: 300; line-height: .92; letter-spacing: -1.5px;
  color: var(--ink);
}
.h2 em { font-style: italic; color: var(--terra); }
.h2-lt { color: #fff; }
.h2-lt em { color: var(--gold-lt); }

.body-t {
  font-size: 15px; line-height: 1.88;
  color: var(--t2); font-weight: 300;
  max-width: 540px; margin-top: 16px;
}
.body-lt { color: rgba(255,255,255,.52); }

/* ── PRODUCT CARD ── */
.pcard { background: var(--white); position: relative; overflow: hidden; cursor: pointer; }
.pcard__img-box {
  overflow: hidden; aspect-ratio: 3/4;
  background: var(--linen); position: relative;
}
.pcard__img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .9s var(--ease), filter .9s;
  filter: saturate(.78) brightness(.93);
}
.pcard:hover .pcard__img { transform: scale(1.07); filter: saturate(1) brightness(1); }
.pcard__badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--terra); color: #fff;
  font-size: 8px; letter-spacing: 2px; text-transform: uppercase;
  padding: 5px 11px; font-weight: 600;
}
.pcard__badge-gold {
  position: absolute; top: 14px; left: 14px;
  background: var(--gold); color: var(--ink);
  font-size: 8px; letter-spacing: 2px; text-transform: uppercase;
  padding: 5px 11px; font-weight: 600;
}
.pcard__veil {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(30,14,4,.88) 0%, rgba(30,14,4,.28) 50%, transparent 74%);
}
.pcard__body { position: absolute; bottom: 0; left: 0; right: 0; padding: 22px 20px; }
.pcard__cat {
  font-size: 8px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold-lt); margin-bottom: 6px; font-weight: 400;
}
.pcard__name {
  font-family: var(--serif);
  font-size: 21px; font-weight: 400;
  color: var(--snow); line-height: 1.1; margin-bottom: 4px;
}
.pcard__desc {
  font-size: 11px; color: rgba(253,251,248,.46);
  font-weight: 300; line-height: 1.5;
  max-height: 0; overflow: hidden;
  transition: max-height .36s var(--ease), margin .36s;
}
.pcard:hover .pcard__desc { max-height: 54px; margin-bottom: 12px; }
.pcard__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pcard__price { font-family: var(--serif); font-size: 19px; color: var(--gold-lt); }
.pcard__cta {
  padding: 7px 14px;
  background: transparent;
  border: 1px solid rgba(212,168,64,.38);
  color: var(--gold-lt);
  font-size: 8px; letter-spacing: 2px; text-transform: uppercase;
  font-family: var(--sans); font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.pcard__cta:hover { background: var(--terra); color: #fff; border-color: var(--terra); }

/* ── GRIDS ── */
.g3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 3px; background: var(--terra-lt); }
.g2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 3px; background: var(--terra-lt); }
.g4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 3px; background: var(--terra-lt); }

/* ── REVEAL ── */
.rv  { opacity: 0; transform: translateY(34px);  transition: opacity .88s var(--ease), transform .88s var(--ease); }
.rvl { opacity: 0; transform: translateX(-38px); transition: opacity .88s var(--ease), transform .88s var(--ease); }
.rvr { opacity: 0; transform: translateX(38px);  transition: opacity .88s var(--ease), transform .88s var(--ease); }
.rvs { opacity: 0; transform: scale(.96);        transition: opacity .88s var(--ease), transform .88s var(--ease); }
.rv.on, .rvl.on, .rvr.on, .rvs.on { opacity: 1; transform: none; }
.d1{transition-delay:.07s} .d2{transition-delay:.14s}
.d3{transition-delay:.21s} .d4{transition-delay:.28s} .d5{transition-delay:.35s}

/* ── FOOTER ── */
.footer { background: var(--ink); border-top: 1px solid rgba(200,132,90,.08); padding: 72px var(--px) 44px; }
.footer-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 52px; margin-bottom: 52px; }
.footer-brand { font-family: var(--serif); font-size: 28px; font-weight: 300; color: var(--snow); letter-spacing: 3px; margin-bottom: 12px; }
.footer-tag { font-size: 13px; color: rgba(255,255,255,.28); font-weight: 300; line-height: 1.78; max-width: 210px; }
.footer-mp { margin-top: 22px; display: flex; align-items: center; gap: 8px; font-size: 9px; color: rgba(255,255,255,.22); letter-spacing: 2px; text-transform: uppercase; }
.footer-mp strong { font-size: 13px; font-weight: 600; letter-spacing: 1px; }
.footer-col h4 { font-size: 8px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; font-weight: 500; }
.footer-col a { display: block; font-size: 13px; font-weight: 300; color: rgba(255,255,255,.28); margin-bottom: 9px; transition: color .2s; }
.footer-col a:hover { color: var(--gold-lt); }
.footer-bot { max-width: var(--max); margin: 0 auto; border-top: 1px solid rgba(255,255,255,.06); padding-top: 24px; display: flex; justify-content: space-between; font-size: 11px; color: rgba(255,255,255,.16); flex-wrap: wrap; gap: 8px; }

/* ── FORM PRIMITIVES ── */
.ff { margin-bottom: 14px; }
.ff label { display: block; font-size: 9px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--t3); margin-bottom: 6px; font-weight: 500; }
.ff input, .ff select, .ff textarea {
  width: 100%; height: 48px; padding: 0 16px;
  border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--white); color: var(--t1);
  font-size: 14px; font-weight: 300; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.ff input:focus, .ff select:focus { border-color: var(--terra); box-shadow: 0 0 0 3px rgba(200,132,90,.1); }
.ff input::placeholder { color: var(--t4); }
.ff textarea { height: 80px; padding: 14px 16px; resize: vertical; }
.ff-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── RESPONSIVE ── */
@media (max-width:1100px) {
  :root { --px: 48px; }
  .g3 { grid-template-columns: repeat(2,1fr); }
  .g4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width:768px) {
  :root { --hdr-h: 60px; --px: 20px; }
  .hdr-in { padding-left: 74px; padding-right: 20px; }
  .hdr-mid { display: none; }
  .hdr-acts { gap: 14px; }
  .h-a span { display: none; }
  .sec { padding: 68px var(--px); }
  .footer { padding: 52px var(--px) 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width:540px) {
  .g3, .g4 { grid-template-columns: 1fr; }
  .g2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn-lg { height: 50px; padding: 0 28px; }
  .ff-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv, .rvl, .rvr, .rvs { opacity: 1 !important; transform: none !important; }
}