/* ==========================================================
   Nohemy's Boutique — styles.css
   Sistema de diseño tomado de la app de la boutique (DESIGN.md):
   Antique Gold + Petal Blush sobre superficies claras, Playfair solo en títulos,
   Inter para el texto, JetBrains Mono para números, esquinas de 12 px,
   y una sola sombra suave color blush. Mobile-first.
   ========================================================== */

/* ---------- 1. VARIABLES ---------- */
:root {
  --crema: #FEFAF3;            /* fondo de página (gold.warm de la app) */
  --superficie: #FAFAFA;       /* tarjetas */
  --blush: #F2C4CE;
  --blush-claro: #F8E1E7;
  --blush-oscuro: #E8A0B0;
  --oro: #C9A84C;              /* única acción: botones */
  --oro-hover: #B8963E;
  --oro-claro: #E8D5A3;
  --oro-texto: #7A6424;        /* oro oscuro: texto sobre fondo claro (contraste AA) */
  --tinta: #2C2C2C;
  --suave: #626262;            /* texto secundario */

  --f-titulo: "Playfair Display", Georgia, serif;
  --f-texto: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", "Courier New", monospace;

  --radio: 12px;
  --brillo: 0 2px 8px rgba(242, 196, 206, .3);   /* la única sombra */
  --contenedor: 1180px;
  --nav-h: 68px;
  --curva: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 2. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { background: var(--crema); color: var(--tinta); font-family: var(--f-texto); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none; }
h1, h2, h3 { font-family: var(--f-titulo); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; }
h1 em, h2 em, .brand em { font-style: italic; font-weight: 500; }
::selection { background: var(--blush); color: var(--tinta); }
:focus-visible { outline: 2px solid var(--oro-texto); outline-offset: 3px; border-radius: 4px; }
.mono { font-family: var(--f-mono); font-weight: 500; }

.container { width: 100%; max-width: var(--contenedor); margin: 0 auto; padding: 0 max(22px, env(safe-area-inset-left)); }
section { padding: 64px 0; }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(30px, 6vw, 44px); }
.section-head h2::after { content: ""; display: block; width: 44px; height: 1px; background: var(--oro); margin: 16px auto 0; }
.section-head p { color: var(--suave); margin-top: 14px; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 400; padding: 10px 16px; border-radius: var(--radio); background: var(--oro); color: var(--tinta); font-weight: 600; transition: top .2s var(--curva); }
.skip:focus { top: 12px; }

/* ---------- 3. BOTONES (solo cambian de color; el oro es la única acción) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px; border-radius: var(--radio); font-family: var(--f-texto); font-size: 16px; font-weight: 600; border: 1px solid transparent; cursor: pointer; transition: background-color .2s var(--curva), color .2s var(--curva), border-color .2s var(--curva); }
.btn-primary { background: var(--oro); color: var(--tinta); }
.btn-primary:hover { background: var(--oro-hover); }
.btn-secondary { background: #fff; color: var(--oro-texto); border-color: var(--oro); }
.btn-secondary:hover { background: var(--blush-claro); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.btn-lg { min-height: 54px; padding: 12px 30px; font-size: 17px; }

/* ---------- 4. MENÚ ---------- */
.navbar { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h); background: var(--crema); border-bottom: 1px solid transparent; transition: border-color .3s var(--curva); }
.navbar.scrolled { border-bottom-color: var(--blush); }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-titulo); font-weight: 600; font-size: 20px; letter-spacing: -0.01em; white-space: nowrap; }
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.nav-links { display: none; gap: 32px; font-size: 15px; font-weight: 500; }
.nav-links a { color: var(--tinta); transition: color .2s var(--curva); }
.nav-links a:hover, .nav-links a.active { color: var(--oro-texto); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-toggle { width: 44px; height: 44px; background: #fff; border: 1px solid var(--blush); border-radius: var(--radio); color: var(--tinta); cursor: pointer; display: grid; place-items: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; content: ""; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-links.open { display: flex; flex-direction: column; gap: 0; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--crema); border-bottom: 1px solid var(--blush); padding: 4px 22px 12px; }
.nav-links.open a { min-height: 54px; display: flex; align-items: center; font-size: 18px; border-bottom: 1px solid var(--blush-claro); }
.nav-links.open a:last-child { border-bottom: 0; }

/* ---------- 5. PORTADA ----------
   En escritorio todo se mide en "unidades de marco" (--u): el marco mide 1440 × 1000 u y se reduce
   para caber en pantalla. En celular (≤ 820 px) la portada pasa a una columna. */
.hero { padding-top: var(--nav-h); background: var(--crema); overflow: hidden; }
.stage { --u: min(calc(100vw / 1440), calc((100svh - var(--nav-h)) / 1000)); position: relative; width: calc(var(--u) * 1440); height: calc(var(--u) * 1000); margin: 0 auto; }
.stage > * { position: absolute; }
.badge { left: 0; right: 0; margin: 0 auto; width: fit-content; top: calc(var(--u) * 38); white-space: nowrap; display: flex; align-items: center; height: calc(var(--u) * 40); padding: 0 calc(var(--u) * 24); border-radius: 999px; background: var(--blush-claro); color: var(--oro-texto); font-weight: 500; font-size: calc(var(--u) * 16.6); }
.hero h1 { left: 0; right: 0; top: calc(var(--u) * 100); text-align: center; font-size: calc(var(--u) * 88); line-height: calc(var(--u) * 92); letter-spacing: -0.02em; margin: 0; }
.h-line { display: block; }
.hero h1 em { color: var(--oro-texto); }
.hero-sub { left: calc(var(--u) * 400); top: calc(var(--u) * 306); width: calc(var(--u) * 640); text-align: center; font-size: calc(var(--u) * 20.8); line-height: calc(var(--u) * 32); color: var(--suave); }

/* Carrusel curvo de fotos */
.deck { left: 0; top: calc(var(--u) * 400); width: calc(var(--u) * 1440); height: calc(var(--u) * 440); overflow: hidden; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.deck.grabbing { cursor: grabbing; }
.card { position: absolute; display: block; background: var(--blush-claro); -webkit-tap-highlight-color: transparent; }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.card-tag { position: absolute; left: 0; top: 0; padding: calc(var(--u) * 5) calc(var(--u) * 14); border-radius: 999px; background: #fff; color: var(--tinta); font-size: max(11px, calc(var(--u) * 14)); font-weight: 600; line-height: 1.3; white-space: nowrap; }
/* Sin JavaScript: fila que se desliza con el dedo */
html:not(.js) .deck, .deck:not(.curved) { display: flex; gap: 12px; overflow-x: auto; }
html:not(.js) .card, .deck:not(.curved) .card { position: relative; flex: 0 0 170px; height: 280px; border-radius: 15px; overflow: hidden; }
html:not(.js) .card-tag, .deck:not(.curved) .card-tag { left: 10px; top: auto; bottom: 10px; }

/* Garabatos y notas a mano */
.doodles { left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.doodles path { fill: none; stroke: var(--oro-texto); stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.note { font-family: "Caveat", "Segoe Script", cursive; font-weight: 600; color: var(--oro-texto); font-size: calc(var(--u) * 38); line-height: 1; pointer-events: none; white-space: nowrap; }
.note-a { left: calc(var(--u) * 1196); top: calc(var(--u) * 208); transform: rotate(14deg); }
.note-b { left: calc(var(--u) * 318); top: calc(var(--u) * 868); transform: rotate(-9deg); }

/* Botón con aro punteado */
.cta-wrap { left: calc(var(--u) * 570); top: calc(var(--u) * 862); display: grid; place-items: center; width: calc(var(--u) * 300); height: calc(var(--u) * 74); border: 1.5px dashed var(--oro-texto); border-radius: 999px; }
.btn-hero { min-height: 0; height: calc(var(--u) * 58); padding: 0 calc(var(--u) * 30); font-size: max(14px, calc(var(--u) * 17)); border-radius: 999px; white-space: nowrap; }
.see-more { left: 0; right: 0; width: fit-content; margin: 0 auto; top: calc(var(--u) * 952); white-space: nowrap; font-size: max(13px, calc(var(--u) * 16)); font-weight: 500; color: var(--oro-texto); }
.see-more:hover { text-decoration: underline; }

/* Celular: una columna, con el mismo carrusel curvo en una franja de 250 px */
@media (max-width: 820px) {
  .hero { padding-bottom: 30px; }
  .stage { width: 100%; height: auto; display: flex; flex-direction: column; align-items: center; padding: 26px 22px 0; --u: calc(100vw / 640); }
  .stage > * { position: static; }
  .badge { margin: 0; width: auto; height: auto; padding: 7px 16px; font-size: 13.5px; text-align: center; white-space: normal; }
  .hero h1 { margin: 18px 0 14px; font-size: clamp(38px, 10.6vw, 56px); line-height: 1.08; }
  .hero-sub { width: 100%; max-width: 440px; font-size: 16.5px; line-height: 1.6; margin-bottom: 18px; }
  .deck { position: relative; top: auto; left: auto; width: calc(100% + 44px); margin: 0 -22px; height: 250px; flex: none; }
  .doodles, .note-a { display: none; }
  .note-b { display: block; transform: rotate(-6deg); font-size: 26px; margin: 12px 0 0; }
  .cta-wrap { width: min(100%, 340px); height: 70px; margin: 8px 0 0; }
  .btn-hero { height: 52px; padding: 0 24px; font-size: 16px; }
  .see-more { margin: 12px 0 0; width: auto; font-size: 15px; }
}

/* ---------- 6. COLECCIONES ---------- */
.collections { background: var(--superficie); border-block: 1px solid var(--blush-claro); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { display: flex; flex-direction: column; height: 100%; overflow: hidden; background: #fff; border: 1px solid var(--blush); border-radius: var(--radio); box-shadow: var(--brillo); transition: border-color .2s var(--curva), background-color .2s var(--curva); }
.tile:hover { border-color: var(--oro); background: var(--blush-claro); }
.tile-foto { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--blush-claro); }
.tile-body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 18px; }
.tile-n { font-family: var(--f-mono); font-weight: 500; font-size: 13px; color: var(--oro-texto); }
.tile h3 { font-size: 22px; margin: 6px 0 6px; }
.tile p { color: var(--suave); font-size: 14.5px; line-height: 1.5; flex: 1; }
.tile-go { margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--oro-texto); }
.tile-go::after { content: " →"; }

/* ---------- 8. NOSOTRAS ---------- */
.about { background: var(--blush-claro); }
.about-grid { display: grid; gap: 18px; }
.about h2 { font-size: clamp(30px, 6vw, 44px); text-align: center; }
.about p { max-width: 560px; margin: 0 auto 14px; text-align: center; color: var(--tinta); }

/* ---------- 9. CONTACTO ---------- */
.contact-box { text-align: center; }
.contact h2 { font-size: clamp(30px, 6vw, 46px); margin-bottom: 10px; }
.contact-box > p { color: var(--suave); margin-bottom: 26px; }
.contact-data { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; margin-top: 34px; }
.contact-data small { display: block; font-size: 13px; color: var(--suave); }
.contact-data a, .contact-data span { font-size: 17px; }
.contact-data a { color: var(--oro-texto); font-weight: 600; }

/* ---------- 10. PIE ---------- */
.footer { border-top: 1px solid var(--blush); padding: 36px 0 24px; background: var(--crema); }
.footer-grid { display: grid; gap: 16px; justify-items: center; text-align: center; }
.footer-links { display: flex; gap: 6px 26px; flex-wrap: wrap; justify-content: center; font-size: 15px; color: var(--suave); }
.footer-links a { padding: 8px 0; transition: color .2s var(--curva); }
.footer-links a:hover { color: var(--oro-texto); }
.copy { font-size: 14px; color: var(--suave); }
.copy a { color: var(--oro-texto); font-weight: 600; }

/* ---------- 11. BOTÓN FLOTANTE DE WHATSAPP ---------- */
.wa-float { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 150; display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 20px 0 16px; border-radius: 999px; background: var(--oro); color: var(--tinta); font-weight: 600; font-size: 16px; box-shadow: var(--brillo); opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .2s var(--curva), transform .2s var(--curva), background-color .2s var(--curva); }
.wa-float.show { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:hover { background: var(--oro-hover); }
.wa-float svg { width: 24px; height: 24px; fill: currentColor; }

/* ---------- 12. ENTRADA SUAVE (solo con JavaScript) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--curva), transform .6s var(--curva); }
.js .reveal.visible { opacity: 1; transform: none; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 380px) {
  .brand { font-size: 17px; }
  .brand img { width: 38px; height: 38px; }
  .nav-right .btn-sm { padding: 8px 12px; font-size: 14px; }
}
@media (min-width: 768px) {
  body { font-size: 16px; }
  section { padding: 96px 0; }
  .container { padding: 0 36px; }
  .nav-toggle { display: none; }
  .nav-links { display: flex; }
  .tiles { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .tile-body { padding: 18px 20px 22px; }
  .tile h3 { font-size: 26px; }
  .tile p { font-size: 15px; }
  .about-grid { grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }
  .about h2 { text-align: left; }
  .about p { text-align: left; margin-left: 0; }
  .footer-grid { grid-template-columns: 1fr auto 1fr; justify-items: start; text-align: left; align-items: center; }
  .footer-links { justify-self: center; }
  .copy { justify-self: end; text-align: right; }
}
@media (max-width: 767px) { body { padding-bottom: 76px; } }  /* el botón flotante no tapa el final */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* En celular el botón del menú se quita: el nombre debe verse completo y ya hay botón en la portada y el flotante */
@media (max-width: 767px) { .nav-right .btn-sm { display: none; } }

/* ---------- Página de créditos ---------- */
.credits { padding-top: calc(var(--nav-h) + 40px); }
.credits h1 { font-size: clamp(32px, 6vw, 46px); margin-bottom: 12px; }
.credits .lead { color: var(--suave); max-width: 640px; margin-bottom: 32px; }
.credit-list { display: grid; gap: 14px; margin-bottom: 36px; }
.credit-list li { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: center; padding: 14px; background: #fff; border: 1px solid var(--blush); border-radius: var(--radio); box-shadow: var(--brillo); }
.credit-list img { width: 72px; height: 90px; object-fit: cover; border-radius: 8px; }
.credit-list h2 { font-size: 20px; margin-bottom: 4px; }
.credit-list p { font-size: 14.5px; color: var(--suave); line-height: 1.5; }
.credit-list a { color: var(--oro-texto); font-weight: 600; text-decoration: underline; }

/* ---------- Arma tu look (interactivo) ---------- */
.look { background: var(--crema); }
.look-grid { display: grid; gap: 22px; max-width: 980px; margin: 0 auto; }
.look-step { border: 0; padding: 0; min-width: 0; }
.look-step legend, .look-note label { display: block; font-family: var(--f-titulo); font-weight: 600; font-size: 20px; line-height: 1.3; margin-bottom: 12px; padding: 0; }
.look-step legend .mono, .look-note label .mono { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 8px; border-radius: 50%; background: var(--blush-claro); color: var(--oro-texto); font-size: 13px; vertical-align: 2px; }
.look-note small { font-family: var(--f-texto); font-weight: 400; font-size: 14px; color: var(--suave); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border: 1px solid var(--blush); border-radius: 999px; background: #fff; color: var(--tinta); font-weight: 500; font-size: 15.5px; transition: background-color .2s var(--curva), border-color .2s var(--curva), color .2s var(--curva); }
.chip:hover span { border-color: var(--oro); }
.chip input:checked + span { background: var(--blush); border-color: var(--oro); color: var(--tinta); font-weight: 600; }
.chip input:checked + span::before { content: "✓"; margin-right: 8px; color: var(--oro-texto); font-weight: 700; }
.chip input:focus-visible + span { outline: 2px solid var(--oro-texto); outline-offset: 3px; }
.look-note input { width: 100%; min-height: 50px; padding: 0 16px; border: 1px solid var(--oro-claro); border-radius: var(--radio); background: #fff; color: var(--tinta); font-family: var(--f-texto); font-size: 16px; }
.look-note input::placeholder { color: #767676; }
.look-note input:focus { outline: 2px solid var(--blush); outline-offset: 0; border-color: var(--oro); }
.look-side { background: #fff; border: 1px solid var(--blush); border-radius: var(--radio); box-shadow: var(--brillo); padding: 18px; }
.look-side-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.look-side h3 { font-size: 20px; }
.look-count { font-size: 13px; color: var(--oro-texto); }
.look-empty { color: var(--suave); font-size: 15px; padding: 26px 8px; text-align: center; }
.look-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.look-preview li { position: relative; border-radius: 10px; overflow: hidden; background: var(--blush-claro); opacity: 0; transform: scale(.94); transition: opacity .35s var(--curva), transform .35s var(--curva); }
.look-preview li.on { opacity: 1; transform: none; }
.look-preview img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.look-preview span { position: absolute; left: 6px; bottom: 6px; padding: 2px 9px; border-radius: 999px; background: #fff; font-size: 12px; font-weight: 600; }
.look-cta { text-align: center; }
.look-cta .btn { width: 100%; }
.btn.is-off { background: var(--oro-claro); color: #5a5a5a; cursor: not-allowed; }
.btn.is-off:hover { background: var(--oro-claro); }
.look-hint { margin-top: 10px; font-size: 14px; color: var(--suave); }
@media (min-width: 900px) {
  .look-grid { grid-template-columns: 1.1fr .9fr; grid-template-areas: "paso1 lado" "paso2 lado" "nota lado" "cta lado"; gap: 26px 48px; align-items: start; }
  .look-grid > fieldset:nth-of-type(1) { grid-area: paso1; }
  .look-grid > fieldset:nth-of-type(2) { grid-area: paso2; }
  .look-note { grid-area: nota; }
  .look-side { grid-area: lado; position: sticky; top: calc(var(--nav-h) + 24px); padding: 22px; }
  .look-cta { grid-area: cta; text-align: left; }
  .look-cta .btn { width: auto; }
}
