/* RV Therapy — colores sacados de la marca (polo azul marino + logo azul) */
:root {
  /* Paleta sacada del logo: azul marino casi añil arriba (#1b1d3d) que baja a azul medio (#3758b0) */
  --navy: #1b1d3d;
  --navy-2: #262a52;
  --navy-3: #2d3463;
  --blue: #3758b0;
  --blue-2: #4a6cc4;
  --blue-light: #a9bbea;
  --blue-soft: #e9edf8;
  --ink: #1b1d33;
  --muted: #5c6280;
  --line: #e2e5f0;
  --bg: #ffffff;
  --tint: #f4f6fb;
  --on-dark: #c5cbe3;
  --on-dark-2: #dfe4f4;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(27, 29, 61, .10);

  /* Degradados de la marca */
  --grad: linear-gradient(135deg, #1b1d3d 0%, #2d3463 45%, #3758b0 100%);
  --grad-btn: linear-gradient(135deg, #2d3463 0%, #3758b0 60%, #4a6cc4 100%);
  --grad-dark: linear-gradient(160deg, #1b1d3d 0%, #262a52 55%, #34437e 100%);
  --grad-text: linear-gradient(180deg, #2d3463 0%, #3758b0 70%, #4a6cc4 100%);
  --grad-soft: linear-gradient(180deg, #f4f6fb 0%, #e9edf8 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; } /* height:auto para que los atributos width/height no fijen la altura */
/* Fondo suave mientras carga cada foto, en lugar de un hueco en blanco */
.hero__img img, .split__img img, .team__photo img, .feature__img img, .band, .ig__tile, .person__avatar { background-color: var(--blue-soft); }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1, h2 { color: var(--navy); }
.section--dark h2, .band h2 { color: #fff; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.accent { color: var(--blue); background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue); margin-bottom: .8em;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .9em 1.5em; border-radius: 999px; border: 2px solid transparent;
  background: var(--grad-btn) border-box; color: #fff; font: inherit; font-weight: 700; cursor: pointer;
  transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(55, 88, 176, .35); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--navy); box-shadow: none; }
.btn--sm { padding: .55em 1.1em; }
.btn--full { width: 100%; }

/* Logo */
.logo { display: inline-flex; align-items: baseline; gap: .35em; color: var(--navy); }
.logo__mark { font-weight: 800; font-size: 1.6rem; color: var(--blue); letter-spacing: -.04em; }
.logo__text { font-weight: 600; font-size: 1.05rem; }
.logo--light, .logo--light .logo__mark { color: #fff; }

/* Navegación */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav__links { display: flex; align-items: center; gap: 1.6rem; }
.nav__links a:not(.btn) { color: var(--ink); font-weight: 600; font-size: .95rem; }
.nav__links a:not(.btn):hover { color: var(--blue); }
.nav__toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .2s; }

/* Hero */
.hero {
  padding: clamp(40px, 7vw, 90px) 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(55, 88, 176, .16), transparent 45%),
    radial-gradient(circle at 5% 90%, rgba(27, 29, 61, .07), transparent 40%),
    linear-gradient(180deg, var(--blue-soft), #fff 75%);
}
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.8em 0 2.2em; }
.hero__facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 28px; }
.hero__facts li { display: flex; flex-direction: column; }
.hero__facts strong { font-size: 1.3rem; color: var(--navy); }
.hero__facts span { font-size: .85rem; color: var(--muted); }
.hero__img img { border-radius: 28px; box-shadow: var(--shadow); aspect-ratio: 4/5; object-fit: cover; width: 100%; }

/* Secciones */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section--tint { background: var(--grad-soft); }
.section--dark { background: var(--grad-dark); color: #fff; }
.section--dark .eyebrow { color: var(--blue-light); }
.section--dark .section__head p { color: var(--on-dark); }
.section__head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section__head p { color: var(--muted); }

/* Tarjetas */
.cards { display: grid; gap: 20px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; }
.card__icon {
  width: 48px; height: 48px; border-radius: 14px; background: var(--blue-soft);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Servicios */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split__img img { border-radius: 28px; aspect-ratio: 4/5; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
/* Psicología y nutrición: áreas en etiquetas y llamada a la acción */
.areas { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.areas li {
  padding: 8px 14px 8px 30px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-weight: 600; font-size: .92rem; color: var(--navy); position: relative;
}
.areas li::before { content: ""; position: absolute; left: 13px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--blue); }
.area__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 32px; }
.area__cta .feature__price { margin: 0; }
.services { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 4px; }
.services li { padding: 16px 0 16px 22px; border-bottom: 1px solid var(--line); position: relative; }
.services li::before { content: ""; position: absolute; left: 0; top: 24px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.services h3 { margin-bottom: .2em; }
.services p { margin: 0; color: var(--muted); }

/* Equipo */
.team__photo { margin: 0 auto 28px; max-width: 760px; }
.team__photo img { border-radius: 28px; width: 100%; aspect-ratio: 16/11; object-fit: cover; object-position: center 25%; box-shadow: var(--shadow); }
.person__role { color: var(--blue) !important; font-weight: 700; font-size: .9rem; margin-bottom: .8em !important; }

/* Precios */
.price {
  position: relative; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius); padding: 30px 26px;
}
.price--featured { background: linear-gradient(150deg, #4a6cc4 0%, #3758b0 50%, #2d3463 100%); border-color: rgba(255, 255, 255, .2); box-shadow: 0 14px 34px rgba(10, 12, 35, .35); }
.price h3 { font-size: 1rem; font-weight: 600; color: var(--on-dark-2); }
.price__amount { font-size: 2.3rem; font-weight: 800; margin: .2em 0; }
.price__amount s { font-size: 1rem; font-weight: 500; opacity: .55; }
.price__note { color: var(--on-dark); font-size: .9rem; margin: 0; }
.price--featured .price__note, .price--featured h3 { color: #eef1fb; }
.badge {
  position: absolute; top: 16px; right: 16px; font-size: .72rem; font-weight: 700;
  background: #fff; color: var(--blue); padding: .3em .8em; border-radius: 999px;
}

/* Opiniones */
.quote { margin: 0; background: var(--tint); border-radius: var(--radius); padding: 30px; }
.quote p { color: var(--ink); }
.quote footer { font-weight: 700; color: var(--navy); }
.stars { color: #f5a623 !important; letter-spacing: .1em; margin-bottom: .6em !important; }

/* Contacto */
.split--contact { align-items: start; }
.contact { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 14px; }
.contact li { display: grid; grid-template-columns: 110px 1fr; }
.contact span { font-weight: 700; color: var(--muted); font-size: .9rem; }
.contact a { font-weight: 700; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 260px; border: 0; display: block; }
.form {
  background: #fff; border-radius: 24px; padding: clamp(24px, 4vw, 36px);
  box-shadow: var(--shadow); display: grid; gap: 14px;
}
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; padding: .75em .9em; border: 1px solid var(--line);
  border-radius: 12px; background: var(--tint); color: var(--ink); width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; background: #fff; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form__hint { font-size: .8rem; color: var(--muted); text-align: center; margin: 0; }
/* Pedir cita: dos opciones (WhatsApp y agenda online). «Pedir cita» del menú lleva aquí (#pedir-cita) */
.cita { display: grid; gap: 18px; scroll-margin-top: 12px; }
.cita__atajos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cita__atajos .btn { width: 100%; justify-content: center; text-align: center; }
.cita__atajos .btn--ghost { background: #fff; }
#cita-form { scroll-margin-top: 12px; }
.cita__titulo { margin: 0; font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.cita__opcion { margin: 0; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.form h3, .cita__online h3 { margin: 0; }
.cita__online p { margin: 0; }

/* Footer */
.footer { background: var(--grad); color: var(--on-dark); padding: 40px 0; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer p { margin: 0; font-size: .9rem; }
.footer a:not(.logo) { color: #fff; }
.footer__small { opacity: .7; }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px;
  border-radius: 50%; background: #25d366; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* Animación de entrada */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .45s, transform .45s; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } html { scroll-behavior: auto; } }

/* Tablet */
@media (max-width: 960px) {
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .cards--3 { grid-template-columns: 1fr; }
  .hero__grid, .split { grid-template-columns: 1fr; }
  .hero__img { max-width: 480px; }
  .split__img { order: 2; max-width: 480px; }
}

/* Menú desplegable en tablet y móvil */
@media (max-width: 960px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 20px;
    display: none; max-height: calc(100vh - 68px); overflow-y: auto;
  }
  .nav__links.open { display: flex; }
  .nav__links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__links .btn { margin-top: 14px; }
}

/* Móvil */
@media (max-width: 720px) {
  .cards--2, .cards--4 { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .contact li { grid-template-columns: 1fr; }
}

/* Grupos de precios (fisioterapia / otras especialidades) */
.prices__group {
  font-size: .85rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue-light); margin: 0 0 16px;
}
.prices + .prices__group { margin-top: 48px; }
.price__list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 12px; }
.price__list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.price__list li:last-child { border-bottom: 0; padding-bottom: 0; }
.price__list span { color: var(--on-dark); }
.price__list strong { font-size: 1.6rem; font-weight: 800; white-space: nowrap; }
.price__list small { font-size: .8rem; font-weight: 500; opacity: .7; margin-left: 2px; }

/* Logo original (PNG) */
.logo img { height: 42px; width: auto; }
.nav .logo img { mix-blend-mode: multiply; } /* el PNG trae fondo blanco: así no se ve el recuadro */
.logo--light img { height: 38px; } /* versión blanca con fondo transparente para fondos oscuros */
@media (max-width: 720px) { .logo img { height: 34px; } }

/* Tarjetas con foto (técnicas) */
.card--media { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card--media h3 { margin: 22px 24px .4em; }
.card--media p { margin: 0 24px 26px; }
.card__media { margin: 0; aspect-ratio: 4/3; overflow: hidden; background: var(--blue-soft); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card--media:hover .card__media img { transform: scale(1.05); }
.card__media--icon { display: grid; place-items: center; background: var(--grad); }
.card__media--icon svg { width: 64px; height: 64px; fill: none; stroke: #fff; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Bloque a domicilio */
.feature {
  margin-top: clamp(48px, 7vw, 80px); display: grid; grid-template-columns: 1.1fr .9fr; align-items: center;
  background: #fff; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow);
}
.feature__img { margin: 0; height: 100%; }
.feature__img img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.feature__copy { padding: clamp(28px, 5vw, 56px); }
.feature__copy p { color: var(--muted); }
.feature__price { font-size: 1.1rem; }
.feature__price strong { font-size: 2rem; color: var(--navy); }

/* Franja deportiva */
.band { position: relative; min-height: 460px; display: flex; align-items: stretch; overflow: hidden; }
.band__overlay { display: flex; align-items: center; } /* la capa de color ocupa todo el alto de la franja */
.band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.band__overlay { position: relative; width: 100%; padding: 80px 0; background: linear-gradient(90deg, rgba(27, 29, 61, .94) 0%, rgba(45, 52, 99, .75) 45%, rgba(55, 88, 176, 0) 78%); color: #fff; }
.band__overlay .wrap > * { max-width: 460px; }
.band .eyebrow { color: var(--blue-light); }
.band p { color: var(--on-dark-2); }

@media (max-width: 960px) {
  .feature { grid-template-columns: 1fr; }
  .band__overlay { background: linear-gradient(160deg, rgba(27, 29, 61, .9), rgba(45, 52, 99, .78)); }
}

/* Avatares del equipo */
.person__avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin-bottom: 16px; border: 3px solid var(--blue-soft); }

/* Resumen de valoraciones */
.ratings { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-bottom: 40px; }
.rating {
  display: flex; align-items: center; gap: 16px; padding: 18px 22px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.rating p { margin: 0; }
.rating__logo { width: 40px; height: 40px; flex: none; }
.rating__logo--dr {
  display: grid; place-items: center; border-radius: 10px; background: #00c3a5;
  color: #fff; font-weight: 800; font-size: 1.3rem;
}
.rating__score { font-size: 1.6rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.rating__score .stars { font-size: 1.1rem; margin: 0 !important; }
.rating__label { font-size: .85rem; color: var(--muted); }
.rating__link { font-size: .85rem; font-weight: 700; white-space: nowrap; margin-left: 8px; }

/* Carrusel de reseñas */
.carousel { position: relative; }
.carousel__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 3); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 2px 12px;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.review { scroll-snap-align: start; display: flex; flex-direction: column; background: var(--tint); }
.review p { flex: 1; }
.review__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .8em; }
.review__top .stars { margin: 0 !important; }
.review__src { font-size: .72rem; font-weight: 700; padding: .25em .7em; border-radius: 999px; background: #fff; color: var(--muted); }
.review__src--google { color: #1a73e8; }
.review__src--doctoralia { color: #00a58b; }
.review footer { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.review footer span { font-size: .85rem; font-weight: 500; color: var(--muted); }
.carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy);
  font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow);
}
.carousel__btn:hover { background: var(--grad-btn); color: #fff; border-color: var(--blue); }
.carousel__btn--prev { left: -22px; }
.carousel__btn--next { right: -22px; }
.carousel__dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.carousel__dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: .2s; }
.carousel__dots span.on { background: var(--blue); width: 22px; border-radius: 4px; }

@media (max-width: 960px) {
  .carousel__track { grid-auto-columns: calc((100% - 20px) / 2); }
  .carousel__btn--prev { left: -8px; } .carousel__btn--next { right: -8px; }
}
@media (max-width: 720px) {
  .carousel__track { grid-auto-columns: 88%; }
  .carousel__btn { display: none; }
  .rating { width: 100%; }
  .rating__link { margin-left: auto; }
}

/* Instagram */
.ig__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.ig__tile { position: relative; display: block; aspect-ratio: 1; border-radius: 14px; overflow: hidden; }
.ig__tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ig__tile::after {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='1' fill='white'/%3E%3C/svg%3E") center / 34px no-repeat,
    linear-gradient(160deg, rgba(27, 29, 61, .7), rgba(55, 88, 176, .55));
}
.ig__tile:hover img { transform: scale(1.06); }
.ig__tile:hover::after { opacity: 1; }
.ig__embeds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 28px; align-items: start; }
.ig__embeds .instagram-media { min-width: 0 !important; width: 100% !important; margin: 0 !important; }
.ig__cta { text-align: center; margin-top: 32px; }
.form { border: 1px solid var(--line); }

/* =====================================================================
   PROJECT WEB 2 — estructura multipágina
   ===================================================================== */

/* Pestaña activa del menú */
.nav__links a[aria-current="page"]:not(.btn) { color: var(--blue); position: relative; }
.nav__links a[aria-current="page"]:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--grad-btn);
}
@media (max-width: 960px) { .nav__links a[aria-current="page"]:not(.btn)::after { display: none; } }

/* Cabecera de las páginas de especialidad */
.hero--page { padding: clamp(28px, 5vw, 64px) 0 clamp(48px, 7vw, 88px); }
.hero--page .hero__img img { aspect-ratio: 5/4; }
.hero--page h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--blue-light); }
.breadcrumb a { color: var(--muted); font-weight: 600; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb [aria-current] { color: var(--navy); font-weight: 700; }

/* Home: tarjetas de las tres especialidades */
.specialties { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.specialty {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.specialty:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(27, 29, 61, .14); }
.specialty__media { margin: 0; aspect-ratio: 16/11; overflow: hidden; background: var(--blue-soft); position: relative; }
.specialty__media img { width: 100%; height: 100%; object-fit: cover; }
.specialty__tag {
  position: absolute; left: 16px; top: 16px; padding: .3em .85em; border-radius: 999px;
  background: var(--grad-btn); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.specialty__body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.specialty__body h3 { font-size: 1.45rem; color: var(--navy); }
.specialty__body > p { color: var(--muted); }
.specialty__body .btn { margin-top: auto; align-self: flex-start; }

/* Listas con check */
.check-list { list-style: none; padding: 0; margin: 4px 0 24px; display: grid; gap: 8px; }
.check-list li { position: relative; padding-left: 28px; font-weight: 600; color: var(--ink); font-size: .95rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--grad-btn) center / 11px no-repeat;
}
.check-list li::after {
  content: ""; position: absolute; left: 6px; top: calc(.2em + 4px); width: 5px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.check-list--2 { grid-template-columns: 1fr 1fr; gap: 10px 24px; }

/* Home: puntos fuertes de la clínica */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.value__num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; margin-bottom: 14px;
  background: var(--grad-btn); color: #fff; font-weight: 800;
}
.value h3 { color: var(--navy); }
.value p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Problemas que tratamos */
.problems { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.problem { padding: 22px 22px 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.problem h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: .35em; }
.problem p { margin: 0; color: var(--muted); font-size: .93rem; }

/* Pasos (cómo trabajamos) */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: paso; }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); counter-increment: paso; }
.step::before {
  content: counter(paso, decimal-leading-zero); display: block; font-size: 2rem; font-weight: 800; margin-bottom: 10px;
  background: linear-gradient(180deg, #fff, var(--blue-light)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.step h3 { color: #fff; }
.step p { color: var(--on-dark); margin: 0; font-size: .95rem; }

/* Preguntas frecuentes */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 32px 18px 0; font-weight: 700; color: var(--navy); position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-weight: 800; transition: transform .2s;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 0 0 18px; }

/* Bloque de profesional pendiente de presentar */
.person--pending { border-style: dashed; background: rgba(255, 255, 255, .7); }
.person--pending .person__avatar { display: grid; place-items: center; color: var(--blue); font-weight: 800; font-size: 1.4rem; }

/* Blog / artículos (preparado para crecer) */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px dashed var(--blue-light); }
.post__tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.post h3 { color: var(--navy); font-size: 1.1rem; }
.post p { color: var(--muted); margin: 0; font-size: .93rem; }
.post__soon { display: inline-block; margin-top: 14px; font-size: .8rem; font-weight: 700; color: var(--muted); }

/* Servicios relacionados (final de cada especialidad) */
.related { background: var(--grad-dark); color: #fff; }
.related .section__head h2 { color: #fff; }
.related .section__head p { color: var(--on-dark); }
.related .eyebrow { color: var(--blue-light); }
.related__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 980px; margin: 0 auto; }
.related-card {
  display: grid; grid-template-columns: 180px 1fr; overflow: hidden; border-radius: 24px; color: inherit;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); transition: transform .2s, background .2s;
}
.related-card:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .1); }
.related-card__media { margin: 0; background: var(--blue-soft); }
.related-card__media img { width: 100%; height: 100%; object-fit: cover; }
.related-card__body { padding: 24px 24px 26px; display: flex; flex-direction: column; }
.related-card__body h3 { color: #fff; font-size: 1.3rem; }
.related-card__body p { color: var(--on-dark); font-size: .95rem; }
.related-card__link { margin-top: auto; font-weight: 700; color: #fff; display: inline-flex; align-items: center; gap: 8px; }
.related-card__link::after { content: "→"; transition: transform .2s; }
.related-card:hover .related-card__link::after { transform: translateX(4px); }

/* Llamada final a pedir cita */
.cta-band { padding: clamp(56px, 8vw, 90px) 0; text-align: center; background: var(--grad-soft); }
.cta-band h2 { max-width: 640px; margin-inline: auto; }
.cta-band p { color: var(--muted); max-width: 560px; margin: 0 auto 1.6em; }
.cta-band .hero__cta { justify-content: center; margin: 0; }

/* Pie con columnas de enlaces internos */
.footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 28px; margin-bottom: 22px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer__cols h2 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-light); margin-bottom: 14px; }
.footer__cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer__cols p { margin: 14px 0 0; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* Lista larga junto a una foto: la foto acompaña el scroll en lugar de quedarse centrada */
@media (min-width: 961px) {
  .split--sticky { align-items: start; }
  .split--sticky .split__img { position: sticky; top: 100px; }
}

/* Responsive de los bloques nuevos */
@media (max-width: 960px) {
  .specialties, .problems, .posts { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .related__grid { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .specialties, .problems, .posts, .values, .steps { grid-template-columns: 1fr; }
  .check-list--2 { grid-template-columns: 1fr; }
  .related-card { grid-template-columns: 1fr; }
  .related-card__media { aspect-ratio: 16/9; }
  .footer__cols { grid-template-columns: 1fr; }
}
@media (max-width: 960px) { .ig__grid { grid-template-columns: repeat(3, 1fr); } .ig__embeds { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .ig__embeds { grid-template-columns: 1fr; } }
