/* ============================================================
   [Nombre de la tienda] — ropa y accesorios
   Palette: cobalt + signal orange · Type: editorial serif + warm sans
   ============================================================ */

:root {
  --bg: #ffffff;
  --surface: #f2f5fb;
  --surface-2: #e7edf8;
  --ink: #0f1b33;
  --ink-soft: #3c4a63;
  --muted: #5b6b85;
  --primary: #0b3d91;
  --primary-ink: #ffffff;
  --accent: #e2560c;
  --accent-soft: #fdece2;
  --line: #dbe3f0;
  --wa: #1f7a4d;
  --wa-ink: #ffffff;
  --shadow: 0 1px 2px rgba(15, 27, 51, .06), 0 12px 32px -18px rgba(15, 27, 51, .35);
  --radius: 14px;
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 72px);
}

html[data-theme="dark"] {
  --bg: #0b1220;
  --surface: #121c2e;
  --surface-2: #17233a;
  --ink: #eef3fb;
  --ink-soft: #c3cfe2;
  --muted: #9aabc4;
  --primary: #7ba6f0;
  --primary-ink: #0b1220;
  --accent: #ff8a4c;
  --accent-soft: #2a1b12;
  --line: #24314a;
  --wa: #35c07a;
  --wa-ink: #07130c;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -20px rgba(0, 0, 0, .8);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Sans', 'Inter', system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: var(--primary-ink);
  padding: 10px 16px;
  z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: var(--accent); color: #fff; }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

.btn-wa { background: var(--wa); color: var(--wa-ink); }
.btn-wa:hover { background: var(--accent); color: #fff; }

.btn-sm { min-height: 40px; padding: 9px 16px; font-size: .875rem; }
.btn-lg { min-height: 54px; padding: 16px 30px; font-size: 1rem; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary);
  color: var(--primary-ink);
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  font-weight: 700;
}

.brand-name {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav {
  display: none;
  gap: 26px;
  font-size: .93rem;
}
.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  padding-block: 6px;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease;
}
.theme-toggle:hover { border-color: var(--primary); color: var(--primary); }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.header-actions .btn-wa { display: none; }

/* ---------- hero ---------- */

.hero {
  padding-block: clamp(40px, 6vw, 76px) clamp(56px, 8vw, 104px);
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--surface-2) 90%, transparent) 0%, transparent 60%),
    var(--bg);
}

.hero-grid {
  display: grid;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}

.eyebrow {
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.3rem, 6.2vw, 4rem);
  font-weight: 600;
  max-width: 15ch;
}

.lede {
  margin-top: 22px;
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-facts {
  list-style: none;
  margin: 38px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.hero-facts li { display: grid; gap: 2px; }
.hero-facts strong {
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  color: var(--ink);
}
.hero-facts span { font-size: .9rem; color: var(--muted); }

.hero-media {
  margin: 0;
  position: relative;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
}
.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.hero-media figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(11, 18, 32, .78);
  color: #fff;
  font-size: .78rem;
  letter-spacing: .04em;
}

/* ---------- sections ---------- */

.section { padding-block: clamp(64px, 9vw, 112px); }
.section-alt { background: var(--surface); }

.section-head {
  max-width: 62ch;
  margin-bottom: clamp(32px, 4vw, 52px);
}
.section-head h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
}
.section-head p {
  margin-top: 16px;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* ---------- categories ---------- */

.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.category {
  display: block;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  background: var(--surface-2);
  isolation: isolate;
}
.category img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .7, .1, 1);
}
.category::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 14, 26, .88) 0%, rgba(8, 14, 26, .45) 38%, rgba(8, 14, 26, 0) 70%);
  z-index: 1;
}
.category:hover img { transform: scale(1.04); }

.category-body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 18px;
  display: grid;
  gap: 4px;
  color: #fff;
}
.category-name {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  font-weight: 600;
}
.category-note { font-size: .85rem; color: rgba(255, 255, 255, .82); }

/* ---------- products ---------- */

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
}

.product {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.product:hover {
  border-color: color-mix(in srgb, var(--primary) 40%, var(--line));
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.product img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--surface-2);
}

.product-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 18px 20px;
  flex: 1;
}
.product-body h3 {
  font-size: 1.12rem;
  font-weight: 600;
}
.product-desc {
  font-size: .92rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.product-meta {
  font-size: .8rem;
  letter-spacing: .02em;
  color: var(--muted);
}

.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.price {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
}

.catalogue-note {
  margin-top: clamp(28px, 4vw, 44px);
  padding: 20px 24px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink-soft);
  max-width: 70ch;
  font-size: .95rem;
}

/* ---------- steps ---------- */

.steps {
  list-style: none;
  margin: 0 0 clamp(36px, 5vw, 56px);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
  counter-reset: step;
}
.steps li {
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}
.step-num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-ink);
  font-family: 'Fraunces', serif;
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.steps h3 { font-size: 1.08rem; margin-bottom: 8px; }
.steps p { font-size: .92rem; color: var(--ink-soft); }

.order-band {
  display: grid;
  gap: 22px;
  align-items: center;
  padding: clamp(26px, 4vw, 44px);
  border-radius: calc(var(--radius) + 6px);
  background: var(--primary);
  color: var(--primary-ink);
}
.order-band h3 {
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  color: var(--primary-ink);
  margin-bottom: 10px;
}
.order-band p {
  color: color-mix(in srgb, var(--primary-ink) 82%, transparent);
  max-width: 58ch;
  font-size: .97rem;
}
.order-band .btn-primary {
  background: var(--accent);
  color: #fff;
  justify-self: start;
}
.order-band .btn-primary:hover { background: #fff; color: var(--primary); }

.info-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
  margin-top: clamp(32px, 4vw, 48px);
}
.info h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.info p { font-size: .92rem; color: var(--ink-soft); }

/* ---------- split / about ---------- */

.split {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.split-media {
  margin: 0;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.split-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.split-copy h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  margin-bottom: 20px;
}
.split-copy p {
  color: var(--ink-soft);
  margin-bottom: 16px;
  max-width: 62ch;
}

.plain-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.plain-list li {
  position: relative;
  padding-left: 26px;
  font-size: .95rem;
  color: var(--ink);
}
.plain-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .55em;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--accent);
}

/* ---------- faq ---------- */

.faq {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  max-width: 78ch;
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 44px 20px 0;
  position: relative;
  font-family: 'Fraunces', serif;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'DM Sans', sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform .2s ease;
}
.faq details[open] summary::after { content: '–'; }
.faq summary:hover { color: var(--primary); }
.faq details p {
  padding: 0 0 22px;
  color: var(--ink-soft);
  font-size: .96rem;
  max-width: 68ch;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding-block: clamp(44px, 6vw, 72px) 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(24px, 4vw, 48px);
}

.footer-brand .brand-name {
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.footer-note {
  font-size: .9rem;
  color: var(--muted);
  max-width: 34ch;
}

.footer-col { display: grid; gap: 8px; align-content: start; }
.footer-col h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.footer-col a, .footer-col p {
  font-size: .92rem;
  color: var(--ink-soft);
  text-decoration: none;
}
.footer-col a:hover { color: var(--primary); text-decoration: underline; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: clamp(32px, 4vw, 52px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: .82rem;
  color: var(--muted);
}

.attribution { font-size: .8rem; }
.attribution a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.attribution a:hover { color: var(--ink); }

/* ---------- responsive ---------- */

@media (min-width: 760px) {
  .hero-facts {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .order-band {
    grid-template-columns: 1fr auto;
    gap: 32px;
  }
  .order-band .btn-primary { justify-self: end; }
  .split { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 980px) {
  .nav { display: flex; }
  .header-actions .btn-wa { display: inline-flex; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
  .hero-media img { aspect-ratio: 3 / 4; }
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    animation: rise .7s cubic-bezier(.2, .7, .1, 1) both;
  }
  .hero-copy > *:nth-child(1) { animation-delay: .05s; }
  .hero-copy > *:nth-child(2) { animation-delay: .15s; }
  .hero-copy > *:nth-child(3) { animation-delay: .25s; }
  .hero-copy > *:nth-child(4) { animation-delay: .35s; }
  .hero-copy > *:nth-child(5) { animation-delay: .45s; }

  .hero-media {
    animation: fadein .9s ease both;
    animation-delay: .2s;
  }

  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
  }
  @keyframes fadein {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}

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