@font-face {
  font-family: "Manrope Local";
  src: url("/assets/manrope-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ink: #faf3ec;
  --muted: #c5c8cc;
  --page: #20262c;
  --panel: #0c0d0f;
  --panel-soft: #171b1f;
  --accent: #98a6ba;
  --accent-strong: #b7c1ce;
  --line: rgba(255, 255, 255, 0.18);
  --white: #ffffff;
  --success: #81b795;
  --radius: 30px;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--page);
  color: var(--ink);
  font-family: "Manrope Local", Manrope, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

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

h1,
h2,
h3 {
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 38px;
  font-size: clamp(3rem, 5.5vw, 4.5rem);
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(2.2rem, 4.2vw, 4rem);
}

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

.shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  transform: translateY(-160%);
  background: var(--white);
  color: #111;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 10;
  background: var(--page);
}

.nav-wrap {
  display: grid;
  grid-template-columns: 1fr minmax(230px, 310px) 1fr;
  align-items: center;
  min-height: 150px;
  gap: 34px;
}

.brand {
  display: block;
  justify-self: center;
  width: 100%;
}

.brand img {
  width: 100%;
  height: auto;
}

.nav-main,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-main a,
.nav-button {
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-actions {
  justify-content: flex-end;
  gap: 14px;
}

.nav-button {
  min-width: 130px;
  padding: 15px 18px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 9px;
  text-align: center;
}

.nav-button:hover,
.nav-button[aria-current="page"] {
  border-color: var(--accent-strong);
  background: rgba(152, 166, 186, 0.12);
}

.hero {
  padding: 34px 0 96px;
}

.hero-grid {
  display: grid;
  overflow: hidden;
  min-height: 710px;
  grid-template-columns: minmax(340px, 0.72fr) minmax(0, 1.35fr);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 7vw, 92px);
}

.hero-media {
  order: -1;
  margin: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 710px;
  object-fit: cover;
  object-position: center 14%;
}

.hero-media figcaption {
  display: none;
}

.eyebrow {
  width: fit-content;
  margin-bottom: 24px;
  padding: 6px 12px;
  border-radius: 3px;
  background: var(--accent);
  color: #252a30;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow-light {
  background: var(--white);
}

.lead,
.rich-copy,
.doctor-copy p:not(.eyebrow),
.form-intro,
.privacy-note {
  color: var(--muted);
}

.lead {
  margin-bottom: 34px;
  font-size: clamp(1rem, 1.5vw, 1.14rem);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border: 1px solid var(--accent-strong);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #16191c;
}

.button-primary:hover {
  background: var(--accent-strong);
}

.button-quiet,
.button-light {
  background: rgba(255, 255, 255, 0.03);
}

.button-block {
  width: 100%;
}

.text-link {
  font-weight: 800;
  text-underline-offset: 5px;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 30px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.82rem;
  list-style: none;
}

.trust-list li::before {
  margin-right: 7px;
  color: var(--accent-strong);
  content: "✓";
  font-weight: 900;
}

.section {
  padding: 104px 0;
}

.section-tint {
  background: var(--panel);
}

.split-grid,
.feature-grid,
.faq-grid,
.doctor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(48px, 8vw, 110px);
}

.section-heading {
  margin-bottom: 48px;
}

.rich-copy {
  font-size: 1.08rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.step-card {
  min-height: 320px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-soft);
}

.step-card span {
  display: block;
  margin-bottom: 58px;
  color: var(--accent-strong);
  font-size: 1.8rem;
}

.step-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.feature-grid {
  align-items: center;
}

.feature-copy {
  min-width: 0;
}

.feature-media {
  margin: 0;
}

.feature-media img {
  width: 100%;
  max-height: 680px;
  border-radius: var(--radius);
  object-fit: cover;
}

.check-list {
  margin: 30px 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 13px 0 13px 36px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.check-list li::before {
  position: absolute;
  top: 15px;
  left: 0;
  color: var(--accent-strong);
  content: "✓";
  font-weight: 900;
}

.notice {
  padding: 22px 24px;
  border-left: 4px solid var(--accent);
  background: var(--panel-soft);
}

.notice p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.doctor-section {
  overflow: hidden;
  background: var(--panel);
}

.doctor-grid {
  min-height: 680px;
  align-items: center;
}

.doctor-copy {
  min-width: 0;
  padding: 90px 0;
}

.doctor-copy p:not(.eyebrow) {
  max-width: 600px;
  font-size: 1.08rem;
}

.doctor-media {
  align-self: end;
  margin: 0;
}

.doctor-media img {
  width: 100%;
  max-height: 650px;
  object-fit: cover;
  object-position: top center;
}

.faq-grid {
  align-items: start;
}

.sticky-heading {
  position: sticky;
  top: 36px;
}

.sticky-heading > p:last-child,
.faq-list details p {
  color: var(--muted);
}

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

.faq-list summary {
  position: relative;
  padding: 25px 52px 25px 0;
  cursor: pointer;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  list-style: none;
  text-transform: uppercase;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 20px;
  right: 6px;
  color: var(--accent-strong);
  content: "+";
  font-size: 1.8rem;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  padding-right: 42px;
}

.cta-band {
  padding: 78px 0;
  background: var(--accent);
  color: #171a1d;
}

.cta-band .eyebrow {
  background: #171a1d;
  color: var(--white);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.cta-inner h2 {
  margin-bottom: 12px;
}

.cta-inner p:not(.eyebrow) {
  margin: 0;
}

.cta-band .button-light {
  border-color: #171a1d;
  color: #171a1d;
}

.site-footer {
  padding: 70px 0 26px;
  background: #161b20;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 52px;
}

.footer-logo {
  width: min(320px, 100%);
  margin-bottom: 22px;
}

.site-footer h2 {
  margin-bottom: 14px;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.site-footer address {
  font-style: normal;
}

.site-footer a {
  display: block;
  width: fit-content;
  margin-bottom: 6px;
  color: var(--white);
  text-underline-offset: 4px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
}

.mobile-cta {
  display: none;
}

/* Página de cita */
.appointment-main {
  padding: 34px 0 100px;
}

.appointment-card {
  display: grid;
  overflow: hidden;
  min-height: 720px;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.form-panel {
  min-width: 0;
  padding: clamp(46px, 6vw, 84px);
}

.form-panel h1,
.form-panel h2 {
  margin-bottom: 18px;
  font-size: clamp(2.5rem, 4vw, 4rem);
}

.appointment-visual {
  margin: 0;
}

.appointment-visual img {
  width: 100%;
  height: 100%;
  min-height: 720px;
  object-fit: cover;
  object-position: center top;
}

.appointment-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin-top: 34px;
}

.appointment-form > .field,
.appointment-form > .honeypot {
  min-width: 0;
}

.field label {
  display: block;
  margin-top: 12px;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.field input,
.field select {
  width: 100%;
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--page);
  color: var(--white);
  font: inherit;
}

.field input:focus,
.field select:focus {
  border-color: var(--accent-strong);
  outline: 2px solid rgba(183, 193, 206, 0.25);
}

.field input[readonly] {
  color: var(--accent-strong);
}

.check-field,
.button-block,
.privacy-note {
  grid-column: 1 / -1;
}

.check-field {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 10px;
  margin: 18px 0 12px;
  color: var(--muted);
  font-size: 0.82rem;
}

.check-field input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  accent-color: var(--accent);
}

.privacy-note {
  margin: 8px 0 0;
  font-size: 0.75rem;
}

.honeypot {
  position: absolute !important;
  overflow: hidden;
  width: 1px;
  height: 1px;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.error-message {
  margin: 20px 0;
  padding: 16px 18px;
  border-left: 4px solid #d66b6b;
  background: rgba(214, 107, 107, 0.14);
  color: #ffd9d9;
  font-size: 0.88rem;
}

.error-message ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.success-message {
  padding: 50px 4px;
  text-align: center;
}

.success-message > span {
  display: inline-grid;
  width: 72px;
  height: 72px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 50%;
  background: rgba(129, 183, 149, 0.2);
  color: var(--success);
  font-size: 2rem;
  font-weight: 800;
}

.success-message p {
  margin-bottom: 28px;
  color: var(--muted);
}

@media (max-width: 1060px) {
  .nav-wrap {
    grid-template-columns: 1fr minmax(210px, 260px) 1fr;
  }

  .nav-main {
    gap: 16px;
  }

  .nav-main a:nth-child(3),
  .nav-actions .nav-button:first-child {
    display: none;
  }

  .hero-grid,
  .appointment-card {
    grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: 68px;
    font-size: 16px;
  }

  .shell {
    width: min(1180px, calc(100% - 28px));
  }

  .nav-wrap {
    display: flex;
    min-height: 94px;
    justify-content: center;
  }

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

  .nav-main,
  .nav-actions {
    display: none;
  }

  .hero,
  .section,
  .appointment-main {
    padding: 30px 0 70px;
  }

  .hero-grid,
  .appointment-card,
  .split-grid,
  .feature-grid,
  .faq-grid,
  .doctor-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: 0;
  }

  .hero-copy,
  .form-panel {
    padding: 38px 24px 44px;
  }

  .hero-media img {
    min-height: 430px;
    max-height: 560px;
  }

  h1 {
    font-size: clamp(2.7rem, 15vw, 4rem);
  }

  h1,
  h2,
  h3,
  p,
  a,
  label {
    overflow-wrap: anywhere;
  }

  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button-row .button,
  .button-row .text-link {
    width: 100%;
    text-align: center;
  }

  .trust-list {
    display: grid;
  }

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

  .step-card {
    min-height: 0;
  }

  .step-card span {
    margin-bottom: 28px;
  }

  .feature-media {
    order: 2;
  }

  .doctor-grid {
    gap: 0;
  }

  .doctor-copy {
    padding: 70px 0 24px;
  }

  .doctor-media {
    width: min(500px, 100%);
    margin-inline: auto;
  }

  .sticky-heading {
    position: static;
  }

  .cta-inner,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .mobile-cta {
    position: fixed;
    z-index: 30;
    right: 12px;
    bottom: 10px;
    left: 12px;
    display: flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--accent);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    color: #16191c;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
  }

  .appointment-card {
    min-height: 0;
  }

  .appointment-form {
    grid-template-columns: 1fr;
  }

  .appointment-form > *,
  .check-field,
  .button-block,
  .privacy-note {
    grid-column: 1;
  }

  .appointment-visual img {
    min-height: 420px;
    max-height: 600px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
