/* ===========================================================
   LOSSAN · lossanstudio.com
   Retrato realista · Tláhuac, Ciudad de México
   =========================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --ink:        #0a0a0b;
  --ink-2:      #100f11;
  --ink-3:      #17161a;
  --ink-4:      #201e24;

  --bone:       #ece7de;
  --bone-2:     #b8b1a6;
  --bone-3:     #8b857c;

  --gold:       #c9a961;
  --gold-hi:    #e6d3a0;
  --gold-lo:    #8a6a31;

  --wa:         #25d366;
  --wa-ink:     #06301a;

  --line:       rgba(201, 169, 97, 0.20);
  --line-soft:  rgba(236, 231, 222, 0.10);

  --font-display: "Instrument Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 74rem;
  --gut: clamp(1.25rem, 4vw, 2.5rem);
  --sect: clamp(4.5rem, 10vw, 8.5rem);

  --r: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: dark;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, picture, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: var(--r); }

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.018em;
  line-height: 1.06;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.75rem, 8.5vw, 5.25rem); }
h2 { font-size: clamp(2.1rem, 5.6vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h4 { font-size: 1.2rem; }
p  { margin: 0 0 1.1em; text-wrap: pretty; }
.lead { font-size: clamp(1.06rem, 2.1vw, 1.28rem); color: var(--bone-2); line-height: 1.62; max-width: 62ch; }
.eyebrow {
  font-family: var(--font-body);
  font-size: .72rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 1.1rem;
  display: flex; align-items: center; gap: .8rem;
}
.eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--line); max-width: 5rem; }
.eyebrow--center { justify-content: center; }
.eyebrow--center::before { content: ""; flex: 1; height: 1px; background: var(--line); max-width: 5rem; }
.gold { color: var(--gold); }
.dim  { color: var(--bone-3); }
em, .it { font-style: italic; }

/* ---------- 4. Layout ---------- */
.wrap { width: min(100% - var(--gut) * 2, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - var(--gut) * 2, 46rem); margin-inline: auto; }
section { padding-block: var(--sect); position: relative; }
.rule { height: 1px; background: var(--line-soft); border: 0; margin: 0; }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--gold); color: var(--ink); padding: .7rem 1.1rem; font-weight: 600;
}
.skip:focus { left: .5rem; top: .5rem; }

/* ---------- 5. Header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.hdr__in { display: flex; align-items: center; gap: 1.25rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; flex-shrink: 0; }
.brand img { width: auto; height: 30px; }
.brand__tag {
  display: none; font-size: .6rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--bone-3); border-left: 1px solid var(--line); padding-left: .7rem;
}
@media (min-width: 46rem) { .brand__tag { display: block; } }

.nav { display: none; margin-left: auto; align-items: center; gap: 1.6rem; }
@media (min-width: 62rem) { .nav { display: flex; } }
.nav a {
  text-decoration: none; font-size: .875rem; color: var(--bone-2);
  transition: color .2s var(--ease); position: relative; padding-block: .35rem;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--gold); transition: right .3s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--bone); }
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }

.hdr .btn { margin-left: auto; }
@media (min-width: 62rem) { .hdr .btn { margin-left: 0; } }

.burger {
  margin-left: .25rem; display: grid; place-items: center;
  width: 42px; height: 42px; background: none; border: 1px solid var(--line-soft);
  border-radius: var(--r); cursor: pointer;
}
@media (min-width: 62rem) { .burger { display: none; } }
.burger span { display: block; width: 17px; height: 1.5px; background: var(--bone); position: relative; transition: .25s var(--ease); }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 17px; height: 1.5px; background: var(--bone); transition: .25s var(--ease);
}
.burger span::before { top: -5px; } .burger span::after { top: 5px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

.mnav { display: none; border-top: 1px solid var(--line-soft); background: var(--ink-2); }
.mnav.is-open { display: block; }
.mnav ul { list-style: none; margin: 0; padding: .5rem 0 1rem; }
.mnav a {
  display: block; padding: .85rem var(--gut); text-decoration: none;
  font-size: 1.02rem; border-bottom: 1px solid var(--line-soft); color: var(--bone-2);
}
.mnav a[aria-current="page"] { color: var(--gold); }

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .82rem 1.45rem; border-radius: var(--r); border: 1px solid transparent;
  font-size: .9rem; font-weight: 600; letter-spacing: .005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }

.btn--wa { background: var(--wa); color: var(--wa-ink); }
.btn--wa:hover { background: #2ee878; }
.btn--gold { background: var(--gold); color: #17130a; }
.btn--gold:hover { background: var(--gold-hi); }
.btn--ghost { border-color: var(--line); color: var(--bone); background: transparent; }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--lg { padding: 1.05rem 1.9rem; font-size: 1rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }

/* ---------- 7. Hero ---------- */
.hero { position: relative; overflow: clip; padding-block: 0; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 32%; filter: saturate(.82) contrast(1.05); }
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, rgba(10,10,11,.62) 0%, rgba(10,10,11,.80) 45%, rgba(10,10,11,.97) 96%),
    radial-gradient(120% 80% at 50% 0%, rgba(201,169,97,.10), transparent 62%);
}
.hero__in { padding-block: clamp(6rem, 17vw, 11rem) clamp(3.5rem, 8vw, 6rem); max-width: 54rem; }
.hero h1 span { display: block; }
.hero h1 .it { color: var(--gold-hi); }
.hero__sub { margin-top: 1.6rem; font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--bone-2); max-width: 46ch; }
.hero .btn-row { margin-top: 2.2rem; }
.hero__micro { margin-top: 1.2rem; font-size: .82rem; color: var(--bone-3); }

/* strip of facts under hero */
.facts { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: var(--ink-2); }
.facts ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 52rem) { .facts ul { grid-template-columns: repeat(4, 1fr); } }
.facts li { padding: 1.5rem var(--gut); border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
@media (min-width: 52rem) { .facts li { border-bottom: 0; } .facts li:last-child { border-right: 0; } }
.facts b { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--gold); font-weight: 400; line-height: 1.1; }
.facts span { font-size: .8rem; color: var(--bone-3); letter-spacing: .01em; }

/* ---------- 8. Generic blocks ---------- */
.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 58rem) { .split { grid-template-columns: 1fr 1fr; } .split--wide { grid-template-columns: 1.15fr .85fr; } }
.split--flip > :first-child { order: 2; }
@media (max-width: 57.99rem) { .split--flip > :first-child { order: 0; } }

.framed { position: relative; }
.framed img { border-radius: var(--r); }
.framed::after {
  content: ""; position: absolute; inset: 0; border: 1px solid var(--line);
  transform: translate(14px, 14px); pointer-events: none; border-radius: var(--r);
}

.cards { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--r); overflow: hidden; }
@media (min-width: 44rem) { .cards--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .cards--3 { grid-template-columns: repeat(3, 1fr); } .cards--2 { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--ink-2); padding: clamp(1.6rem, 3vw, 2.2rem); }
.card__n { font-family: var(--font-display); font-size: 1rem; color: var(--gold); display: block; margin-bottom: .9rem; letter-spacing: .1em; }
.card h3 { margin-bottom: .7rem; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--bone-2); font-size: .95rem; }

/* quote */
.quote { border-left: 2px solid var(--gold); padding: .35rem 0 .35rem 1.5rem; margin: 2rem 0; }
.quote p { font-family: var(--font-display); font-size: clamp(1.35rem, 3vw, 1.85rem); line-height: 1.35; color: var(--bone); margin-bottom: .6rem; }
.quote cite { font-style: normal; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--bone-3); }

/* ---------- 9. Gallery ---------- */
.gal { display: grid; grid-template-columns: repeat(2, 1fr); gap: .55rem; }
@media (min-width: 52rem) { .gal { grid-template-columns: repeat(4, 1fr); gap: .8rem; } }
.gal button {
  position: relative; padding: 0; border: 0; background: var(--ink-3); cursor: zoom-in;
  overflow: hidden; border-radius: var(--r); display: block; width: 100%;
}
.gal img { width: 100%; aspect-ratio: 1 / 2; object-fit: cover; transition: transform .7s var(--ease), filter .4s var(--ease); filter: saturate(.9); }
.gal button:hover img { transform: scale(1.045); filter: saturate(1); }
.gal figcaption {
  position: absolute; inset-inline: 0; bottom: 0; padding: 2.6rem .8rem .7rem;
  font-size: .74rem; text-align: left; color: var(--bone-2);
  background: linear-gradient(to top, rgba(10,10,11,.92), transparent);
  opacity: 0; transition: opacity .3s var(--ease);
}
.gal button:hover figcaption, .gal button:focus-visible figcaption { opacity: 1; }
@media (hover: none) { .gal figcaption { opacity: 1; } }

dialog.lb { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; }
dialog.lb::backdrop { background: rgba(6,6,7,.94); backdrop-filter: blur(6px); }
.lb__in { display: grid; place-items: center; height: 100%; padding: 1rem; }
.lb__in img { max-height: 84vh; width: auto; border-radius: var(--r); }
.lb__cap { margin-top: .9rem; font-size: .82rem; color: var(--bone-3); text-align: center; max-width: 46ch; }
.lb__x {
  position: fixed; top: 1rem; right: 1rem; width: 44px; height: 44px;
  background: var(--ink-3); border: 1px solid var(--line-soft); border-radius: var(--r); cursor: pointer;
  font-size: 1.3rem; line-height: 1;
}

/* ---------- 10. Steps / list ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 0; }
.steps li {
  counter-increment: s; position: relative; padding: 1.6rem 0 1.6rem 3.6rem;
  border-bottom: 1px solid var(--line-soft);
}
.steps li:first-child { border-top: 1px solid var(--line-soft); }
.steps li::before {
  content: counter(s, decimal-leading-zero);
  position: absolute; left: 0; top: 1.7rem;
  font-family: var(--font-display); font-size: .95rem; color: var(--gold); letter-spacing: .08em;
}
.steps h3 { font-size: 1.22rem; margin-bottom: .35rem; }
.steps p { color: var(--bone-2); font-size: .95rem; margin: 0; }

.checks { list-style: none; margin: 1.2rem 0; padding: 0; display: grid; gap: .7rem; }
.checks li { position: relative; padding-left: 1.75rem; color: var(--bone-2); font-size: .96rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: .58em; width: 9px; height: 9px; border: 1px solid var(--gold); transform: rotate(45deg); }

/* ---------- 11. FAQ ---------- */
.faq { border-top: 1px solid var(--line-soft); }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.4rem 2.5rem 1.4rem 0; position: relative;
  font-family: var(--font-display); font-size: clamp(1.12rem, 2.4vw, 1.4rem); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .35rem; top: 50%; width: 11px; height: 11px;
  border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold);
  transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .faq__a { padding: 0 0 1.6rem; color: var(--bone-2); max-width: 68ch; }
.faq .faq__a p:last-child { margin-bottom: 0; }

/* ---------- 12. CTA band ---------- */
.cta {
  background:
    radial-gradient(90% 130% at 50% 0%, rgba(201,169,97,.13), transparent 66%),
    var(--ink-2);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  text-align: center;
}
.cta .lead { margin-inline: auto; }
.cta .btn-row { justify-content: center; margin-top: 2rem; }
.cta__micro { margin-top: 1.4rem; font-size: .82rem; color: var(--bone-3); }

/* ---------- 13. Zones ---------- */
.zones { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.4rem; padding: 0; list-style: none; }
.zones li {
  font-size: .8rem; color: var(--bone-2); border: 1px solid var(--line-soft);
  padding: .4rem .8rem; border-radius: 100px;
}

/* ---------- 14. Footer ---------- */
.ftr { background: var(--ink-2); border-top: 1px solid var(--line-soft); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; font-size: .9rem; }
.ftr__grid { display: grid; gap: 2.5rem; }
@media (min-width: 52rem) { .ftr__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.ftr h4 { font-family: var(--font-body); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.1rem; font-weight: 500; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.ftr a { color: var(--bone-2); text-decoration: none; transition: color .2s var(--ease); }
.ftr a:hover { color: var(--gold); }
.ftr address { font-style: normal; color: var(--bone-2); line-height: 1.8; }
.ftr__brand img { height: 34px; width: auto; margin-bottom: 1rem; }
.ftr__bot {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: .78rem; color: var(--bone-3);
}
.social { display: flex; gap: .6rem; }
.social a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line-soft); border-radius: var(--r); }
.social a:hover { border-color: var(--gold); }
.social svg { width: 17px; height: 17px; }

/* ---------- 15. Sticky mobile CTA ---------- */
.dock {
  position: fixed; z-index: 70; inset-inline: 0; bottom: 0;
  padding: .7rem var(--gut) calc(.7rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--ink) 90%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  display: flex; gap: .6rem; align-items: center;
}
@media (min-width: 62rem) { .dock { display: none; } }
body { padding-bottom: 76px; }
@media (min-width: 62rem) { body { padding-bottom: 0; } }
.dock__txt { flex: 1; min-width: 0; font-size: .74rem; line-height: 1.3; color: var(--bone-3); }
.dock__txt b { display: block; color: var(--bone); font-size: .84rem; font-weight: 600; }

/* ---------- 16. Breadcrumb ---------- */
.crumb { padding-top: 1.5rem; font-size: .78rem; color: var(--bone-3); }
.crumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; }
.crumb a { color: var(--bone-3); text-decoration: none; }
.crumb a:hover { color: var(--gold); }
.crumb li + li::before { content: "/"; margin-right: .45rem; color: var(--line); }

/* ---------- 17. Page head ---------- */
.phead { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line-soft);
  background: radial-gradient(80% 120% at 15% 0%, rgba(201,169,97,.09), transparent 60%); }
.phead h1 { font-size: clamp(2.35rem, 6.6vw, 4.25rem); max-width: 18ch; }
.phead .lead { margin-top: 1.5rem; }

/* ---------- 18. Prose ---------- */
.prose h2 { margin-top: 3rem; margin-bottom: 1rem; }
.prose h3 { margin-top: 2.2rem; margin-bottom: .7rem; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose li { color: var(--bone-2); }
.prose ul { padding-left: 1.1rem; }
.prose li { margin-bottom: .5rem; }
.prose strong { color: var(--bone); font-weight: 600; }
.prose a:not(.btn) { color: var(--gold); text-underline-offset: 3px; }

/* ---------- 19. Reveal ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } }

/* ---------- 20. Notice ---------- */
.note { border: 1px solid var(--line); background: rgba(201,169,97,.05); padding: 1.3rem 1.5rem; border-radius: var(--r); font-size: .93rem; color: var(--bone-2); }
.note strong { color: var(--gold); }

/* ---------- 21. Ajustes móviles del header ---------- */
@media (max-width: 61.99rem) {
  .hdr__in { gap: .5rem; }
  /* El CTA del header se vuelve icono: el dock inferior ya lleva la llamada completa. */
  .hdr .btn--wa { padding: 0; width: 44px; height: 44px; flex-shrink: 0; }
  .hdr .btn--wa span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hdr .btn--wa svg { width: 20px; height: 20px; }
  .brand img { height: 26px; }
}

/* Anclas por debajo del header pegajoso */
:target { scroll-margin-top: 88px; }

/* Detalle en imágenes enmarcadas */
.framed img { border: 1px solid var(--line-soft); }

/* Zonas: se leen como etiquetas, no como botones muertos */
.zones li { transition: border-color .2s var(--ease), color .2s var(--ease); }
.zones li:hover { border-color: var(--line); color: var(--bone); }

/* La galería nunca debe empujar el layout mientras carga */
.gal button { aspect-ratio: 1 / 2; }
