/* ============================================
   DR. JORGE SANTA MARÍA — WEB PROFESIONAL
   ============================================ */

:root {
  /* Azul: confianza y seguridad */
  --primary: #075985;
  --primary-dark: #0b1f3a;
  --primary-bright: #0891b2;

  /* Verde: esperanza, recuperación y bienestar */
  --hope: #159a73;
  --hope-dark: #0f6f56;
  --hope-soft: #dff7ee;

  /* Turquesa: cercanía, claridad y modernidad */
  --dynamic: #22b8c7;
  --dynamic-soft: #dff8fb;

  /* Ámbar suave: energía y dinamismo sin perder sobriedad */
  --accent: #f0b44d;
  --accent-soft: #fff3d8;

  --ink: #17324a;
  --muted: #5f7485;
  --line: #d6e7ef;
  --surface: #ffffff;
  --surface-soft: #f1f8fb;
  --surface-strong: #dceff5;
  --shadow: 0 18px 50px rgba(11, 54, 82, 0.14);
  --radius: 22px;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin-inline: auto;
}

.section {
  padding: 96px 0;
}

.section-soft {
  background: var(--surface-soft);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary-bright);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow-light {
  color: #a7edf1;
}

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

h1,
h2,
h3 {
  line-height: 1.12;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(2.65rem, 6vw, 5rem);
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  letter-spacing: -0.04em;
}

h3 {
  font-size: 1.25rem;
}

.lead {
  font-size: 1.25rem;
}

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

.skip-link {
  position: fixed;
  z-index: 999;
  top: 12px;
  left: 12px;
  transform: translateY(-180%);
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--primary-dark);
  color: white;
}

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

/* Navegación */
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(216, 231, 233, 0.8);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--surface-soft);
}

.brand-mark svg {
  width: 30px;
  fill: var(--primary);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.92rem;
  font-weight: 700;
}

.main-nav > a:not(.button):hover {
  color: var(--primary-bright);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--surface-soft);
  cursor: pointer;
}

.menu-toggle > span:not(.sr-only) {
  width: 20px;
  height: 2px;
  display: block;
  margin: 4px auto;
  background: var(--primary-dark);
}

/* Botones */
.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid var(--primary);
  border-radius: 999px;
  background: var(--primary);
  color: white;
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(7, 89, 133, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--primary-dark);
  box-shadow: 0 14px 34px rgba(7, 89, 133, 0.28);
}

.button-small {
  min-height: 42px;
  padding-inline: 18px;
}

.button-secondary {
  background: transparent;
  color: var(--primary);
  box-shadow: none;
}

.button-secondary:hover {
  background: var(--surface-soft);
  color: var(--primary-dark);
}

.button-light {
  border-color: white;
  background: white;
  color: var(--primary-dark);
}

.button-full {
  width: 100%;
}

.text-link {
  color: var(--primary-bright);
  font-weight: 800;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 74px;
  background:
    radial-gradient(circle at 12% 10%, rgba(116, 209, 219, 0.2), transparent 32%),
    linear-gradient(135deg, #ffffff 0%, #edf8f8 100%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 60px;
}

.hero-copy {
  max-width: 720px;
}

.hero-text {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.14rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0 38px;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.trust-row div {
  padding-left: 14px;
  border-left: 3px solid var(--surface-strong);
}

.trust-row strong,
.trust-row span {
  display: block;
}

.trust-row strong {
  color: var(--primary-dark);
  font-size: 1rem;
}

.trust-row span {
  color: var(--muted);
  font-size: 0.78rem;
}

.microcopy {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.hero-visual {
  position: relative;
}

.visual-card {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.92), rgba(219,242,244,.82));
  box-shadow: var(--shadow);
}

.visual-card > svg {
  width: min(100%, 520px);
}

.visual-label,
.floating-note {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(255,255,255,.8);
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(11, 54, 82, .13);
}

.visual-label {
  top: 22px;
  left: 22px;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--primary);
  font-size: .82rem;
  font-weight: 800;
}

.floating-note {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: .82rem;
  font-weight: 800;
}

.note-one { top: 110px; right: 22px; }
.note-two { bottom: 98px; left: 24px; }
.note-three { right: 36px; bottom: 48px; }

.hero-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  opacity: .45;
}

.hero-orb-one {
  width: 230px;
  height: 230px;
  right: -80px;
  top: 80px;
  background: #9ee4ea;
}

.hero-orb-two {
  width: 150px;
  height: 150px;
  left: 45%;
  bottom: -70px;
  background: #f7d78d;
}

/* Banda */
.symptom-strip {
  background: var(--primary-dark);
  color: white;
}

.symptom-strip .container {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.symptom-strip p {
  margin: 0;
  font-weight: 800;
}

.symptom-strip a {
  color: #b8f2e3;
  font-weight: 800;
}

/* Secciones */
.section-heading {
  max-width: 760px;
  margin-bottom: 46px;
}

.section-heading > p:last-child {
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  position: relative;
  min-height: 280px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 10px 35px rgba(11, 54, 82, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.service-number {
  display: inline-block;
  margin-bottom: 44px;
  color: var(--primary-bright);
  font-size: .78rem;
  font-weight: 900;
}

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

.service-card a {
  position: absolute;
  right: 32px;
  bottom: 28px;
  left: 32px;
  color: var(--primary);
  font-weight: 800;
}

.two-column,
.doctor-grid,
.contact-grid,
.process-grid {
  display: grid;
  gap: 60px;
}

.two-column {
  grid-template-columns: 1fr .85fr;
  align-items: center;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 34px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-strong);
  color: var(--primary-dark);
  font-size: .78rem;
  font-weight: 900;
}

.info-panel {
  padding: 38px;
  border-radius: 28px;
  background: var(--primary-dark);
  color: white;
  box-shadow: var(--shadow);
}

.panel-kicker {
  color: #a7edf1;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.panel-steps {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.panel-steps div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.panel-steps span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  font-weight: 900;
}

.doctor-grid {
  grid-template-columns: .78fr 1.22fr;
  align-items: center;
}

.doctor-card {
  overflow: hidden;
  border-radius: 30px;
  background: var(--surface-soft);
  box-shadow: var(--shadow);
}

.photo-placeholder {
  min-height: 540px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 30px;
  text-align: center;
}

.photo-placeholder svg {
  width: 290px;
  fill: #c1dce8;
  stroke: #c1dce8;
}

.photo-placeholder p {
  max-width: 260px;
  color: var(--muted);
  font-size: .88rem;
}

.credentials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 34px 0;
}

.credentials div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.credentials dt {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.credentials dd {
  margin: 3px 0 0;
  font-weight: 800;
}

/* Proceso */
.section-accent {
  background: var(--primary);
  color: white;
}

.process-grid {
  grid-template-columns: .9fr 1.1fr;
  align-items: start;
}

.process-list {
  display: grid;
  gap: 18px;
}

.process-list article {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 20px;
  background: rgba(255,255,255,.07);
}

.process-list article > span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  font-weight: 900;
}

.process-list p {
  margin-bottom: 0;
  color: #c7e8ef;
}

/* FAQ */
.faq-wrap {
  max-width: 920px;
}

.faq-list {
  display: grid;
  gap: 14px;
}

details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}

summary {
  position: relative;
  padding: 22px 58px 22px 22px;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 16px;
  font-size: 1.7rem;
  color: var(--primary-bright);
}

details[open] summary::after {
  content: "–";
}

details p {
  padding: 0 22px 22px;
  margin: 0;
  color: var(--muted);
}

/* Contacto */
.contact-grid {
  grid-template-columns: 1.1fr .9fr;
  align-items: stretch;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 30px;
}

.contact-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}

.contact-card span,
.contact-card strong {
  display: block;
}

.contact-card span {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-card strong {
  margin-top: 5px;
  font-size: .94rem;
}

.contact-card-wide {
  grid-column: 1 / -1;
}

.consultorio-list {
  margin-top: 10px;
}

.consultorio-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.consultorio-list p + p {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.consultorio-list strong {
  display: inline;
  color: var(--text);
  font-size: .98rem;
}

.map-card {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow);
}

.map-placeholder {
  flex: 1;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 18px;
  background:
    linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,.55)),
    repeating-linear-gradient(45deg, #dceff5 0 10px, #f0f8fb 10px 20px);
  text-align: center;
}

.map-placeholder span {
  color: var(--primary);
  font-size: 2rem;
  font-weight: 900;
}

.map-placeholder p {
  max-width: 280px;
  margin-bottom: 0;
  color: var(--muted);
}

.map-card > h3 {
  margin: 2px 0 0;
  color: var(--text);
  font-size: 1.2rem;
}

.map-location-list {
  display: grid;
  gap: 18px;
}

.map-location {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
}

.map-location-heading {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.map-location-number {
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-weight: 900;
}

.map-location-heading strong {
  display: block;
  color: var(--text);
}

.map-location-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.45;
}

.map-location iframe {
  width: 100%;
  height: 230px;
  border: 0;
  border-radius: 14px;
  background: #eef4f7;
}

/* CTA */
.final-cta {
  padding: 60px 0;
  background: var(--primary-dark);
  color: white;
}

.final-cta .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.final-cta p {
  margin-bottom: 4px;
  color: #a7edf1;
}

.final-cta h2 {
  margin-bottom: 0;
}

.floating-whatsapp {
  position: fixed;
  z-index: 90;
  right: 22px;
  bottom: 22px;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  background: #1fa855;
  color: white;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(20, 110, 60, .28);
}

/* Footer */
.site-footer {
  padding: 34px 0;
  background: #051f25;
  color: #c1dce8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.site-footer strong {
  color: white;
}

.site-footer p {
  margin-bottom: 4px;
  font-size: .82rem;
}

/* Responsive */
@media (max-width: 980px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    inset: 82px 0 auto;
    max-height: 0;
    display: grid;
    gap: 0;
    overflow: hidden;
    background: white;
    box-shadow: 0 18px 38px rgba(15, 62, 73, .12);
    transition: max-height 220ms ease;
  }

  .main-nav.open {
    max-height: 420px;
  }

  .main-nav a {
    padding: 16px 24px;
    border-top: 1px solid var(--line);
  }

  .main-nav .button {
    margin: 14px 24px 22px;
  }

  .hero-grid,
  .two-column,
  .doctor-grid,
  .contact-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 40px;
  }

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

  .doctor-card {
    max-width: 620px;
  }
}

@media (max-width: 680px) {
  .section {
    padding: 72px 0;
  }

  .hero {
    padding-top: 62px;
  }

  h1 {
    font-size: clamp(2.45rem, 13vw, 4rem);
  }

  .brand small {
    display: none;
  }

  .trust-row,
  .card-grid,
  .credentials,
  .contact-cards,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .visual-card {
    min-height: 390px;
  }

  .floating-note {
    font-size: .72rem;
  }

  .symptom-strip .container,
  .final-cta .container {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 20px;
  }

  .service-card {
    min-height: 250px;
  }

  .photo-placeholder {
    min-height: 420px;
  }

  .floating-whatsapp span {
    font-size: .82rem;
  }
}

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

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


/* Formación, trayectoria y sociedades */
.credential-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.credential-card {
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 10px 30px rgba(11, 54, 82, 0.07);
}

.credential-tag {
  display: inline-block;
  margin-bottom: 38px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--primary-dark);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

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

.specialty-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 38px;
}

.specialty-cloud span {
  padding: 12px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--primary-dark);
  font-size: .9rem;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(18, 65, 75, 0.05);
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.experience-panel {
  padding: 32px;
  border-radius: 24px;
  background: var(--surface-soft);
}

.experience-panel p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.professional-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: stretch;
  gap: 46px;
}

.society-list {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.society-list article {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
}

.society-list article > span {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--surface-strong);
  color: var(--primary-dark);
  font-size: .82rem;
  font-weight: 900;
}

.society-list h3 {
  margin-bottom: 6px;
}

.society-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.professional-highlight {
  padding: 38px;
  border-radius: 28px;
  background: var(--primary-dark);
  color: white;
  box-shadow: var(--shadow);
}

.professional-highlight p {
  color: #c7e8ef;
}

.professional-highlight ul {
  display: grid;
  gap: 9px;
  padding-left: 20px;
  margin-bottom: 0;
}

.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 12px;
}

.footer-social a {
  color: #a7edf1;
  font-size: .84rem;
  font-weight: 800;
}

.footer-social a:hover {
  color: white;
}

@media (max-width: 980px) {
  .credential-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 680px) {
  .credential-grid,
  .experience-grid {
    grid-template-columns: 1fr;
  }

  .credential-card {
    min-height: auto;
  }

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


/* Identidad visual profesional */
.brand-with-logo { gap: 10px; }
.brand-logo {
  width: 62px;
  height: 62px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
}
.hero-logo {
  width: min(100%, 410px);
  max-height: 225px;
  object-fit: contain;
  object-position: left center;
  display: block;
  margin: 0 0 22px;
  mix-blend-mode: multiply;
}
.footer-logo {
  width: 180px;
  max-height: 120px;
  object-fit: contain;
  object-position: left center;
  display: block;
  margin-bottom: 14px;
  border-radius: 10px;
  background: #fff;
}

/* Galería multimedia */
.multimedia-section {
  background:
    radial-gradient(circle at 90% 10%, rgba(132, 211, 220, .15), transparent 28%),
    #fff;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}
.video-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(11, 54, 82, .10);
}
.video-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  width: calc(50% - 13px);
  justify-self: center;
}
.video-frame {
  position: relative;
  overflow: hidden;
  background: #061e24;
  aspect-ratio: 16 / 9;
}
.video-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #061e24;
}
.video-content { padding: 24px; }
.video-content h3 {
  margin-bottom: 10px;
  color: var(--primary-dark);
}
.video-content p {
  margin-bottom: 0;
  color: var(--muted);
}
.media-disclaimer {
  max-width: 780px;
  margin: 32px auto 0;
  padding: 16px 20px;
  border-left: 4px solid var(--primary-bright);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: .88rem;
}

@media (max-width: 980px) {
  .brand-logo { width: 54px; height: 54px; }
  .video-grid { grid-template-columns: 1fr; }
  .video-card:last-child:nth-child(odd) {
    grid-column: auto;
    width: auto;
  }
}

@media (max-width: 680px) {
  .brand-logo { width: 48px; height: 48px; }
  .brand-with-logo strong { font-size: .83rem; }
  .hero-logo {
    width: 100%;
    max-height: 180px;
    margin-bottom: 18px;
  }
  .video-content { padding: 20px; }
  .footer-logo { width: 150px; }
}


/* Logotipo moderno en la imagen principal de portada */
.visual-card-logo {
  min-height: 520px;
  padding: 28px;
  background: #ffffff;
}

.hero-feature-logo {
  width: 100%;
  height: 100%;
  max-height: 510px;
  object-fit: contain;
  display: block;
  border-radius: 22px;
}

@media (max-width: 680px) {
  .visual-card-logo {
    min-height: 390px;
    padding: 16px;
  }

  .hero-feature-logo {
    max-height: 390px;
  }
}


/* Fotografía profesional del médico */
.doctor-photo {
  width: 100%;
  height: 100%;
  min-height: 540px;
  max-height: 720px;
  display: block;
  object-fit: cover;
  object-position: center top;
  border-radius: 30px;
  background: var(--surface-soft);
}

@media (max-width: 680px) {
  .doctor-photo {
    min-height: 420px;
    max-height: 560px;
  }
}


/* ==================================================
   PALETA EMOCIONAL
   Azul profundo: seguridad
   Azul/turquesa: confianza y dinamismo
   Verde: esperanza y recuperación
   Ámbar: energía y cercanía
   ================================================== */

.site-header {
  border-bottom-color: rgba(8, 145, 178, 0.16);
  box-shadow: 0 7px 24px rgba(11, 31, 58, 0.05);
}

.brand strong {
  color: var(--primary-dark);
}

.brand small {
  color: var(--hope-dark);
}

.hero {
  background:
    radial-gradient(circle at 9% 8%, rgba(34, 184, 199, 0.22), transparent 31%),
    radial-gradient(circle at 91% 80%, rgba(21, 154, 115, 0.14), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #effaff 52%, #f0fbf7 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 7px;
  background: linear-gradient(
    90deg,
    var(--primary-dark),
    var(--primary-bright),
    var(--dynamic),
    var(--hope)
  );
}

.hero h1 {
  color: var(--primary-dark);
}

.eyebrow {
  color: var(--hope-dark);
}

.button {
  border-color: var(--primary);
  background: linear-gradient(135deg, var(--primary), var(--primary-bright));
  box-shadow: 0 12px 28px rgba(7, 89, 133, 0.24);
}

.button:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  box-shadow: 0 15px 36px rgba(7, 89, 133, 0.30);
}

.button-secondary {
  border-color: var(--hope);
  background: white;
  color: var(--hope-dark);
}

.button-secondary:hover {
  background: var(--hope-soft);
  color: var(--hope-dark);
}

.symptom-strip {
  background:
    linear-gradient(100deg, var(--primary-dark), var(--primary), var(--hope-dark));
}

.service-card {
  border-top: 5px solid transparent;
  border-image: linear-gradient(90deg, var(--primary-bright), var(--hope)) 1;
}

.service-card:hover {
  border-image: linear-gradient(90deg, var(--dynamic), var(--hope), var(--accent)) 1;
}

.service-number {
  color: var(--hope-dark);
}

.check-list li::before {
  background: var(--hope-soft);
  color: var(--hope-dark);
}

.info-panel,
.professional-highlight {
  background:
    linear-gradient(145deg, var(--primary-dark), #123e5f 62%, var(--hope-dark));
}

.panel-kicker,
.eyebrow-light {
  color: #bff5e5;
}

.section-accent {
  background:
    linear-gradient(130deg, var(--primary-dark) 0%, var(--primary) 58%, var(--hope-dark) 100%);
}

.process-list article {
  border-color: rgba(255, 255, 255, 0.19);
  background: rgba(255, 255, 255, 0.09);
}

.credentials div,
.credential-card,
.contact-card,
.video-card,
.society-list article {
  border-color: rgba(8, 145, 178, 0.17);
}

.credential-tag {
  background: var(--dynamic-soft);
  color: var(--primary);
}

.specialty-cloud span {
  border-color: rgba(21, 154, 115, 0.24);
  background: linear-gradient(135deg, #ffffff, var(--hope-soft));
  color: var(--hope-dark);
}

.experience-panel {
  border-left: 5px solid var(--dynamic);
  background:
    linear-gradient(135deg, var(--surface-soft), #f2fcf8);
}

.society-list article > span {
  background: linear-gradient(135deg, var(--dynamic-soft), var(--hope-soft));
  color: var(--primary-dark);
}

details[open] {
  border-color: rgba(21, 154, 115, 0.36);
  box-shadow: 0 12px 30px rgba(15, 111, 86, 0.08);
}

summary::after {
  color: var(--hope);
}

.map-placeholder {
  background:
    linear-gradient(rgba(255,255,255,.50), rgba(255,255,255,.50)),
    repeating-linear-gradient(
      45deg,
      var(--dynamic-soft) 0 10px,
      var(--hope-soft) 10px 20px
    );
}

.final-cta {
  background:
    linear-gradient(100deg, var(--primary-dark), var(--primary), var(--hope-dark));
}

.floating-whatsapp {
  background: linear-gradient(135deg, #1faa68, var(--hope-dark));
  box-shadow: 0 13px 30px rgba(15, 111, 86, .30);
}

.site-footer {
  background: linear-gradient(120deg, #071a2f, #0b1f3a 65%, #0f3b46);
}

.media-disclaimer {
  border-left-color: var(--hope);
  background: linear-gradient(135deg, var(--surface-soft), var(--hope-soft));
}

.visual-card,
.doctor-card {
  box-shadow:
    0 22px 55px rgba(11, 54, 82, 0.16),
    0 0 0 1px rgba(34, 184, 199, 0.08);
}

.hero-orb-one {
  background: #8ee7ec;
}

.hero-orb-two {
  background: #a9e4c9;
}

.text-link,
.service-card a,
.symptom-strip a {
  color: var(--hope-dark);
}

.symptom-strip a {
  color: #c9faeb;
}

.footer-social a {
  color: #bff5e5;
}

.footer-social a:hover {
  color: white;
}


/* Redes sociales encima del logotipo moderno */
.visual-card-logo {
  align-content: center;
  gap: 16px;
}

.hero-social-links {
  position: relative;
  z-index: 4;
  width: 100%;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 4px 8px 0;
}

.social-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid rgba(7, 89, 133, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--primary-dark);
  font-size: .88rem;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(11, 54, 82, 0.12);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.social-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.social-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(11, 54, 82, 0.18);
}

.social-linkedin {
  color: #0a66c2;
}

.social-linkedin:hover {
  background: #0a66c2;
  color: white;
}

.social-tiktok {
  color: #111827;
}

.social-tiktok:hover {
  background:
    linear-gradient(135deg, #111827 0%, #111827 55%, #22d3ee 100%);
  color: white;
}

@media (max-width: 680px) {
  .hero-social-links {
    gap: 9px;
  }

  .social-button {
    min-height: 42px;
    padding-inline: 15px;
    font-size: .82rem;
  }
}


/* Atención mediante EPS, SCTR, SOAT y seguros */
.insurance-section {
  background:
    radial-gradient(circle at 8% 12%, rgba(34, 184, 199, .18), transparent 30%),
    radial-gradient(circle at 92% 88%, rgba(21, 154, 115, .15), transparent 28%),
    linear-gradient(135deg, #f8fdff, #f3fbf8);
}

.insurance-layout {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 48px;
  align-items: center;
}

.insurance-copy > p:not(.eyebrow):not(.lead) {
  color: var(--muted);
}

.insurance-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 32px;
}

.insurance-badges span {
  min-width: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 17px;
  border: 1px solid rgba(21, 154, 115, .24);
  border-radius: 999px;
  background: linear-gradient(135deg, white, var(--hope-soft));
  color: var(--hope-dark);
  font-size: .9rem;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(15, 111, 86, .08);
}

.insurance-panel {
  padding: 38px;
  border-radius: 28px;
  background:
    linear-gradient(145deg, var(--primary-dark), #123e5f 60%, var(--hope-dark));
  color: white;
  box-shadow: var(--shadow);
}

.insurance-panel h3 {
  margin-bottom: 26px;
  font-size: 1.65rem;
}

.insurance-steps {
  display: grid;
  gap: 18px;
}

.insurance-steps article {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
}

.insurance-steps article > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .13);
  color: #c9faeb;
  font-weight: 900;
}

.insurance-steps strong {
  display: block;
  margin-bottom: 4px;
}

.insurance-steps p {
  margin-bottom: 0;
  color: #c7e8ef;
  font-size: .9rem;
}

.insurance-note {
  margin: 26px 0 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 15px;
  background: rgba(255, 255, 255, .08);
  color: #d8edf1;
  font-size: .82rem;
}

@media (max-width: 980px) {
  .insurance-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .insurance-panel {
    padding: 28px 22px;
  }

  .insurance-badges span {
    flex: 1 1 calc(50% - 12px);
  }
}


/* ==================================================
   EDUCACIÓN SOBRE PROBLEMAS ARTICULARES
   Videos distribuidos dentro del recorrido de la web
   ================================================== */

.education-media {
  position: relative;
  overflow: hidden;
}

.education-media-light {
  background:
    radial-gradient(circle at 90% 12%, rgba(34, 184, 199, .15), transparent 28%),
    #ffffff;
}

.education-media-green {
  background:
    radial-gradient(circle at 9% 14%, rgba(21, 154, 115, .15), transparent 30%),
    linear-gradient(135deg, #f5fcf9, #effafb);
}

.education-media-blue {
  background:
    linear-gradient(130deg, var(--primary-dark), var(--primary) 62%, var(--hope-dark));
  color: white;
}

.education-media-blue .media-copy p,
.education-media-blue .section-heading p,
.section-heading-light p {
  color: #d3ebf1;
}

.education-media-blue .media-copy h2,
.education-media-blue .section-heading h2 {
  color: white;
}

.media-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: center;
}

.media-split-reverse .media-player {
  order: 1;
}

.media-split-reverse .media-copy {
  order: 2;
}

.media-copy > p:not(.eyebrow) {
  color: var(--muted);
}

.education-media-blue .media-copy > p:not(.eyebrow) {
  color: #d3ebf1;
}

.media-points {
  display: grid;
  gap: 11px;
  padding: 0;
  margin: 25px 0;
  list-style: none;
}

.media-points li {
  position: relative;
  padding-left: 31px;
}

.media-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--hope-soft);
  color: var(--hope-dark);
  font-size: .75rem;
  font-weight: 900;
}

.media-player {
  overflow: hidden;
  border: 1px solid rgba(8, 145, 178, .17);
  border-radius: 24px;
  background: #061e2c;
  box-shadow: 0 18px 46px rgba(11, 54, 82, .18);
}

.media-player video {
  width: 100%;
  max-height: 570px;
  display: block;
  object-fit: contain;
  background: #061e2c;
}

.media-player-vertical {
  width: min(100%, 390px);
  justify-self: center;
  margin-inline: auto;
}

.media-player-vertical video {
  aspect-ratio: 9 / 16;
  max-height: 620px;
}

.video-caption {
  margin: 0;
  padding: 13px 18px;
  background: white;
  color: var(--muted);
  font-size: .82rem;
  text-align: center;
}

.media-warning {
  margin-top: 24px;
  padding: 17px 19px;
  border-left: 5px solid var(--accent);
  border-radius: 0 14px 14px 0;
  background: var(--accent-soft);
  color: var(--ink);
  font-size: .9rem;
}

.dual-video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.context-video-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 25px;
  background: rgba(255, 255, 255, .09);
  box-shadow: 0 18px 42px rgba(4, 22, 39, .22);
}

.context-video-card .media-player {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.context-video-content {
  padding: 23px;
}

.context-video-content h3 {
  margin-bottom: 9px;
  color: white;
}

.context-video-content p {
  margin-bottom: 0;
  color: #d3ebf1;
}

.education-disclaimer {
  margin-top: 70px;
  padding: 20px 24px;
  border: 1px solid rgba(21, 154, 115, .22);
  border-radius: 18px;
  background: linear-gradient(135deg, var(--surface-soft), var(--hope-soft));
}

.education-disclaimer strong {
  color: var(--hope-dark);
}

.education-disclaimer p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: .88rem;
}

@media (max-width: 980px) {
  .media-split,
  .dual-video-grid {
    grid-template-columns: 1fr;
  }

  .media-split-reverse .media-player,
  .media-split-reverse .media-copy {
    order: initial;
  }

  .media-player {
    max-width: 760px;
  }
}

@media (max-width: 680px) {
  .media-split {
    gap: 30px;
  }

  .media-player video {
    max-height: 470px;
  }

  .media-player-vertical {
    max-width: 330px;
  }

  .media-player-vertical video {
    max-height: 540px;
  }

  .context-video-content {
    padding: 19px;
  }
}


/* ==================================================
   VIDEO DE INTRODUCCIÓN AL INICIO DE LA WEB
   ================================================== */

.hero-intro-video {
  position: relative;
  padding: 54px 0 72px;
  background:
    radial-gradient(circle at 8% 20%, rgba(34, 184, 199, .16), transparent 29%),
    radial-gradient(circle at 94% 85%, rgba(21, 154, 115, .13), transparent 30%),
    linear-gradient(135deg, #f8fdff, #f1fbf7);
}

.intro-video-card {
  display: grid;
  grid-template-columns: minmax(300px, .72fr) 1.28fr;
  gap: 48px;
  align-items: center;
  padding: 32px;
  border: 1px solid rgba(8, 145, 178, .18);
  border-radius: 32px;
  background: rgba(255, 255, 255, .92);
  box-shadow:
    0 24px 60px rgba(11, 54, 82, .15),
    0 0 0 1px rgba(21, 154, 115, .05);
}

.intro-video-player {
  position: relative;
  width: min(100%, 380px);
  justify-self: center;
  overflow: hidden;
  border-radius: 26px;
  background: #061e2c;
  box-shadow: 0 20px 46px rgba(7, 31, 52, .24);
}

.intro-video-player video {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 650px;
  display: block;
  object-fit: cover;
  background: #061e2c;
}

.sound-hint {
  position: absolute;
  right: 14px;
  bottom: 58px;
  left: 14px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(6, 30, 44, .80);
  color: white;
  font-size: .76rem;
  font-weight: 800;
  text-align: center;
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.intro-video-copy {
  max-width: 650px;
}

.intro-video-copy h2 {
  color: var(--primary-dark);
}

.intro-video-copy > p:not(.eyebrow) {
  color: var(--muted);
}

.intro-video-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin: 26px 0 30px;
}

.intro-video-highlights span {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border: 1px solid rgba(21, 154, 115, .23);
  border-radius: 999px;
  background: linear-gradient(135deg, #ffffff, var(--hope-soft));
  color: var(--hope-dark);
  font-size: .86rem;
  font-weight: 900;
}

@media (max-width: 980px) {
  .intro-video-card {
    grid-template-columns: 1fr;
  }

  .intro-video-copy {
    max-width: 760px;
    text-align: center;
    margin-inline: auto;
  }

  .intro-video-highlights {
    justify-content: center;
  }
}

@media (max-width: 680px) {
  .hero-intro-video {
    padding: 34px 0 54px;
  }

  .intro-video-card {
    width: min(calc(100% - 24px), var(--container));
    gap: 30px;
    padding: 18px;
    border-radius: 24px;
  }

  .intro-video-player {
    max-width: 330px;
  }

  .intro-video-player video {
    max-height: 570px;
  }

  .sound-hint {
    right: 10px;
    bottom: 54px;
    left: 10px;
    font-size: .7rem;
  }
}


/* Video adicional de lesión de menisco debajo de dolor de cadera */
.related-video-block {
  grid-column: 1 / -1;
  width: min(100%, 760px);
  margin: 34px auto 0;
  padding: 26px;
  border: 1px solid rgba(21, 154, 115, .22);
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff, var(--hope-soft));
  box-shadow: 0 16px 38px rgba(11, 54, 82, .10);
}

.related-video-kicker {
  margin: 0 0 14px;
  color: var(--hope-dark);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
}

.related-video-copy {
  max-width: 620px;
  margin: 20px auto 0;
  text-align: center;
}

.related-video-copy h3 {
  margin-bottom: 10px;
  color: var(--primary-dark);
}

.related-video-copy p {
  margin-bottom: 0;
  color: var(--muted);
}

@media (max-width: 680px) {
  .related-video-block {
    padding: 18px;
    border-radius: 20px;
  }
}
