/* =========================================================
   OV Servicios de Salud · Sitio público (estilo Health-tech)
   ========================================================= */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ov-navy: #0B1F4D;
  --ov-navy-2: #102A63;
  --ov-blue: #1F6FEB;
  --ov-teal: #2DD4BF;
  --ov-ink: #0F172A;
  --ov-muted: #5B6B86;
  --ov-line: #E3E9F4;
  --ov-soft: #F5F8FD;
  --ov-radius: 18px;
  --ov-shadow: 0 10px 30px rgba(11, 31, 77, .08);
  --ov-shadow-lg: 0 24px 60px rgba(11, 31, 77, .18);

  /* Bootstrap */
  --bs-body-font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --bs-body-color: var(--ov-ink);
  --bs-link-color-rgb: 31, 111, 235;
  --bs-border-radius: 11px;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: hidden; }

/* ---------- Navbar ---------- */
.ov-nav {
  background: rgba(11, 31, 77, .9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  min-height: 68px;
}
.ov-nav .nav-link { color: #C9D6F2; font-weight: 500; font-size: .95rem; }
.ov-nav .nav-link:hover, .ov-nav .nav-link:focus { color: #fff; }
.ov-marca { display: flex; align-items: center; gap: .6rem; color: #fff; font-weight: 800; text-decoration: none; }
.ov-marca:hover { color: #fff; }
.ov-marca img { border-radius: 10px; }
.ov-marca .acento { color: var(--ov-teal); font-weight: 600; }

/* ---------- Botones ---------- */
.btn-ov {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: 0; border-radius: 12px; padding: .85rem 1.35rem; font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn-ov:hover { transform: translateY(-2px); }
.btn-ov:active { transform: none; }
.btn-ov:focus-visible { outline: 3px solid rgba(45, 212, 191, .6); outline-offset: 2px; }
.btn-ov:disabled, .btn-ov.disabled { opacity: .65; transform: none; box-shadow: none; cursor: not-allowed; }
.btn-ov .spinner-border { width: 1rem; height: 1rem; border-width: .15em; }
:where(a, button, [tabindex]):focus-visible { outline: 3px solid rgba(31, 111, 235, .45); outline-offset: 2px; border-radius: 6px; }
.ov-nav :where(a, button):focus-visible, .ov-servicio.destacado :where(a, button):focus-visible { outline-color: rgba(45, 212, 191, .7); }
.btn-ov-primario { background: var(--ov-teal); color: var(--ov-navy); box-shadow: 0 8px 24px rgba(45, 212, 191, .35); }
.btn-ov-primario:hover { background: #3EE0CB; color: var(--ov-navy); box-shadow: 0 12px 30px rgba(45, 212, 191, .5); }
.btn-ov-azul { background: var(--ov-blue); color: #fff; box-shadow: 0 8px 24px rgba(31, 111, 235, .3); }
.btn-ov-azul:hover { background: #2B7BF5; color: #fff; }
.btn-ov-fantasma { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .22); }
.btn-ov-fantasma:hover { background: rgba(255, 255, 255, .15); color: #fff; }
.btn-ov-borde { background: #fff; color: var(--ov-blue); border: 1.5px solid #C9D8F5; }
.btn-ov-borde:hover { border-color: var(--ov-blue); color: var(--ov-blue); }
.btn-ov-sm { padding: .55rem 1rem; font-size: .9rem; border-radius: 10px; }

/* ---------- Hero ---------- */
.ov-hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(600px 380px at 85% 20%, rgba(45, 212, 191, .28), transparent 60%),
    radial-gradient(520px 420px at 10% 90%, rgba(31, 111, 235, .35), transparent 60%),
    linear-gradient(180deg, var(--ov-navy) 0%, var(--ov-navy-2) 100%);
  padding: 4.5rem 0 5.5rem;
}
.ov-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.ov-hero .container { position: relative; z-index: 1; }
.ov-pildora {
  display: inline-flex; align-items: center; gap: .55rem; padding: .4rem .9rem; border-radius: 999px;
  background: rgba(45, 212, 191, .12); border: 1px solid rgba(45, 212, 191, .35); color: var(--ov-teal);
  font-size: .85rem; font-weight: 600;
}
.ov-pildora i { width: 8px; height: 8px; border-radius: 50%; background: var(--ov-teal); animation: ov-pulso 2s infinite; }
@keyframes ov-pulso {
  0% { box-shadow: 0 0 0 0 rgba(45, 212, 191, .5); }
  100% { box-shadow: 0 0 0 9px rgba(45, 212, 191, 0); }
}
.ov-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.07; letter-spacing: -.025em;
  margin: 1.1rem 0 1rem; font-weight: 800;
}
.ov-hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--ov-teal), #7CC4FF);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ov-hero .lead { color: #C9D6F2; font-size: 1.12rem; line-height: 1.65; max-width: 36rem; margin-bottom: 1.9rem; }
.ov-checks { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; list-style: none; padding: 0; margin: 1.9rem 0 0; color: #C9D6F2; font-size: .93rem; }
.ov-checks li::before { content: "✓"; color: var(--ov-teal); font-weight: 800; margin-right: .45rem; }

.ov-visual { position: relative; width: min(430px, 100%); margin-inline: auto; }
.ov-visual .ov-foto {
  border-radius: 28px; overflow: hidden; aspect-ratio: 446 / 450;
  background: linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .18);
}
.ov-visual .ov-foto img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ov-flotante {
  position: absolute; display: flex; align-items: center; gap: .7rem; padding: .8rem 1rem;
  background: #fff; color: var(--ov-ink); border-radius: 14px; box-shadow: var(--ov-shadow-lg);
  font-size: .85rem; max-width: 250px; animation: ov-flotar 6s ease-in-out infinite;
}
.ov-flotante b { display: block; font-size: .9rem; }
.ov-flotante small { color: var(--ov-muted); }
.ov-flotante .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.ov-flotante.f1 { left: -2rem; bottom: 2.2rem; }
.ov-flotante.f1 .ico { background: #DCFCE7; color: #15803D; }
.ov-flotante.f2 { right: -1.5rem; top: 1.8rem; animation-delay: -3s; }
.ov-flotante.f2 .ico { background: #DBEAFE; color: var(--ov-blue); }
@keyframes ov-flotar { 50% { transform: translateY(-8px); } }

/* Credencial del profesional de la foto */
.ov-credencial {
  position: absolute; left: -2rem; bottom: 1.6rem; width: min(310px, 88%);
  background: #fff; color: var(--ov-ink); border-radius: 18px; padding: 1rem 1.15rem;
  box-shadow: var(--ov-shadow-lg); transition: transform .25s ease, box-shadow .25s ease;
}
.ov-credencial:hover, .ov-credencial:focus-within, .ov-credencial:focus { transform: translateY(-4px); box-shadow: 0 30px 70px rgba(11, 31, 77, .32); outline: none; }
.ov-credencial .nombre { font-weight: 800; font-size: 1rem; line-height: 1.25; }
.ov-credencial .esp { color: var(--ov-blue); font-weight: 700; font-size: 1rem; margin-top: .1rem; }
.ov-registros-sm span { font-size: .65rem; padding: .15rem .45rem; border-radius: 6px; }
.ov-credencial .sello { color: var(--ov-teal); flex-shrink: 0; }
.ov-credencial .resena {
  font-size: .82rem; color: var(--ov-muted); line-height: 1.5; margin: 0;
  max-height: 0; overflow: hidden; transition: max-height .35s ease, margin .35s ease;
}
.ov-credencial:hover .resena, .ov-credencial:focus .resena, .ov-credencial:focus-within .resena { max-height: 120px; margin-top: .6rem; }

/* Carrusel de profesionales en portada */
.ov-carrusel { position: relative; }
.ov-carrusel .carousel-inner { overflow: visible; } /* la credencial sobresale de la foto; con fade no hay deslizamiento */
.ov-carrusel .carousel-item { position: relative; padding-bottom: 0; }
.ov-carrusel .ov-foto img { object-fit: cover; object-position: top center; }
.ov-carrusel-controles {
  display: flex; align-items: center; justify-content: center; gap: .9rem; margin-top: 1.3rem;
}
.ov-carrusel-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .08); color: #fff; font-size: 1.3rem; line-height: 1;
  display: grid; place-items: center; transition: background .2s ease;
}
.ov-carrusel-btn:hover, .ov-carrusel-btn:focus-visible { background: rgba(255, 255, 255, .18); outline: none; }
.ov-indicadores { position: static; margin: 0; gap: .4rem; }
.ov-indicadores [data-bs-target] {
  width: 8px; height: 8px; border-radius: 99px; border: 0; margin: 0; opacity: 1;
  background: rgba(255, 255, 255, .35); transition: width .25s ease, background .25s ease;
}
.ov-indicadores .active { width: 24px; background: var(--ov-teal); }

/* ---------- Secciones ---------- */
.ov-bloque { padding: 5.5rem 0; }
.ov-suave { background: var(--ov-soft); }
.ov-eyebrow { color: var(--ov-blue); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.ov-titulo { font-size: clamp(1.7rem, 3.2vw, 2.5rem); letter-spacing: -.02em; line-height: 1.15; font-weight: 800; margin: .5rem 0 .8rem; }
.ov-sub { color: var(--ov-muted); max-width: 42rem; line-height: 1.65; margin-bottom: 2.6rem; }
.text-center .ov-sub { margin-inline: auto; }

/* Servicios */
.ov-servicio {
  position: relative; height: 100%; border-radius: 22px; padding: 2.2rem; overflow: hidden;
  border: 1px solid var(--ov-line); background: #fff;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex; flex-direction: column;
}
.ov-servicio:hover { transform: translateY(-4px); box-shadow: var(--ov-shadow); border-color: #C9D8F5; }
.ov-servicio.destacado {
  color: #fff; border: 0;
  background:
    radial-gradient(320px 240px at 95% 0%, rgba(45, 212, 191, .35), transparent 70%),
    linear-gradient(160deg, var(--ov-navy), var(--ov-blue));
}
.ov-servicio .ico {
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 1.2rem;
  background: linear-gradient(135deg, #E8F1FF, #E6FBF7); color: var(--ov-blue);
}
.ov-servicio.destacado .ico { background: rgba(255, 255, 255, .14); color: #fff; }
.ov-servicio h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: .6rem; }
.ov-servicio p { color: var(--ov-muted); line-height: 1.6; }
.ov-servicio.destacado p { color: #D6E2FA; }
.ov-servicio ul { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: .5rem; }
.ov-servicio li { display: flex; gap: .55rem; align-items: flex-start; font-size: .95rem; }
.ov-servicio li::before { content: "✓"; color: var(--ov-teal); font-weight: 800; }
.ov-servicio:not(.destacado) li::before { color: var(--ov-blue); }
.ov-servicio .acciones { margin-top: auto; display: flex; flex-wrap: wrap; gap: .6rem; }
.ov-chip {
  display: inline-block; font-size: .75rem; font-weight: 700; padding: .3rem .7rem; border-radius: 999px;
  background: rgba(45, 212, 191, .16); color: var(--ov-teal); margin-bottom: 1rem; align-self: flex-start;
}
.ov-servicio:not(.destacado) .ov-chip { background: #E8F1FF; color: var(--ov-blue); }

/* Detalle de servicios */
.ov-detalle { margin-top: 3.5rem; }
.ov-detalle-titulo { font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; margin-bottom: 1.1rem; }
.ov-detalle-tabs { display: flex; flex-wrap: wrap; gap: .5rem; }
.ov-detalle-tabs button {
  font: inherit; font-weight: 700; font-size: .92rem; padding: .55rem 1.1rem; border-radius: 999px;
  background: #fff; color: var(--ov-ink); border: 1.5px solid var(--ov-line);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.ov-detalle-tabs button:hover { border-color: var(--ov-blue); color: var(--ov-blue); }
.ov-detalle-tabs button[aria-expanded="true"] { background: var(--ov-blue); border-color: var(--ov-blue); color: #fff; }
.ov-detalle-ayuda { color: var(--ov-muted); font-size: .92rem; margin: 1rem 0 0; }
.ov-detalle:has(.collapse.show, .collapsing) .ov-detalle-ayuda { display: none; }
.ov-detalle-panel {
  margin-top: 1.2rem; border-radius: var(--ov-radius); padding: 1.8rem;
  background: var(--ov-soft); border: 1px solid var(--ov-line);
}
.ov-detalle-panel h4 { font-size: 1.1rem; font-weight: 800; margin-bottom: 1.1rem; }
.ov-detalle-panel ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .6rem;
}
.ov-detalle-panel li {
  display: flex; align-items: center; gap: .55rem; font-size: .95rem; font-weight: 600;
  background: #fff; border: 1px solid var(--ov-line); border-radius: 12px; padding: .7rem .9rem;
}
.ov-detalle-panel li::before { content: "✓"; color: var(--ov-blue); font-weight: 800; }
.ov-detalle-panel .nota { color: var(--ov-muted); font-size: .88rem; margin: 1rem 0 0; }

/* Enlace "Ver qué incluye" al pie de cada tarjeta */
.ov-incluye {
  align-self: flex-start; margin-top: 1rem; padding: .25rem 0; background: none; border: 0;
  font: inherit; font-size: .9rem; font-weight: 700; color: var(--ov-blue);
  display: inline-flex; align-items: center; gap: .35rem;
}
.ov-incluye span { transition: transform .2s ease; }
.ov-incluye:hover { color: var(--ov-navy); }
.ov-incluye[aria-expanded="true"] span { transform: rotate(180deg); }
.ov-servicio.destacado .ov-incluye { color: #fff; }
.ov-servicio.destacado .ov-incluye:hover { color: var(--ov-teal); }

/* Cómo funciona */
.ov-pasos { position: relative; list-style: none; padding: 0; margin: 0; }
.ov-pasos::before {
  content: ""; position: absolute; top: 27px; left: 16%; right: 16%; height: 2px;
  background: linear-gradient(90deg, var(--ov-blue), var(--ov-teal)); opacity: .35;
}
.ov-paso { position: relative; text-align: center; padding: 0 .75rem; }
.ov-paso .num {
  width: 54px; height: 54px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 2px solid var(--ov-blue); color: var(--ov-blue); font-weight: 800; font-size: 1.15rem;
  box-shadow: 0 0 0 8px var(--ov-soft);
}
.ov-paso h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .35rem; }
.ov-paso p { color: var(--ov-muted); margin: 0; line-height: 1.55; }

/* Equipo */
.ov-medico {
  height: 100%; border: 1px solid var(--ov-line); border-radius: 22px; padding: 1.6rem; background: #fff;
  display: flex; gap: 1.2rem; align-items: flex-start; transition: box-shadow .25s ease, transform .25s ease;
}
.ov-medico:hover { box-shadow: var(--ov-shadow); transform: translateY(-3px); }
.ov-medico .avatar {
  width: 88px; height: 88px; border-radius: 20px; flex-shrink: 0; object-fit: cover;
  display: grid; place-items: center; font-weight: 800; font-size: 1.6rem; color: #fff;
  background: linear-gradient(135deg, var(--ov-blue), var(--ov-teal));
}
.ov-medico h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: .15rem; }
.ov-medico .especialidad { color: var(--ov-blue); font-weight: 600; font-size: .92rem; margin-bottom: .6rem; }
.ov-registros { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .6rem; }
.ov-registros span {
  font-size: .75rem; font-weight: 700; padding: .25rem .6rem; border-radius: 8px;
  background: var(--ov-soft); border: 1px solid var(--ov-line); color: var(--ov-navy);
}
.ov-medico p { color: var(--ov-muted); font-size: .92rem; line-height: 1.55; margin: 0; }

/* FAQ */
.ov-faq .accordion-item { border: 1px solid var(--ov-line); border-radius: 14px !important; overflow: hidden; margin-bottom: .75rem; }
.ov-faq .accordion-button { font-weight: 600; padding: 1.1rem 1.3rem; }
.ov-faq .accordion-button:not(.collapsed) { background: var(--ov-soft); color: var(--ov-navy); box-shadow: none; }
.ov-faq .accordion-button:focus { box-shadow: 0 0 0 4px rgba(31, 111, 235, .15); }

/* Contacto */
.ov-panel-form { border: 1px solid var(--ov-line); border-radius: 22px; padding: 2rem; box-shadow: var(--ov-shadow); background: #fff; }
.ov-panel-form .form-control, .ov-panel-form .form-select { padding: .75rem .9rem; border: 1.5px solid var(--ov-line); }
.ov-panel-form .form-control:focus, .ov-panel-form .form-select:focus { border-color: var(--ov-blue); box-shadow: 0 0 0 4px rgba(31, 111, 235, .12); }
.ov-panel-form .form-label { font-size: .85rem; font-weight: 600; color: #334155; }
.ov-panel-form .asteriskField { display: none; }
.ov-seguro { display: flex; align-items: center; justify-content: center; gap: .4rem; margin-top: .9rem; font-size: .8rem; color: var(--ov-muted); }
.ov-info { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: 1rem; }
.ov-info li { display: flex; gap: .85rem; align-items: center; color: var(--ov-muted); }
.ov-info a { color: var(--ov-ink); font-weight: 600; text-decoration: none; }
.ov-info .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--ov-soft); color: var(--ov-blue); flex-shrink: 0; }
.ov-mapa { border-radius: 18px; overflow: hidden; border: 1px solid var(--ov-line); margin-top: 1.8rem; }

/* Campo trampa anti-spam: fuera de la vista, sin display:none */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.ov-pie { background: var(--ov-navy); color: #C9D6F2; padding: 3.5rem 0 2rem; font-size: .92rem; }
.ov-pie a { color: #C9D6F2; text-decoration: none; }
.ov-pie a:hover { color: #fff; }
.ov-pie h2 { color: #fff; font-size: .95rem; font-weight: 700; margin-bottom: .9rem; }
.ov-pie ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.ov-pie-base { margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .82rem; }

/* WhatsApp flotante */
.ov-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 1050; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: #25D366; color: #fff;
  box-shadow: 0 10px 25px rgba(37, 211, 102, .45); transition: transform .2s ease;
}
.ov-fab:hover { transform: scale(1.07); color: #fff; }

/* Animación de entrada al hacer scroll (solo si hay JS) */
.js .ov-revelar { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .ov-revelar.visible { opacity: 1; transform: none; }

/* Páginas internas simples (privacidad) */
.ov-pagina { padding: 4rem 0; }
.ov-pagina h1 { font-weight: 800; letter-spacing: -.02em; }
.ov-pagina h2 { font-size: 1.1rem; font-weight: 700; margin-top: 1.8rem; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .ov-nav .navbar-collapse { padding: 1rem 0; }
  .ov-hero { padding: 3rem 0 4rem; }
  .ov-pasos::before { display: none; }
  .ov-bloque { padding: 4rem 0; }
}
@media (max-width: 575.98px) {
  .ov-flotante { font-size: .78rem; padding: .6rem .75rem; }
  .ov-flotante.f1 { left: -.25rem; bottom: 1rem; }
  .ov-flotante.f2 { right: -.25rem; top: 1rem; }
  .ov-credencial { left: .5rem; bottom: .75rem; padding: .8rem .9rem; }
  .ov-servicio, .ov-panel-form { padding: 1.5rem; }
  .ov-medico { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .ov-revelar { opacity: 1; transform: none; }
}
