/* ============================
   RosaMed — Design System v2
   Verde oscuro #0a3a23 · Verde claro #5ae275
   Verde pastel #aeffc3 · Blanco #ffffff
   ============================ */

:root {
  --green-900: #0a3a23;
  --green-800: #0f4a2e;
  --green-700: #155c39;
  --green-500: #5ae275;
  --green-300: #8ff0a6;
  --green-200: #aeffc3;
  --green-50: #f2fff5;
  --white: #ffffff;
  --ink: #0a3a23;
  --muted: #4a6a58;
  --line: rgba(10, 58, 35, 0.12);

  --font-serif: "Fraunces", "Canela Text", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 20px;
  --radius-lg: 32px;
  --container: 1200px;

  --shadow-soft: 0 20px 60px -30px rgba(10, 58, 35, 0.35);
  --shadow-lift: 0 30px 70px -30px rgba(10, 58, 35, 0.45);
  --shadow-glow: 0 20px 60px -20px rgba(90, 226, 117, 0.45);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

::selection {
  background: var(--green-500);
  color: var(--green-900);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--green-500), var(--green-200));
  z-index: 100;
  transition: width .1s linear;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-900);
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 22px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.6);
}

.eyebrow--glow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 4px rgba(90, 226, 117, 0.25);
  animation: pulse 2s var(--ease) infinite;
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(90, 226, 117, 0.25);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(90, 226, 117, 0);
  }
}

.eyebrow--light {
  color: var(--green-200);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--green-500);
  color: var(--green-900);
  box-shadow: 0 12px 30px -12px rgba(90, 226, 117, 0.6);
}

.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .5) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .6s var(--ease);
}

.btn--primary:hover::after {
  transform: translateX(100%);
}

.btn--primary:hover {
  background: var(--green-300);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -14px rgba(90, 226, 117, 0.7);
}

.btn--dark {
  background: var(--green-900);
  color: var(--white);
}

.btn--dark:hover {
  background: var(--green-800);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--green-900);
  border: 1px solid var(--line);
}

.btn--ghost:hover {
  background: var(--green-50);
  border-color: var(--green-500);
}

.btn--pill {
  background: var(--green-900);
  color: var(--white);
  padding: 10px 20px;
  font-size: 14px;
}

.btn--pill:hover {
  background: var(--green-800);
  transform: translateY(-1px);
}

.btn--pill-ghost {
  background: transparent;
  color: var(--green-900);
  border: 1px solid var(--line);
}

.btn--pill-ghost:hover {
  background: var(--green-50);
  border-color: var(--green-500);
}

.btn--block {
  width: 100%;
}

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}

.nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 30px -20px rgba(10, 58, 35, 0.3);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.logo__mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--green-900);
  color: var(--green-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .4s var(--ease), background .4s var(--ease);
}

.logo:hover .logo__mark {
  transform: rotate(90deg);
  background: var(--green-500);
  color: var(--green-900);
}

.logo__mark svg {
  width: 18px;
  height: 18px;
}

.logo__text {
  font-family: var(--font-serif);
  font-size: 24px;
  letter-spacing: -0.02em;
}

.logo--light .logo__mark {
  background: var(--green-500);
  color: var(--green-900);
}

.logo--light .logo__text {
  color: var(--white);
}

.nav__links {
  display: flex;
  gap: 30px;
  font-size: 15px;
}

.nav__links a {
  position: relative;
  padding: 6px 0;
  color: var(--green-900);
  font-weight: 500;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--green-500);
  border-radius: 2px;
  transition: right .35s var(--ease);
}

.nav__links a:hover::after {
  right: 0;
}

.nav__actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 8px;
}

.nav__toggle span {
  width: 22px;
  height: 2px;
  background: var(--green-900);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}

.nav__toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 80px 0 100px;
  background: linear-gradient(180deg, var(--white) 0%, var(--green-50) 100%);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 90%, rgba(174, 255, 195, 0.35) 0, transparent 40%),
    radial-gradient(circle at 85% 40%, rgba(90, 226, 117, 0.15) 0, transparent 45%);
}

.hero__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 400px at 90% 10%, rgba(90, 226, 117, 0.18), transparent 60%);
}

.hero__grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 50% 40%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, black 0%, transparent 70%);
  opacity: 0.5;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero__content>* {
  animation: heroIn .8s var(--ease-out) both;
}

.hero__content>*:nth-child(2) {
  animation-delay: .08s;
}

.hero__content>*:nth-child(3) {
  animation-delay: .16s;
}

.hero__content>*:nth-child(4) {
  animation-delay: .24s;
}

.hero__content>*:nth-child(5) {
  animation-delay: .32s;
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.hero__title {
  font-size: clamp(44px, 6vw, 84px);
  line-height: 0.98;
  margin-bottom: 24px;
  color: var(--green-900);
}

.hero__title em {
  font-style: italic;
  color: var(--green-500);
  position: relative;
}

.hero__title em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 8px;
  background: rgba(90, 226, 117, 0.25);
  border-radius: 4px;
  z-index: -1;
}

.hero__lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 36px;
}

.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  max-width: 560px;
}

.stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 40px;
  color: var(--green-900);
  font-weight: 400;
  line-height: 1;
}

.stat span {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
  display: block;
}

.hero__card {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 30% 20%, rgba(174, 255, 195, 0.35), transparent 60%),
    linear-gradient(160deg, var(--green-900) 0%, var(--green-800) 100%);
  padding: 36px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  animation: cardIn 1s var(--ease-out) both;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(.98);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.hero__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(90, 226, 117, 0.35) 1.5px, transparent 2px);
  background-size: 22px 22px;
  opacity: 0.5;
  mask-image: radial-gradient(circle at 70% 30%, black 40%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 70% 30%, black 40%, transparent 75%);
}

.hero__card-orb {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--green-500) 0%, transparent 70%);
  filter: blur(20px);
  opacity: 0.6;
  animation: float 6s var(--ease) infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

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

.hero__card-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero__card-label {
  font-size: 13px;
  color: var(--green-200);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__card-price {
  font-family: var(--font-serif);
  font-size: 88px;
  line-height: 1;
  color: var(--green-500);
}

.hero__card-price sup {
  font-size: 32px;
  vertical-align: super;
  margin-left: 2px;
}

.hero__card-sub {
  color: var(--green-200);
  margin-bottom: 20px;
}

.hero__card-inner .btn {
  align-self: flex-start;
  background: var(--green-500);
  color: var(--green-900);
}

.hero__card-inner .btn:hover {
  background: var(--white);
}

.hero__card-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--green-500);
  color: var(--green-900);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transform: rotate(6deg);
  z-index: 2;
  box-shadow: 0 10px 24px -8px rgba(90, 226, 117, 0.6);
}

.hero__card-badge em {
  font-style: italic;
  font-weight: 400;
}

/* ---------- Marquee ---------- */
.marquee {
  background: var(--green-900);
  color: var(--green-200);
  overflow: hidden;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.marquee__track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  font-family: var(--font-serif);
  font-size: 22px;
  font-style: italic;
  animation: marquee 40s linear infinite;
  width: max-content;
}

.marquee__track span {
  flex-shrink: 0;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ---------- Sections ---------- */
.section {
  padding: 120px 0;
}

.section__head {
  max-width: 640px;
  margin: 0 auto 64px;
  text-align: center;
}

.section__head--row {
  max-width: 100%;
  margin: 0 0 56px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.section__title {
  font-size: clamp(34px, 4.2vw, 56px);
  color: var(--green-900);
  margin-bottom: 16px;
}

.section__desc {
  color: var(--muted);
  font-size: 17px;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid--services {
  grid-template-columns: repeat(3, 1fr);
}

/* ---------- Services ---------- */
.service {
  padding: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 260px;
  position: relative;
  overflow: hidden;
}

.service::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--green-500), var(--green-200));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}

.service::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(90, 226, 117, 0.08), transparent 40%);
  opacity: 0;
  transition: opacity .3s var(--ease);
  pointer-events: none;
}

.service:hover::before {
  transform: scaleX(1);
}

.service:hover::after {
  opacity: 1;
}

.service:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-color: transparent;
}

.service__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--green-200);
  color: var(--green-900);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 12px;
  transition: transform .35s var(--ease), background .35s var(--ease);
}

.service:hover .service__icon {
  transform: scale(1.1) rotate(-6deg);
  background: var(--green-500);
}

.service h3 {
  font-size: 26px;
}

.service p {
  color: var(--muted);
  flex: 1;
}

.service__arrow {
  display: inline-flex;
  align-items: center;
  font-size: 20px;
  color: var(--green-900);
  transform: translateX(-6px);
  opacity: 0;
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}

.service:hover .service__arrow {
  transform: translateX(0);
  opacity: 1;
}

.service__arrow i {
  transform: rotate(180deg);
}

/* ---------- About ---------- */
.about {
  background: var(--green-50);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.about__media {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--green-500), var(--green-200));
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}

.about__media img {
  transition: transform .8s var(--ease);
}

.about__media:hover img {
  transform: scale(1.04);
}

.about__badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--green-900);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-family: var(--font-serif);
  font-style: italic;
  backdrop-filter: blur(6px);
}

.about__content p {
  color: var(--muted);
  margin: 20px 0 28px;
  font-size: 17px;
}

.checks {
  display: grid;
  gap: 14px;
}

.checks li {
  padding-left: 34px;
  position: relative;
  color: var(--green-900);
  font-weight: 500;
}

.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  background: var(--green-500);
  color: var(--green-900);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

/* ---------- Doctors ---------- */
.grid--doctors {
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.doctor {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.doctor__photo {
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--green-200), var(--green-500));
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}

.doctor__photo::before {
  content: attr(data-initials);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 72px;
  color: var(--green-900);
  opacity: 0.75;
  transition: transform .4s var(--ease);
}

.doctor__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(10, 58, 35, 0.15), transparent 60%);
}

.doctor:hover .doctor__photo {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.doctor:hover .doctor__photo::before {
  transform: scale(1.05);
}

.doctor h3 {
  font-size: 20px;
}

.doctor span {
  color: var(--muted);
  font-size: 14px;
}

/* ---------- CTA ---------- */
.cta {
  background: var(--green-900);
  color: var(--white);
  border-radius: var(--radius-lg);
  margin: 0 24px;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(90, 226, 117, 0.25) 1.5px, transparent 2px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at 90% 10%, black 20%, transparent 60%);
  -webkit-mask-image: radial-gradient(circle at 90% 10%, black 20%, transparent 60%);
}

.cta::after {
  content: "";
  position: absolute;
  top: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--green-500) 0%, transparent 70%);
  filter: blur(40px);
  opacity: 0.3;
}

.cta__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.cta__content h2 {
  font-size: clamp(34px, 4vw, 52px);
  color: var(--white);
  margin-bottom: 20px;
}

.cta__content p {
  color: var(--green-200);
  font-size: 17px;
  margin-bottom: 32px;
  max-width: 460px;
}

.cta__info {
  display: grid;
  gap: 14px;
  color: var(--green-200);
}

.cta__info strong {
  color: var(--green-500);
  margin-right: 8px;
}

.cta__form {
  background: var(--white);
  color: var(--green-900);
  padding: 40px;
  border-radius: var(--radius);
  display: grid;
  gap: 18px;
  box-shadow: var(--shadow-lift);
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.field input,
.field select,
.field textarea {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  color: var(--green-900);
  background: var(--green-50);
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green-500);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(90, 226, 117, 0.15);
}

.form__note {
  font-size: 14px;
  min-height: 20px;
  color: var(--green-800);
}

.form__note.is-error {
  color: #b0341c;
}

.form__note.is-ok {
  color: var(--green-900);
  font-weight: 500;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--green-900);
  color: var(--green-200);
  padding: 80px 0 32px;
  margin-top: 100px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__tag {
  margin-top: 20px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--green-500);
  max-width: 280px;
}

.footer h4 {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.footer ul {
  display: grid;
  gap: 10px;
}

.footer a {
  transition: color .25s var(--ease);
}

.footer a:hover {
  color: var(--green-500);
}

.tag {
  display: inline-block;
  background: var(--green-500);
  color: var(--green-900);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 6px;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Pagination ---------- */
.pagination-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.pagination-custom {
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px -16px rgba(10, 58, 35, 0.3);
}

.pagination-custom button,
#btnAnteriorDoctor,
#btnSiguienteDoctor {
  height: 44px;
  padding: 0 18px;
  border: 0;
  background: var(--white);
  cursor: pointer;
  font-size: 14px;
  color: var(--green-900);
  font-weight: 500;
  transition: background .25s var(--ease), color .25s var(--ease);
}

.pagination-custom button:hover,
#btnAnteriorDoctor:hover,
#btnSiguienteDoctor:hover {
  background: var(--green-50);
}

.pagination-custom button:disabled,
#btnAnteriorDoctor:disabled,
#btnSiguienteDoctor:disabled {
  opacity: .45;
  cursor: not-allowed;
}

#numerosPaginas,
#numerosPaginasDoctor {
  display: flex;
}

.page-number {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-left: 1px solid var(--line);
  color: var(--green-900);
  font-weight: 500;
  font-size: 14px;
  transition: background .25s var(--ease), color .25s var(--ease);
}

.page-number:hover,
#numerosPaginasDoctor .page-number:hover {
  background: var(--green-50);
}

.page-number.active,
#numerosPaginasDoctor .page-number.active {
  background: var(--green-500);
  color: var(--green-900);
}

/* ---------- Filter doctors ---------- */
.doctor-filter-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.doctor-filter-label {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

.doctor-filter-select {
  min-width: 280px;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  font-size: 14px;
  cursor: pointer;
  outline: none;
  color: var(--green-900);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}

.doctor-filter-select:hover {
  border-color: var(--green-500);
}

.doctor-filter-select:focus {
  border-color: var(--green-500);
  box-shadow: 0 0 0 4px rgba(90, 226, 117, 0.15);
}

/* ---------- Input group ---------- */
.input-group {
  display: flex;
  width: 100%;
}

.input-group-text {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  background: var(--green-50);
  border: 1px solid var(--line);
  border-right: none;
  border-radius: 12px 0 0 12px;
  color: var(--muted);
}

.input-group-text i {
  font-size: 20px;
}

.input-group .form-control {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 14px 16px;
  font: inherit;
  color: var(--green-900);
  background: var(--green-50);
  transition: border-color .2s var(--ease), background .2s var(--ease);
  outline: none;
}

.input-group .form-control:focus {
  border-color: var(--green-500);
  background: var(--white);
}

.input-group .btn {
  border-radius: 0 12px 12px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
}

.input-group .btn i {
  font-size: 20px;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__card {
    max-width: 420px;
  }

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

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

  .about__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

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

  .section {
    padding: 80px 0;
  }
}

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

  .nav__toggle {
    display: flex;
  }

  .nav__actions {
    display: none;
  }

  .nav__links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
    gap: 16px;
    box-shadow: 0 20px 40px -20px rgba(10, 58, 35, 0.25);
  }

  .nav__inner {
    position: relative;
  }

  .hero {
    padding: 60px 0 80px;
  }

  .hero__stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .grid--services,
  .grid--doctors {
    grid-template-columns: 1fr;
  }

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

  .cta {
    margin: 0 12px;
    padding: 60px 0;
  }

  .cta__form {
    padding: 24px;
  }

  .section__head--row {
    flex-direction: column;
    align-items: flex-start;
  }

  .doctor-filter-container {
    justify-content: flex-start;
  }

  .doctor-filter-select {
    min-width: 0;
    width: 100%;
  }

  .pagination-custom {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {

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