/* Barbería Punta Fina — sitio de muestra.
   Paleta: paredes de barbería latina antigua (menta), tinta verde botella, rojo del poste. */
:root {
  --ink: #0e2b24;
  --ink-2: #1d4a3f;
  --mint: #d7efe4;
  --mint-2: #b9e0cf;
  --paper: #fbfdfc;
  --red: #c62236;
  --chrome: #6f8a80;
  --wa: #0f7a3d;
  --radius: 14px;
  --display: "Bungee", "Arial Black", Impact, sans-serif;
  --body: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }
section[id] { scroll-margin-top: 72px; }

.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { top: 8px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.wrap--narrow { width: min(720px, 100% - 32px); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px;
  background: var(--red); color: #fff;
  font-weight: 700; font-size: 17px; text-decoration: none;
  border: 0; border-radius: 999px; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { background: #a71b2d; }
.btn:active { transform: scale(.97); }
.btn--small { min-height: 44px; padding: 8px 18px; font-size: 16px; }
.btn--wa { background: var(--wa); width: 100%; }
.btn--wa:hover { background: #0b6430; }
.btn--wa svg { width: 22px; height: 22px; }
.btn--wa[aria-disabled="true"] { background: #5b756b; cursor: not-allowed; }
.link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-underline-offset: 4px; text-decoration-thickness: 2px; }

/* Plaqueta de muestra */
.demo { background: var(--ink); color: var(--mint); font-size: 16px; }
.demo__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding: 8px 0; }
.demo b { color: var(--paper); }
.demo__btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 6px 16px;
  border: 2px solid var(--mint-2); border-radius: 999px;
  color: var(--paper); font-weight: 700; text-decoration: none;
}
.demo__btn:hover { background: var(--ink-2); }
.demo__btn:focus-visible { outline-color: var(--mint); }

/* Cabecera */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 253, 252, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--mint-2);
}
.top__in { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.logo { display: flex; align-items: center; min-height: 44px; gap: 8px; text-decoration: none; font-family: var(--display); font-size: 20px; }
.logo svg { width: 28px; height: 28px; color: var(--ink); }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: var(--red); }

/* Portada */
.hero { position: relative; background: var(--mint); overflow: hidden; }
.hero__in {
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
  padding: 64px 0 88px; position: relative; z-index: 1;
}
.status {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--paper); border: 1px solid var(--mint-2);
  padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: 16px;
}
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--chrome); }
.status.is-open::before { background: var(--wa); box-shadow: 0 0 0 4px rgba(31, 168, 85, .2); }
.status.is-closed::before { background: var(--red); }

.hero__title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(56px, 11vw, 132px); line-height: .92; letter-spacing: -.01em;
  margin: 22px 0 26px;
}
.hero__title .l { display: block; }
.hero__lead { max-width: 33em; font-size: 19px; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 30px; }

/* El poste: el único elemento que se mueve solo */
.pole { width: 92px; display: grid; justify-items: center; filter: drop-shadow(0 18px 24px rgba(14, 43, 36, .25)); }
.pole__cap { width: 92px; height: 34px; border-radius: 46px 46px 10px 10px; background: linear-gradient(90deg, #6f8a80, #e6efeb 40%, #879d95); }
.pole__cap--b { border-radius: 10px 10px 46px 46px; }
.pole__glass {
  width: 72px; height: 380px; overflow: hidden; position: relative;
  background: var(--paper); border-left: 3px solid #e6efeb; border-right: 3px solid #b5c6bf;
}
.pole__glass::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.18), transparent 35%, rgba(255,255,255,.5) 55%, rgba(0,0,0,.15)); }
.pole__stripes {
  position: absolute; left: 0; right: 0; top: -130px; height: calc(100% + 130px);
  background: repeating-linear-gradient(-35deg, var(--red) 0 24px, var(--paper) 24px 50px, var(--ink-2) 50px 74px, var(--paper) 74px 100px);
  animation: pole 3.2s linear infinite;
}
@keyframes pole { to { transform: translateY(122.08px); } }

/* Azulejos de barbería al pie de la portada */
.tiles {
  position: absolute; left: 0; right: 0; bottom: 0; height: 40px;
  background:
    conic-gradient(var(--ink) 25%, var(--paper) 0 50%, var(--ink) 0 75%, var(--paper) 0) 0 0 / 40px 40px;
  opacity: .9;
}

/* Secciones */
.sec { padding: 80px 0; }
.sec--mint { background: var(--mint); }
.sec--ink { background: var(--ink); color: var(--paper); }
.sec h2 { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 5vw, 48px); margin-bottom: 14px; }
.sub { max-width: 36em; margin-bottom: 36px; font-size: 18px; }

.serv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 36px; }
.serv__item svg { width: 48px; height: 48px; color: var(--red); margin-bottom: 14px; }
.serv__item h3 { font-size: 22px; margin-bottom: 8px; }
.serv__item p { max-width: 32em; }

/* Carta de precios + ticket */
.book { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.menu { border: 0; margin: 0; padding: 0; display: grid; gap: 4px; }
.menu__row {
  display: grid; grid-template-columns: 28px auto 1fr auto; align-items: baseline; gap: 10px;
  padding: 14px 16px; border-radius: 10px; cursor: pointer;
  transition: background-color .15s ease;
}
.menu__row:hover { background: rgba(251, 253, 252, .6); }
.menu__row input { width: 22px; height: 22px; accent-color: var(--red); margin: 0; align-self: center; cursor: pointer; }
.menu__row:has(input:checked) { background: var(--paper); box-shadow: inset 4px 0 0 var(--red); }
.menu__name { font-weight: 600; font-size: 18px; }
.menu__name small { display: block; font-weight: 400; font-size: 16px; color: var(--ink-2); }
.menu__dots { border-bottom: 2px dotted var(--chrome); transform: translateY(-6px); min-width: 16px; }
.menu__price { font-family: var(--display); font-size: 20px; color: var(--red); }

.ticket {
  position: sticky; top: 88px;
  background: var(--paper); border-radius: var(--radius);
  padding: 24px; display: grid; gap: 18px;
  /* borde dentado tipo ticket */
  -webkit-mask: radial-gradient(circle 9px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 9px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 9px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 9px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
}
.ticket__line { font-size: 16px; color: var(--ink-2); min-height: 1.5em; }
.ticket__total { font-family: var(--display); font-size: 44px; line-height: 1; margin-top: 6px; }
.ticket__total small { font-family: var(--body); font-size: 17px; font-weight: 600; color: var(--ink-2); }
.ticket__total.bump { animation: bump .3s ease; }
@keyframes bump { 50% { transform: scale(1.08); } }
.ticket__when { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border-top: 2px dashed var(--mint-2); padding-top: 18px; }
.ticket__when label { display: grid; gap: 6px; font-weight: 600; font-size: 16px; }
select {
  font: inherit; font-size: 16px; color: var(--ink);
  min-height: 46px; padding: 8px 10px; border: 2px solid var(--mint-2); border-radius: 10px; background: #fff; width: 100%;
}
.ticket__note { font-size: 16px; color: var(--ink-2); }

/* Galería */
.gal { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gal figure { margin: 0; background: var(--mint); border-radius: var(--radius); padding: 20px 20px 16px; }
.gal svg { width: 100%; height: auto; aspect-ratio: 200 / 220; }
.gal .hair { fill: var(--ink); stroke: var(--ink); stroke-width: 4; stroke-linejoin: round; }
.gal .hair--short { fill: var(--ink-2); }
.gal .fade { fill: none; stroke: var(--ink-2); stroke-width: 4; stroke-linecap: round; opacity: .55; }
.gal .cut { fill: none; stroke: var(--mint); stroke-width: 4; stroke-linecap: round; }
.gal figcaption { font-weight: 700; font-size: 18px; margin-top: 8px; }
.gal li:nth-child(even) figure { background: var(--mint-2); }
.hint { margin-top: 18px; font-size: 16px; color: var(--ink-2); }

/* Opiniones de muestra */
.sample {
  max-width: 44em; margin-bottom: 32px;
  border: 2px dashed var(--chrome); border-radius: 10px; padding: 12px 16px; font-size: 16px;
}
.rev { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rev__item { margin: 0; padding: 24px; border-radius: var(--radius); background: var(--ink-2); display: grid; gap: 14px; align-content: start; }
.rev__item p { font-size: 18px; }
.badge { justify-self: start; background: var(--paper); color: var(--ink); font-weight: 700; font-size: 14px; padding: 3px 10px; border-radius: 999px; }

/* Preguntas */
details { border-bottom: 2px solid var(--mint-2); }
summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 600; font-size: 19px; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-family: var(--display); font-size: 26px; color: var(--red); transition: transform .2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0 20px; max-width: 36em; }

/* Ubicación */
.loc { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: center; }
.addr { font-size: 20px; font-weight: 600; margin-bottom: 20px; }
.hours { border-collapse: collapse; width: 100%; max-width: 420px; margin-bottom: 26px; }
.hours th, .hours td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--mint-2); font-size: 17px; }
.hours th { font-weight: 500; }
.hours td { font-weight: 600; text-align: right; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--red); font-weight: 700; }
.loc__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.map { border-radius: var(--radius); overflow: hidden; border: 3px solid var(--ink); background: var(--mint-2); aspect-ratio: 4 / 3; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Pie */
.foot { background: var(--ink); color: var(--mint); padding: 32px 0 96px; font-size: 16px; }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.foot b { color: var(--paper); font-size: 17px; }
.foot__demo { max-width: 30em; }

/* Botón flotante de WhatsApp */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--wa); color: #fff;
  box-shadow: 0 10px 24px -6px rgba(14, 43, 36, .5);
  transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 32px; height: 32px; }

/* Entrada de la portada: una sola vez al cargar */
.hero__title .l { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
.hero__title .l:nth-child(2) { animation-delay: .12s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

/* Tableta */
@media (max-width: 900px) {
  .nav { display: none; }
  .top__in .btn { margin-left: auto; }
  .book { grid-template-columns: 1fr; }
  .ticket { position: static; }
  .serv, .rev { grid-template-columns: 1fr; gap: 28px; }
  .gal { grid-template-columns: repeat(2, 1fr); }
  .loc { grid-template-columns: 1fr; }
}

/* Teléfono: el poste se acuesta y gira bajo el título */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero__in { grid-template-columns: 1fr; gap: 28px; padding: 36px 0 76px; }
  .hero__title { margin: 18px 0 18px; font-size: clamp(48px, 15vw, 72px); }
  .hero__lead { font-size: 17px; }
  .hero__cta .btn { width: 100%; }
  .pole { width: 100%; grid-auto-flow: column; grid-template-columns: 26px 1fr 26px; align-items: center; order: -1; }
  .pole__cap { width: 26px; height: 50px; border-radius: 26px 6px 6px 26px; background: linear-gradient(180deg, #6f8a80, #e6efeb 40%, #879d95); }
  .pole__cap--b { border-radius: 6px 26px 26px 6px; }
  .pole__glass { width: 100%; height: 38px; border: 0; border-top: 3px solid #e6efeb; border-bottom: 3px solid #b5c6bf; }
  .pole__glass::after { background: linear-gradient(180deg, rgba(0,0,0,.15), transparent 35%, rgba(255,255,255,.5) 55%, rgba(0,0,0,.15)); }
  .pole__stripes {
    top: 0; bottom: 0; left: -130px; right: auto; height: auto; width: calc(100% + 130px);
    background: repeating-linear-gradient(55deg, var(--red) 0 24px, var(--paper) 24px 50px, var(--ink-2) 50px 74px, var(--paper) 74px 100px);
    animation-name: pole-x;
  }
  @keyframes pole-x { to { transform: translateX(122.08px); } }
  .demo__q { display: none; }
  .demo__btn { min-height: 44px; padding: 4px 14px; }
  .sec { padding: 56px 0; }
  .sub { margin-bottom: 24px; }
  .menu__row { padding: 12px 10px; gap: 8px; grid-template-columns: 26px 1fr auto; }
  .menu__dots { display: none; }
  .ticket { padding: 20px; }
  .ticket__when { grid-template-columns: 1fr; gap: 12px; }
  .gal { gap: 12px; }
  .gal figure { padding: 12px 12px 10px; }
  .gal figcaption { font-size: 16px; }
  .loc__btns .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
