/* Perruqueria Avinguda 42 — propuesta de diseño. Mobile first. */
:root {
  --bg: #FFFFFF;
  --block: #F5EFE9;
  --terra: #C4572E;      /* formas y textos grandes */
  --terra-txt: #A2431F;  /* texto pequeño (AA) */
  --ink: #1F2A44;
  --ink-2: #2E3B5C;
  --text: #1F2A44;
  --muted: #4A5368;
  --line: #1F2A44;
  --display: "Archivo Black", "Arial Black", Impact, sans-serif;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 64px;
}

*, *::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(--text);
  font: 400 1rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 72px; /* espacio para la barra móvil */
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--terra-txt); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0 0 .5em; letter-spacing: -.01em; color: var(--ink); }
h2 { font-size: clamp(2rem, 8vw, 3.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.center { text-align: center; margin-top: 28px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; color: #fff; }
.ico { width: 20px; height: 20px; flex: none; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 0;
  font: 700 1rem/1 var(--sans); letter-spacing: .02em; text-decoration: none;
  border: 2px solid var(--ink); cursor: pointer;
  transition: transform .2s, background-color .2s, color .2s, box-shadow .2s;
}
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { color: #fff; transform: translate(-3px, -3px); box-shadow: 4px 4px 0 var(--terra); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { color: var(--ink); background: var(--block); transform: translate(-3px, -3px); box-shadow: 4px 4px 0 var(--ink); }
.btn--lg { min-height: 56px; padding: 14px 28px; font-size: 1.05rem; }
.btn--sm { min-height: 42px; padding: 8px 18px; font-size: .95rem; }

/* Cabecera */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid transparent; transition: border-color .3s;
}
.header.scrolled { border-color: var(--ink); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.logo:hover { color: var(--ink); }
.logo__mark {
  display: grid; place-items: center; width: 40px; height: 40px; background: var(--ink); color: #fff;
  font: 400 1.05rem/1 var(--display); box-shadow: inset 0 -5px 0 var(--terra);
}
.logo__text { font: 700 .95rem/1.1 var(--sans); text-transform: uppercase; letter-spacing: .06em; }
.logo__text span { display: block; font-family: var(--display); font-weight: 400; letter-spacing: .02em; }

.menu-btn {
  width: 44px; height: 44px; display: grid; place-content: center; gap: 6px;
  background: none; border: 0; cursor: pointer; padding: 0;
}
.menu-btn span { width: 26px; height: 3px; background: var(--ink); transition: transform .3s, opacity .3s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.nav {
  position: fixed; inset: var(--header-h) 0 auto; display: flex; flex-direction: column; gap: 0;
  padding: 8px 20px 28px; background: #fff; border-bottom: 2px solid var(--ink);
  transform: translateY(-12px); opacity: 0; visibility: hidden; transition: transform .3s, opacity .3s, visibility .3s;
}
.nav.open { transform: none; opacity: 1; visibility: visible; }
.nav a:not(.btn) { color: var(--ink); padding: 14px 4px; font: 400 1.25rem var(--display); text-decoration: none; border-bottom: 1px solid #D9D2CB; }
.nav a:not(.btn):hover { color: var(--terra-txt); }
.nav .btn { margin-top: 18px; }

/* Portada */
.hero { position: relative; padding: calc(var(--header-h) + 24px) 0 64px; overflow: hidden; }
.hero::before { /* bloque de color de fondo */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40px; background: var(--block); z-index: -1;
}
.hero__grid { display: grid; gap: 24px; }
.hero__svg { width: 100%; height: auto; }
.hero__num { font-family: var(--display); font-size: 252px; fill: var(--ink); letter-spacing: -6px; }
.hero__plate { font: 700 11px var(--sans); letter-spacing: 2px; fill: #fff; }
.eyebrow {
  display: inline-block; font: 700 .8rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase;
  color: var(--terra-txt); margin-bottom: 16px; padding-left: 34px; position: relative;
}
.eyebrow::before { content: ""; position: absolute; left: 0; top: 50%; width: 24px; height: 3px; background: currentColor; transform: translateY(-50%); }
.eyebrow--light { color: #fff; }
.eyebrow--light::before { background: var(--terra); }
.hero__title { font-size: clamp(2.3rem, 11vw, 4.8rem); margin-bottom: 18px; }
.hero__title span { color: var(--terra); }
.hero__lead { font-size: 1.12rem; max-width: 38ch; margin-bottom: 28px; }
.hero__actions { display: flex; flex-direction: column; gap: 12px; }

/* Secciones */
.section { padding: 80px 0; }
.section--alt { background: var(--block); }
.section--ink { background: var(--ink); color: #fff; }
.section--ink h2 { color: #fff; }
.section__head { margin-bottom: 40px; }
.section__sub { font-size: 1.05rem; max-width: 52ch; }

/* Servicios */
.services { list-style: none; margin: 0; padding: 0; display: grid; border-top: 2px solid var(--ink); }
.service {
  position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: center;
  padding: 26px 0; border-bottom: 2px solid var(--ink);
}
.service__num { grid-row: span 2; font: 400 2.8rem/1 var(--display); color: var(--terra); min-width: 2.2ch; }
.service h3 { margin: 0 0 4px; }
.service p { margin: 0; color: var(--muted); grid-column: 2; }
.service__ico { position: absolute; right: 0; top: 26px; width: 26px; height: 26px; color: var(--ink); }
.note {
  margin-top: 32px; padding: 18px 20px; background: var(--block); font-weight: 600;
  border-left: 6px solid var(--terra);
}
.note a { white-space: nowrap; }

/* Nosotros */
.about { display: grid; gap: 40px; align-items: center; }
.about__art { max-width: 260px; width: 100%; }
.about__num { font-family: var(--display); font-size: 70px; fill: var(--ink); }
.about__num--b { fill: var(--terra); }
.about__text > p { font-size: 1.05rem; }
.perks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.perks li { display: flex; gap: 16px; align-items: flex-start; background: #fff; padding: 18px; border: 2px solid var(--ink); }
.perks .ico { width: 30px; height: 30px; color: var(--terra-txt); }
.perks strong { display: block; font: 400 1.1rem var(--display); }
.perks span { color: var(--muted); font-size: .95rem; }

/* Horario */
.hours { display: grid; gap: 20px; padding: 32px 24px; border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--terra); background: #fff; }
.hours__ico { width: 48px; height: 48px; color: var(--ink); }
.hours h2 { font-size: clamp(1.7rem, 6vw, 2.6rem); }
.hours__actions { display: flex; flex-direction: column; gap: 12px; }

/* Reservas */
.booking { text-align: center; padding: 40px 24px; border: 2px dashed rgba(255,255,255,.6); }
.booking__ico { width: 48px; height: 48px; color: #fff; margin: 0 auto 16px; }
.booking__title { font: 400 1.4rem var(--display); margin-bottom: 8px; }
.booking__text { max-width: 44ch; margin: 0 auto 24px; color: #E7E9EF; }
.booking__actions { display: flex; flex-direction: column; gap: 12px; }
.section--ink .btn--ink { background: #fff; color: var(--ink); border-color: #fff; }
.section--ink .btn--ink:hover { color: var(--ink); }
.section--ink .btn--line { color: #fff; border-color: #fff; }
.section--ink .btn--line:hover { background: var(--ink-2); color: #fff; box-shadow: 4px 4px 0 var(--terra); }
.section--ink :focus-visible { outline-color: #fff; }

/* Mapa */
.map { border: 2px solid var(--ink); aspect-ratio: 4 / 3; background: var(--block); box-shadow: 8px 8px 0 var(--block); }
.map iframe { display: block; width: 100%; height: 100%; border: 0; }

/* Contacto */
.contact { display: grid; gap: 14px; }
.contact__item {
  display: flex; align-items: center; gap: 16px; padding: 20px; color: var(--ink); text-decoration: none;
  background: #fff; border: 2px solid var(--ink); font-size: 1.1rem; font-weight: 600;
  transition: transform .2s, box-shadow .2s;
}
.contact__item:hover { color: var(--ink); transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--terra); }
.contact__item .ico { width: 30px; height: 30px; color: var(--terra-txt); }
.contact__item strong { display: block; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--terra-txt); }

/* Pie */
.footer { padding: 44px 0; background: var(--ink); color: #E7E9EF; text-align: center; font-size: .9rem; }
.footer__inner p { margin: 0 0 8px; }
.footer__logo { display: inline-flex; align-items: center; gap: 10px; font: 400 1.1rem var(--display); color: #fff; }
.footer__logo span { background: var(--terra); color: #fff; padding: 4px 8px; }
.footer__demo {
  display: inline-block; margin-top: 12px !important; padding: 5px 14px;
  border: 1px solid rgba(255,255,255,.5); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
}

/* Barra fija móvil */
.mobile-cta {
  position: fixed; inset: auto 0 0; z-index: 40; display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: #fff; border-top: 2px solid var(--ink);
}
.mobile-cta__btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  font-weight: 700; color: var(--ink); text-decoration: none; border: 2px solid var(--ink);
}
.mobile-cta__btn:hover { color: var(--ink); }
.mobile-cta__btn--ink { background: var(--ink); color: #fff; }
.mobile-cta__btn--ink:hover { color: #fff; }

/* Animaciones al hacer scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Tablet */
@media (min-width: 600px) {
  .hero__actions, .booking__actions, .hours__actions { flex-direction: row; flex-wrap: wrap; }
  .booking__actions { justify-content: center; }
  .services { grid-template-columns: repeat(2, 1fr); column-gap: 32px; border-top: 0; }
  .service { border-top: 2px solid var(--ink); border-bottom: 0; }
  .services { border-bottom: 2px solid var(--ink); }
  .contact { grid-template-columns: repeat(3, 1fr); }
  .contact__item { flex-direction: column; text-align: center; }
  .map { aspect-ratio: 16 / 9; }
  .hours { grid-template-columns: auto 1fr; padding: 40px; }
}

/* Escritorio */
@media (min-width: 900px) {
  :root { --header-h: 76px; }
  body { padding-bottom: 0; }
  .mobile-cta { display: none; }
  .menu-btn { display: none; }
  .nav {
    position: static; flex-direction: row; align-items: center; gap: 28px; padding: 0;
    background: none; border: 0; transform: none; opacity: 1; visibility: visible;
  }
  .nav a:not(.btn) { border: 0; padding: 0; font: 600 .95rem var(--sans); }
  .nav .btn { margin: 0; }
  .hero { padding: calc(var(--header-h) + 56px) 0 96px; min-height: min(88vh, 820px); display: flex; align-items: center; }
  .hero::before { height: 64px; }
  .hero__grid { grid-template-columns: 1fr 1.1fr; align-items: center; gap: 56px; }
  .hero__art { order: 2; }
  .section { padding: 112px 0; }
  .services { grid-template-columns: repeat(4, 1fr); }
  .service { grid-template-columns: 1fr; padding: 28px 0 32px; align-content: start; }
  .service__num { grid-row: auto; font-size: 4rem; margin-bottom: 14px; }
  .service p { grid-column: auto; }
  .about { grid-template-columns: .8fr 1.2fr; gap: 72px; }
  .about__art { max-width: 380px; }
}

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