:root {
  --ink: #12313f;
  --muted: #5b6d76;
  --paper: #f7fbfa;
  --white: #ffffff;
  --line: #d7e5e4;
  --trust: #0b3a53;
  --trust-2: #123f68;
  --calm: #0f766e;
  --calm-2: #15a89a;
  --mint: #dff7ef;
  --action: #e85d3f;
  --action-2: #b9321f;
  --gold: #f2b84b;
  --rose: #ffe8e2;
  --shadow: 0 20px 60px rgba(11, 58, 83, 0.14);
  --shadow-soft: 0 12px 30px rgba(11, 58, 83, 0.1);
  --radius: 8px;
  --header-h: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  cursor: pointer;
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 200;
  transform: translateY(-130%);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
}

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

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.top-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 40px;
  padding: 8px 18px;
  background: var(--trust);
  color: var(--white);
  font-size: 0.92rem;
  text-align: center;
}

.top-strip a {
  color: var(--gold);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 251, 250, 0.9);
  border-bottom: 1px solid rgba(215, 229, 228, 0.7);
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
}

.nav-shell {
  width: min(1180px, calc(100% - 40px));
  min-height: var(--header-h);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  color: var(--white);
  background: linear-gradient(135deg, var(--calm), var(--trust));
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.22);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  line-height: 1.1;
  font-size: 1rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #294b59;
  font-weight: 700;
  font-size: 0.95rem;
}

.nav-menu a {
  position: relative;
}

.nav-menu a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--calm);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-menu a:hover::after {
  transform: scaleX(1);
}

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: var(--radius);
  font-weight: 900;
  line-height: 1.2;
  min-height: 48px;
  padding: 13px 18px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.nav-cta {
  color: var(--white);
  background: var(--trust);
  min-height: 42px;
  padding: 10px 14px;
}

.btn:hover,
.nav-cta:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--action), var(--action-2));
  box-shadow: 0 16px 34px rgba(232, 93, 63, 0.28);
}

.btn-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(10px);
}

.btn-ghost {
  width: 100%;
  color: var(--trust);
  background: var(--mint);
}

.btn svg,
.nav-cta svg,
.eyebrow svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--trust);
  padding: 8px 12px;
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: calc(100svh - 156px);
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg {
  background-image: url("assets/consulta-pre-anestesica-hero.jpg");
  background-size: cover;
  background-position: center right;
  transform: scale(1.02);
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 33, 48, 0.9) 0%, rgba(10, 56, 78, 0.75) 44%, rgba(10, 56, 78, 0.25) 100%),
    linear-gradient(180deg, rgba(7, 33, 48, 0.2), rgba(7, 33, 48, 0.72));
}

.hero-content {
  min-height: calc(100svh - 156px);
  display: flex;
  align-items: center;
  padding: 82px 0 62px;
}

.hero-copy {
  width: min(720px, 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--mint);
  font-size: 0.88rem;
  font-weight: 900;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--calm);
}

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

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: 4rem;
  line-height: 1.03;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: 2.5rem;
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 670px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.18rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 760px;
  margin: 0;
}

.hero-proof div {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.hero-proof dt {
  font-size: 1.16rem;
  font-weight: 950;
}

.hero-proof dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

.credibility-band {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

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

.credibility-grid div {
  padding: 22px;
  border-left: 1px solid var(--line);
}

.credibility-grid div:last-child {
  border-right: 1px solid var(--line);
}

.credibility-grid span,
.credibility-grid small,
.form-top span,
.site-footer span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.credibility-grid strong {
  display: block;
  margin: 5px 0;
  color: var(--trust);
  font-size: 1.05rem;
}

.section {
  padding: 92px 0;
}

.section-light {
  background:
    linear-gradient(180deg, rgba(223, 247, 239, 0.44), rgba(247, 251, 250, 0)),
    var(--paper);
}

.section-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 46px;
  align-items: start;
}

.section-copy {
  position: sticky;
  top: 112px;
}

.section-copy p,
.booking-copy p,
.trust-panel p,
.section-heading p {
  color: var(--muted);
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.info-card,
.step-card,
.booking-form,
.mini-dashboard {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.info-card {
  padding: 28px;
}

.info-card svg {
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  color: var(--calm);
}

.info-card p,
.step-card p,
.faq-list p,
.site-footer p {
  margin-bottom: 0;
  color: var(--muted);
}

.section-deep {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(11, 58, 83, 0.97), rgba(15, 118, 110, 0.9)),
    var(--trust);
}

.section-deep .section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-deep .section-heading p {
  color: rgba(255, 255, 255, 0.78);
}

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

.step-card {
  min-height: 248px;
  padding: 26px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.step-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 28px;
  border-radius: var(--radius);
  background: var(--gold);
  color: #2d2108;
  font-weight: 950;
}

.step-card p {
  color: rgba(255, 255, 255, 0.8);
}

.section-split {
  background: var(--white);
}

.split-layout,
.booking-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 42px;
  align-items: start;
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  color: #304f5d;
}

.check-list svg {
  width: 22px;
  height: 22px;
  color: var(--calm);
}

.mini-dashboard {
  padding: 28px;
}

.dash-header,
.form-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.dash-header strong,
.form-top output {
  border-radius: var(--radius);
  color: var(--trust);
  background: var(--mint);
  padding: 8px 12px;
  font-weight: 950;
}

.mini-dashboard label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  border-bottom: 1px solid var(--line);
  color: #314c58;
}

.mini-dashboard label:last-of-type {
  margin-bottom: 20px;
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--calm);
}

.section-form {
  background:
    linear-gradient(180deg, rgba(255, 232, 226, 0.48), rgba(247, 251, 250, 0.2)),
    var(--paper);
}

.notice {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  margin-top: 28px;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  background: #fff8e8;
  padding: 16px;
  color: #4b3a14;
}

.notice svg {
  width: 22px;
  height: 22px;
}

.booking-form {
  padding: 28px;
}

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

.booking-form label,
.message-field,
.slot-field legend {
  color: var(--trust);
  font-size: 0.92rem;
  font-weight: 900;
}

.booking-form input:not([type="checkbox"]),
.booking-form select,
.booking-form textarea {
  width: 100%;
  min-height: 48px;
  margin-top: 7px;
  border: 1px solid #bfd2d0;
  border-radius: var(--radius);
  background: #fbfefd;
  color: var(--ink);
  padding: 12px 13px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.booking-form textarea {
  resize: vertical;
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
  border-color: var(--calm);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
  outline: 0;
}

.booking-form .is-invalid {
  border-color: var(--action) !important;
  background: #fff7f4 !important;
}

.slot-field {
  margin: 20px 0;
  padding: 0;
  border: 0;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.slot-card {
  min-height: 82px;
  border: 1px solid #bfd2d0;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  padding: 12px;
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.slot-card span,
.slot-card strong {
  display: block;
}

.slot-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.slot-card strong {
  margin-top: 4px;
}

.slot-card:hover,
.slot-card.is-selected {
  transform: translateY(-2px);
  border-color: var(--calm);
  background: var(--mint);
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.16);
}

.message-field {
  display: block;
}

.consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  margin: 18px 0;
  color: #304f5d !important;
  font-weight: 650 !important;
}

.btn-submit {
  width: 100%;
}

.form-status {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--trust);
  font-weight: 800;
}

.form-status.is-error {
  color: var(--action-2);
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 42px;
  align-items: start;
}

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

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.faq-list summary {
  cursor: pointer;
  padding: 20px 22px;
  color: var(--trust);
  font-weight: 950;
}

.faq-list p {
  padding: 0 22px 22px;
}

.final-cta {
  padding: 86px 0;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(11, 58, 83, 0.96), rgba(184, 50, 31, 0.88)),
    var(--trust);
}

.final-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.final-content h2 {
  max-width: 690px;
  margin-bottom: 0;
}

.site-footer {
  padding: 34px 0 98px;
  color: #dcebea;
  background: #082b3c;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
}

.site-footer strong {
  color: var(--white);
}

.site-footer span {
  color: #a7c4c3;
}

.site-footer p {
  color: #c8d9d8;
}

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  color: var(--white);
  background: #1a8f64;
  box-shadow: 0 16px 34px rgba(26, 143, 100, 0.32);
}

.floating-whatsapp svg {
  width: 28px;
  height: 28px;
}

.mobile-cta {
  display: none;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  h1 {
    font-size: 3.1rem;
  }

  h2 {
    font-size: 2.05rem;
  }

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

  .nav-menu {
    position: fixed;
    inset: calc(var(--header-h) + 40px) 0 auto 0;
    display: none;
    min-height: calc(100svh - var(--header-h) - 40px);
    padding: 26px 20px;
    background: var(--white);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    padding: 14px;
    border-radius: var(--radius);
  }

  .nav-menu a:not(.nav-cta)::after {
    display: none;
  }

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

  .hero,
  .hero-content {
    min-height: auto;
  }

  .hero-content {
    padding: 82px 0 58px;
  }

  .hero-bg {
    background-position: 64% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(7, 33, 48, 0.94), rgba(10, 56, 78, 0.62)),
      linear-gradient(180deg, rgba(7, 33, 48, 0.1), rgba(7, 33, 48, 0.84));
  }

  .credibility-grid,
  .section-grid,
  .split-layout,
  .booking-layout,
  .faq-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .credibility-grid div,
  .credibility-grid div:last-child {
    border-right: 1px solid var(--line);
  }

  .section-copy {
    position: static;
  }

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

  .final-content {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  .container,
  .nav-shell {
    width: min(100% - 28px, 1180px);
  }

  .top-strip {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .brand small {
    display: none;
  }

  h1 {
    font-size: 2.45rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .hero-lead {
    font-size: 1.04rem;
  }

  .hero-actions,
  .hero-actions .btn {
    width: 100%;
  }

  .hero-proof,
  .benefit-grid,
  .steps,
  .form-grid,
  .slot-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }

  .info-card,
  .step-card,
  .booking-form,
  .mini-dashboard {
    padding: 22px;
  }

  .dash-header,
  .form-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .floating-whatsapp {
    display: none;
  }

  .mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: block;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.94);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(14px);
  }

  .mobile-cta .btn {
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
