:root {
  --ground: #f2efe7;
  --ink: #1c1b19;
  --muted: #6b665c;
  --faint: #9a9488;
  --line: rgba(28, 27, 25, 0.1);
  --red: #c7322e;
  --red-deep: #a82420;
  --olive: #5e6347;
  --paper: #f7f4ec;
  --white: #fffcf7;
  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --max: 980px;
  --pad: clamp(20px, 5vw, 48px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  min-height: 100dvh;
  overflow-x: hidden;
}

body:has(#intro-curtain:not(.hide)) {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 1000;
  background: var(--ink);
  color: var(--ground);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* Intro — editorial greet */
#intro-curtain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--ground);
  color: var(--ink);
  display: flex;
  opacity: 1;
  transition: opacity 0.85s var(--ease);
  user-select: none;
  cursor: pointer;
}

#intro-curtain.hide {
  opacity: 0;
  pointer-events: none;
}

.intro-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 14px var(--pad) 28px;
  padding-left: max(var(--pad), env(safe-area-inset-left));
  padding-right: max(var(--pad), env(safe-area-inset-right));
  padding-top: max(14px, env(safe-area-inset-top));
  padding-bottom: max(28px, env(safe-area-inset-bottom));
}

.intro-mark {
  margin: 0;
  line-height: 1;
}

.intro-mid {
  flex: 1;
  display: grid;
  place-items: center;
}

.intro-title {
  font-family: var(--serif);
  font-size: clamp(44px, 8vw, 88px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin: 0;
  min-height: 1.1em;
  text-align: center;
  color: var(--ink);
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
}

.intro-title.is-in {
  opacity: 1;
  transform: none;
}

.intro-title.is-brand span {
  color: var(--red);
}

.intro-hint {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  text-align: center;
}

.wordmark span {
  color: var(--red);
}

/* Nav */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ground);
  border-bottom: 1px solid transparent;
}

.top-nav.is-scrolled {
  border-bottom-color: var(--line);
}

.top-nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px var(--pad);
  padding-left: max(var(--pad), env(safe-area-inset-left));
  padding-right: max(var(--pad), env(safe-area-inset-right));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  position: relative;
  z-index: 2;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.04em;
  text-decoration: none;
  line-height: 1;
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

.top-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.top-link {
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
}

.top-link:hover,
.top-link.is-current {
  color: var(--ink);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--ground);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.nav-cta:hover {
  background: var(--red);
}

.nav-cta:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Hero */
.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px var(--pad) 32px;
  display: grid;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(34px, 6.2vw, 64px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.06;
  margin-bottom: 20px;
}

.hero-title span {
  display: block;
}

.hero-dek {
  font-size: clamp(17px, 2.1vw, 20px);
  color: var(--muted);
  max-width: 520px;
  margin: 0 0 32px;
  line-height: 1.45;
}

.hero-dek strong {
  color: var(--ink);
  font-weight: 600;
}

.hero-form {
  display: flex;
  gap: 10px;
  max-width: 520px;
  margin: 0 0 16px;
  padding: 6px 6px 6px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.hero-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 16px;
  padding: 10px 0;
}

.hero-form input::placeholder {
  color: var(--faint);
}

.hero-form button {
  flex-shrink: 0;
  border: 0;
  border-radius: 10px;
  background: var(--ink);
  color: var(--ground);
  font-size: 14px;
  font-weight: 600;
  padding: 0 18px;
  min-height: 44px;
  cursor: pointer;
}

.hero-form button:hover {
  background: var(--red);
}

.hero-form button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.analyzer {
  display: none;
  max-width: 520px;
  margin: 8px 0 20px;
  text-align: left;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
}

.analyzer-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.analyzer-top h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.analyzer-note {
  font-size: 13px;
  color: var(--faint);
}

.score-pill {
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
}

.analyzer-insights-list {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.analyzer-insight-item {
  font-size: 14px;
  color: var(--muted);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.analyzer-insight-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--red);
}

.text-btn,
.text-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--red);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.text-link:hover,
.text-btn:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-foot {
  font-size: 13px;
  color: var(--faint);
  letter-spacing: 0.04em;
}

/* Phone */
.hero-stage {
  display: flex;
  justify-content: center;
}

.phone {
  width: min(300px, 78vw);
  aspect-ratio: 9 / 18.4;
  padding: 10px;
  background: #1a1916;
  border-radius: 36px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 40px 80px -32px rgba(28, 27, 25, 0.55);
  animation: phone-float 6s ease-in-out infinite;
}

@keyframes phone-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.phone-glass {
  height: 100%;
  background: var(--ground);
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px 4px;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
}

.phone-island {
  width: 72px;
  height: 18px;
  background: #1a1916;
  border-radius: 12px;
}

.phone-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.shot {
  height: 46%;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #f6f1e6;
  background:
    linear-gradient(180deg, transparent 10%, rgba(20, 18, 14, 0.78) 100%),
    radial-gradient(ellipse at 20% 0%, #c9a36a 0%, transparent 50%),
    linear-gradient(160deg, #6d7354 0%, #2b2a24 55%, #1a1916 100%);
}

.shot-place {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.75;
}

.shot h4 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.phone-pad {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.phone-rating {
  font-size: 12px;
  font-weight: 600;
  color: var(--olive);
}

.phone-copy {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.phone-meta {
  display: flex;
  gap: 14px;
  font-size: 11px;
  color: var(--faint);
  margin-top: auto;
}

.phone-btn {
  margin-top: 8px;
  background: var(--ink);
  color: var(--ground);
  text-align: center;
  border-radius: 999px;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
}

/* Sections */
.section-lead {
  max-width: var(--max);
  margin: 0 auto 40px;
}

.section-lead h2,
.offer h2,
.contact .section-lead h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 4.4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.section-dek {
  margin-top: 10px;
  color: var(--muted);
  font-size: 17px;
}

.work,
.steps,
.diag,
.offer,
.contact {
  max-width: 1120px;
  margin: 0 auto;
  padding: 88px var(--pad);
  border-top: 1px solid var(--line);
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.work-grid article {
  padding: 28px 32px 28px 0;
  border-top: 1px solid var(--line);
}

.work-grid article:nth-child(even) {
  padding-left: 32px;
  padding-right: 0;
  border-left: 1px solid var(--line);
}

.work-grid h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.work-grid p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 14px;
  max-width: 36ch;
}

.step-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-list li {
  display: grid;
  gap: 12px;
}

.step-list span {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--faint);
}

.step-list h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.step-list p {
  color: var(--muted);
  font-size: 15px;
}

/* Diagnostic */
.diag-list {
  display: flex;
  flex-direction: column;
}

.diag-list label {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
}

.diag-list label:last-of-type {
  border-bottom: 1px solid var(--line);
}

.diag-check {
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}

.diag-check:checked {
  background: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ground);
}

.diag-list strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
}

.diag-list em {
  display: block;
  font-style: normal;
  color: var(--muted);
  font-size: 14px;
  margin-top: 2px;
}

.diag-result {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  padding-top: 28px;
}

.score-huge-text {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 56px);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-top: 4px;
}

/* Offer */
.offer {
  text-align: center;
}

.offer-price {
  font-family: var(--serif);
  font-size: clamp(72px, 14vw, 140px);
  letter-spacing: -0.06em;
  line-height: 0.9;
  margin: 8px 0 12px;
}

.offer h2 {
  margin-bottom: 12px;
}

.offer p:not(.eyebrow):not(.offer-price) {
  max-width: 440px;
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: 17px;
}

.offer .nav-cta {
  min-width: 180px;
  min-height: 44px;
}

/* Contact */
.form {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 10px 0;
  border-radius: 0;
  outline: none;
  font-size: 16px;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  border-bottom-color: var(--ink);
}

.form textarea {
  resize: vertical;
  min-height: 72px;
}

.form .nav-cta {
  align-self: flex-start;
  min-width: 140px;
  min-height: 44px;
}

.form-alt {
  font-size: 14px;
  color: var(--muted);
}

.form-alt a {
  color: var(--ink);
}

.form-feedback {
  display: none;
  font-size: 14px;
  font-weight: 500;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px var(--pad) calc(28px + env(safe-area-inset-bottom));
  max-width: 1120px;
  margin: 0 auto;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-row nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-row nav a {
  text-decoration: none;
  font-size: 13px;
  color: var(--muted);
}

.footer-row nav a:hover {
  color: var(--ink);
}

.footer-fine {
  margin-top: 18px;
  font-size: 12px;
  color: var(--faint);
}

/* Subpages */
.subpage {
  max-width: 920px;
  margin: 0 auto;
  padding: 56px var(--pad) 96px;
}

.subpage-kicker {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.subpage-title {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin-bottom: 16px;
}

.subpage-dek {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--muted);
  line-height: 1.45;
  max-width: 40ch;
  margin-bottom: 48px;
}

.subpage-content-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 56px;
}

.editorial-card {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
}

.editorial-card h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 36px 0 12px;
}

.editorial-card h3:first-child {
  margin-top: 0;
}

.editorial-card p {
  margin-bottom: 16px;
  color: #3c3a35;
}

.sidebar-sticky-card {
  display: flex;
  flex-direction: column;
  gap: 22px;
  height: fit-content;
  position: sticky;
  top: 88px;
}

.sidebar-heading {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.info-pill-item {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.info-pill-role {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 4px;
}

.info-pill-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
}

.info-pill-desc {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.sidebar-cta {
  justify-content: center;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 16px 0 24px;
}

.terms-table {
  width: 100%;
  border-collapse: collapse;
}

.terms-table th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 500;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.terms-table td {
  padding: 14px 16px 14px 0;
  font-size: 15px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.price-accent {
  color: var(--red);
  font-weight: 600;
}

/* Compat with leftover class names */
.subpage-container {
  max-width: 920px;
  margin: 0 auto;
  padding: 56px var(--pad) 96px;
}

.subpage-header-card {
  margin-bottom: 48px;
}

/* Mobile */
@media (min-width: 960px) {
  .hero {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 40px 64px;
    padding-top: 64px;
    padding-bottom: 48px;
  }

  .hero-title {
    font-size: clamp(40px, 4.6vw, 56px);
  }

  .hero-stage {
    justify-content: flex-end;
  }

  .phone {
    width: 318px;
  }
}

@media (max-width: 959px) {
  .hero {
    text-align: center;
    justify-items: center;
  }

  .hero-dek,
  .hero-form,
  .analyzer,
  .hero-foot {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
    z-index: 60;
  }

  .top-nav-links {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1;
    background: var(--ground);
    padding: 88px var(--pad) 40px;
    padding-bottom: max(40px, env(safe-area-inset-bottom));
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .top-nav-links.open {
    display: flex;
  }

  .top-nav-links .top-link {
    font-family: var(--serif);
    font-size: clamp(32px, 9vw, 44px);
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--ink);
    padding: 8px 0;
    border-radius: 0;
  }

  .top-nav-links .nav-cta {
    margin-top: 20px;
    min-height: 48px;
    padding: 0 22px;
    font-size: 15px;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-form {
    flex-direction: column;
    padding: 12px;
    border-radius: 16px;
  }

  .hero-form input {
    padding: 8px 6px;
  }

  .hero-form button {
    width: 100%;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-grid article,
  .work-grid article:nth-child(even) {
    padding: 24px 0;
    border-left: 0;
  }

  .step-list {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .form-row,
  .subpage-content-grid {
    grid-template-columns: 1fr;
  }

  .diag-result {
    flex-direction: column;
    align-items: flex-start;
  }

  .sidebar-sticky-card {
    position: static;
  }

  .work,
  .steps,
  .diag,
  .offer,
  .contact {
    padding: 64px var(--pad);
  }
}

@media (max-width: 640px) {
  .terms-table thead {
    display: none;
  }

  .terms-table tr {
    display: block;
    padding: 14px 0;
  }

  .terms-table td {
    display: block;
    padding: 2px 0;
    border: 0;
  }

  .terms-table td:nth-child(2)::before {
    content: "Entrega · ";
    color: var(--faint);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .terms-table td:nth-child(3)::before {
    content: "Inversión · ";
    color: var(--faint);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .phone {
    width: min(240px, 72vw);
  }
}

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

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

}
