/* ---------------------------------------------------------------
   YOHAN — Micropigmentación Capilar
   Stylesheet
   --------------------------------------------------------------- */

:root {
  --bg: #f5f2ed;
  --bg-elev: #ebe6dd;
  --ink: #0e0e0e;
  --ink-soft: #2a2a28;
  --muted: #6b6962;
  --line: #d9d3c8;
  --accent: #1f3a3d;
  --accent-ink: #f5f2ed;

  --font-display: "Tenor Sans", "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Hanken Grotesk", "Helvetica Neue", Helvetica, system-ui, sans-serif;

  --container: 1280px;
  --gutter: clamp(20px, 5vw, 56px);

  --radius: 2px;
  --easing: cubic-bezier(.2,.6,.2,1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
}
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 7vw, 96px); }
h2 { font-size: clamp(32px, 5vw, 64px); }
h3 { font-size: clamp(22px, 2.4vw, 30px); }
p { text-wrap: pretty; margin: 0; }

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
section { padding: clamp(80px, 12vw, 160px) 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--easing), background .3s var(--easing);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.brand {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.32em;
  text-decoration: none;
  color: var(--ink);
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--easing);
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-end { display: flex; align-items: center; gap: 18px; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
}
.lang-switch button {
  background: none;
  border: none;
  padding: 6px 11px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  border-radius: 999px;
  line-height: 1;
  transition: color 0.2s var(--easing), background 0.2s var(--easing);
}
.lang-switch button:hover {
  color: var(--ink);
}
.lang-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
}
.lang-switch button:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.06em;
  font-weight: 500;
  transition: background .25s var(--easing), color .25s var(--easing), border-color .25s var(--easing), transform .25s var(--easing);
  white-space: nowrap;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn.ghost {
  background: transparent; color: var(--ink); border-color: var(--ink);
}
.btn.ghost:hover { background: var(--ink); color: var(--bg); }
.btn.large { padding: 18px 28px; font-size: 15px; }
.btn .arrow { transition: transform .3s var(--easing); }
.btn:hover .arrow { transform: translate(3px, -3px); }

.burger {
  display: none;
  width: 40px; height: 40px;
  background: none; border: 1px solid var(--line); border-radius: 999px;
  align-items: center; justify-content: center;
  padding: 0;
}
.burger span { display: block; width: 16px; height: 1px; background: var(--ink); position: relative; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 1px; background: var(--ink);
}
.burger span::before { top: -5px; }
.burger span::after  { top:  5px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: var(--bg);
  padding-top: clamp(48px, 8vh, 88px);
  padding-bottom: clamp(64px, 10vh, 120px);
  overflow: hidden;
}
.hero::before {
  /* subtle warm halo behind the text column */
  content: "";
  position: absolute;
  top: -200px; left: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(closest-side, rgba(31,58,61,0.06), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  min-height: calc(100svh - 72px - clamp(48px, 8vh, 88px) - clamp(64px, 10vh, 120px));
}
.hero-text { max-width: 620px; }
.hero-eyebrow { margin-bottom: 28px; }
.hero h1 {
  max-width: 14ch;
  color: var(--ink);
}
.hero h1 em {
  font-style: italic;
  font-family: "Cormorant Garamond", "Tenor Sans", serif;
  font-weight: 300;
  color: var(--accent);
}
.hero-sub {
  max-width: 46ch;
  margin-top: 28px;
  font-size: clamp(16px, 1.3vw, 18px);
  color: var(--ink-soft);
  line-height: 1.65;
}
.hero-ctas {
  margin-top: 40px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-foot {
  margin-top: clamp(48px, 8vh, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-foot .scroll-cue {
  display: inline-flex; align-items: center; gap: 12px;
}
.hero-foot .scroll-cue .line {
  width: 60px; height: 1px; background: var(--line);
  position: relative; overflow: hidden;
}
.hero-foot .scroll-cue .line::after {
  content: ""; position: absolute; inset: 0;
  background: var(--accent);
  transform: translateX(-100%);
  animation: cue 2.6s var(--easing) infinite;
}
@keyframes cue {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* ---------- hero video ---------- */
.hero-media {
  position: relative;
  width: 100%;
}
.hero-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #0e0e0e;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(14,14,14,0.04),
    0 24px 60px -20px rgba(14,14,14,0.25),
    0 60px 120px -40px rgba(31,58,61,0.18);
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.hero-video-frame::after {
  /* subtle inner vignette for depth */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 70%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
}
.hero-video-badge {
  position: absolute;
  left: 16px; bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(14,14,14,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(245,242,237,0.18);
  border-radius: 999px;
  color: #f5f2ed;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero-video-badge .dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: #d4a574;
  box-shadow: 0 0 0 0 rgba(212,165,116,0.6);
  animation: pulse 2.4s var(--easing) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(212,165,116,0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(212,165,116,0); }
  100% { box-shadow: 0 0 0 0 rgba(212,165,116,0); }
}

/* ---------- about / qué es ---------- */
.about {
  background: var(--bg);
}
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: start;
}
.about-intro h2 { margin-top: 18px; }
.about-intro .lead {
  margin-top: 32px;
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 44ch;
}
.about-points {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 0;
}
.about-points li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.about-points li:last-child { border-bottom: 1px solid var(--line); }
.about-points .num {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--accent);
  letter-spacing: 0.1em;
  padding-top: 4px;
}
.about-points h3 {
  font-size: 22px;
  margin-bottom: 8px;
}
.about-points p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 38ch;
}

/* ---------- gallery ---------- */
.gallery {
  background: var(--bg-elev);
}
.gallery-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 32px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.gallery-head h2 { max-width: 18ch; }
.gallery-head .hint {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 10px;
}
.gallery-head .hint svg { width: 18px; height: 18px; }

.gallery-grid {
  column-count: 3;
  column-gap: clamp(16px, 2vw, 28px);
}
.gallery-grid > .tile {
  display: block;
  width: 100%;
  margin: 0 0 clamp(16px, 2vw, 28px);
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
}

/* tiles */
.tile {
  position: relative;
  overflow: hidden;
  background: #111;
  cursor: zoom-in;
  border-radius: var(--radius);
  transition: transform .5s var(--easing);
}
.tile img, .tile video {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  transition: transform .9s var(--easing);
}
.tile:hover img, .tile:focus-visible img,
.tile:hover video, .tile:focus-visible video {
  transform: scale(1.025);
}
.tile:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* aspect variants — force the tile shape regardless of intrinsic media size */
.tile-square   > img, .tile-square   > video { aspect-ratio: 1 / 1;   height: auto; width: 100%; }
.tile-portrait > img, .tile-portrait > video { aspect-ratio: 3 / 4;   height: auto; width: 100%; }
.tile-wide     > img, .tile-wide     > video { aspect-ratio: 16 / 10; height: auto; width: 100%; }
.tile-tall     > img, .tile-tall     > video { aspect-ratio: 2 / 3;   height: auto; width: 100%; }

/* caption */
.tile-cap {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f5f2ed;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}
.tile-cap .n {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
}
.tile-badge {
  position: absolute;
  top: 12px; left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 6px 8px;
  background: rgba(14,14,14,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(245,242,237,0.18);
  border-radius: 999px;
  color: #f5f2ed;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.tile-badge svg { width: 10px; height: 10px; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(8,8,8,0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  opacity: 0;
  transition: opacity .3s var(--easing);
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox .lb-inner {
  position: relative;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox .lb-media {
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  display: block;
  border-radius: var(--radius);
  background: #111;
}
.lightbox .lb-close {
  position: absolute;
  top: -48px; right: 0;
  background: none;
  border: 1px solid rgba(245,242,237,0.4);
  width: 40px; height: 40px;
  border-radius: 999px;
  color: #f5f2ed;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- contact ---------- */
.contact {
  background: var(--ink);
  color: var(--bg);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: start;
}
.contact h2 { color: var(--bg); max-width: 16ch; }
.contact .lead {
  margin-top: 28px;
  font-size: clamp(17px, 1.4vw, 19px);
  color: rgba(245,242,237,0.72);
  max-width: 44ch;
  line-height: 1.6;
}
.contact .eyebrow { color: rgba(245,242,237,0.6); }
.contact-cta { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }
.contact-cta .btn {
  background: var(--bg); color: var(--ink); border-color: var(--bg);
  font-size: 15px; padding: 18px 28px;
}
.contact-cta .btn:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.contact-cta .btn.ghost { background: transparent; color: var(--bg); border-color: rgba(245,242,237,0.4); }
.contact-cta .btn.ghost:hover { background: var(--bg); color: var(--ink); border-color: var(--bg); }

.contact-info {
  display: grid;
  gap: 28px;
  padding-top: 8px;
}
.contact-info .block {
  display: grid; gap: 8px;
  padding: 22px 0;
  border-top: 1px solid rgba(245,242,237,0.14);
}
.contact-info .block:last-child { border-bottom: 1px solid rgba(245,242,237,0.14); }
.contact-info .label {
  font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(245,242,237,0.55);
}
.contact-info .value {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--bg);
  line-height: 1.3;
}
.contact-info .value small {
  font-family: var(--font-body); font-size: 14px;
  color: rgba(245,242,237,0.6); letter-spacing: 0;
  display: block; margin-top: 4px;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(245,242,237,0.6);
  border-top: 1px solid rgba(245,242,237,0.1);
  padding: 32px 0;
  font-size: 13px;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-row a { color: rgba(245,242,237,0.7); text-decoration: none; }
.footer-row a:hover { color: var(--bg); }
.footer-row .left { letter-spacing: 0.06em; }
.footer-credit {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245,242,237,0.4);
}
.footer-credit a {
  color: rgba(245,242,237,0.6);
  border-bottom: 1px solid rgba(245,242,237,0.2);
  padding-bottom: 1px;
  margin-left: 4px;
  transition: color 0.2s var(--easing), border-color 0.2s var(--easing);
}
.footer-credit a:hover {
  color: var(--bg);
  border-bottom-color: var(--bg);
}

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--easing), transform .9s var(--easing);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero-foot .scroll-cue .line::after { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .nav-links { display: none; }
  .burger { display: inline-flex; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    gap: 0;
    padding: 12px var(--gutter) 24px;
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open li { padding: 14px 0; border-top: 1px solid var(--line); }
  .nav-links.open li:first-child { border-top: none; }

  .hero { padding-top: 32px; padding-bottom: 56px; }
  .hero-container { grid-template-columns: 1fr; gap: 40px; min-height: 0; }
  .hero-text { max-width: 100%; }
  .hero-foot { margin-top: 32px; font-size: 10px; }
  .hero-foot .scroll-cue .line { width: 40px; }
  .nav { height: 64px; }

  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .gallery-grid { column-count: 2; column-gap: 12px; }
  .gallery-grid > .tile { margin-bottom: 12px; }
  .gallery-head { grid-template-columns: 1fr; }
  .nav-end .btn-insta-label { display: none; }
  .nav-end { gap: 8px; }
  .nav-end .btn { padding: 10px 12px; }
  .lang-switch { padding: 2px; }
  .lang-switch button {
    padding: 4px 6px;
    font-size: 10px;
    letter-spacing: 0.12em;
  }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }
  .contact-cta { flex-direction: column; align-items: stretch; }
  .contact-cta .btn { justify-content: center; }
}

/* hide scrollbar for cleanliness on hero */
::selection { background: var(--accent); color: var(--bg); }
