/* ==========================================================================
   CENIZA — Sistema de diseño
   "Diseño que arde despacio."
   Paleta: negro cálido + oro viejo (brasa) + acento ember
   Tipografía: Fraunces (display) / Manrope (texto) / Space Mono (utilidad)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400&family=Manrope:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root{
  /* color */
  --bg:            #0a0a0b;
  --surface:       #141416;
  --surface-alt:   #1c1c1f;
  --border:        #2a2a2d;
  --border-soft:   #202023;
  --text:          #f2efe9;
  --text-muted:    #8c887e;
  --text-faint:    #55524b;
  --gold:          #c9a15a;
  --gold-bright:   #e8c46f;
  --ember:         #d9772e;
  --ember-bright:  #f0975a;
  --success:       #7a9b76;

  /* type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', -apple-system, sans-serif;
  --font-mono: 'Space Mono', monospace;

  /* layout */
  --max-w: 1320px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 2px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  background-image:
    radial-gradient(ellipse at top, rgba(201,161,90,0.05), transparent 60%);
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family:inherit; cursor:pointer; }
input,textarea,select{ font-family:inherit; font-size:1rem; }

::selection{ background:var(--gold); color:#0a0a0b; }

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible{
  outline:1.5px solid var(--gold-bright);
  outline-offset:3px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; scroll-behavior:auto !important; }
}

.wrap{ max-width:var(--max-w); margin:0 auto; padding-left:var(--gutter); padding-right:var(--gutter); }

/* ---------- eyebrow / labels ---------- */
.eyebrow{
  font-family:var(--font-mono);
  font-size:.7rem;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--gold);
  display:inline-flex;
  align-items:center;
  gap:.55em;
}
.eyebrow::before{
  content:'';
  width:6px; height:6px;
  border-radius:50%;
  background:var(--ember);
  box-shadow:0 0 8px 1px var(--ember);
  flex-shrink:0;
}

/* ---------- headings ---------- */
h1,h2,h3,h4{ font-family:var(--font-display); font-weight:500; margin:0; letter-spacing:-.01em; }
h1{ font-size:clamp(2.6rem, 5.5vw, 4.6rem); line-height:1.02; font-weight:400; }
h2{ font-size:clamp(1.9rem, 3.4vw, 2.8rem); line-height:1.08; }
h3{ font-size:1.3rem; }
p{ margin:0; }
.serif-italic{ font-style:italic; font-weight:400; }

/* ---------- ash divider (signature) ---------- */
.ash-line{
  height:1px;
  width:100%;
  background:linear-gradient(90deg, var(--gold) 0%, transparent 55%);
  opacity:.5;
}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.6em;
  font-family:var(--font-mono);
  font-size:.78rem;
  letter-spacing:.1em;
  text-transform:uppercase;
  padding:1rem 1.9rem;
  border:1px solid var(--gold);
  color:var(--text);
  background:transparent;
  border-radius:var(--radius);
  transition:background .35s ease, color .35s ease, box-shadow .35s ease, border-color .35s ease;
  white-space:nowrap;
}
.btn:hover{
  background:var(--gold);
  color:#0a0a0b;
  box-shadow:0 0 24px -4px rgba(201,161,90,.6);
}
.btn-solid{ background:var(--gold); color:#0a0a0b; }
.btn-solid:hover{ background:var(--gold-bright); border-color:var(--gold-bright); }
.btn-ghost{ border-color:var(--border); }
.btn-ghost:hover{ background:var(--surface-alt); color:var(--text); box-shadow:none; border-color:var(--gold); }
.btn-block{ width:100%; }
.btn:disabled{ opacity:.4; cursor:not-allowed; }
.btn:disabled:hover{ background:transparent; color:var(--text); box-shadow:none; }

.link-underline{
  position:relative;
  padding-bottom:.2em;
}
.link-underline::after{
  content:'';
  position:absolute; left:0; right:0; bottom:0;
  height:1px; background:var(--gold);
  transform:scaleX(0); transform-origin:right;
  transition:transform .4s ease;
}
.link-underline:hover::after{ transform:scaleX(1); transform-origin:left; }

/* ==========================================================================
   NAV
   ========================================================================== */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(10,10,11,.86);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border-soft);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:1.15rem 0;
}
.nav-logo{
  font-family:var(--font-display);
  font-size:1.5rem;
  letter-spacing:.04em;
}
.nav-logo span{ color:var(--gold); }
.nav-links{
  display:flex; gap:2.4rem;
  font-family:var(--font-mono);
  font-size:.72rem;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.nav-links a{ opacity:.78; transition:opacity .25s ease; }
.nav-links a:hover, .nav-links a.active{ opacity:1; color:var(--gold-bright); }
.nav-actions{ display:flex; align-items:center; gap:1.4rem; }
.nav-cart{ position:relative; display:flex; align-items:center; gap:.5rem; font-family:var(--font-mono); font-size:.78rem; }
.cart-count{
  background:var(--ember); color:#0a0a0b;
  font-size:.68rem; font-weight:700;
  width:1.15rem; height:1.15rem;
  border-radius:50%;
  display:inline-flex; align-items:center; justify-content:center;
}
.nav-burger{ display:none; background:none; border:0; color:var(--text); }

@media (max-width: 860px){
  .nav-links{
    display:none;
    position:absolute; top:100%; left:0; right:0;
    flex-direction:column; gap:0;
    background:var(--bg); border-bottom:1px solid var(--border-soft);
    padding:.5rem var(--gutter) 1.5rem;
  }
  .nav-links.nav-links--open{ display:flex; }
  .nav-links a{ padding:.9rem 0; border-bottom:1px solid var(--border-soft); }
  .nav-burger{ display:block; }
  .site-header{ position:sticky; }
  .nav{ position:relative; }
}

/* ==========================================================================
   IMAGE PLACEHOLDERS
   ========================================================================== */
.ph{
  position:relative;
  width:100%; height:100%;
  min-height:200px;
  background:
    repeating-linear-gradient(135deg, #17171a, #17171a 12px, #1c1c1f 12px, #1c1c1f 24px);
  border:1px dashed var(--border);
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
}
div.ph::before{
  content:'IMG';
  position:absolute;
  font-family:var(--font-mono);
  font-size:.65rem;
  letter-spacing:.15em;
  color:var(--text-faint);
  top:.6rem; left:.7rem;
}
img.ph{
  object-fit:cover;
  object-position:center top;
  background:var(--surface);
  border:1px solid var(--border-soft);
}
.ph__label{
  font-family:var(--font-mono);
  font-size:.68rem;
  line-height:1.6;
  letter-spacing:.03em;
  color:var(--text-muted);
  text-align:center;
  padding:1.2rem;
  max-width:26ch;
}
.ph__label b{ color:var(--gold); display:block; font-size:.72rem; letter-spacing:.08em; margin-bottom:.35em; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer{
  border-top:1px solid var(--border-soft);
  margin-top:8rem;
  padding:5rem 0 2rem;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr 1.3fr;
  gap:3rem;
  padding-bottom:3.5rem;
}
.footer-brand .nav-logo{ margin-bottom:1rem; }
.footer-brand p{ color:var(--text-muted); font-size:.9rem; max-width:32ch; }
.footer-col h4{
  font-family:var(--font-mono); font-size:.7rem; letter-spacing:.14em;
  text-transform:uppercase; color:var(--gold); margin-bottom:1.2rem; font-weight:400;
}
.footer-col ul{ display:flex; flex-direction:column; gap:.7rem; }
.footer-col a{ color:var(--text-muted); font-size:.9rem; transition:color .25s; }
.footer-col a:hover{ color:var(--text); }
.footer-newsletter form{ display:flex; border-bottom:1px solid var(--border); padding-bottom:.6rem; }
.footer-newsletter input{
  background:none; border:0; color:var(--text); flex:1; font-size:.9rem; padding:.3rem 0;
}
.footer-newsletter input::placeholder{ color:var(--text-faint); }
.footer-newsletter button{ background:none; border:0; color:var(--gold); font-family:var(--font-mono); font-size:.75rem; letter-spacing:.08em; }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center;
  padding-top:2rem; border-top:1px solid var(--border-soft);
  font-family:var(--font-mono); font-size:.7rem; color:var(--text-faint); letter-spacing:.05em;
}
.footer-social{ display:flex; gap:1.2rem; }
.footer-social a{ color:var(--text-faint); }
.footer-social a:hover{ color:var(--gold); }

@media (max-width: 900px){
  .footer-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width: 560px){
  .footer-grid{ grid-template-columns:1fr; }
  .footer-bottom{ flex-direction:column; gap:1rem; align-items:flex-start; }
}

/* ==========================================================================
   PRODUCT CARD
   ========================================================================== */
.product-card{ display:block; }
.product-card__img{ aspect-ratio:3/4; margin-bottom:1rem; }
.product-card__row{ display:flex; justify-content:space-between; align-items:baseline; gap:1rem; }
.product-card__name{ font-family:var(--font-display); font-size:1.05rem; font-weight:400; }
.product-card__code{ font-family:var(--font-mono); font-size:.65rem; color:var(--text-faint); letter-spacing:.05em; }
.product-card__price{ font-family:var(--font-mono); font-size:.85rem; color:var(--gold); white-space:nowrap; }
.product-card__meta{ display:flex; justify-content:space-between; margin-top:.3rem; }

/* ==========================================================================
   SECTION helpers
   ========================================================================== */
section{ padding:6rem 0; }
.section-head{ display:flex; justify-content:space-between; align-items:flex-end; gap:2rem; margin-bottom:3.5rem; }
.section-head p{ color:var(--text-muted); max-width:38ch; }

@media (max-width: 700px){
  section{ padding:4rem 0; }
  .section-head{ flex-direction:column; align-items:flex-start; gap:1rem; }
}

/* ==========================================================================
   BREADCRUMB
   ========================================================================== */
.breadcrumb{
  font-family:var(--font-mono); font-size:.72rem; letter-spacing:.05em;
  color:var(--text-faint); padding:1.6rem 0 0;
}
.breadcrumb a{ color:var(--text-muted); }
.breadcrumb a:hover{ color:var(--gold); }

/* ==========================================================================
   PAGE HERO (secondary pages)
   ========================================================================== */
.page-hero{ padding:3rem 0 4rem; }
.page-hero .eyebrow{ margin-bottom:1.2rem; }
.page-hero p{ color:var(--text-muted); max-width:52ch; margin-top:1.2rem; font-size:1.05rem; }

/* ==========================================================================
   FORMS
   ========================================================================== */
.field{ display:flex; flex-direction:column; gap:.55rem; margin-bottom:1.5rem; }
.field label{ font-family:var(--font-mono); font-size:.68rem; letter-spacing:.1em; text-transform:uppercase; color:var(--text-muted); }
.field input, .field select, .field textarea{
  background:var(--surface); border:1px solid var(--border);
  color:var(--text); padding:.9rem 1rem; border-radius:var(--radius);
  transition:border-color .25s;
}
.field input:focus, .field select:focus, .field textarea:focus{ border-color:var(--gold); outline:none; }
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:1.5rem; }
@media (max-width:600px){ .field-row{ grid-template-columns:1fr; } }

/* ==========================================================================
   RESPONSIVE GRID PATTERNS (home, catálogo, lookbook, checkout, etc.)
   ========================================================================== */
.hero-grid{ display:grid; grid-template-columns:1.1fr .9fr; gap:3rem; align-items:end; }
.grid-4{ display:grid; grid-template-columns:repeat(4,1fr); gap:2.4rem; }
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:2.5rem; }
.lookbook-grid{ display:grid; grid-template-columns:1.3fr 1fr 1fr; gap:1.5rem; }
.newsletter-banner{ display:flex; justify-content:space-between; align-items:center; gap:2rem; flex-wrap:wrap; }

@media (max-width: 980px){
  .hero-grid{ grid-template-columns:1fr; }
  .hero-grid .ph{ order:-1; aspect-ratio:16/10 !important; }
  .grid-4{ grid-template-columns:repeat(2,1fr); }
  .grid-3{ grid-template-columns:1fr; gap:2rem; }
  .lookbook-grid{ grid-template-columns:1fr 1fr; }
  .lookbook-grid > div:first-child, .lookbook-grid > div:last-child{ grid-column:span 2; }
}
@media (max-width: 560px){
  .grid-4{ grid-template-columns:1fr; }
  .lookbook-grid{ grid-template-columns:1fr; }
  .lookbook-grid > div{ grid-column:span 1 !important; }
}

/* utility */
.text-muted{ color:var(--text-muted); }
.mt-0{ margin-top:0; }
.center{ text-align:center; }
