/* Hilo Norte — demo de tienda de ropa (YCOS) */
:root {
  --bg: #f5f1ea;
  --bg-alt: #ebe4d8;
  --ink: #1d1b18;
  --muted: #5f5a52;
  --line: rgb(29 27 24 / 0.14);
  --accent: #a4472a;
  --accent-ink: #fff;
  --radius: 4px;
  --header-h: 68px;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.6 var(--sans); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--bg); text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.eyebrow { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.75rem; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.4rem; border-radius: var(--radius); font-weight: 500; font-size: 0.95rem; text-decoration: none; border: 1px solid transparent; transition: background-color .2s, color .2s, border-color .2s; }
.btn--light { background: var(--bg); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--ghost { border-color: rgb(255 255 255 / 0.7); color: #fff; }
.btn--ghost:hover { background: rgb(255 255 255 / 0.12); }
.btn--dark { background: var(--ink); color: var(--bg); }
.btn--dark:hover { background: var(--accent); }

/* Aviso de sitio de ejemplo */
.demo-note { margin: 0; padding: 0.45rem 20px; background: var(--ink); color: var(--bg); font-size: 0.8rem; text-align: center; }
.demo-note a { color: inherit; font-weight: 600; }

/* Header */
.header { position: sticky; top: 0; z-index: 20; background: rgb(245 241 234 / 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.brand { font-family: var(--serif); font-size: 1.75rem; line-height: 1; text-decoration: none; letter-spacing: -0.01em; margin: 0; }
.brand span { font-style: italic; color: var(--accent); margin-left: 0.15em; }
.brand--small { font-size: 1.4rem; }
.nav { display: flex; gap: 1.75rem; margin-left: auto; }
.nav a { text-decoration: none; font-size: 0.95rem; padding: 0.5rem 0; border-bottom: 1px solid transparent; }
.nav a:hover { border-bottom-color: currentColor; }
.header__actions { display: flex; align-items: center; gap: 0.5rem; }
.header-cart:empty { display: none; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.menu-toggle span[aria-hidden], .menu-toggle span[aria-hidden]::before, .menu-toggle span[aria-hidden]::after { position: absolute; left: 11px; width: 22px; height: 1.5px; background: var(--ink); content: ""; transition: transform .2s; }
.menu-toggle span[aria-hidden] { top: 21px; }
.menu-toggle span[aria-hidden]::before { left: 0; top: -7px; }
.menu-toggle span[aria-hidden]::after { left: 0; top: 7px; }
.menu-toggle[aria-expanded="true"] span[aria-hidden] { background: transparent; }
.menu-toggle[aria-expanded="true"] span[aria-hidden]::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span[aria-hidden]::after { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: #2b2722; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(20 18 15 / 0.1) 30%, rgb(20 18 15 / 0.72)); }
.hero__content { position: relative; z-index: 1; padding-block: 4rem 4.5rem; }
.hero .eyebrow { color: rgb(255 255 255 / 0.8); }
.hero h1 { font-family: var(--serif); font-size: clamp(3rem, 9vw, 6.5rem); line-height: 0.95; letter-spacing: -0.02em; max-width: 12ch; }
.hero h1 em { color: #f0c9b6; }
.hero__lead { max-width: 44ch; font-size: 1.1rem; margin-top: 1.25rem; color: rgb(255 255 255 / 0.9); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* Beneficios */
.perks { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.perks li { padding: 1.5rem 1.25rem 1.5rem 0; display: grid; gap: 0.15rem; }
.perks li + li { padding-left: 1.25rem; border-left: 1px solid var(--line); }
.perks strong { font-weight: 600; font-size: 0.95rem; }
.perks span { color: var(--muted); font-size: 0.9rem; }

/* Secciones */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--alt { background: var(--bg-alt); }
.section__head { margin-bottom: 2rem; }
.section h2 { font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.05; letter-spacing: -0.01em; }
.section__lead { color: var(--muted); margin-top: 0.75rem; }

/* Catálogo de YCOS: se adapta a la marca con sus variables */
body .ycos-prod { --ycos-accent: var(--ink); --ycos-border: var(--line); --ycos-bg: var(--bg); --ycos-card-bg: #fff; --ycos-text: var(--ink); --ycos-muted: var(--muted); }

/* Nosotros */
.split { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split__img { width: 100%; aspect-ratio: 9 / 11; object-fit: cover; border-radius: var(--radius); background: #d8cfc1; }
.split__text h2 { margin-bottom: 1.25rem; }
.split__text p { color: #3c3832; max-width: 52ch; }

/* Contacto */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact h2 { margin-bottom: 1rem; }
.contact__address { color: var(--muted); margin-bottom: 1.5rem; }
.contact__hours { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.contact__hours h3 { font-family: var(--serif); font-size: 1.6rem; margin-bottom: 0.75rem; }
.contact__hours .ycos-hours { width: 100%; }

/* Pie */
.footer { border-top: 1px solid var(--line); padding-block: 2rem 6rem; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; justify-content: space-between; }
.footer__note { color: var(--muted); font-size: 0.85rem; margin: 0; }
.footer__ycos { font-size: 0.85rem; color: var(--muted); }

/* WhatsApp flotante */
.wa-float { position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: max(18px, env(safe-area-inset-bottom, 0px)); z-index: 30; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #1f8a4c; color: #fff; box-shadow: 0 6px 18px rgb(0 0 0 / 0.2); }
.wa-float:hover { background: #18723e; }

/* Celular */
@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; margin: 0; padding: 0.5rem 20px 1rem; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
  .header__actions { margin-left: auto; }
  .perks { grid-template-columns: 1fr; }
  .perks li, .perks li + li { padding: 1rem 0; border-left: 0; }
  .perks li + li { border-top: 1px solid var(--line); }
  .split, .contact { grid-template-columns: 1fr; }
  .split__img { aspect-ratio: 4 / 3; }
  .hero__content { padding-block: 3rem 6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
