/* ==========================================================
   JORGESAXG · Estilos (v2, minimalista editorial)
   Negro cálido · marfil · latón (solo como acento)
   ========================================================== */
:root {
  --bg: #0b0a08;
  --bg-2: #13110e;
  --ink: #efe9de;
  --text: #cfc8bb;
  --muted: #8f877b;
  --line: rgba(239, 233, 222, .12);
  --brass: #c8a66a;
  --error: #e9907f;
  --ok: #a9cfa3;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(16px, 5vw, 64px);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1rem/1.7 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.menu-open, body.lb-open { overflow: hidden; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2 { font-family: var(--serif); font-weight: 400; color: var(--ink); line-height: 1.02; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
em { font-style: italic; color: var(--brass); }
p { margin: 0 0 1em; }
:focus-visible { outline: 1px solid var(--brass); outline-offset: 4px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.kicker {
  font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 1.4rem;
}
.section { padding: clamp(96px, 14vw, 180px) 0; }
.section--tight { padding-top: 0; }

/* ---------- Botones y enlaces ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 28px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--bg); font: 600 .82rem/1 var(--sans);
  letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn:hover { background: var(--brass); border-color: var(--brass); }
.btn--line { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--line:hover { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--line svg { width: 18px; height: 18px; }
.btn--block { width: 100%; }
.textlink {
  font-size: .9rem; color: var(--ink); border-bottom: 1px solid var(--line);
  padding-bottom: 2px; transition: border-color .3s;
}
.textlink:hover { border-color: var(--brass); }

/* ---------- Navegación ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .4s, border-color .4s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(11, 10, 8, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-color: var(--line); }
.nav__inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); height: 72px; display: flex; align-items: center; justify-content: space-between; }
.brand { font-family: var(--serif); font-size: 1.6rem; color: var(--ink); line-height: 1; }
.brand i { color: var(--brass); }
.nav__menu { display: flex; align-items: center; gap: 36px; font-size: .85rem; }
.nav__menu a { color: var(--text); transition: color .3s; }
.nav__menu a:hover { color: var(--ink); }
.nav__menu .nav__cta { color: var(--ink); border-bottom: 1px solid var(--brass); padding-bottom: 2px; }
.nav__toggle { display: none; }

/* ---------- Portada ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end;
  max-width: 1440px; margin: 0 auto;
}
.hero__photo { margin: 0; grid-column: 2; grid-row: 1; height: 100%; position: relative; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 20%; }
.hero__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(11,10,8,0) 30%), linear-gradient(0deg, var(--bg) 0%, rgba(11,10,8,0) 25%);
}
.hero__content {
  grid-column: 1; grid-row: 1; position: relative; z-index: 2;
  padding: 140px var(--gutter) clamp(64px, 10vh, 120px); max-width: 640px; justify-self: end; width: 100%;
}
.hero__title { font-size: clamp(3.2rem, 7.4vw, 6.6rem); margin-bottom: 1.6rem; }
.hero__lead { font-size: 1.05rem; color: var(--text); max-width: 34ch; margin-bottom: 2.6rem; }
.hero__actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

/* ---------- Sobre mí + servicios ---------- */
#servicios .wrap { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(48px, 8vw, 120px); }
.about { align-self: start; }
.about__text { font-family: var(--serif); font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1.25; color: var(--ink); margin-bottom: 2.4rem; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; border-top: 1px solid var(--line); padding-top: 24px; }
.facts dt { font-family: var(--serif); font-size: 2.4rem; color: var(--ink); line-height: 1; }
.facts dd { margin: 6px 0 0; font-size: .78rem; color: var(--muted); line-height: 1.4; }

.services__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.services__list li { border-bottom: 1px solid var(--line); }
.services__list a {
  display: grid; grid-template-columns: 3rem 1fr auto; grid-template-areas: "n t a" ". d a";
  align-items: baseline; column-gap: 12px; padding: 26px 0;
}
.services__list .n { grid-area: n; font-size: .75rem; color: var(--muted); letter-spacing: .1em; }
.services__list .t { grid-area: t; font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 2.9rem); color: var(--ink); line-height: 1; transition: color .35s var(--ease), transform .35s var(--ease); }
.services__list .d { grid-area: d; color: var(--muted); font-size: .92rem; margin-top: 8px; }
.services__list .a { grid-area: a; align-self: center; color: var(--muted); font-size: 1.2rem; transition: transform .35s var(--ease), color .35s; }
.services__list a:hover .t { color: var(--brass); transform: translateX(6px); }
.services__list a:hover .a { color: var(--brass); transform: translateX(4px); }
.services__note { margin-top: 2.4rem; color: var(--muted); max-width: 52ch; font-size: .95rem; }
.services__note a { color: var(--ink); border-bottom: 1px solid var(--line); }
.services__note a:hover { border-color: var(--brass); }

/* ---------- Fotos ---------- */
.about__photo { margin: 0 0 2.4rem; aspect-ratio: 4 / 5; overflow: hidden; max-width: 380px; }
.about__photo img, .moment img, .contact__photo img { width: 100%; height: 100%; object-fit: cover; }
.moments { padding: 0 0 clamp(96px, 14vw, 180px); }
.moments__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 4vw, 56px); align-items: start; }
.moment { margin: 0; }
.moment img { aspect-ratio: 4 / 5; }
.moment--offset { margin-top: clamp(48px, 12vw, 160px); }
.moment figcaption { margin-top: 14px; font-size: .85rem; color: var(--muted); }
.moment figcaption span { font-family: var(--serif); font-size: 1.4rem; color: var(--ink); margin-right: 10px; }
.contact__photo { margin: 2.4rem 0 0; aspect-ratio: 1; overflow: hidden; max-width: 360px; }

/* ---------- Galería ---------- */
.gallery__head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(200px, 24vw, 320px); gap: 8px; }
.gallery__item {
  position: relative; padding: 0; border: 0; background: var(--bg-2); cursor: zoom-in;
  overflow: hidden; color: var(--ink);
}
.gallery__item:nth-child(6n + 1) { grid-column: span 2; grid-row: span 2; }
.gallery__item img, .gallery__item video { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); transition: transform .9s var(--ease), filter .5s; }
.gallery__item:hover img, .gallery__item:hover video { transform: scale(1.03); filter: saturate(1); }
.gallery__cap {
  position: absolute; left: 16px; bottom: 14px; font-size: .78rem; letter-spacing: .04em;
  opacity: 0; transform: translateY(6px); transition: .4s var(--ease);
}
.gallery__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,10,8,.65), transparent 40%); opacity: 0; transition: opacity .4s; }
.gallery__item:hover::after, .gallery__item:focus-visible::after { opacity: 1; }
.gallery__item:hover .gallery__cap, .gallery__item:focus-visible .gallery__cap { opacity: 1; transform: none; z-index: 1; }
.gallery__tag { position: absolute; top: 12px; right: 12px; z-index: 1; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.gallery__play { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border: 1px solid var(--ink); border-radius: 50%; z-index: 1; }
.gallery__play::before { content: ""; position: absolute; left: 22px; top: 18px; border-left: 16px solid var(--ink); border-top: 10px solid transparent; border-bottom: 10px solid transparent; }

/* ---------- Agendar ---------- */
.contact { border-top: 1px solid var(--line); }
.contact__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(48px, 8vw, 120px); align-items: start; }
.contact__intro h2 { margin-bottom: 1.6rem; }
.contact__intro > p:not(.kicker) { color: var(--muted); max-width: 40ch; }
.contact__alt { margin-top: 2.4rem; }

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.field { margin-bottom: 26px; }
.field label { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.field .opt { text-transform: none; letter-spacing: 0; }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line);
  color: var(--ink); font: 400 1rem/1.5 var(--sans); padding: 10px 0; border-radius: 0;
  transition: border-color .3s; -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 24px;
}
.field select option { background: var(--bg-2); color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: #5f594f; }
.field input[type="date"] { color-scheme: dark; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--ink); }
.field textarea { resize: vertical; min-height: 84px; }
.field__error { display: block; min-height: 0; color: var(--error); font-size: .8rem; margin-top: 4px; }
.has-error input, .has-error select { border-color: var(--error); }
.form .btn { margin-top: 10px; }
.form__status { margin-top: 18px; font-size: .9rem; }
.form__status.is-error { color: var(--error); }
.form__status.is-ok { color: var(--ok); }
.form__status a { color: var(--ink); border-bottom: 1px solid var(--line); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: .85rem; color: var(--muted); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.footer__links { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; flex-wrap: wrap; }
.footer__links a:hover { color: var(--ink); }
.footer__legal { margin: 0; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: var(--bg);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45); transition: background .3s, transform .3s var(--ease);
}
.wa-float:hover { background: var(--brass); transform: translateY(-2px); }
.wa-float svg { width: 24px; height: 24px; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(8, 7, 6, .96); display: grid; place-items: center; padding: 56px 16px; }
.lightbox[hidden] { display: none; }
.lightbox__stage img, .lightbox__stage video { max-width: min(92vw, 1100px); max-height: 80vh; width: auto; }
.lightbox__close, .lightbox__nav { position: absolute; background: none; border: 0; color: var(--ink); font-size: 2.2rem; cursor: pointer; line-height: 1; padding: 12px; }
.lightbox__close { top: 10px; right: 14px; }
.lightbox__prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 8px; top: 50%; transform: translateY(-50%); }
.lightbox__caption { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: var(--muted); font-size: .85rem; margin: 0; }

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Tablet ---------- */
@media (max-width: 960px) {
  #servicios .wrap, .contact__grid { grid-template-columns: 1fr; }
  .about { position: static; }
}

/* ---------- Celular ---------- */
@media (max-width: 760px) {
  .nav__toggle {
    display: grid; gap: 7px; width: 44px; height: 44px; place-content: center;
    background: none; border: 0; cursor: pointer; z-index: 60;
  }
  .nav__toggle span { width: 24px; height: 1px; background: var(--ink); transition: transform .3s var(--ease); }
  .menu-open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav__menu {
    position: fixed; inset: 0; background: var(--bg); flex-direction: column; justify-content: center;
    gap: 28px; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
  }
  .nav__menu a { font-family: var(--serif); font-size: 2.6rem; color: var(--ink); }
  .nav__menu .nav__cta { border: 0; color: var(--brass); }
  .menu-open .nav__menu { opacity: 1; visibility: visible; }

  .hero { grid-template-columns: 1fr; grid-template-rows: auto; min-height: 100svh; align-items: end; }
  .hero__photo { grid-column: 1; position: absolute; inset: 0; }
  .hero__photo img { object-position: 45% 15%; }
  .hero__photo::after { background: linear-gradient(0deg, var(--bg) 8%, rgba(11,10,8,.75) 40%, rgba(11,10,8,0) 70%); }
  .hero__content { grid-column: 1; padding: 0 var(--gutter) 48px; justify-self: stretch; }
  .hero__title { font-size: clamp(2.7rem, 12vw, 3.6rem); }
  .hero__lead { margin-bottom: 2rem; }

  .facts dt { font-size: 2rem; }
  .about__photo { max-width: none; }
  .moments__grid { gap: 10px; }
  .moment figcaption span { display: block; font-size: 1.25rem; margin: 0; }
  .contact__photo { display: none; }
  .services__list a { grid-template-columns: 2.2rem 1fr auto; padding: 22px 0; }

  .gallery__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; gap: 6px; }
  .gallery__item { aspect-ratio: 1; }
  .gallery__item:nth-child(6n + 1), .gallery__item:nth-child(6n) { grid-column: span 2; grid-row: span 1; aspect-ratio: 16 / 10; }
  .gallery__cap { opacity: 1; transform: none; z-index: 1; }
  .gallery__item::after { opacity: 1; }

  .form__row { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__links { flex-direction: column; gap: 10px; }
  .wa-float { right: 16px; bottom: 16px; }
}
