/* Lunext — sitio estático. Tipografías OFL en assets/fonts/. */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/fraunces-500.woff2") format("woff2");
}

@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/fraunces-500-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/fraunces-600.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/outfit-400.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/outfit-500.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/outfit-600.woff2") format("woff2");
}

:root {
  --ink: #1c1915;
  --muted: #4a453e;
  --gold-ink: #5c4a28;
  --paper: #f6f1e8;
  --paper-2: #fbf8f2;
  --sand: #e8e1d4;
  --night: #12151c;
  --night-2: #181c27;
  --cream: #f4efe6;
  --cream-muted: #c9c2b6;
  --gold: #e6d0a3;
  --gold-hover: #f3e3bf;
  --line: rgba(28, 25, 21, 0.14);
  --line-light: rgba(244, 239, 230, 0.16);
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Outfit", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1080px;
  --gutter: 1.25rem;
  --header: 4.25rem;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 0.75rem);
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.15rem);
  margin-bottom: 0.85rem;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 0.45rem;
}

p {
  margin-bottom: 0;
}

a {
  color: inherit;
}

a:hover {
  text-decoration-thickness: 1px;
}

::selection {
  background: #e6d0a3;
  color: #1c1915;
}

:focus {
  outline: none;
}

/* Anillo de dos tonos: se lee sobre el fondo noche y sobre el papel. */
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--cream);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0.5rem;
  z-index: 40;
  transform: translateY(-150%);
  background: var(--gold);
  color: var(--ink);
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-weight: 500;
  text-decoration: none;
}

.skip-link:focus {
  transform: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#contenido:focus {
  outline: none;
}

.wrap {
  width: min(var(--wrap), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.kicker {
  margin: 0 0 0.85rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.section {
  padding: 4.25rem 0;
}

.section-lead {
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.band-night {
  background: var(--night);
  color: var(--cream);
}

.band-night .kicker {
  color: var(--gold);
}

.band-sand {
  background: var(--sand);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: var(--header);
  background: var(--night);
  color: var(--cream);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line-light);
}

@supports (backdrop-filter: blur(10px)) {
  .site-header {
    background: rgba(18, 21, 28, 0.92);
    backdrop-filter: blur(14px);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header);
}

.header-end {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
  flex: 0 0 auto;
}

.logo-mark {
  width: 1.7rem;
  height: 1.7rem;
  max-width: none;
}

.logo-word {
  height: 1.3rem;
  width: auto;
  max-width: none;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: inherit;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-bottom-color: currentColor;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
}

.nav-toggle-icon {
  width: 0.95rem;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

.button:hover {
  background: var(--gold-hover);
}

.button-small {
  min-height: 2.5rem;
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  font-weight: 500;
  text-underline-offset: 0.28em;
}

/* Hero */

.hero {
  padding: 3.25rem 0 4rem;
}

.hero-grid {
  display: grid;
  gap: 2.75rem;
  align-items: center;
}

.hero-title {
  margin: 0;
  font-weight: 500;
}

.hero-brand {
  display: block;
  font-size: clamp(4.25rem, 13vw, 7.6rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.hero-phrase {
  display: block;
  max-width: 13em;
  margin-top: 1.15rem;
  font-size: clamp(1.65rem, 2.6vw, 2.35rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--gold);
}

.lede {
  max-width: 38rem;
  margin-top: 1.35rem;
  color: var(--cream-muted);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.35rem;
  margin-top: 1.6rem;
}

.hero-figure {
  margin: 0;
}

.hero-figure svg {
  width: 100%;
  height: auto;
  border-radius: 28px;
}

.hero-figure figcaption {
  margin-top: 0.85rem;
  color: var(--cream-muted);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

/* Services */

.service-list {
  list-style: none;
  margin: 2.75rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.service-list li {
  border-bottom: 1px solid var(--line);
}

.service {
  display: grid;
  gap: 0.35rem 1.5rem;
  padding: 1.4rem 0;
}

.num {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--gold-ink);
}

.service p,
.step p,
.reason p {
  color: var(--muted);
}

/* Process */

.steps {
  list-style: none;
  display: grid;
  gap: 0.85rem;
  margin: 2.5rem 0 0;
  padding: 0;
}

.step {
  padding: 1.25rem 1.2rem 1.35rem;
  background: var(--paper-2);
  border-radius: 16px;
}

.step .num {
  display: block;
  margin-bottom: 0.85rem;
}

/* Why */

.reasons {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
}

.reason h3::before {
  content: "";
  display: block;
  width: 1.75rem;
  height: 1px;
  margin-bottom: 0.8rem;
  background: var(--gold-ink);
}

/* Contact */

.contact-layout {
  display: grid;
  gap: 2rem;
}

.contact-copy {
  max-width: 34rem;
  color: var(--cream-muted);
  font-size: 1.08rem;
}

.contact-card {
  padding: 1.6rem 1.4rem 1.5rem;
  border: 1px solid var(--line-light);
  border-radius: 20px;
  background: var(--night-2);
}

.contact-label {
  margin-bottom: 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.contact-soon {
  margin: 0 0 0.75rem;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.5vw, 2.05rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--cream);
}

.contact-note {
  color: var(--cream-muted);
}

/* Footer */

.site-footer {
  background: var(--night);
  color: var(--cream);
  border-top: 1px solid var(--line-light);
  padding: 2rem 0 2.4rem;
}

.footer-grid {
  display: grid;
  gap: 1.25rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: inherit;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.footer-brand .logo-mark {
  width: 1.45rem;
  height: 1.45rem;
}

.footer-tagline {
  margin-top: 0.55rem;
  color: var(--cream-muted);
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  text-decoration: none;
  font-weight: 500;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.legal {
  margin: 0;
  color: var(--cream-muted);
  font-size: 0.95rem;
}

.legal a {
  color: inherit;
  text-underline-offset: 0.2em;
}

/* Layout from tablet up */

@media (min-width: 720px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 800px) {
  :root {
    --gutter: 1.75rem;
  }

  .section {
    padding: 6rem 0;
  }

  .hero {
    padding: 4.5rem 0 5.5rem;
  }

  .service {
    grid-template-columns: 4rem minmax(14rem, 0.9fr) 1.35fr;
    align-items: start;
    padding: 1.7rem 0;
  }

  .service .num {
    padding-top: 0.25rem;
  }
}

@media (min-width: 880px) {
  .nav-toggle {
    display: none;
  }

  .js .nav-toggle {
    display: none;
  }
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(260px, 0.88fr);
    gap: 3.5rem;
  }

  .steps {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
  }

  .why-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: 3rem 4rem;
    align-items: start;
  }

  .why-layout .reasons {
    margin-top: 0.35rem;
  }

  .reasons {
    grid-template-columns: 1fr 1fr;
    gap: 2.25rem 2rem;
  }

  .contact-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
  }

  .footer-grid {
    grid-template-columns: 1.3fr auto;
    align-items: end;
  }

  .legal {
    grid-column: 1 / -1;
  }
}

/* Mobile nav, only after JS marks the document */

@media (max-width: 879px) {
  .header-cta {
    display: none;
  }

  .header-inner {
    flex-wrap: wrap;
    padding-bottom: 0.4rem;
  }

  .header-end {
    flex: 1 1 auto;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .site-nav {
    flex: 1 0 100%;
    order: 3;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav a {
    min-height: 2.9rem;
    border-bottom: 1px solid var(--line-light);
  }

  .js .header-inner {
    flex-wrap: nowrap;
    padding-bottom: 0;
  }

  .js .nav-toggle {
    display: inline-flex;
  }

  .js .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 0.35rem max(var(--gutter), calc((100% - var(--wrap)) / 2)) 0.85rem;
    background: var(--night);
    border-bottom: 1px solid var(--line-light);
  }

  .js .site-nav.is-open {
    display: block;
  }

  body.nav-open {
    overflow: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (forced-colors: active) {
  :focus-visible {
    outline: 2px solid CanvasText;
    box-shadow: none;
  }

  .button {
    border: 1px solid ButtonText;
  }
}

@media print {
  .site-header,
  .nav-toggle,
  .skip-link,
  .hero-actions {
    display: none;
  }

  body,
  .band-night,
  .band-sand,
  .site-footer {
    background: #fff;
    color: #000;
  }

  .hero-phrase,
  .kicker,
  .num,
  .contact-soon {
    color: #000;
  }

  a {
    text-decoration: underline;
  }
}
