:root {
  --bg: #f4efe6;
  --bg-strong: #efe6d8;
  --surface: rgba(255, 255, 255, 0.74);
  --surface-strong: #ffffff;
  --text: #10211d;
  --muted: #4f625b;
  --line: rgba(16, 33, 29, 0.1);
  --deep-green: #17362f;
  --ink-blue: #1f3040;
  --coral: #c96d5c;
  --coral-soft: #efd4cc;
  --shadow: 0 22px 60px rgba(23, 54, 47, 0.12);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(201, 109, 92, 0.1), transparent 30%),
    radial-gradient(circle at top right, rgba(31, 48, 64, 0.1), transparent 35%),
    linear-gradient(180deg, #fbf8f2 0%, var(--bg) 100%);
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

.ambient-lights {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.light-orb,
.sparkle {
  position: absolute;
  pointer-events: none;
}

.light-orb {
  width: clamp(16rem, 25vw, 28rem);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.28;
  will-change: transform, opacity;
  animation: ambient-orb-drift 24s ease-in-out infinite;
}

.light-orb--green {
  top: 8%;
  left: -10%;
  background: radial-gradient(circle, rgba(83, 150, 136, 0.25), transparent 68%);
}

.light-orb--coral {
  top: 49%;
  right: -12%;
  background: radial-gradient(circle, rgba(201, 109, 92, 0.2), transparent 68%);
  animation-delay: -8s;
}

.light-orb--blue {
  bottom: -12%;
  left: 36%;
  width: clamp(13rem, 20vw, 22rem);
  background: radial-gradient(circle, rgba(58, 99, 125, 0.17), transparent 70%);
  animation-delay: -14s;
}

.sparkle {
  width: 0.42rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0.7rem 0.18rem rgba(255, 251, 239, 0.58);
  opacity: 0.22;
  will-change: transform, opacity;
  animation: ambient-sparkle 11s ease-in-out infinite;
}

.sparkle--one {
  top: 18%;
  left: 10%;
}

.sparkle--two {
  top: 36%;
  right: 14%;
  animation-delay: -3s;
}

.sparkle--three {
  bottom: 20%;
  left: 24%;
  animation-delay: -6s;
}

.sparkle--four {
  right: 31%;
  bottom: 8%;
  animation-delay: -1.5s;
}

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

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

button,
a.button {
  font: inherit;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  padding: 0.75rem 1rem;
  background: var(--deep-green);
  color: #fff;
  border-radius: 999px;
  transform: translateY(-180%);
  transition: transform 2.2s ease;
  z-index: 1000;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(244, 239, 230, 0.82);
  border-bottom: 1px solid rgba(16, 33, 29, 0.08);
}

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

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

.brand-logo {
  width: clamp(210px, 25vw, 310px);
  height: auto;
  mix-blend-mode: multiply;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--deep-green);
  padding: 0.8rem 1rem;
}

.menu-toggle-lines {
  display: inline-grid;
  gap: 0.24rem;
}

.menu-toggle-lines::before,
.menu-toggle-lines::after,
.menu-toggle-lines {
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.menu-toggle-lines::before,
.menu-toggle-lines::after {
  content: "";
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.site-nav a {
  color: var(--muted);
  font-weight: 600;
  transition: color 220ms ease, transform 220ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--deep-green);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
  cursor: pointer;
}

.nav-cta,
.button-primary {
  background: linear-gradient(135deg, var(--deep-green), #234f44);
  color: #fff;
  box-shadow: 0 18px 30px rgba(23, 54, 47, 0.18);
}

.site-nav .nav-cta,
.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible,
.site-nav .nav-cta:active {
  background: #2f932d;
  color: #ffffff;
  opacity: 1;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(16, 33, 29, 0.08);
  color: var(--deep-green);
}

.button-disabled {
  background: rgba(201, 109, 92, 0.08);
  color: var(--muted);
  border-color: rgba(201, 109, 92, 0.16);
  cursor: not-allowed;
}

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

.section-shell {
  padding: 4.5rem 0;
}

.hero {
  padding-top: 3rem;
  overflow: visible;
}

.hero .container {
  width: min(100% - 2rem, 1320px);
}

.hero-grid,
.about-grid,
.contact-grid,
.footer-grid {
  display: grid;
  gap: 2rem;
}

.hero-grid {
  grid-template-columns: minmax(0, 0.94fr) minmax(520px, 1.06fr);
  gap: clamp(2.5rem, 5vw, 4.75rem);
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--coral);
}

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

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 5vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  margin-bottom: 1rem;
  max-width: 11ch;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.lead,
.about-copy p,
.service-card p,
.hero-card p,
.info-block p,
.process-list p,
.contact-copy p,
.site-footer p,
.site-footer li,
.helper-note {
  color: var(--muted);
  line-height: 1.7;
}

.lead {
  font-size: 1.08rem;
  max-width: 56ch;
  margin-bottom: 1.4rem;
}

.hero-positioning {
  max-width: 54ch;
  margin-top: -0.55rem;
  color: var(--deep-green);
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.65;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.3rem;
}

.hero-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  padding: 0.45rem;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 24px;
  background: rgba(255, 253, 249, 0.76);
  box-shadow: 0 16px 38px rgba(23, 54, 47, 0.1);
  backdrop-filter: blur(12px);
  opacity: 0;
  translate: 0 18px;
}

.hero-benefits.is-visible {
  animation: hero-benefits-reveal 2.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s forwards;
}

.hero-benefit-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  padding: 0.7rem 0.8rem;
}

.hero-benefit-item + .hero-benefit-item {
  border-left: 1px solid rgba(23, 54, 47, 0.12);
}

.hero-benefit-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(83, 150, 136, 0.18), rgba(23, 54, 47, 0.08));
  color: var(--deep-green);
}

.hero-benefit-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.hero-benefit-text {
  color: var(--ink-blue);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
}

.hero-panel {
  position: relative;
  min-height: clamp(580px, 47vw, 660px);
  background: radial-gradient(circle at 72% 18%, rgba(201, 109, 92, 0.14), transparent 32%);
  isolation: isolate;
}

.hero-panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 1.4rem 0.7rem 1.4rem 1.5rem;
  border: 1px solid rgba(23, 54, 47, 0.13);
  border-radius: 48% 52% 46% 54% / 40% 39% 61% 60%;
  transform: rotate(-4deg);
}

.hero-image-frame {
  position: absolute;
  inset: 0.35rem 0.2rem 0.35rem 0.4rem;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.7);
  border-radius: 48% 52% 46% 54% / 40% 39% 61% 60%;
  background: var(--bg-strong);
  box-shadow: 0 26px 56px rgba(23, 54, 47, 0.16);
  transform: rotate(-2deg);
}

.hero-image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.2), transparent 42%, rgba(23, 54, 47, 0.08));
  pointer-events: none;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 51% center;
  transform: rotate(2deg) scale(1.06);
}

.hero-floating-cards {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.hero-floating-card {
  position: absolute;
  max-width: 240px;
  padding: 1.2rem;
  border-radius: 22px;
  background: rgba(255, 253, 249, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.84);
  color: var(--deep-green);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 36px rgba(23, 54, 47, 0.13);
  opacity: 0;
  translate: 0 18px;
}

.hero-floating-card.is-visible {
  animation:
    hero-card-reveal 2.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards,
    hero-card-float 8s ease-in-out 0.8s infinite;
}

.hero-floating-card--focus {
  top: 2.25rem;
  right: 0.8rem;
  animation-delay: 0.1s, 0.9s;
}

.hero-floating-card--commitment {
  bottom: 1.5rem;
  left: 0.8rem;
  animation-delay: 0.22s, 1.02s;
}

@media (min-width: 1181px) {
  .hero-floating-card--focus {
    right: -1.25rem;
  }

  .hero-floating-card--commitment {
    left: -2.5rem;
  }
}

.hero-card-label {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--coral);
}

.hero-floating-card strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.45rem;
}

.hero-floating-card p {
  color: var(--muted);
}

.hero-emblem {
  position: absolute;
  inset: 2.15rem auto auto 2.6rem;
  display: grid;
  place-items: center;
  z-index: 1;
  width: 96px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.5);
  opacity: 0.62;
  transform: rotate(-6deg);
}

.hero-emblem::before {
  content: "+";
  position: absolute;
  font: 300 6rem/1 Georgia, serif;
  color: rgba(255, 255, 255, 0.42);
}

.hero-emblem span {
  z-index: 1;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  letter-spacing: 0.2em;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.hero-orb-one {
  width: 190px;
  height: 190px;
  background: radial-gradient(circle, rgba(201, 109, 92, 0.6), rgba(201, 109, 92, 0));
  top: 8%;
  left: 18%;
}

.hero-orb-two {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(243, 223, 200, 0.22), rgba(243, 223, 200, 0));
  right: -6%;
  bottom: -10%;
}

.section-heading {
  max-width: 56rem;
  margin-bottom: 1.7rem;
}

.section-heading > p:last-child {
  max-width: 64ch;
  color: var(--muted);
  line-height: 1.7;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.service-card {
  --glow-x: 50%;
  --glow-y: 50%;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  grid-column: span 3;
  position: relative;
  overflow: hidden;
  padding: 1.35rem;
  background: var(--surface);
  border: 1px solid rgba(16, 33, 29, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(23, 54, 47, 0.06);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 2.65s ease,
    transform 2.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 2.35s ease,
    border-color 2.35s ease;
}

.service-card::before,
.service-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.service-card::before {
  z-index: 0;
  inset: -1px;
  background: radial-gradient(
    260px circle at var(--glow-x) var(--glow-y),
    rgba(83, 150, 136, 0.2),
    rgba(201, 109, 92, 0.09) 34%,
    transparent 68%
  );
  opacity: 0;
  transition: opacity 2.35s ease;
}

.service-card::after {
  width: 160px;
  height: 160px;
  top: -95px;
  right: -75px;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(83, 150, 136, 0.15), transparent 68%);
  animation: service-light-drift 10s ease-in-out infinite;
}

.service-card > * {
  position: relative;
  z-index: 1;
}

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

@media (hover: hover) and (pointer: fine) {
  .service-card.is-tilting {
    transform:
      perspective(1000px)
      translateY(-8px)
      rotateX(var(--tilt-x))
      rotateY(var(--tilt-y))
      scale(1.015);
    border-color: rgba(45, 121, 107, 0.38);
    box-shadow: 0 24px 52px rgba(23, 54, 47, 0.16), 0 0 0 1px rgba(83, 150, 136, 0.09);
  }

  .service-card.is-tilting::before {
    opacity: 1;
  }
}

.service-card > a,
.service-card-face--front > a {
  display: inline-flex;
  margin-top: 0.35rem;
  color: var(--deep-green);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(201, 109, 92, 0.5);
  text-underline-offset: 0.3em;
}

.service-card--infographic {
  min-height: 350px;
  padding: 0;
  perspective: 1200px;
}

.service-card[data-infographic-service="ultrasonido-estructural"],
.service-card[data-infographic-service="ultrasonido-doppler"] {
  min-height: 420px;
}

.service-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
  transform-style: preserve-3d;
  transition: transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.service-card.is-flipped .service-card-inner {
  transform: rotateY(180deg);
}

.service-card-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 1.35rem;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.service-card-face--front {
  justify-content: flex-start;
  gap: 0.65rem;
}

.service-card-face--front p {
  margin-bottom: 0;
}

.service-card-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 1rem;
}

.service-card-actions > a {
  display: inline-flex;
  margin-top: 0;
  color: var(--deep-green);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(201, 109, 92, 0.5);
  text-underline-offset: 0.3em;
}

.service-card-face--back {
  justify-content: space-between;
  gap: 0.8rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(237, 245, 241, 0.98));
  border-radius: inherit;
  transform: rotateY(180deg);
}

.service-card-face--back h3 {
  font-size: 1rem;
  margin-bottom: 0;
}

.service-infographic-link,
.service-infographic-return,
.service-infographic-expand {
  width: fit-content;
  border: 0;
  padding: 0;
  color: var(--deep-green);
  background: transparent;
  font: inherit;
  font-weight: 800;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: rgba(201, 109, 92, 0.5);
  text-underline-offset: 0.3em;
  cursor: pointer;
  transition: color 220ms ease, transform 220ms ease, text-decoration-color 220ms ease;
}

.service-infographic-link:hover,
.service-infographic-return:hover,
.service-infographic-expand:hover {
  color: var(--coral);
  transform: translateY(-1px);
}

.service-infographic-link {
  margin-top: 0;
  color: var(--ink-blue);
  font-size: 0.88rem;
}

.service-infographic-preview {
  display: grid;
  flex: 1;
  min-height: 150px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(16, 33, 29, 0.1);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 9px 20px rgba(23, 54, 47, 0.09);
  cursor: zoom-in;
}

.service-infographic-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-infographic-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.service-infographic-expand {
  color: var(--ink-blue);
}

.infographic-modal {
  width: min(940px, calc(100% - 2rem));
  max-width: 940px;
  max-height: min(92dvh, 960px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(7, 29, 37, 0.35);
}

.infographic-modal::backdrop {
  background: rgba(9, 29, 31, 0.66);
  backdrop-filter: blur(5px);
}

.infographic-modal-shell {
  display: grid;
  grid-template-rows: auto minmax(280px, 1fr) auto;
  height: min(88dvh, 900px);
}

.infographic-modal-header,
.infographic-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: #fffdf9;
}

.infographic-modal-header {
  border-bottom: 1px solid rgba(16, 33, 29, 0.1);
}

.infographic-modal-kicker {
  margin: 0 0 0.16rem;
  color: var(--deep-green);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.infographic-modal h2 {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.infographic-modal-close,
.infographic-modal-controls button {
  border: 1px solid rgba(16, 33, 29, 0.14);
  border-radius: 0.65rem;
  color: var(--deep-green);
  background: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.infographic-modal-close {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  font-size: 1.7rem;
  line-height: 1;
}

.infographic-modal-footer {
  flex-wrap: wrap;
  border-top: 1px solid rgba(16, 33, 29, 0.1);
}

.infographic-modal-service-actions,
.infographic-modal-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.infographic-modal-controls { justify-content: flex-end; }

.infographic-modal-action {
  display: inline-flex;
  align-items: center;
  min-height: 2.45rem;
  padding: 0.45rem 0.78rem;
  border: 1px solid rgba(16, 33, 29, 0.14);
  border-radius: 0.65rem;
  color: #fff;
  background: var(--deep-green);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.infographic-modal-action--schedule {
  color: var(--deep-green);
  background: #fff;
}

.infographic-modal-controls button {
  min-width: 2.55rem;
  min-height: 2.45rem;
  padding: 0.45rem 0.75rem;
}

.infographic-modal-controls button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.infographic-zoom-status {
  min-width: 3.5rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.infographic-viewport {
  position: relative;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(circle at 18% 18%, rgba(83, 150, 136, 0.11), transparent 34%),
    #edf1ed;
  touch-action: pan-y;
}

.infographic-viewport.is-zoomed {
  cursor: grab;
  touch-action: none;
}

.infographic-viewport.is-panning {
  cursor: grabbing;
}

.infographic-modal-image {
  display: block;
  width: min(100%, 760px);
  height: auto;
  min-width: 100%;
  margin: 0 auto;
  object-fit: contain;
  transform-origin: center;
  transition: transform 0.2s ease;
  user-select: none;
}

.infographic-viewport.is-panning .infographic-modal-image {
  transition: none;
}

.service-infographic-link:focus-visible,
.service-infographic-preview:focus-visible,
.service-infographic-return:focus-visible,
.service-infographic-expand:focus-visible,
.infographic-modal-action:focus-visible,
.infographic-modal button:focus-visible {
  outline: 3px solid rgba(45, 121, 107, 0.55);
  outline-offset: 3px;
}

.service-kicker {
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 800;
}

.service-card--orientation {
  background: linear-gradient(135deg, var(--deep-green), var(--ink-blue));
  color: #ffffff;
}

.service-card--orientation::before {
  background: radial-gradient(
    260px circle at var(--glow-x) var(--glow-y),
    rgba(255, 255, 255, 0.18),
    rgba(201, 109, 92, 0.14) 38%,
    transparent 70%
  );
}

.service-card--orientation p {
  color: rgba(255, 255, 255, 0.82);
}

.service-card--orientation .service-kicker,
.service-card--orientation .service-icon,
.service-card--orientation > a {
  color: #ffffff;
}

.service-card--orientation .service-icon {
  background: rgba(255, 255, 255, 0.14);
}

.services-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.conventions-section {
  position: relative;
  overflow: hidden;
}

.conventions-section::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  top: 8%;
  right: -210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(83, 150, 136, 0.11), transparent 68%);
  pointer-events: none;
}

.conventions-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.convention-card {
  position: relative;
  min-height: 220px;
  padding: 1.4rem;
  overflow: hidden;
  border: 1px solid rgba(16, 33, 29, 0.09);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 30px rgba(23, 54, 47, 0.06);
  opacity: 0;
  translate: 0 20px;
  transition: opacity 2.65s ease, translate 2.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 2.35s ease, border-color 2.35s ease;
}

.convention-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(230px circle at 80% 12%, rgba(83, 150, 136, 0.16), transparent 68%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 2.35s ease;
}

.convention-card > * {
  position: relative;
  z-index: 1;
}

.convention-card.is-visible {
  opacity: 1;
  translate: 0;
}

.convention-card:nth-child(2) { transition-delay: 0.12s; }
.convention-card:nth-child(3) { transition-delay: 0.24s; }
.convention-card:nth-child(4) { transition-delay: 0.36s; }

.convention-mark {
  display: grid;
  width: 3.15rem;
  height: 3.15rem;
  margin-bottom: 1rem;
  place-items: center;
  border-radius: 1rem;
  color: var(--deep-green);
  background: #edf3e7;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.convention-mark--sanatorio { color: #1b416a; background: #e8eff7; }
.convention-mark--neoimagen { color: #257a73; background: #e4f1ef; font-size: 1.45rem; }

.convention-card h3 { margin-bottom: 0.55rem; font-size: 1.08rem; }
.convention-card p { margin-bottom: 0; color: var(--muted); line-height: 1.65; }

.convention-card--cta {
  display: flex;
  flex-direction: column;
  background: linear-gradient(145deg, var(--deep-green), var(--ink-blue));
  color: #fff;
}

.convention-card--cta p { color: rgba(255, 255, 255, 0.78); }

.convention-kicker {
  margin-bottom: 0.6rem !important;
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.convention-link {
  width: fit-content;
  margin-top: auto;
  padding-top: 1rem;
  color: #fff;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.5);
  text-underline-offset: 0.3em;
}

@media (hover: hover) and (pointer: fine) {
  .convention-card:hover {
    translate: 0 -4px;
    border-color: rgba(45, 121, 107, 0.3);
    box-shadow: 0 18px 34px rgba(23, 54, 47, 0.13);
  }

  .convention-card:hover::before { opacity: 1; }
}

.service-icon,
.process-step {
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(23, 54, 47, 0.1), rgba(201, 109, 92, 0.12));
  color: var(--deep-green);
  font-weight: 800;
  margin-bottom: 1rem;
}

.about-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: stretch;
}

.about-copy,
.about-aside,
.contact-panel {
  padding: 1.5rem;
  border: 1px solid rgba(16, 33, 29, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 12px 36px rgba(23, 54, 47, 0.08);
}

.about-aside {
  display: grid;
  gap: 1rem;
}

.reveal-on-scroll {
  opacity: 0;
  translate: 0 22px;
}

.about-main-card.is-visible {
  animation: about-card-reveal 2.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.about-side-card {
  --about-glow-x: 50%;
  --about-glow-y: 50%;
  position: relative;
  overflow: hidden;
  transition: translate 2.3s ease, box-shadow 2.3s ease, border-color 2.3s ease;
}

.about-side-card::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -1px;
  background: radial-gradient(
    180px circle at var(--about-glow-x) var(--about-glow-y),
    rgba(83, 150, 136, 0.16),
    rgba(201, 109, 92, 0.06) 43%,
    transparent 72%
  );
  opacity: 0;
  transition: opacity 2.35s ease;
  pointer-events: none;
}

.about-side-card > * {
  position: relative;
  z-index: 1;
}

.about-side-card.is-visible {
  animation:
    about-card-reveal 2.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards,
    about-card-float 9s ease-in-out 0.85s infinite;
}

.about-side-card--closeness.is-visible {
  animation-delay: 0.14s, 0.99s;
}

.about-side-card--professionalism.is-visible {
  animation-delay: 0.28s, 1.13s;
  animation-duration: 2.7s, 9.8s;
}

.about-eyebrow::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2px;
  margin-top: 0.5rem;
  border-radius: 999px;
  background: var(--deep-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 2.65s ease 0.18s;
}

.about-main-card.is-visible .about-eyebrow::after {
  transform: scaleX(1);
}

@media (hover: hover) and (pointer: fine) {
  .about-side-card:hover {
    translate: 0 -4px;
    border-color: rgba(45, 121, 107, 0.28);
    box-shadow: 0 18px 34px rgba(23, 54, 47, 0.13), 0 0 0 1px rgba(83, 150, 136, 0.06);
  }

  .about-side-card:hover::before {
    opacity: 1;
  }
}

.info-block,
.contact-item {
  padding: 1.1rem 1.05rem;
  border-radius: 18px;
  background: rgba(244, 239, 230, 0.72);
  border: 1px solid rgba(16, 33, 29, 0.06);
}

.info-label,
.contact-item span {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral);
}

.contact-item a,
.footer-list a {
  color: var(--deep-green);
  overflow-wrap: anywhere;
}

.contact-item a:hover,
.footer-list a:hover {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.process-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding: 0;
  margin: 0;
  position: relative;
  isolation: isolate;
}

.process-list::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 2.6rem;
  right: 12.5%;
  left: 12.5%;
  height: 1px;
  background: linear-gradient(90deg, rgba(83, 150, 136, 0.1), rgba(83, 150, 136, 0.45), rgba(201, 109, 92, 0.15));
  transform: scaleX(0);
  transform-origin: left;
}

.process-list.is-visible::before {
  animation: process-line-reveal 3s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s forwards;
}

.process-list li {
  padding: 1.3rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid rgba(16, 33, 29, 0.08);
  box-shadow: 0 10px 26px rgba(23, 54, 47, 0.06);
}

.process-card {
  position: relative;
  z-index: 1;
  overflow: hidden;
  opacity: 0;
  translate: 0;
  transform: translateY(24px) scale(0.98);
  transition: translate 2.25s ease, box-shadow 2.25s ease, border-color 2.25s ease;
}

.process-card::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -1px;
  background: radial-gradient(190px circle at 50% 25%, rgba(83, 150, 136, 0.14), transparent 70%);
  opacity: 0;
  transition: opacity 2.3s ease;
  pointer-events: none;
}

.process-card > * {
  position: relative;
  z-index: 1;
}

.process-card.is-visible {
  animation: process-card-reveal 2.68s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.process-card--two.is-visible {
  animation-delay: 0.14s;
}

.process-card--three.is-visible {
  animation-delay: 0.28s;
}

.process-card--four.is-visible {
  animation-delay: 0.42s;
}

.process-step {
  margin-bottom: 1rem;
  opacity: 0;
  transform: scale(0.85);
  transition: background 2.3s ease, box-shadow 2.3s ease;
}

.process-card.is-visible .process-step {
  animation: process-number-reveal 2.45s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: 0.18s;
}

.process-card--two.is-visible .process-step {
  animation-delay: 0.32s;
}

.process-card--three.is-visible .process-step {
  animation-delay: 0.46s;
}

.process-card--four.is-visible .process-step {
  animation-delay: 0.6s;
}

.process-card.is-active {
  border-color: rgba(45, 121, 107, 0.26);
  box-shadow: 0 14px 30px rgba(23, 54, 47, 0.1), 0 0 0 1px rgba(83, 150, 136, 0.05);
}

.process-card.is-active::before {
  opacity: 1;
}

.process-card.is-active .process-step {
  background: linear-gradient(145deg, rgba(83, 150, 136, 0.24), rgba(201, 109, 92, 0.13));
  box-shadow: 0 0 0 4px rgba(83, 150, 136, 0.06);
}

@media (hover: hover) and (pointer: fine) {
  .process-card:hover {
    translate: 0 -6px;
    border-color: rgba(45, 121, 107, 0.32);
    box-shadow: 0 18px 34px rgba(23, 54, 47, 0.13), 0 0 0 1px rgba(83, 150, 136, 0.06);
  }

  .process-card:hover::before {
    opacity: 1;
  }

  .process-card:hover .process-step {
    background: linear-gradient(145deg, rgba(83, 150, 136, 0.22), rgba(201, 109, 92, 0.13));
  }
}

.contact-grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  align-items: center;
}

.contact-content,
.contact-panel {
  opacity: 0;
  translate: 0;
  transform: translateY(24px);
}

.contact-content.is-visible {
  animation: contact-reveal 2.72s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.contact-panel.is-visible {
  animation: contact-reveal 2.72s cubic-bezier(0.2, 0.8, 0.2, 1) 0.14s forwards;
}

.contact-panel {
  display: grid;
  gap: 0.85rem;
}

.contact-card {
  --contact-glow-x: 50%;
  --contact-glow-y: 50%;
  position: relative;
  display: block;
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  opacity: 0;
  translate: 0;
  transform: translateY(18px);
  transition: translate 2.28s ease, box-shadow 2.28s ease, border-color 2.28s ease;
}

.contact-card::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -1px;
  background: radial-gradient(
    180px circle at var(--contact-glow-x) var(--contact-glow-y),
    rgba(83, 150, 136, 0.15),
    rgba(201, 109, 92, 0.05) 42%,
    transparent 72%
  );
  opacity: 0;
  transition: opacity 2.3s ease;
  pointer-events: none;
}

.contact-card > * {
  position: relative;
  z-index: 1;
}

.contact-card.is-visible {
  animation: contact-card-reveal 2.68s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.contact-card:nth-child(1).is-visible {
  animation-delay: 0.22s;
}

.contact-card:nth-child(2).is-visible {
  animation-delay: 0.32s;
}

.contact-card:nth-child(3).is-visible {
  animation-delay: 0.42s;
}

.contact-card:nth-child(4).is-visible {
  animation-delay: 0.52s;
}

.contact-card--clickable strong {
  color: var(--deep-green);
}

@media (hover: hover) and (pointer: fine) {
  .contact-card--clickable:hover {
    translate: 0 -4px;
    border-color: rgba(45, 121, 107, 0.3);
    box-shadow: 0 17px 32px rgba(23, 54, 47, 0.12), 0 0 0 1px rgba(83, 150, 136, 0.06);
  }

  .contact-card--clickable:hover::before {
    opacity: 1;
  }

  .contact-card--clickable:hover strong {
    text-decoration: underline;
    text-decoration-color: rgba(201, 109, 92, 0.5);
    text-underline-offset: 0.25em;
  }
}

.contact-button:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 20px 34px rgba(23, 54, 47, 0.2);
}

.contact-button:active {
  transform: translateY(0) scale(0.98);
}

.contact-content.is-visible .whatsapp-pulse {
  animation: contact-whatsapp-pulse 6.8s ease-in-out 1.2s infinite;
}

.contact-feedback {
  min-height: 1.4rem;
  margin: 0.45rem 0 0;
  color: var(--deep-green);
  font-size: 0.88rem;
  font-weight: 700;
  opacity: 0;
  translate: 0 4px;
  transition: opacity 2.2s ease, translate 2.2s ease;
}

.contact-feedback.is-visible {
  opacity: 1;
  translate: 0;
}

.helper-note {
  margin: 0;
  max-width: 52ch;
}

.helper-note code {
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  background: rgba(23, 54, 47, 0.08);
  color: var(--deep-green);
}

.site-footer {
  padding: 2rem 0 1rem;
  border-top: 1px solid rgba(16, 33, 29, 0.08);
  background: rgba(255, 255, 255, 0.4);
}

.footer-grid {
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
}

.footer-logo {
  display: block;
  width: min(100%, 265px);
  height: auto;
  margin-bottom: 0.7rem;
  mix-blend-mode: multiply;
}

.footer-social {
  margin-top: 1.3rem;
}

.footer-social h2 {
  margin: 0 0 0.65rem;
  color: var(--deep-green);
  font-size: 0.92rem;
}

.footer-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.footer-social-link {
  display: inline-grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid rgba(23, 54, 47, 0.18);
  border-radius: 999px;
  color: var(--deep-green);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 7px 16px rgba(23, 54, 47, 0.08);
  transition: transform 220ms ease, color 220ms ease, background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.footer-social-link svg {
  width: 1.25rem;
  height: 1.25rem;
}

.footer-social-link:hover {
  color: #ffffff;
  background: var(--deep-green);
  border-color: var(--deep-green);
  box-shadow: 0 10px 22px rgba(23, 54, 47, 0.2);
  transform: translateY(-3px);
}

.footer-social-link:focus-visible {
  outline: 3px solid rgba(47, 147, 45, 0.5);
  outline-offset: 3px;
}

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

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
  color: var(--muted);
}

.footer-list span {
  color: var(--deep-green);
  font-weight: 600;
}

.footer-bottom {
  padding-top: 1.25rem;
  margin-top: 1.25rem;
  border-top: 1px solid rgba(16, 33, 29, 0.08);
  color: var(--muted);
}

.footer-bottom p {
  margin-bottom: 0;
}

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

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(201, 109, 92, 0.45);
  outline-offset: 3px;
}

.agreements-network {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(4.5rem, 9vw, 8rem);
  min-height: 350px;
  max-width: 1180px;
  margin: 0 auto 1.35rem;
  opacity: 0;
  translate: 0 20px;
  transition: opacity 2.65s ease, translate 2.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.agreements-network.is-visible,
.agreement-cta.is-visible {
  opacity: 1;
  translate: 0;
}

.agreement-network-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.agreement-path {
  fill: none;
  stroke: rgba(45, 121, 107, 0.72);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 180;
  stroke-dashoffset: 180;
  filter: drop-shadow(0 0 5px rgba(79, 155, 137, 0.28));
  transition: stroke-dashoffset 2.8s cubic-bezier(0.2, 0.8, 0.2, 1) 1.15s;
}

.agreements-network.is-visible .agreement-path {
  stroke-dashoffset: 0;
}

.agreement-packet {
  fill: #d98774;
  opacity: 0;
  filter: drop-shadow(0 0 7px rgba(217, 135, 116, 0.95));
  transition: opacity 1.1s ease 1.75s;
}

.agreements-network.is-visible .agreement-packet {
  opacity: 1;
}

.agreement-node {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 1.2rem;
  border: 1px solid rgba(16, 33, 29, 0.1);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 30px rgba(23, 54, 47, 0.08);
  opacity: 0;
  translate: 0 18px;
  transition: opacity 2.65s ease, translate 2.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 2.35s ease, border-color 2.35s ease, filter 2.35s ease;
}

.agreements-network.is-visible .agreement-node {
  opacity: 1;
  translate: 0;
}

.agreement-node--primary {
  grid-column: 2;
  grid-row: 1;
  padding: 1.45rem 1.55rem;
  z-index: 2;
  border-color: rgba(45, 121, 107, 0.32);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(233, 244, 239, 0.94));
  box-shadow: 0 20px 44px rgba(23, 54, 47, 0.16), 0 0 0 10px rgba(83, 150, 136, 0.08), 0 0 36px rgba(83, 150, 136, 0.16);
  transition-delay: 0.18s;
}

.agreement-node--sanatorio {
  grid-column: 1;
  grid-row: 1;
  transition-delay: 0s;
}

.agreement-node--neoimagen {
  grid-column: 3;
  grid-row: 1;
  transition-delay: 0.36s;
}

.agreements-network.is-visible .agreement-node--primary {
  animation: agreement-gse-halo 7.2s ease-in-out 3.5s infinite;
}

.agreements-network.is-visible .agreement-node--sanatorio {
  animation: agreement-node-response 7.2s ease-in-out 5.1s infinite;
}

.agreements-network.is-visible .agreement-node--neoimagen {
  animation: agreement-node-response 7.2s ease-in-out 6.9s infinite;
}

.agreement-node-label {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--deep-green);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.agreement-logo {
  display: block;
  width: min(100%, 245px);
  height: auto;
  max-height: 76px;
  margin-bottom: 0.85rem;
  object-fit: contain;
  object-position: left center;
  mix-blend-mode: multiply;
}

.agreement-logo--sanatorio {
  width: 5.1rem;
  height: 4.8rem;
}

.agreement-logo--neoimagen {
  width: min(100%, 210px);
  height: 4.8rem;
}

.agreement-wordmark {
  display: grid;
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.85rem;
  place-items: center;
  border-radius: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.agreement-wordmark--sanatorio { color: #1b416a; background: #e8eff7; }
.agreement-wordmark--neoimagen { color: #257a73; background: #e4f1ef; font-size: 1.45rem; }

.agreement-node h3,
.agreement-cta h3 {
  margin-bottom: 0.55rem;
  font-size: 1.08rem;
}

.agreement-node p,
.agreement-cta p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.agreement-node--primary p { color: var(--deep-green); }

.agreement-cta {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 940px;
  margin: 0 auto;
  padding: 1.45rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--deep-green), var(--ink-blue));
  box-shadow: 0 14px 34px rgba(23, 54, 47, 0.12);
  color: #fff;
  opacity: 0;
  translate: 0 20px;
  transition: opacity 2.65s ease 0.32s, translate 2.35s cubic-bezier(0.2, 0.8, 0.2, 1) 0.32s;
}

.agreement-cta p { color: rgba(255, 255, 255, 0.78); }

.agreement-cta .convention-kicker {
  margin-bottom: 0.6rem !important;
  color: rgba(255, 255, 255, 0.7) !important;
}

.agreement-cta .convention-link {
  flex: 0 0 auto;
  margin: 0;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .agreement-node:hover {
    translate: 0 -7px;
    border-color: rgba(45, 121, 107, 0.56);
    box-shadow: 0 22px 42px rgba(23, 54, 47, 0.2), 0 0 22px rgba(83, 150, 136, 0.16);
    filter: brightness(1.025);
  }

  .agreement-cta .convention-link:hover {
    background: rgba(255, 255, 255, 0.18);
  }
}

@keyframes agreement-gse-halo {
  0%,
  100% { box-shadow: 0 20px 44px rgba(23, 54, 47, 0.16), 0 0 0 10px rgba(83, 150, 136, 0.08), 0 0 36px rgba(83, 150, 136, 0.16); }
  18%,
  52% { box-shadow: 0 22px 46px rgba(23, 54, 47, 0.2), 0 0 0 14px rgba(83, 150, 136, 0.13), 0 0 46px rgba(83, 150, 136, 0.34); }
}

@keyframes agreement-node-response {
  0%,
  100% { border-color: rgba(16, 33, 29, 0.1); box-shadow: 0 12px 30px rgba(23, 54, 47, 0.08); }
  15%,
  27% { border-color: rgba(45, 121, 107, 0.6); box-shadow: 0 18px 38px rgba(23, 54, 47, 0.16), 0 0 28px rgba(83, 150, 136, 0.3); }
}

@media (max-width: 980px) {
  .hero-grid,
  .about-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .process-list::before {
    display: none;
  }

  .service-card {
    grid-column: span 6;
  }

  .hero-panel {
    width: min(100%, 680px);
    margin: 0 auto;
  }

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

  .agreements-network {
    gap: 2.5rem;
    min-height: 315px;
  }

  .agreement-node { padding: 1.05rem; }
  .agreement-node--primary { padding: 1.2rem; }
}

@media (max-width: 760px) {
  .light-orb {
    opacity: 0.18;
  }

  .sparkle {
    opacity: 0.14;
  }

  .header-inner {
    position: relative;
    min-height: 76px;
  }

  .brand-logo {
    width: min(56vw, 235px);
  }

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

  .site-nav {
    position: absolute;
    top: calc(100% + 0.8rem);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

  .site-nav a {
    padding: 0.8rem 0.9rem;
    border-radius: 14px;
    background: rgba(244, 239, 230, 0.55);
  }

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

  .service-card {
    grid-column: span 12;
  }

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

  .agreements-network {
    display: flex;
    min-height: 0;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1rem;
  }

  .agreements-network::before {
    position: absolute;
    z-index: 0;
    top: 14%;
    bottom: 14%;
    left: 1.2rem;
    width: 2px;
    border-radius: 99px;
    background: linear-gradient(to bottom, rgba(45, 121, 107, 0.52), rgba(45, 121, 107, 0.12));
    box-shadow: 0 0 8px rgba(83, 150, 136, 0.22);
    content: "";
  }

  .agreement-network-svg {
    display: none;
  }

  .agreement-node,
  .agreement-node--primary,
  .agreement-node--sanatorio,
  .agreement-node--neoimagen {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    transform: none;
  }

  .agreement-node--primary { order: 0; }
  .agreement-node--sanatorio { order: 1; }
  .agreement-node--neoimagen { order: 2; }

  .agreement-node--sanatorio,
  .agreement-node--neoimagen {
    border-left: 3px solid rgba(45, 121, 107, 0.32);
  }

  .agreement-node--primary {
    border-left: 3px solid rgba(45, 121, 107, 0.5);
  }

  .agreement-cta {
    align-items: stretch;
    flex-direction: column;
    gap: 1rem;
  }

  .agreement-cta .convention-link {
    width: 100%;
    text-align: center;
  }

  .service-card--infographic,
  .service-card-inner {
    min-height: 300px;
  }

  .infographic-modal {
    width: calc(100% - 1rem);
    max-height: 94dvh;
    border-radius: 1rem;
  }

  .infographic-modal-shell {
    height: 92dvh;
  }

  .infographic-modal-header,
  .infographic-modal-footer {
    padding: 0.8rem;
  }

  .infographic-modal-footer {
    align-items: stretch;
  }

  .infographic-modal-service-actions,
  .infographic-modal-controls {
    justify-content: center;
  }

  .infographic-modal-service-actions {
    width: 100%;
  }

  .infographic-modal-action {
    flex: 1 1 145px;
    justify-content: center;
  }

  .infographic-modal-controls {
    gap: 0.5rem;
  }

  .infographic-modal-controls button {
    min-width: 2.35rem;
    padding: 0.4rem 0.58rem;
  }

  .process-list {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 12ch;
  }

  .hero-benefits {
    grid-template-columns: 1fr;
  }

  .hero-benefit-item {
    padding: 0.65rem 0.75rem;
  }

  .hero-benefit-item + .hero-benefit-item {
    border-top: 1px solid rgba(23, 54, 47, 0.12);
    border-left: 0;
  }

  .hero-panel {
    display: flex;
    align-items: flex-end;
    min-height: 600px;
    padding: 0 0.55rem 0.65rem;
  }

  .hero-image-frame {
    inset: 0.45rem 0.15rem 10.35rem 0.55rem;
    border-width: 6px;
  }

  .hero-floating-cards {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    width: 100%;
  }

  .hero-floating-card {
    position: static;
    max-width: none;
    padding: 0.85rem;
  }

  .hero-emblem {
    inset: 1.45rem auto auto 1.7rem;
    width: 78px;
  }
}

@media (max-width: 430px) {
  .brand-logo {
    width: 190px;
  }

  .menu-toggle {
    padding: 0.72rem 0.8rem;
  }

  .menu-toggle > span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .hero-panel {
    min-height: 650px;
  }

  .hero-image-frame {
    bottom: 14.1rem;
  }

  .hero-floating-cards {
    grid-template-columns: 1fr;
  }

  .hero-floating-card {
    padding: 0.8rem;
  }

  .hero-card-label {
    font-size: 0.62rem;
  }

  .hero-floating-card strong {
    font-size: 0.96rem;
  }

  .hero-floating-card p {
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .hero-emblem {
    width: 66px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .service-card {
    opacity: 1;
    transform: none;
  }

  .hero-floating-card {
    opacity: 1;
    translate: 0;
    transform: none;
  }

  .hero-benefits {
    opacity: 1;
    translate: 0;
  }

  .about-main-card,
  .about-side-card {
    opacity: 1;
    translate: 0;
    transform: none;
  }

  .about-eyebrow::after {
    transform: scaleX(1);
  }

  .process-list::before {
    animation: none;
    transform: scaleX(1);
  }

  .process-card {
    opacity: 1;
    translate: 0;
    transform: none;
  }

  .process-step {
    opacity: 1;
    transform: none;
  }

  .contact-content,
  .contact-panel,
  .contact-card {
    opacity: 1;
    translate: 0;
    transform: none;
  }

  .whatsapp-pulse {
    animation: none !important;
  }

  .ambient-lights {
    display: none;
  }

  .service-card-inner {
    transform: none !important;
  }

  .service-card-face--back {
    transform: none;
    visibility: hidden;
  }

  .service-card.is-flipped .service-card-face--front {
    visibility: hidden;
  }

  .service-card.is-flipped .service-card-face--back {
    visibility: visible;
  }

  .agreement-path {
    transition: none;
    stroke-dashoffset: 0;
  }

  .agreement-packet {
    animation: none !important;
    opacity: 0;
  }

  .agreements-network.is-visible .agreement-node--primary,
  .agreements-network.is-visible .agreement-node--sanatorio,
  .agreements-network.is-visible .agreement-node--neoimagen {
    animation: none;
  }
}

@keyframes about-card-reveal {
  to {
    opacity: 1;
    translate: 0;
  }
}

@keyframes contact-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes contact-card-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes contact-whatsapp-pulse {
  0%,
  100% {
    box-shadow: 0 18px 30px rgba(23, 54, 47, 0.18);
  }

  50% {
    box-shadow: 0 18px 34px rgba(23, 54, 47, 0.22), 0 0 0 5px rgba(83, 150, 136, 0.07);
  }
}

@keyframes process-line-reveal {
  to {
    transform: scaleX(1);
  }
}

@keyframes process-card-reveal {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes process-number-reveal {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes about-card-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

@keyframes ambient-orb-drift {
  0%,
  100% {
    opacity: 0.22;
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    opacity: 0.34;
    transform: translate3d(1.25rem, -1rem, 0) scale(1.06);
  }
}

@keyframes ambient-sparkle {
  0%,
  100% {
    opacity: 0.1;
    transform: scale(0.8);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.35);
  }
}

@keyframes hero-benefits-reveal {
  to {
    opacity: 1;
    translate: 0;
  }
}

@keyframes hero-card-reveal {
  to {
    opacity: 1;
    translate: 0;
  }
}

@keyframes hero-card-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@keyframes service-light-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(-18px, 22px, 0) scale(1.15);
  }
}
