/* Estudio Malva — demo OnaWeb */

/* Tokens
   Para adaptar la demo a otro negocio se cambian estos valores y las fotos. */
:root {
  --ink: #241626;
  --ink-soft: #3A2440;
  --muted: #7B6480;
  --shell: #F5F1F2;
  --paper: #FFFFFF;
  --gold: #B8862F;
  --gold-soft: #D9A441;
  --line: rgba(36, 22, 38, .13);

  --display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --body: "Figtree", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(58px, 8vw, 108px);
  --radius: 4px;

  --photo-hero: url("https://images.unsplash.com/photo-1560066984-138dadb4c035?auto=format&fit=crop&w=1000&q=80");
  --photo-1: url("https://images.unsplash.com/photo-1522337360788-8b13dee7a37e?auto=format&fit=crop&w=700&q=80");
  --photo-2: url("https://images.unsplash.com/photo-1580618672591-eb180b1a973f?auto=format&fit=crop&w=700&q=80");
  --photo-3: url("https://images.unsplash.com/photo-1595476108010-b4d1f102b1b1?auto=format&fit=crop&w=700&q=80");
  --photo-4: url("https://images.unsplash.com/photo-1519699047748-de8e457a634e?auto=format&fit=crop&w=800&q=80");
  --photo-5: url("https://images.unsplash.com/photo-1562322140-8baeececf3df?auto=format&fit=crop&w=800&q=80");
  --photo-6: url("https://images.unsplash.com/photo-1487412720507-e7ab37603c6f?auto=format&fit=crop&w=800&q=80");
  --photo-7: url("https://images.unsplash.com/photo-1633681926022-84c23e8cb2d6?auto=format&fit=crop&w=800&q=80");
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--shell);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.66;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; line-height: 1.06; }
p { margin: 0; }
img { max-width: 100%; display: block; }

.wrap { width: min(1140px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--flush { padding-top: 0; }
[id] { scroll-margin-top: 84px; }

.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: -9999px; top: 8px; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px;
  text-decoration: none;
}
.skip:focus { left: 16px; }

:where(a, button, input, summary):focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* Tipografía compartida */
.label {
  font-size: .72rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
}
.h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.35rem);
  letter-spacing: -.005em; max-width: 18ch;
}
.lede { color: var(--muted); max-width: 52ch; margin-top: 16px; }
.head { margin-bottom: clamp(30px, 4vw, 46px); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 28px; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--body); font-weight: 600; font-size: .98rem;
  text-decoration: none; cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--ink-soft); }
.btn--ghost { border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }

/* Cabecera */
.header { position: fixed; inset: 0 0 auto; z-index: 60; transition: background-color .3s ease, box-shadow .3s ease; }
.header.is-stuck { background: rgba(245, 241, 242, .95); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.header__bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 14px; }

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand__mark {
  width: 38px; height: 38px; flex: none; border-radius: 50%;
  background: var(--ink); color: var(--gold-soft);
  display: grid; place-items: center;
  font-family: var(--display); font-size: 1.25rem; line-height: 1;
}
.brand__name { font-family: var(--display); font-size: 1.2rem; line-height: 1.12; }
.brand__name span {
  display: block; font-family: var(--body); font-size: .62rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a:hover { color: var(--gold); }
.header__cta { padding: 12px 22px; font-size: .92rem; }

.burger {
  display: none; width: 44px; height: 44px; padding: 0; cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; background: transparent; place-items: center;
}
.burger span { display: block; width: 17px; height: 1.5px; background: var(--ink); position: relative; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 17px; height: 1.5px; background: var(--ink);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }

.menu { display: none; background: rgba(245, 241, 242, .98); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.menu.is-open { display: block; }
.menu a {
  display: block; padding: 15px 0; text-decoration: none; color: var(--ink);
  font-family: var(--display); font-size: 1.5rem; border-bottom: 1px solid var(--line);
}
.menu a:last-child { border-bottom: 0; }

/* Portada */
.hero { padding-top: clamp(104px, 14vw, 148px); padding-bottom: clamp(34px, 5vw, 56px); }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(26px, 5vw, 64px); align-items: center;
}
.hero h1 { font-size: clamp(2.8rem, 6.6vw, 5.2rem); letter-spacing: -.015em; max-width: 12ch; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero__sub { margin-top: 22px; max-width: 40ch; color: var(--muted); font-size: clamp(1.04rem, 1.5vw, 1.18rem); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.status {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 20px;
  font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.status.is-open { color: var(--ink); }
.status.is-open .status__dot { background: #2E8B57; box-shadow: 0 0 0 4px rgba(46, 139, 87, .16); }

/* Carta de tonos: separador y firma visual */
.swatches { display: grid; grid-template-columns: repeat(8, 1fr); height: 10px; }
.swatches span { background: var(--tone); }

/* Fotos con marcador de reserva */
.shot { position: relative; overflow: hidden; border-radius: var(--radius); background: #E4DCE2; aspect-ratio: 1 / 1; margin: 0; }
.shot--tall { aspect-ratio: 4 / 5; }
.shot__ph {
  position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; padding: 14px;
  text-align: center; color: var(--muted);
  font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.shot__img {
  position: absolute; inset: 0; z-index: 2;
  background-size: cover; background-position: center;
  transition: transform .7s cubic-bezier(.2, .7, .3, 1);
}
.shot:hover .shot__img { transform: scale(1.04); }

/* Servicios */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { background: var(--shell); padding: clamp(24px, 3vw, 34px); transition: background-color .2s ease; }
.card:hover { background: var(--paper); }
.card h3 { font-size: 1.5rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .97rem; }

/* Configurador de cita */
.builder { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: clamp(22px, 3vw, 40px); align-items: start; }
.builder fieldset { border: 0; margin: 0; padding: 0; }

.pick {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 10px; cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.pick:hover { border-color: var(--muted); }
.pick:has(input:checked) { border-color: var(--ink); box-shadow: inset 3px 0 0 var(--gold-soft); }
.pick input { width: 20px; height: 20px; flex: none; accent-color: var(--ink); cursor: pointer; }
.pick__body { flex: 1; display: flex; flex-direction: column; }
.pick__name { font-weight: 600; }
.pick__meta { color: var(--muted); font-size: .88rem; }
.pick__price { font-family: var(--display); font-size: 1.25rem; white-space: nowrap; }

.summary {
  position: sticky; top: 90px;
  background: var(--ink); color: #EFE7EF;
  border-radius: var(--radius); padding: clamp(24px, 3vw, 32px);
}
.summary__k { font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-soft); }
.summary__services { margin-top: 12px; color: #C3B2C4; font-size: .95rem; min-height: 3em; }
.summary__figures { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0 0; padding-top: 18px; border-top: 1px solid rgba(239, 231, 239, .18); }
.summary__figures dt { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #A797A9; }
.summary__figures dd { margin: 4px 0 0; font-family: var(--display); font-size: 1.75rem; color: #fff; line-height: 1.1; }
.summary__cta { width: 100%; margin-top: 22px; background: var(--gold-soft); color: var(--ink); }
.summary__cta:hover { background: #E6B75C; }
.summary__note { margin-top: 14px; font-size: .86rem; color: #A797A9; }
.summary__note a { color: #EFE7EF; }

/* Equipo y galería */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.member figcaption { padding-top: 14px; }
.member h3 { font-size: 1.4rem; }
.member p { color: var(--muted); font-size: .92rem; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

/* Dónde estamos */
.place { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 50px); align-items: start; }
.info dl { margin: 0; }
.info dt { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.info dd { margin: 0 0 24px; }
.info dd a { color: inherit; }
.hours { list-style: none; margin: 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.hours li:last-child { border-bottom: 0; }
.hours li.is-today { color: var(--gold); font-weight: 700; }
.hours em { font-style: normal; }
.map-block { display: grid; gap: 14px; justify-items: start; }
.map {
  position: relative; width: 100%; aspect-ratio: 16 / 11;
  background: #E4DCE2; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Pie */
.footer { border-top: 1px solid var(--line); padding-block: 34px; }
.footer__grid { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; }
.footer__meta { color: var(--muted); font-size: .92rem; }
.footer__meta a { color: var(--ink); }
.footer__legal { margin-top: 18px; font-size: .8rem; color: var(--muted); }
.footer__legal a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.footer__legal a:hover { color: var(--gold); }

/* Barra de acciones en móvil */
.actionbar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: rgba(245, 241, 242, .97); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: 9px 10px calc(9px + env(safe-area-inset-bottom));
  grid-template-columns: 1fr 1fr; gap: 9px;
}
.actionbar a {
  display: grid; place-items: center; padding: 13px 6px; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: .94rem;
  color: var(--ink); border: 1.5px solid var(--line);
}
.actionbar a.is-primary { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Entrada al hacer scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .3, 1); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__figure { order: -1; }
  .shot--tall { aspect-ratio: 16 / 10; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .builder { grid-template-columns: 1fr; }
  .summary { position: static; }
  .place { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 840px) {
  .nav, .header__cta { display: none; }
  .burger { display: grid; }
  .actionbar { display: grid; }
  body { padding-bottom: 78px; }
  .team { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1 1 100%; }
  .pick { flex-wrap: wrap; }
  .pick__price { width: 100%; padding-left: 36px; }
}
