:root {
  --bg: #f4f6f4;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-soft: #f7fbfa;
  --surface-accent: #eef6f4;
  --ink: #1f3538;
  --ink-soft: #476066;
  --line: #d4e0dd;
  --brand: #1f8b87;
  --brand-strong: #155c61;
  --accent: #9aa86f;
  --success: #1c9765;
  --shadow-sm: 0 12px 26px rgba(14, 34, 37, 0.06);
  --shadow-md: 0 22px 44px rgba(14, 34, 37, 0.09);
  --radius-md: 1.05rem;
  --radius-lg: 1.55rem;
  --container: min(1180px, 92vw);
  --header-height: 4.8rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 12%, rgba(31, 139, 135, 0.09), rgba(31, 139, 135, 0) 28%),
    radial-gradient(circle at 88% 86%, rgba(154, 168, 111, 0.11), rgba(154, 168, 111, 0) 26%),
    var(--bg);
  font-family: 'Manrope', 'Avenir Next', 'Segoe UI', sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
p,
ul {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  letter-spacing: -0.01em;
}

a {
  color: inherit;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(212, 224, 221, 0.84);
  background: rgba(250, 252, 251, 0.94);
  backdrop-filter: blur(12px);
}

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

.brand {
  display: inline-flex;
  text-decoration: none;
}

.brand img {
  width: auto;
  height: 2.7rem;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--ink-soft);
  font-size: 0.93rem;
  font-weight: 700;
}

.topbar-nav a {
  text-decoration: none;
}

.topbar-actions {
  display: inline-flex;
  gap: 0.55rem;
}

.pill,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.76rem;
  padding: 0 1.04rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  transition: transform 200ms ease, background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.pill:hover,
.button:hover {
  transform: translateY(-1px);
}

.pill-primary,
.button-primary {
  color: #ffffff;
  background: var(--brand);
  box-shadow: 0 12px 24px rgba(31, 139, 135, 0.2);
}

.pill-secondary,
.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border-color: #cddbd8;
}

.button-whatsapp {
  color: #ffffff;
  background: var(--success);
  box-shadow: 0 12px 24px rgba(28, 151, 101, 0.2);
}

main {
  padding: 1.75rem 0 3rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.36rem;
  color: #5b7478;
  font-size: 0.88rem;
  font-weight: 700;
}

.breadcrumbs a {
  color: var(--brand-strong);
  text-decoration: none;
}

.breadcrumbs span[aria-hidden='true'] {
  color: #8aa1a4;
}

.hero {
  margin-top: 0.95rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: start;
}

.hero-main,
.hero-aside,
.content-card,
.sidebar-card,
.cta-card,
.pager-link {
  border: 1px solid rgba(212, 224, 221, 0.92);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.hero-main {
  padding: 1.25rem;
}

.hero-aside {
  padding: 1rem;
  display: grid;
  gap: 0.92rem;
  overflow: hidden;
}

.eyebrow,
.sidebar-eyebrow {
  width: fit-content;
  border-radius: 999px;
  border: 1px solid #cbdad6;
  background: #ffffff;
  color: var(--brand-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.38rem 0.78rem;
}

.hero-main h1 {
  margin-top: 0.82rem;
  font-size: clamp(2.05rem, 4.8vw, 3.9rem);
  line-height: 0.96;
}

.intro {
  margin-top: 0.92rem;
  max-width: 58ch;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.45vw, 1.14rem);
}

.hero-points,
.detail-list,
.summary-list,
.related-list,
.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-points {
  margin-top: 1rem;
  display: grid;
  gap: 0.56rem;
}

.hero-points li,
.detail-list li,
.summary-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.56rem;
  color: #355157;
}

.hero-points li::before,
.detail-list li::before,
.summary-list li::before {
  content: '';
  width: 0.48rem;
  height: 0.48rem;
  margin-top: 0.46rem;
  border-radius: 50%;
  flex: 0 0 auto;
  background: linear-gradient(145deg, var(--brand), var(--accent));
}

.hero-actions,
.cta-actions {
  margin-top: 1.08rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.62rem;
}

.stat-grid {
  display: grid;
  gap: 0.72rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.stat-card {
  border: 1px solid #d6e2df;
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, #ffffff, #f4f8f7);
  padding: 0.88rem 0.9rem;
  min-height: 6.55rem;
  display: grid;
  align-content: start;
  gap: 0.18rem;
  overflow: hidden;
}

.stat-prefix {
  color: #587176;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-card strong {
  font-family: 'Manrope', 'Avenir Next', 'Segoe UI', sans-serif;
  font-size: clamp(1.12rem, 1.75vw, 1.56rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: 'lnum' 1, 'tnum' 1;
  text-wrap: balance;
}

.stat-card > span:last-child {
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.24;
  text-wrap: pretty;
}

.stat-card--numeric strong {
  font-size: clamp(1.3rem, 2vw, 1.82rem);
}

.stat-card--text strong {
  font-size: clamp(1.04rem, 1.55vw, 1.34rem);
  line-height: 1.05;
}

.stat-card--compact strong {
  font-size: clamp(0.95rem, 1.32vw, 1.14rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.stat-card--compact > span:last-child {
  font-size: 0.82rem;
}

.aside-card-label {
  color: #5c767a;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-aside h2,
.sidebar-card h3,
.content-card h2,
.cta-card h2,
.pager-link strong {
  line-height: 1.02;
}

.hero-aside h2 {
  font-size: 1.5rem;
}

.hero-note {
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.section-nav {
  position: sticky;
  top: calc(var(--header-height) + 0.55rem);
  z-index: 45;
  margin-top: 1rem;
}

.section-nav-inner {
  display: flex;
  gap: 0.48rem;
  overflow-x: auto;
  padding: 0.5rem;
  border: 1px solid rgba(212, 224, 221, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

.section-nav-inner a {
  white-space: nowrap;
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  text-decoration: none;
  color: #3b585d;
  font-size: 0.86rem;
  font-weight: 800;
}

.section-nav-inner a:hover,
.section-nav-inner a.is-current {
  background: #eef6f4;
  color: var(--brand-strong);
}

.page-layout {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 0.68fr) minmax(280px, 0.32fr);
}

.content-stack,
.sidebar-stack {
  display: grid;
  gap: 1rem;
}

.sidebar-stack {
  position: sticky;
  top: calc(var(--header-height) + 4.8rem);
  align-self: start;
}

.content-card,
.sidebar-card,
.cta-card {
  padding: 1rem;
}

.content-card-soft,
.cta-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(242, 247, 245, 0.94));
}

.card-header {
  display: grid;
  gap: 0.46rem;
}

.card-header h2 {
  font-size: clamp(1.7rem, 3vw, 2.16rem);
}

.card-header p {
  color: var(--ink-soft);
}

.dual-grid,
.focus-columns {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.82rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sub-card,
.focus-panel,
.process-list li {
  border: 1px solid #d6e2df;
  border-radius: var(--radius-md);
  background: rgba(251, 253, 252, 0.94);
}

.sub-card {
  padding: 0.96rem;
}

.sub-card h3,
.focus-column h3 {
  font-size: 1.26rem;
}

.detail-list,
.summary-list {
  margin-top: 0.72rem;
  display: grid;
  gap: 0.5rem;
}

.focus-panel {
  padding: 1rem;
  background: linear-gradient(150deg, #f8fcfb, #eef5f3);
}

.focus-kicker {
  color: #587176;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.focus-value {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.36rem;
  margin-top: 0.26rem;
  font-family: 'Manrope', 'Avenir Next', 'Segoe UI', sans-serif;
  font-size: clamp(1.06rem, 1.78vw, 1.28rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brand-strong);
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: 'lnum' 1, 'tnum' 1;
  text-wrap: pretty;
}

.focus-prefix {
  color: #587176;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.note-stack {
  margin-top: 0.62rem;
  display: grid;
  gap: 0.42rem;
}

.note-stack p {
  color: #3c5a60;
  font-size: 0.91rem;
  font-weight: 700;
}

.process-list {
  margin-top: 0.86rem;
  display: grid;
  gap: 0.72rem;
}

.process-list li {
  padding: 0.92rem 0.96rem;
}

.process-list strong {
  display: block;
  font-size: 1rem;
}

.process-list p {
  margin-top: 0.24rem;
  color: var(--ink-soft);
}

.sidebar-card h3 {
  font-size: 1.24rem;
}

.sidebar-copy {
  margin-top: 0.35rem;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.credentials-line {
  margin-top: 0.8rem;
  color: #5e7a7e;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.55;
}

.sidebar-actions {
  margin-top: 0.84rem;
  display: grid;
  gap: 0.56rem;
}

.contact-link {
  color: var(--brand-strong);
  font-weight: 800;
  text-decoration: none;
}

.related-list {
  margin-top: 0.76rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.46rem;
}

.related-list a {
  border: 1px solid #d3dfdc;
  border-radius: 999px;
  background: #ffffff;
  padding: 0.42rem 0.74rem;
  text-decoration: none;
  color: #35555b;
  font-size: 0.86rem;
  font-weight: 800;
}

.cta-card h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.cta-card p {
  margin-top: 0.44rem;
  color: var(--ink-soft);
}

.pager {
  margin-top: 1rem;
  display: grid;
  gap: 0.82rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pager-link {
  padding: 1rem 1.04rem;
  text-decoration: none;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.pager-link small {
  display: block;
  color: #587176;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pager-link strong {
  display: block;
  margin-top: 0.28rem;
  font-size: 1.34rem;
}

.pager-link:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 139, 135, 0.28);
  box-shadow: var(--shadow-md);
}

.footer-note {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #d7e3e0;
  color: #506a6f;
  font-size: 0.92rem;
}

.mobile-sticky-cta {
  display: none;
  opacity: 0;
  transform: translateY(1rem);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.mobile-sticky-cta.is-hidden {
  opacity: 0;
  transform: translateY(1rem);
  pointer-events: none;
}

#indicaciones,
#precio,
#plan,
#proceso,
#agenda {
  scroll-margin-top: calc(var(--header-height) + 4.5rem);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #91d7cb;
  outline-offset: 2px;
}

@media (max-width: 1120px) {
  .hero,
  .page-layout,
  .focus-columns {
    grid-template-columns: 1fr;
  }

  .sidebar-stack {
    position: relative;
    top: auto;
  }
}

@media (max-width: 980px) {
  :root {
    --header-height: 4.4rem;
  }

  .topbar-nav {
    display: none;
  }

  .hero-main {
    padding: 1rem;
  }

  .hero-main h1 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .section-nav {
    top: calc(var(--header-height) + 0.45rem);
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1180px, 94vw);
  }

  .topbar-actions {
    display: none;
  }

  main {
    padding-bottom: 5rem;
  }

  .hero-actions .button,
  .cta-actions .button,
  .sidebar-actions .button {
    width: 100%;
  }

  .stat-grid,
  .dual-grid,
  .pager {
    grid-template-columns: 1fr;
  }

  .mobile-sticky-cta {
    position: fixed;
    left: 0.65rem;
    right: 0.65rem;
    bottom: max(0.65rem, env(safe-area-inset-bottom));
    z-index: 80;
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .mobile-sticky-cta.is-hidden {
    opacity: 0;
    transform: translateY(1rem);
    pointer-events: none;
  }

  .mobile-sticky-cta .button {
    width: 100%;
    min-height: 3rem;
    border-radius: 0.88rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
