/* =========================================================
   Ébano Barber & Hair Studio — estilos
   Colores y tipografías: cambia las variables de :root
   ========================================================= */
:root {
  --bg:      #0f0e0d;   /* negro cálido (nunca #000) */
  --bg-2:    #161513;   /* gris muy oscuro: secciones alternas */
  --bg-3:    #1e1c1a;   /* tarjetas */
  --text:    #eee8dd;   /* blanco roto */
  --text-2:  #c9c1b3;
  --muted:   #8a8275;
  --brass:   #b8925a;   /* acento latón */
  --brass-2: #d1ad74;
  --line:    rgba(238,232,221,.12);
  --serif:   "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:    "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius:  2px;
  --header-h: 68px;
}

*, *::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-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: 0 26px;
  font: 500 14px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.btn-primary { background: var(--brass); color: #14110d; }
.btn-primary:hover { background: var(--brass-2); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--brass); color: var(--brass-2); }
.btn-lg { min-height: 58px; padding: 0 38px; font-size: 15px; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 12px; }
.btn-whatsapp { background: transparent; border-color: var(--brass); color: var(--brass-2); margin-top: 28px; }
.btn-whatsapp:hover { background: var(--brass); color: #14110d; }
.btn-whatsapp svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Cabecera ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, .site-header.is-open {
  background: rgba(15,14,13,.94);
  border-color: var(--line);
}
@supports (backdrop-filter: blur(10px)) {
  .site-header.is-scrolled { background: rgba(15,14,13,.8); backdrop-filter: blur(12px); }
  /* Con el menú abierto, sin desenfoque: si no, el menú (position: fixed)
     se mide respecto a la cabecera y se corta al haber hecho scroll. */
  .site-header.is-open { background: var(--bg); backdrop-filter: none; }
}
.header-inner {
  height: 100%; width: min(1280px, 100% - 40px); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo {
  font: 600 28px/1 var(--serif); letter-spacing: .02em; color: var(--text);
  display: inline-flex; align-items: baseline; gap: 10px;
}
.logo span {
  font: 500 10px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--brass);
}
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { white-space: nowrap; }
@media (max-width: 1320px) { .logo span { display: none; } .nav { gap: 20px; } }
.nav a:not(.btn) {
  font-size: 13px; letter-spacing: .08em; color: var(--text-2); position: relative; padding: 6px 0;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.nav a:not(.btn):hover { color: var(--text); }
.nav a:not(.btn):hover::after { transform: scaleX(1); }

.eyebrow b, .hero-meta b { font-weight: inherit; }

/* Selector de idioma */
.header-inner { justify-content: flex-start; }
.nav { margin-left: auto; }
.lang { display: flex; align-items: center; margin-left: 22px; padding-left: 18px; border-left: 1px solid var(--line); }
html:not(.js) .lang { display: none; }
.lang button {
  min-width: 36px; height: 36px; padding: 0 6px; background: none; border: 0; cursor: pointer;
  font: 500 11px/1 var(--sans); letter-spacing: .14em; color: var(--muted);
  position: relative; transition: color .25s;
}
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { color: var(--brass-2); }
.lang button[aria-pressed="true"]::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 6px; height: 1px; background: var(--brass);
}

.nav-toggle {
  display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer;
  position: relative; color: var(--text);
}
.nav-toggle span {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor;
  transition: transform .3s, top .3s;
}
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 26px; }
.site-header.is-open .nav-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.site-header.is-open .nav-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 1080px) {
  .logo span { display: none; }
  .nav-toggle { display: block; margin-right: -8px; }
  .lang { margin-left: auto; margin-right: 4px; padding-left: 0; border-left: 0; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 20px 40px; background: var(--bg);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s, transform .3s, visibility .3s;
    overflow-y: auto;
  }
  .site-header.is-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav a:not(.btn) {
    font: 500 30px/1.1 var(--serif); letter-spacing: 0; color: var(--text);
    padding: 16px 0; border-bottom: 1px solid var(--line);
  }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 28px; min-height: 56px; font-size: 14px; }
}

/* ---------- Portada ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; align-items: end;
  padding: calc(var(--header-h) + 20px) 20px 104px;
  overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: 0; margin: 0; z-index: -1; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
  filter: saturate(.75) contrast(1.05) brightness(.85);
  animation: heroZoom 2.4s cubic-bezier(.2,.7,.2,1) both;
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,14,13,.6) 0%, rgba(15,14,13,.35) 22%, rgba(15,14,13,.82) 50%, rgba(15,14,13,.92) 75%, var(--bg) 100%);
}
@keyframes heroZoom { from { transform: scale(1.08); opacity: .4; } to { transform: scale(1); opacity: 1; } }

.hero-content { max-width: 560px; animation: fadeUp 1s .25s cubic-bezier(.2,.7,.2,1) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.kicker {
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--brass-2);
  display: flex; align-items: center; gap: 12px;
}
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--brass); }
.hero-title {
  margin-top: 18px;
  font: 500 clamp(76px, 22vw, 168px)/.86 var(--serif); letter-spacing: -.01em;
}
.hero-title span {
  display: block; margin-top: 14px;
  font: 500 clamp(11px, 3vw, 14px)/1.2 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--text-2);
}
.hero-lead {
  margin-top: 26px; font: 400 clamp(22px, 5.6vw, 30px)/1.25 var(--serif); color: var(--text);
}
.hero-lead em { color: var(--brass-2); }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn-lg { flex: 1 1 220px; }
.hero-actions .btn-ghost { flex: 1 1 220px; min-height: 58px; }
@media (max-width: 899px) {
  .kicker { font-size: 10px; letter-spacing: .16em; }
  .tabs { gap: 0; }
  .tabs button { flex: 1 1 0; padding: 14px 4px; font-size: 12px; letter-spacing: .08em; }
}
.hero-meta {
  list-style: none; padding: 0; margin: 34px 0 0;
  display: grid; gap: 10px; font-size: 13px; color: var(--text-2);
}
.hero-meta span {
  display: inline-block; width: 92px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.05fr .95fr; align-items: center; gap: 6vw;
    padding: calc(var(--header-h) + 40px) max(40px, (100vw - 1200px) / 2) 80px;
  }
  .hero-content { grid-column: 1; grid-row: 1; }
  .hero-media {
    position: relative; inset: auto; grid-column: 2; grid-row: 1; z-index: 0;
    aspect-ratio: 4 / 5; max-height: 78vh; justify-self: end; width: 100%;
  }
  .hero-media::after { background: linear-gradient(180deg, transparent 55%, rgba(15,14,13,.55)); }
  .hero-media::before {
    content: ""; position: absolute; inset: 22px -22px -22px 22px; z-index: -1;
    border: 1px solid var(--brass); opacity: .6;
  }
  .hero-title { font-size: clamp(110px, 12vw, 176px); }
}

/* ---------- Secciones ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-2); }
.section-head { margin-bottom: 48px; }
.section-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; }
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--brass-2);
}
.eyebrow span { font: 500 italic 18px/1 var(--serif); letter-spacing: 0; color: var(--muted); }
.section h2 {
  margin-top: 16px; font: 500 clamp(38px, 9vw, 64px)/1.02 var(--serif); letter-spacing: -.005em;
}
.section h2 em, .section h2 i { color: var(--text-2); font-style: italic; }

@media (min-width: 900px) {
  .section { padding: 140px 0; }
  .section-head { margin-bottom: 72px; }
}

/* ---------- Servicios ---------- */
.tabs {
  display: flex; gap: 4px; margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  flex: 1 0 auto; background: none; border: 0; cursor: pointer;
  padding: 14px 16px; min-height: 48px;
  font: 500 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .25s, border-color .25s;
}
.tabs button[aria-selected="true"] { color: var(--text); border-color: var(--brass); }
.tabs button:hover { color: var(--text); }
/* Sin JavaScript las pestañas no sirven: se ocultan y se ven todos los bloques */
html:not(.js) .tabs { display: none; }
.js .service-block[hidden] { display: none; }

.service-block { display: grid; gap: 28px; }
html:not(.js) .service-block + .service-block { margin-top: 72px; }
.service-block.is-entering { animation: fadeUp .5s cubic-bezier(.2,.7,.2,1) both; }
.service-photo { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-3); }
.service-photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.7) contrast(1.05);
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
}
.service-block:hover .service-photo img { transform: scale(1.04); }
.service-body h3 { font: 500 italic 34px/1 var(--serif); color: var(--brass-2); margin-bottom: 8px; }
.service-list { list-style: none; margin: 0; padding: 0; }
.service-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.service-list h4 { font: 500 21px/1.2 var(--serif); }
.service-list p { font-size: 14px; color: var(--muted); margin-top: 4px; }
.book-link {
  flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-2);
  border: 1px solid rgba(184,146,90,.45); border-radius: var(--radius);
  transition: background .25s, color .25s;
}
.book-link:hover { background: var(--brass); color: #14110d; }
.service-note { margin-top: 20px; font-size: 14px; color: var(--muted); }

@media (min-width: 900px) {
  .service-block { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  .service-photo { aspect-ratio: 4 / 5; position: sticky; top: calc(var(--header-h) + 24px); }
  .service-body h3 { font-size: 44px; margin-bottom: 16px; }
  .service-list h4 { font-size: 24px; }
}

/* ---------- Precios ---------- */
.price-grid { display: grid; gap: 48px; }
.price-group h3 {
  font: 500 italic 28px/1 var(--serif); color: var(--brass-2);
  padding-bottom: 14px; border-bottom: 1px solid var(--brass);
}
.price-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.price-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.price-table td { padding: 14px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.price-table td:first-child { color: var(--text); padding-right: 12px; }
.price-table .d { color: var(--muted); font-size: 13px; white-space: nowrap; text-align: right; padding-right: 16px; }
.price-table .p {
  text-align: right; white-space: nowrap; font: 600 20px/1 var(--serif); color: var(--text); width: 1%;
}
.price-table .p span { font: 400 12px/1 var(--sans); color: var(--muted); margin-right: 2px; }
.price-note { margin: 20px 0 24px; font-size: 13px; color: var(--muted); }
@media (min-width: 900px) {
  .price-grid { grid-template-columns: 1fr 1fr; gap: 72px 80px; }
}

/* ---------- Equipo ---------- */
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 16px; }
.member figure { margin: 0 0 16px; aspect-ratio: 3 / 4; overflow: hidden; background: var(--bg-3); position: relative; }
.member img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(.9);
  transition: filter .6s, transform 1s cubic-bezier(.2,.7,.2,1);
}
.member:hover img { filter: grayscale(.2) contrast(1.05); transform: scale(1.03); }
.member figure::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(184,146,90,0); transition: box-shadow .4s;
}
.member:hover figure::after { box-shadow: inset 0 0 0 1px rgba(184,146,90,.7); }
.member h3 { font: 500 24px/1.1 var(--serif); }
.member .role { margin: 6px 0 8px; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-2); }
.member p:last-child { font-size: 14px; color: var(--muted); }
@media (min-width: 900px) {
  .team-grid { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .member:nth-child(even) { margin-top: 56px; }
}

/* ---------- Productos ---------- */
.badge-store {
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--brass-2);
  border: 1px solid rgba(184,146,90,.5); padding: 10px 16px;
}
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 16px; }
.product figure { margin: 0 0 14px; aspect-ratio: 1; overflow: hidden; background: var(--bg-3); }
.product img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.6) sepia(.15) contrast(1.05) brightness(.9);
  transition: transform 1s cubic-bezier(.2,.7,.2,1), filter .5s;
}
.product:hover img { transform: scale(1.05); filter: saturate(.9) contrast(1.05); }
.product h3 { font: 500 21px/1.15 var(--serif); }
.product p { font-size: 13px; color: var(--muted); margin-top: 4px; }
.product .price { display: block; margin-top: 8px; font: 600 18px/1 var(--serif); color: var(--brass-2); }
@media (min-width: 900px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 48px 32px; }
  .product h3 { font-size: 24px; }
}

/* ---------- Opiniones ---------- */
.reviews { display: grid; gap: 16px; }
.review {
  position: relative; margin: 0; padding: 32px 26px 26px;
  background: var(--bg-3); border: 1px solid var(--line);
}
.tag-example {
  position: absolute; top: 14px; right: 14px;
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); border: 1px dashed var(--muted); padding: 4px 8px;
}
.stars { color: var(--brass); letter-spacing: .2em; font-size: 13px; }
.review blockquote { margin: 16px 0 20px; font: 400 22px/1.35 var(--serif); }
.review figcaption { font-size: 12px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
@media (min-width: 900px) { .reviews { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* ---------- Ubicación ---------- */
.location { display: grid; gap: 40px; }
.location address { margin: 28px 0 24px; font: normal 400 22px/1.4 var(--serif); }
.hours { border-collapse: collapse; width: 100%; max-width: 380px; margin-bottom: 32px; font-size: 15px; }
.hours th, .hours td { padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.hours th { color: var(--muted); }
.hours td { text-align: right; }
.map { min-height: 340px; background: var(--bg-3); border: 1px solid var(--line); }
.map iframe {
  display: block; width: 100%; height: 100%; min-height: 340px; border: 0;
}
@media (min-width: 900px) {
  .location { grid-template-columns: 5fr 7fr; gap: 72px; align-items: stretch; }
  .map, .map iframe { min-height: 480px; }
}

/* ---------- Contacto ---------- */
.contact { display: grid; gap: 0; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; }
.contact-list li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list span { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); align-self: center; }
.contact-list a { font: 500 21px/1.2 var(--serif); }
.contact-list a:hover { color: var(--brass-2); }
@media (min-width: 900px) {
  .contact { grid-template-columns: 5fr 6fr; gap: 80px; align-items: end; }
  .contact-list { margin-top: 0; }
}

/* ---------- Pie ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 120px; }
.footer-inner { display: grid; gap: 28px; }
.site-footer .logo { font-size: 32px; }
.site-footer .muted { color: var(--muted); font-size: 14px; margin-top: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 13px; color: var(--text-2); }
.footer-links a:hover { color: var(--brass-2); }
.demo-note {
  margin-top: 40px; text-align: center; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
@media (min-width: 900px) {
  .site-footer { padding-bottom: 56px; }
  .footer-inner { grid-template-columns: 1fr auto; align-items: end; }
}

/* ---------- Barra fija móvil ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: auto 1fr; gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(15,14,13,.96); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.mobile-bar.is-visible { transform: none; }
.mobile-bar-call {
  display: inline-flex; align-items: center; padding: 0 20px; min-height: 48px;
  border: 1px solid var(--line); font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
}
@media (min-width: 900px) { .mobile-bar { display: none; } }

/* ---------- Aparición al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-in, .reveal-all .reveal { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* ---------- Página de créditos ---------- */
.page-simple { padding: calc(var(--header-h) + 60px) 0 80px; }
.page-simple h1 { font: 500 clamp(40px, 9vw, 64px)/1 var(--serif); margin: 16px 0 32px; }
.credits-list { list-style: none; padding: 0; margin: 0; }
.credits-list li { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
.credits-list strong { color: var(--text); font-weight: 500; }
.credits-list a { color: var(--brass-2); text-decoration: underline; text-underline-offset: 3px; }
