/* Larbi Barber. Concepto: el local de noche, con el techo de hexágonos de luz,
   el latón de los sillones y el poste de barbero recorriendo el borde. */
:root {
  --ink: #0d0e11;
  --panel: #16171c;
  --field: #1e2027;
  --line: #2f3038;
  --paper: #f3f0e8;
  --muted: #aeaca4;
  --brass: #d3a950;
  --brass-ink: #17130a;
  --error: #ff9c8f;
  --pole-red: #c8323a;
  --pole-blue: #2a4fb0;
  --display: "Bodoni Moda", Didot, "Times New Roman", serif;
  --label: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: Manrope, "Segoe UI", system-ui, sans-serif;
  --pole: 10px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 1.0625rem/1.65 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, dl, figure { margin: 0; padding: 0; }
ul { list-style: none; }
h1, h2 { font-family: var(--display); font-weight: 500; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); line-height: 1.08; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.wrap {
  width: 100%; max-width: 1180px; margin-inline: auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
.eyebrow {
  font: 600 .95rem/1.2 var(--label);
  letter-spacing: .18em; text-transform: uppercase; color: var(--brass);
}
.muted { color: var(--muted); }
.block { padding-block: clamp(64px, 9vw, 112px); }
.band { background: var(--panel); border-block: 1px solid var(--line); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 1.1rem/1 var(--label); letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; padding: 15px 24px; cursor: pointer;
  border: 1px solid var(--brass); background: var(--brass); color: var(--brass-ink);
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: transparent; color: var(--brass); }
.btn-ghost { background: transparent; color: var(--paper); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--paper); color: var(--paper); }
.btn-small { padding: 10px 16px; font-size: 1rem; white-space: nowrap; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Cabecera */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--ink) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top-row { display: flex; align-items: center; gap: 24px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; min-width: 0; }
.brand img { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.brand span { font: 500 1.1rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.nav { display: flex; gap: 26px; }
.nav a, .menu-movil nav a {
  font: 500 1.05rem/1 var(--label); letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; color: var(--muted);
}
.nav a:hover, .menu-movil nav a:hover { color: var(--paper); }
.menu-movil { display: none; position: relative; }
.menu-movil summary { list-style: none; cursor: pointer; display: grid; gap: 5px; padding: 10px 4px; }
.menu-movil summary::-webkit-details-marker { display: none; }
.menu-movil summary span { display: block; width: 24px; height: 2px; background: var(--paper); }
.menu-movil nav {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 25; min-width: 190px;
  display: grid; gap: 16px; padding: 20px;
  background: var(--panel); border: 1px solid var(--line);
}

/* Portada */
.hero { position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.hero-photo {
  position: absolute; top: 0; bottom: 0; right: 0; z-index: -2;
  width: 46%; height: 100%; object-fit: cover; object-position: center 20%;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 32%);
  mask-image: linear-gradient(to right, transparent, #000 32%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, var(--ink) 20%, transparent 62%);
}
.hero-text { padding-block: clamp(72px, 10vw, 136px); }
.hero h1 { font-size: clamp(2.9rem, 7.6vw, 6.2rem); line-height: 1.02; max-width: 11ch; margin-block: 20px 26px; }
.hero h1 em { color: var(--brass); }
.lede { max-width: 42ch; color: var(--muted); font-size: 1.15rem; margin-block-end: 32px; }

/* Lema */
.creed { border-bottom: 1px solid var(--line); }
.creed-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.creed-row > div { padding: 34px 28px 34px 0; min-width: 0; }
.creed-row > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.creed strong { display: block; font: italic 500 1.55rem/1.2 var(--display); margin-bottom: 6px; }
.creed p { color: var(--muted); font-size: 1rem; }

/* Servicios */
.services { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.services-head { display: grid; gap: 16px; justify-items: start; position: sticky; top: 104px; }
.menu-list { border-top: 1px solid var(--line); }
.menu-list li { display: grid; gap: 4px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.menu-list b { font: 500 1.6rem/1.2 var(--display); }
.menu-list span { color: var(--muted); font-size: 1rem; }
.menu-list.compact { margin-block: 8px; }
.menu-list.compact b { font-size: 1.35rem; }

/* Bloques con foto */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-reverse { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.split-text { display: grid; gap: 16px; justify-items: start; min-width: 0; }
.photo img { width: 100%; }
.sign {
  font: 600 clamp(1.5rem, 3.6vw, 2.4rem)/1.15 var(--label);
  letter-spacing: .08em; text-transform: uppercase; color: var(--brass);
}
.photo-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; min-width: 0; }
.photo-pair img { aspect-ratio: 3 / 5; object-fit: cover; }
.photo-pair .photo:last-child img { object-position: 78% center; margin-block-start: 32px; }

/* Trabajos */
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-block-end: 36px; }
.section-head h2 { max-width: 20ch; margin-block-start: 14px; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* Cita */
.book { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.book-info { display: grid; gap: 16px; position: sticky; top: 104px; }
.contact { display: grid; gap: 20px; margin-block-start: 16px; }
.contact dt { font: 600 .95rem/1.2 var(--label); letter-spacing: .18em; text-transform: uppercase; color: var(--brass); }
.contact dd { margin: 4px 0 0; }
.contact a { text-underline-offset: 3px; }
.contact .contact-phone { font: 500 clamp(1.9rem, 4vw, 2.6rem)/1.15 var(--display); font-variant-numeric: lining-nums; text-decoration: none; white-space: nowrap; }
.contact .contact-phone:hover { color: var(--brass); }

.book-panel { min-width: 0; }
.booking { background: var(--panel); border: 1px solid var(--line); padding: clamp(18px, 3vw, 28px); }
.booking[hidden] { display: none; }
.booking-label { display: block; font-weight: 600; font-size: .95rem; margin-block: 22px 8px; }
.booking-label-first { margin-block-start: 0; }
.booking-input {
  width: 100%; min-height: 46px; padding-inline: 12px;
  font: 400 1rem var(--body); color: var(--paper);
  background: var(--field); border: 1px solid var(--line);
}
.booking-input::placeholder { color: var(--muted); }

.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cal-month { font: 500 1.3rem/1.2 var(--display); }
.cal-month::first-letter { text-transform: uppercase; }
.cal-nav {
  width: 40px; height: 40px; font-size: 1.6rem; line-height: 1;
  color: var(--paper); background: transparent; border: 1px solid var(--line); cursor: pointer;
}
.cal-nav:hover:not(:disabled) { border-color: var(--paper); }
.cal-nav:disabled { opacity: .3; cursor: not-allowed; }
.cal-weekdays, .cal-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-weekdays { margin-block: 12px 6px; text-align: center; font-size: .85rem; font-weight: 600; color: var(--muted); }
.cal-day, .booking-hour {
  font: 400 .95rem var(--body); font-variant-numeric: tabular-nums;
  color: var(--paper); background: var(--field); border: 1px solid transparent; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.cal-day { aspect-ratio: 1; width: 100%; padding: 0; }
.cal-day:hover:not(:disabled), .booking-hour:hover { border-color: var(--brass); }
.cal-day:disabled { background: transparent; color: #5c5b57; cursor: not-allowed; }
.cal-day.is-selected, .booking-hour.is-selected { background: var(--brass); color: var(--brass-ink); font-weight: 600; }

.booking-hours { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; }
.booking-hour { padding: 11px 4px; }
.booking-hint { grid-column: 1 / -1; font-size: .92rem; color: var(--muted); }
.booking-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.booking-consent { display: flex; align-items: flex-start; gap: 10px; margin-block-start: 20px; font-size: .92rem; line-height: 1.5; cursor: pointer; }
.booking-consent input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brass); }
.booking-consent a, .booking-link { color: var(--brass); text-underline-offset: 3px; }
.booking-status { min-height: 1.5em; margin-block: 14px; font-size: .95rem; line-height: 1.5; color: var(--muted); }
.booking-status.is-error { color: var(--error); font-weight: 600; }
.booking-submit { width: 100%; }
.booking-submit:disabled { opacity: .6; cursor: wait; }
.booking-done { display: grid; gap: 14px; }
.booking-done-title { font: 500 2rem/1.1 var(--display); color: var(--brass); }

/* Pie */
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 24px; }
.foot-links { display: flex; gap: 20px; }

@media (max-width: 960px) {
  .nav { display: none; }
  .menu-movil { display: block; }
  .top-row { gap: 12px; }
  .services, .split, .split-reverse, .book { grid-template-columns: minmax(0, 1fr); }
  .services-head, .book-info { position: static; }
  .split-reverse .split-text { order: -1; }
  .photo.photo-solo, .split > .photo { max-width: 460px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .creed-row { grid-template-columns: minmax(0, 1fr); }
  .creed-row > div, .creed-row > div + div { padding: 24px 0; border-left: 0; }
  .creed-row > div + div { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  :root { --pole: 6px; }
  .hero-photo { width: 100%; object-position: center top; -webkit-mask-image: none; mask-image: none; }
  .hero::after { background: linear-gradient(to bottom, color-mix(in srgb, var(--ink) 25%, transparent) 0%, color-mix(in srgb, var(--ink) 78%, transparent) 55%, var(--ink) 100%); }
  .hero-text { padding-block: 250px 48px; }
  .actions .btn { flex: 1 1 100%; }
  .brand span { font-size: .95rem; letter-spacing: .1em; }
  .section-head .btn { width: 100%; }
}
@media (max-width: 380px) {
  .brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Próxima hora libre, dato real de la agenda */
.next-slot { display: inline-flex; align-items: center; gap: 10px; margin-block-start: 22px; font-size: .95rem; text-decoration: none; color: var(--paper); }
.next-slot[hidden] { display: none; }
.next-slot:hover { color: var(--brass); }

/* Servicios: cada fila lleva a reservar */
.menu-list li:has(> a) { padding: 0; }
.menu-list li > a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 20px; align-items: center;
  padding: 20px 8px 20px 0; text-decoration: none;
  transition: padding .2s, background .2s;
}
.menu-list li > a b { grid-column: 1; }
.menu-list li > a span { grid-column: 1; }
.menu-list li > a em {
  grid-column: 2; grid-row: 1 / 3; font: 600 1rem/1 var(--label); letter-spacing: .12em; text-transform: uppercase;
  color: var(--brass); opacity: .75; transition: opacity .2s, transform .2s;
}
.menu-list li > a:hover b { color: var(--brass); }

/* Fotos del local */
.photo-pair .photo:last-child img { object-position: center; margin-block-start: 32px; }
.photo img { transition: filter .3s; }
.gallery { overflow: hidden; }

/* Calendario más compacto */
.cal-day { aspect-ratio: 1.25; }
.book-panel { position: relative; }
.booking { border-top: 3px solid var(--brass); }

/* Móvil */
@media (max-width: 640px) {
  .cal-day { aspect-ratio: 1; }
  .menu-list li > a em { display: none; }
}

/* Ajustes finos de móvil */
@media (max-width: 640px) {
  .top-row > .btn-small { display: none; }
  .brand span { display: inline !important; }
  .cal-month { font-size: 1.1rem; white-space: nowrap; }
}

/* Botón de cita también en la cabecera del móvil */
@media (max-width: 640px) {
  .top-row > .btn-small { display: inline-flex; padding: 9px 12px; font-size: .95rem; }
}
@media (max-width: 430px) {
  .brand span { display: none !important; }
}

/* Dirección en la portada */
.hero-place { color: var(--paper); font-size: 1rem; }

/* El local: foto del corte en horizontal junto al sillón */
.photo-pair { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: center; }
.photo-pair .photo:first-child img { aspect-ratio: 880 / 1092; }
.photo-pair .photo:last-child img { margin-block-start: 0; }
.gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* Fotos del cliente */
.hero::after { background: linear-gradient(90deg, var(--ink) 42%, transparent 70%); }
.hero-photo { width: 52%; object-position: center 13%; -webkit-mask-image: none; mask-image: none; }
.hero h1 { max-width: 11ch; }
.product-list li { padding: 14px 0; }
.product-list b { font-size: 1.25rem; }
.split > .photo img { max-height: 760px; object-fit: cover; object-position: center; }
.photo-pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
.photo-pair .photo { display: flex; }
.photo-pair .photo img, .photo-pair .photo:first-child img, .photo-pair .photo:last-child img { aspect-ratio: 4 / 5.4; height: auto; object-fit: cover; margin: 0; }
.photo-pair .photo:last-child img { object-position: 45% center; }
.tools { margin-block-start: clamp(24px, 4vw, 48px); }
.gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery img { aspect-ratio: 9 / 16; object-position: center; }
.section-head h2 { max-width: 22ch; margin: 0; }
.book-info { position: static; }
.facade { margin-block-start: 12px; max-width: 420px; }
.facade img { width: 100%; }
.top { top: 0; }
@media (max-width: 960px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .hero-photo { width: 100%; object-position: center top; }
  .hero::after { background: linear-gradient(to bottom, transparent 0, transparent 34%, color-mix(in srgb, var(--ink) 85%, transparent) 62%, var(--ink) 100%); }
  .hero-text { padding-block: 340px 44px; }
}
/* Duración junto a cada servicio */
.menu-list li > a span { grid-column: 1; }

/* Menú del móvil a pantalla completa */
@media (max-width: 960px) {
  .top { background: var(--ink); backdrop-filter: none; }
  .menu-movil { position: static; }
  .menu-movil summary { position: relative; z-index: 1; width: 32px; height: 44px; display: flex; flex-direction: column; justify-content: center; align-items: flex-end; padding: 0; }
  .menu-movil summary span { transition: transform .15s, opacity .15s; }
  .menu-movil[open] summary span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-movil[open] summary span:nth-child(2) { opacity: 0; }
  .menu-movil[open] summary span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .menu-movil nav {
    position: fixed; inset: 0; top: 0; right: 0; z-index: -1; min-width: 0;
    display: block; overflow-y: auto; padding: 84px 24px 90px;
    background: var(--ink); border: 0;
  }
  .menu-movil nav > a {
    display: block; padding: 16px 0; border-bottom: 1px solid var(--line);
    font: 500 clamp(1.9rem, 8vw, 2.5rem)/1.15 var(--display);
    letter-spacing: 0; text-transform: none; color: var(--paper);
  }
  .menu-movil nav > a:hover { color: var(--brass); }
  .menu-info { display: grid; gap: 6px; margin-block-start: 28px; color: var(--muted); font-size: 1rem; }
  .menu-info .btn { width: 100%; margin-block-end: 12px; color: var(--brass-ink); }
  .menu-info .btn:hover { color: var(--brass); }
}

/* Menú del móvil: letra normal, sin titulares grandes */
@media (max-width: 960px) {
  .menu-movil nav { padding-top: 76px; }
  .menu-movil nav > a { padding: 14px 0; font: 600 1.0625rem/1.3 var(--body); }
  .menu-info { margin-block-start: 22px; font-size: .95rem; }
}

/* Poste de barbero de pie, junto a los servicios */
.services-head { grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; }
.services-head > :not(.poste) { grid-column: 1; }
.poste {
  grid-column: 2; grid-row: 1 / span 4; justify-self: end;
  display: flex; flex-direction: column; align-items: center;
  width: 84px;
  filter: drop-shadow(0 14px 22px #000000cc);
}
.poste-bola {
  width: 46px; height: 46px; margin-block-end: -6px; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #ffffff 0 18%, #eee9f5 42%, #b9b2cc 72%, #6e6882 100%);
  box-shadow: 0 0 22px #ffffff66;
}
.poste-tapa {
  position: relative; z-index: 1;
  width: 84px; height: 24px; border-radius: 4px;
  background: linear-gradient(90deg, #3c3e44, #f5f6f8 22%, #a7abb3 42%, #ffffff 56%, #7b7f87 76%, #2c2e33);
  box-shadow: inset 0 3px 2px #ffffff99, inset 0 -3px 3px #00000080;
}
.poste-tubo { position: relative; width: 66px; height: 270px; overflow: hidden; background: #f3f0e8; }
.poste-tubo canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
@media (max-width: 640px) {
  .poste { width: 56px; grid-row: 1 / span 3; }
  .poste-bola { width: 30px; height: 30px; }
  .poste-tapa { width: 56px; height: 15px; }
  .poste-tubo { width: 44px; height: 112px; }
}


/* Portada en ordenador: los tres botones en columna y con el mismo ancho */
@media (min-width: 641px) {
  .hero .actions { display: grid; grid-template-columns: max-content; justify-content: start; }
}

/* Botones: el dorado es solo para la acción principal; el resto, latón sobre cristal */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: -40%; width: 26%; z-index: -1;
  background: linear-gradient(100deg, transparent, #ffffff8c, transparent);
  transform: skewX(-18deg); pointer-events: none;
}
.btn:not(.btn-ghost):hover { background: #e2bb68; color: var(--brass-ink); }
.btn:not(.btn-ghost):hover::after { animation: brillo .75s ease-out; }
@keyframes brillo { to { left: 115%; } }
.btn-ghost {
  background: #0d0e11a6;
  color: var(--paper);
  border: 1.5px solid var(--brass);
  backdrop-filter: blur(6px);
  transition: color .3s, transform .2s;
}
.btn-ghost::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--brass);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
.btn-ghost::after { display: none; }
.btn-ghost:hover { background: #0d0e11a6; color: var(--brass-ink); border-color: var(--brass); }
.btn-ghost:hover::before { transform: scaleX(1); }
.btn:active { transform: translateY(1px); }

/* Servicios: línea dorada y flecha al pasar */
.menu-list li > a b { background: linear-gradient(var(--brass), var(--brass)) left bottom / 0 2px no-repeat; transition: background-size .35s; justify-self: start; padding-bottom: 2px; }
.menu-list li > a:hover b { background-size: 100% 2px; color: var(--paper); }
.menu-list li > a em::after { content: " \2192"; display: inline-block; transition: transform .25s; }
.menu-list li > a:hover em { opacity: 1; }
.menu-list li > a:hover em::after { transform: translateX(5px); }

/* Portada en movimiento */
.anim .hero-text, .anim .hero-photo { visibility: hidden; }
.hero-photo { will-change: transform, translate; }
.hero-luz { position: absolute; inset: 0; z-index: -1; background: #050506; opacity: 1; pointer-events: none; }
.palabra { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .16em; margin-bottom: -.16em; padding-right: .06em; margin-right: -.06em; }
.palabra-in { display: inline-block; will-change: transform; }
.next-slot { transition: color .2s; }

/* Aparición de cada bloque al llegar a él */
.rev { opacity: 0; translate: 0 24px; transition: opacity .75s ease-out, translate .75s cubic-bezier(.2, .7, .2, 1); }
.rev.rev-on { opacity: 1; translate: 0 0; }
.rev-foto { opacity: 0; scale: .96; translate: 0 34px; transition: opacity .9s ease-out, scale 1.1s cubic-bezier(.2, .7, .2, 1), translate 1.1s cubic-bezier(.2, .7, .2, 1); }
.rev-foto.rev-on { opacity: 1; scale: 1; translate: 0 0; }
.rev-poste { opacity: 0; scale: .8; translate: 0 30px; transition: opacity .7s, scale .9s cubic-bezier(.2, 1.3, .4, 1), translate .9s cubic-bezier(.2, 1.3, .4, 1); }
.rev-poste.rev-on { opacity: 1; scale: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  .btn::after, .btn-ghost::before { transition: none; animation: none; }
}

/* Cursor de tijeras en la portada */
.hero.con-tijera, .hero.con-tijera * { cursor: none; }
.tijera {
  position: fixed; left: 0; top: 0; z-index: 90; width: 54px; height: 54px;
  pointer-events: none; opacity: 0; transition: opacity .15s;
  filter: drop-shadow(0 4px 7px #000000b3);
  will-change: transform;
}
.tijera.visible { opacity: 1; }
.tijera svg { display: block; overflow: visible; }
.tijera .hoja { transform-box: view-box; transform-origin: 32px 33px; transition: transform .12s ease-out; }
.tijera .hoja-a { transform: rotate(-7deg); }
.tijera .hoja-b { transform: rotate(7deg); }
.tijera.abierta .hoja-a { transform: rotate(-17deg); }
.tijera.abierta .hoja-b { transform: rotate(17deg); }
.tijera.corte .hoja-a, .tijera.corte .hoja-b { transform: rotate(0deg); transition-duration: .07s; }
.pelo {
  position: fixed; z-index: 89; width: 2px; height: 11px; border-radius: 2px;
  background: #1a1410; box-shadow: 0 0 0 .5px #d3a95066; pointer-events: none;
}

/* Portada en ordenador: la foto se funde con el fondo, sin corte recto */
@media (min-width: 641px) {
  .hero-photo {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 26%);
    mask-image: linear-gradient(to right, transparent, #000 26%);
  }
}

/* Con las tijeras en la portada, al pulsar no se selecciona texto ni se arrastra la foto */
.hero.con-tijera, .hero.con-tijera * {
  -webkit-user-select: none; user-select: none;
  -webkit-user-drag: none;
}

/* Entrada: solo el movimiento de abrirse, sin dibujar ninguna puerta */
.puerta { display: none; }
.entrada body { overflow: hidden; }
.entrada .tijera { display: none; }
.entrada .puerta {
  display: block; position: fixed; inset: 0; z-index: 200; overflow: hidden;
  perspective: 1300px; perspective-origin: 50% 50%; cursor: pointer;
}
.hoja {
  position: absolute; top: 0; bottom: 0; width: 50.1%;
  backface-visibility: hidden;
  transition: transform 1.4s cubic-bezier(.65, .02, .2, 1);
}
.hoja-izq { left: 0; transform-origin: left center; background: linear-gradient(90deg, #050506 55%, #101116); }
.hoja-der { right: 0; transform-origin: right center; background: linear-gradient(270deg, #050506 55%, #101116); }
.puerta.abrir .hoja-izq { transform: rotateY(105deg); }
.puerta.abrir .hoja-der { transform: rotateY(-105deg); }
.puerta::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px;
  background: #fff8e8; box-shadow: 0 0 22px 5px #ffeec488;
  animation: rendija .35s ease-out both;
}
.puerta.abrir::after { opacity: 0; transition: opacity .35s ease-out; animation: none; }
@keyframes rendija { from { opacity: 0; } to { opacity: 1; } }

/* Cabecera: marca a la izquierda, menú en el centro y teléfono a la derecha */
.top {
  background: #0a0b0eeb;
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 0;
  transition: background .3s, box-shadow .3s;
}
.top::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, #d3a95066 22%, #d3a950aa 50%, #d3a95066 78%, transparent);
}
.top.bajada { background: #0a0b0ef7; box-shadow: 0 10px 30px #00000080; }
.brand-texto { display: grid; gap: 3px; }
.brand-texto small {
  font: 500 .72rem/1 var(--label); letter-spacing: .24em; text-transform: uppercase; color: var(--brass);
}
.brand img { box-shadow: 0 0 0 1px #d3a95080; transition: box-shadow .25s; }
.brand:hover img { box-shadow: 0 0 0 2px var(--brass); }
.tel-icono { flex: none; }
.top .btn-small { gap: 8px; }
@media (min-width: 961px) {
  .top-row {
    display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 24px; padding-block: 0; min-height: 78px;
    transition: min-height .3s;
  }
  .top.bajada .top-row { min-height: 64px; }
  .brand { margin: 0; justify-self: start; }
  .top-row > .btn-small { justify-self: end; padding: 12px 18px; }
  .nav { gap: clamp(20px, 2.6vw, 38px); justify-self: center; }
  .nav a {
    position: relative; padding-block: 10px;
    font: 500 1rem/1 var(--label); letter-spacing: .16em;
    color: #d6d3ca; transition: color .2s;
  }
  .nav a::after {
    content: ""; position: absolute; left: 0; right: .16em; bottom: 2px; height: 2px;
    background: var(--brass); transform: scaleX(0); transform-origin: left;
    transition: transform .3s cubic-bezier(.2, .7, .2, 1);
  }
  .nav a:hover, .nav a.actual { color: #fff; }
  .nav a:hover::after, .nav a.actual::after { transform: scaleX(1); }
}
@media (max-width: 960px) {
  .top { backdrop-filter: none; background: var(--ink); }
}
@media (max-width: 430px) {
  .brand-texto { display: none; }
}

/* Cabecera en móvil: nombre y lema en dos líneas, y solo el logo si no caben */
@media (max-width: 960px) {
  .brand .brand-texto { display: grid !important; }
  .brand .brand-texto > span, .brand .brand-texto > small { display: block !important; }
  .top-row { gap: 12px; }
}
@media (max-width: 560px) {
  .brand .brand-texto { display: none !important; }
}
