/* Página de servicios — Clínica Roos */
:root { --sv-navy: #638969; --sv-deep: #0a2336; --sv-sky: #d2957e; --sv-blue: #3d7fb0; --sv-bg: #f4faff; }

.sv-hero, .sv-stats, .sv-catalog, .sv-team, .sv-steps { position: relative; font-family: "Urbanist", sans-serif; }
.sv-kicker { display: inline-block; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--sv-sky); font-weight: 600; }
.sv-kicker.dark { color: var(--sv-blue); }
.sv-head { text-align: center; max-width: 720px; margin: 0 auto 46px; }
.sv-head h2 { font-size: 46px; line-height: 1.12; margin: 10px 0 14px; color: var(--sv-deep); }
.sv-head h2 em, .sv-hero h1 em { font-family: "Instrument Serif", serif; font-style: italic; font-weight: 400; color: var(--sv-blue); }
.sv-head p { color: #5b6b7a; margin: 0; }
.sv-head.light h2 { color: #fff; }
.sv-head.light h2 em { color: var(--sv-sky); }

.sv-btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 28px; border-radius: 50px; font-weight: 600; font-size: 15px; text-decoration: none; transition: .3s; position: relative; overflow: hidden; }
.sv-btn-light { background: #fff; color: var(--sv-deep) !important; }
.sv-btn-light:hover { background: var(--sv-sky); transform: translateY(-3px); }
.sv-btn-wa { background: #25d366; color: #fff !important; box-shadow: 0 10px 26px rgba(37, 211, 102, .35); }
.sv-btn-wa:hover { transform: translateY(-3px); }

/* ---------- Banner ---------- */
.sv-hero { padding: 210px 0 120px; color: #fff; overflow: hidden; background: radial-gradient(70% 90% at 85% 0%, rgba(61, 127, 176, .45), transparent 60%), linear-gradient(160deg, #0a2336 0%, #0b2c40 60%, #08202e 100%); }
.sv-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 70px; background: var(--sv-bg); clip-path: ellipse(60% 100% at 50% 100%); }
.sv-hero-bg i { position: absolute; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .5), rgba(159, 195, 230, .12)); border: 1px solid rgba(255, 255, 255, .12); animation: svFloat 9s ease-in-out infinite; }
.sv-hero-bg i:nth-child(1) { width: 120px; height: 120px; left: 6%; top: 34%; }
.sv-hero-bg i:nth-child(2) { width: 54px; height: 54px; left: 22%; top: 72%; animation-delay: -3s; }
.sv-hero-bg i:nth-child(3) { width: 200px; height: 200px; right: 8%; top: 26%; animation-delay: -5s; }
.sv-hero-bg i:nth-child(4) { width: 70px; height: 70px; right: 24%; top: 70%; animation-delay: -2s; }
.sv-hero-bg i:nth-child(5) { width: 34px; height: 34px; left: 48%; top: 22%; animation-delay: -6s; }
.sv-hero-bg i:nth-child(6) { width: 90px; height: 90px; right: 3%; top: 8%; animation-delay: -4s; }
@keyframes svFloat { 0%, 100% { transform: translateY(0) translateX(0); } 50% { transform: translateY(-26px) translateX(12px); } }
.sv-crumbs { display: flex; gap: 10px; align-items: center; font-size: 14px; color: rgba(255, 255, 255, .7); margin-bottom: 22px; }
.sv-crumbs a { color: #fff; text-decoration: none; }
.sv-crumbs a:hover { color: var(--sv-sky); }
.sv-crumbs b { color: var(--sv-sky); font-weight: 600; }
.sv-hero h1 { font-size: 78px; line-height: 1.04; margin: 14px 0 18px; color: #fff; }
.sv-hero h1 em { color: var(--sv-sky); }
.sv-hero p { max-width: 620px; font-size: 18px; color: rgba(255, 255, 255, .8); margin: 0 0 32px; }
.sv-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.sv-hero .container > * { animation: svUp .9s cubic-bezier(.22, 1, .36, 1) both; }
.sv-hero .container > *:nth-child(2) { animation-delay: .1s; }
.sv-hero .container > *:nth-child(3) { animation-delay: .2s; }
.sv-hero .container > *:nth-child(4) { animation-delay: .3s; }
.sv-hero .container > *:nth-child(5) { animation-delay: .4s; }
@keyframes svUp { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }

/* ---------- Cifras ---------- */
.sv-stats { background: var(--sv-bg); padding: 0 0 20px; }
.sv-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: 26px; box-shadow: 0 20px 50px rgba(10, 35, 54, .1); margin-top: -40px; position: relative; z-index: 3; }
.sv-stat { text-align: center; padding: 30px 14px; position: relative; }
.sv-stat + .sv-stat::before { content: ""; position: absolute; left: 0; top: 24%; height: 52%; width: 1px; background: rgba(44, 71, 98, .14); }
.sv-stat b { display: block; font-size: 46px; color: var(--sv-navy); line-height: 1; font-weight: 700; }
.sv-stat small { color: #5b6b7a; font-size: 14px; }

/* ---------- Catálogo ---------- */
.sv-catalog { background: var(--sv-bg); padding: 90px 0 100px; }
.sv-filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; }
.sv-filters button { border: 1px solid rgba(44, 71, 98, .2); background: #fff; color: var(--sv-navy); padding: 11px 22px; border-radius: 50px; font-weight: 600; font-size: 15px; cursor: pointer; transition: .3s; display: inline-flex; align-items: center; gap: 8px; }
.sv-filters button span { font-size: 12px; background: rgba(61, 127, 176, .14); color: var(--sv-blue); padding: 2px 8px; border-radius: 20px; transition: .3s; }
.sv-filters button:hover { transform: translateY(-3px); border-color: var(--sv-blue); }
.sv-filters button.active { background: var(--sv-navy); color: #fff; border-color: var(--sv-navy); box-shadow: 0 10px 24px rgba(44, 71, 98, .3); }
.sv-filters button.active span { background: rgba(255, 255, 255, .22); color: #fff; }

.sv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: start; }
.sv-card { position: relative; background: #fff; border-radius: 26px; padding: 28px 26px 24px; border: 1px solid rgba(44, 71, 98, .08); box-shadow: 0 10px 30px rgba(10, 35, 54, .06); transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s, opacity .45s; overflow: hidden; opacity: 0; transform: translateY(30px); transform-style: preserve-3d; }
.sv-card.in { opacity: 1; transform: translateY(0); }
.sv-card.hide { display: none; }
.sv-card.pop { animation: svPop .55s cubic-bezier(.22, 1, .36, 1) both; animation-delay: calc(var(--d, 0) * 60ms); }
@keyframes svPop { from { opacity: 0; transform: translateY(26px) scale(.96); } to { opacity: 1; transform: none; } }
.sv-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--sv-navy), var(--sv-sky)); transform: scaleX(0); transform-origin: left; transition: transform .5s ease; }
.sv-card::after { content: ""; position: absolute; width: 180px; height: 180px; right: -70px; top: -70px; border-radius: 50%; background: radial-gradient(circle, rgba(159, 195, 230, .35), transparent 70%); opacity: 0; transition: .5s; }
.sv-card:hover { box-shadow: 0 26px 56px rgba(10, 35, 54, .16); }
.sv-card:hover::before { transform: scaleX(1); }
.sv-card:hover::after { opacity: 1; }
.sv-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.sv-ico { width: 62px; height: 62px; border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 26px; color: #fff; background: linear-gradient(135deg, var(--sv-navy), var(--sv-blue)); box-shadow: 0 10px 22px rgba(44, 71, 98, .28); transition: .45s cubic-bezier(.22, 1, .36, 1); }
.sv-card:hover .sv-ico { transform: rotate(-10deg) scale(1.1); border-radius: 50%; }
.sv-num { font-size: 40px; font-weight: 700; color: rgba(44, 71, 98, .09); line-height: 1; transition: .4s; }
.sv-card:hover .sv-num { color: rgba(61, 127, 176, .35); }
.sv-tag { display: inline-block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--sv-blue); background: rgba(61, 127, 176, .1); padding: 4px 12px; border-radius: 20px; margin-bottom: 12px; font-weight: 600; }
.sv-card h3 { font-size: 22px; line-height: 1.25; color: var(--sv-deep); margin: 0 0 10px; }
.sv-card > p { color: #5b6b7a; font-size: 15px; line-height: 1.65; margin: 0; }
.sv-more { overflow: hidden; }
.sv-more p { margin: 14px 0 0; padding: 14px 16px; border-radius: 14px; background: var(--sv-bg); color: var(--sv-navy); font-size: 14px; line-height: 1.6; border-left: 3px solid var(--sv-sky); }
.sv-more:not([hidden]) { animation: svOpen .45s ease both; }
@keyframes svOpen { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.sv-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px dashed rgba(44, 71, 98, .18); }
.sv-toggle { border: 0; background: none; color: var(--sv-navy); font-weight: 600; font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; }
.sv-toggle i { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(44, 71, 98, .1); font-size: 11px; transition: .35s; }
.sv-toggle:hover i { background: var(--sv-navy); color: #fff; }
.sv-toggle[aria-expanded="true"] i { transform: rotate(135deg); background: var(--sv-navy); color: #fff; }
.sv-wa { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 40px; background: #25d366; color: #fff !important; font-weight: 600; font-size: 14px; text-decoration: none; transition: .3s; }
.sv-wa:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 10px 22px rgba(37, 211, 102, .38); }

/* ---------- Equipo ---------- */
.sv-team { background: #fff; padding: 100px 0; }
.sv-team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 980px; margin: 0 auto; }
.sv-person { text-align: center; padding: 44px 34px; border-radius: 30px; background: linear-gradient(180deg, var(--sv-bg), #fff); border: 1px solid rgba(44, 71, 98, .09); transition: .4s; }
.sv-person:hover { transform: translateY(-8px); box-shadow: 0 26px 56px rgba(10, 35, 54, .12); }
.sv-avatar { width: 96px; height: 96px; margin: 0 auto 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 34px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--sv-navy), var(--sv-blue)); box-shadow: 0 0 0 8px rgba(159, 195, 230, .3); }
.sv-avatar.alt { background: linear-gradient(135deg, #0b2c40, #268c96); }
.sv-person h3 { font-size: 26px; color: var(--sv-deep); margin: 0 0 6px; }
.sv-person small { display: block; color: var(--sv-blue); font-weight: 600; margin-bottom: 14px; }
.sv-person p { color: #5b6b7a; line-height: 1.7; margin: 0 0 18px; }
.sv-person a { color: var(--sv-navy); font-weight: 600; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; padding: 8px 16px; border: 1px solid rgba(44, 71, 98, .2); border-radius: 40px; transition: .3s; }
.sv-person a:hover { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); color: #fff; border-color: transparent; }

/* ---------- Pasos ---------- */
.sv-steps { padding: 100px 0; background: linear-gradient(160deg, #0a2336, #0b2c40); overflow: hidden; }
.sv-steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; position: relative; }
.sv-steps-grid::before { content: ""; position: absolute; top: 38px; left: 16%; right: 16%; border-top: 2px dashed rgba(159, 195, 230, .4); }
.sv-step { position: relative; text-align: center; padding: 0 12px; color: rgba(255, 255, 255, .75); }
.sv-step span { width: 76px; height: 76px; margin: 0 auto 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 700; color: var(--sv-deep); background: var(--sv-sky); position: relative; z-index: 2; box-shadow: 0 0 0 8px rgba(159, 195, 230, .2); transition: .4s; }
.sv-step:hover span { transform: scale(1.12) rotate(-6deg); background: #fff; }
.sv-step h3 { color: #fff; font-size: 22px; margin: 0 0 8px; }
.sv-step p { margin: 0; }

/* ---------- Revelado ---------- */
.sv-reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s ease, transform .9s cubic-bezier(.22, 1, .36, 1); }
.sv-reveal.in { opacity: 1; transform: none; }

/* Footer de esta página: sin onda sobre el color incorrecto */
.rx-wave path { fill: #08202e; }
.rx-wave { display: none; }
.rx-footer { padding-top: 90px; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) { .sv-grid { grid-template-columns: repeat(2, 1fr); } .sv-hero h1 { font-size: 64px; } }
@media (max-width: 767px) {
  .sv-hero { padding: 150px 0 90px; }
  .sv-hero h1 { font-size: 46px; }
  .sv-hero p { font-size: 16px; }
  .sv-head h2 { font-size: 34px; }
  .sv-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .sv-stat:nth-child(3)::before { display: none; }
  .sv-grid, .sv-team-grid, .sv-steps-grid { grid-template-columns: 1fr; }
  .sv-steps-grid::before { display: none; }
  .sv-filters button { padding: 9px 16px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .sv-hero-bg i, .sv-hero .container > * { animation: none; }
  .sv-card, .sv-reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Rediseño: banner con imagen y lista alterna ===== */
.sv-hero { padding: 200px 0 150px; color: var(--sv-deep); background: linear-gradient(90deg, rgba(234, 245, 255, .96), rgba(234, 245, 255, .78) 45%, rgba(234, 245, 255, .08)), #eaf5ff url('../../img/home-3/about_hero.jpg') right center / cover no-repeat; }
.sv-hero::after { display: none; }
.sv-hero h1, .sv-hero p { color: var(--sv-deep); }
.sv-hero h1 em { color: var(--sv-blue); }
.sv-hero p { color: #3b4d5e; }
.sv-hero .sv-kicker { color: var(--sv-blue); }
.sv-crumbs { color: #5b6b7a; }
.sv-crumbs a { color: var(--sv-deep); }
.sv-crumbs b { color: var(--sv-blue); }
.sv-hero .sv-btn-light { background: var(--sv-navy); color: #fff !important; }
.sv-hero .sv-btn-light:hover { background: var(--sv-deep); }
.sv-catalog { padding: 90px 0 110px; background: #fbf8f6; }

.sv-list { display: flex; flex-direction: column; gap: 70px; }
.sv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.sv-row.hide { display: none; }
.sv-row.rev .sv-row-text { order: 2; }
.sv-row.pop { animation: svPop .6s cubic-bezier(.22, 1, .36, 1) both; }
.sv-row-text { padding: 0 10px; }
.sv-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--sv-blue); font-weight: 600; background: none; padding: 0; margin-bottom: 14px; }
.sv-tag i { width: 8px; height: 8px; border-radius: 2px; background: var(--sv-blue); display: inline-block; }
.sv-row h3 { font-family: "Instrument Serif", serif; font-weight: 400; font-size: 44px; line-height: 1.1; color: var(--sv-deep); margin: 0 0 18px; }
.sv-row p { color: #5b6b7a; font-size: 16px; line-height: 1.75; margin: 0 0 12px; }
.sv-row .sv-sub { font-size: 15px; color: #7a8896; }
.sv-row .sv-wa { margin-top: 12px; }
.sv-row-img { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3.3; box-shadow: 0 24px 60px rgba(10, 35, 54, .16); }
.sv-row-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s cubic-bezier(.22, 1, .36, 1); }
.sv-row:hover .sv-row-img img { transform: scale(1.07); }
.sv-row-n { position: absolute; left: 20px; bottom: 14px; font-size: 56px; font-weight: 700; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .85); }
.sv-row { opacity: 0; transform: translateY(40px); transition: opacity .9s ease, transform .9s cubic-bezier(.22, 1, .36, 1); }
.sv-row.in { opacity: 1; transform: none; }
@media (max-width: 991px) {
  .sv-hero { padding: 150px 0 100px; background-position: 70% center; }
  .sv-hero::before { content: ""; position: absolute; inset: 0; background: rgba(244, 250, 255, .78); }
  .sv-hero .container { position: relative; }
  .sv-row { grid-template-columns: 1fr; gap: 24px; }
  .sv-row.rev .sv-row-text { order: 0; }
  .sv-list { gap: 54px; }
  .sv-row h3 { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) { .sv-row { opacity: 1; transform: none; transition: none; } }

/* Enlaces a la página interna de cada servicio */
.sv-row-text h3 a { color: inherit; text-decoration: none; transition: color .3s; }
.sv-row-text h3 a:hover { color: #638969; }
.sv-ver-mas { display: inline-flex; align-items: center; gap: 8px; margin-right: 18px; font-weight: 600; color: #0a2336; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.sv-ver-mas:hover { color: #638969; }
.sv-row-img a { display: block; position: absolute; inset: 0; }

/* Servicio sin imagen: recuadro neutro en lugar de una imagen de respaldo */
.sv-img-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #94a3b8; background: #f1f5f9; border: 2px dashed rgba(148, 163, 184, .7); border-radius: inherit; font-size: 14px; }
.tr-foto .sv-img-empty { position: static; min-height: 100%; width: 100%; height: 100%; }
