/* ==========================================================================
   Dr. Juan Valenzuela — hoja de estilos
   Reproduce el lenguaje visual de Consultores Oftalmológicos (CO), medido en
   consultoresoftalmologicos.com el 24/10/2026 (ver docs/auditoria-co.md).
   ========================================================================== */

@font-face { font-family: "Raleway"; src: url("fonts/raleway-500.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Raleway"; src: url("fonts/raleway-600.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-500.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("fonts/roboto-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("fonts/roboto-400.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Signika"; src: url("fonts/signika-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }

:root {
  /* Paleta de CO (valores calculados en el sitio) */
  --co-petroleo: #05494d;          /* navbar al desplazar, pie, botones, títulos */
  --co-petroleo-medio: #0e8086;    /* centro del degradado de la banda */
  --co-turquesa: #0a7a80;
  --co-texto: #212529;             /* cuerpo */
  --co-gris-oscuro: #4f4f4f;       /* .dark-grey-text */
  --co-gris-input: #495057;
  --co-borde-input: #ced4da;
  --co-negro-wa: #212121;          /* botón flotante de WhatsApp */
  --blanco: #ffffff;
  --pendiente: #fff1b8;

  --f-titulo: "Raleway", sans-serif;
  --f-texto: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-ui: "Roboto", system-ui, sans-serif;

  --sombra-z1: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
  --sombra-z2: 0 8px 17px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  --contenedor: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 70px; overflow-x: hidden; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--blanco);
  color: var(--co-texto);
  font-family: var(--f-ui);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }

/* Tipografía, según la hoja de estilos de CO */
h1, h2, h3, h4, h5 { margin: 0 0 8px; font-weight: 400; line-height: 1.2; text-wrap: balance; }
h1 { font-family: var(--f-titulo); font-size: 40px; letter-spacing: 8px; font-weight: 500; }
h2, h3 { font-family: var(--f-titulo); }
h4, h5 { font-family: var(--f-texto); letter-spacing: 3px; font-weight: 300; }
h4 { color: var(--co-petroleo); font-size: 24px; }
h5 { font-size: 20px; }
p { margin: 0 0 16px; font-family: var(--f-texto); font-weight: 500; letter-spacing: 1px; font-size: 18px; line-height: 1.5; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--co-petroleo); }
a:hover { color: var(--co-turquesa); }
:focus-visible { outline: 2px solid var(--co-turquesa); outline-offset: 3px; }

@media (max-width: 767px) {
  h1 { font-size: 30px; letter-spacing: 5px; }
}

.saltar { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--co-petroleo); color: #fff; padding: 10px 16px; }
.saltar:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.pendiente { background: var(--pendiente); color: #4a3b00; padding: 0 .25em; font-style: normal; }

/* Contenedor de Bootstrap: 1140 px con 15 px de margen interno */
.container { width: 100%; max-width: calc(var(--contenedor) + 30px); margin-inline: auto; padding-inline: 15px; }
.texto-angosto { max-width: 832px; margin-inline: auto; }
.text-center { text-align: center; }

/* --------------------------------------------------------------------------
   Navbar: fija, transparente sobre la portada y petróleo al desplazar
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 5px 16px;
  font-family: var(--f-texto); font-weight: 300;
  background: var(--co-petroleo);
  box-shadow: var(--sombra-z1);
  transition: background .5s ease-in-out, padding .5s ease-in-out, box-shadow .5s ease-in-out;
}
@media (min-width: 992px) {
  .navbar[data-top="true"] { background: transparent; box-shadow: none; padding-top: 12px; padding-bottom: 12px; }
}
.navbar__fila { display: flex; align-items: center; justify-content: space-between; min-height: 50px; padding-inline: 15px; }
.navbar-brand { color: #fff; text-decoration: none; display: inline-flex; align-items: center; padding: 5px 0; }
.navbar-brand:hover { color: #fff; }
.navbar-brand__nombre {
  font-family: var(--f-titulo); font-weight: 500; font-size: 15px; letter-spacing: 3px; text-transform: uppercase;
  padding: 6px 10px; border: 2px solid rgba(255, 255, 255, .85);
}
.navbar-collapse { display: flex; align-items: center; flex: 1; }
.navbar-nav { list-style: none; display: flex; align-items: center; margin-inline: auto; letter-spacing: 2px; }
.navbar-nav--redes { margin-inline: 0; }
.nav-item { transition: background-color .2s ease; }
.nav-item:hover, .nav-item.active { background-color: rgba(255, 255, 255, .164); }
.nav-link {
  display: block; padding: 8px; color: #fff; text-decoration: none;
  font-size: 17px; letter-spacing: 3px; line-height: 25.5px; font-weight: 400;
}
.nav-link:hover { color: #fff; }
.nav-link--icono { display: flex; align-items: center; padding: 11px 10px; }
.navbar-toggler { display: none; background: none; border: 0; padding: 4px 12px; cursor: pointer; line-height: 0; }
.navbar :focus-visible { outline-color: #fff; }

@media (max-width: 991px) {
  .navbar-toggler { display: block; min-width: 48px; min-height: 44px; }
  .navbar__fila { flex-wrap: wrap; }
  .navbar-collapse { display: none; flex-basis: 100%; flex-direction: column; align-items: flex-start; padding-bottom: 12px; }
  .navbar-collapse[data-open="true"] { display: flex; }
  .navbar-nav { flex-direction: column; align-items: flex-start; margin-left: 0; width: 100%; }
  .navbar-nav--redes { flex-direction: row; margin-left: 0; }
  .nav-item { width: 100%; }
  .navbar-nav--redes .nav-item { width: auto; }
  .nav-link { padding: 12px 8px; }
}

/* --------------------------------------------------------------------------
   Portadas a pantalla completa (intro-index, intro-afecciones, intro-personales)
   -------------------------------------------------------------------------- */
.intro {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background-color: #1d2a2b;
  background-image: linear-gradient(0deg, rgba(0, 0, 0, .40), rgba(0, 0, 0, .70)), var(--img);
  background-size: cover; background-position: var(--pos, center center); background-repeat: no-repeat;
  color: #fff;
  padding: 90px 15px 60px;
}
@media (max-width: 760px) {
  .intro { background-image: linear-gradient(0deg, rgba(0, 0, 0, .40), rgba(0, 0, 0, .70)), var(--img-movil, var(--img)); }
}
.intro--consultorio { --img: url("../img/hero-consultorio.jpg"); --img-movil: url("../img/hero-consultorio-movil.jpg"); --pos: 30% 30%; }
.intro--retrato { --img: url("../img/hero-retrato.jpg"); --img-movil: url("../img/hero-retrato-movil.jpg"); --pos: center 25%; }
.intro--lampara { --img: url("../img/hero-consultorio.jpg"); --img-movil: url("../img/hero-consultorio-movil.jpg"); --pos: 85% 40%; }

.intro-titulo { color: #fff; padding-top: 48px; }
.intro .hr-light { border: 0; border-top: 3px solid #fff; width: 80px; margin: 24px auto 16px; }
.intro h5 { color: #fff; text-transform: uppercase; font-weight: 500; }

/* Marca de portada: equivalente personal al logotipo de CO */
.marca-portada { display: inline-flex; flex-direction: column; align-items: stretch; gap: 10px; text-align: left; }
.marca-portada__linea1 {
  font-family: var(--f-titulo); font-weight: 500; text-transform: uppercase;
  font-size: clamp(26px, 4.6vw, 56px); letter-spacing: .14em; line-height: 1.05;
  padding-bottom: 12px; border-bottom: 3px solid var(--co-turquesa);
}
.marca-portada__linea2 { font-family: var(--f-ui); font-weight: 400; font-size: clamp(30px, 5.2vw, 64px); line-height: 1.05; }
.intro__lema { margin-top: 36px; color: #fff; text-transform: uppercase; font-weight: 500; letter-spacing: 3px; font-size: 20px; }
.intro__botones { margin-top: 48px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Animaciones de entrada (fadeInDown / fadeInUp de 1,8 s, como CO) */
@media (prefers-reduced-motion: no-preference) {
  .ani-abajo { animation: fadeInDown 1.8s both; }
  .ani-arriba { animation: fadeInUp 1.8s both; }
  .ani-aparece { animation: fadeIn 1.8s both; }
}
@keyframes fadeInDown { from { opacity: 0; transform: translate3d(0, -40px, 0); } to { opacity: 1; transform: none; } }
@keyframes fadeInUp { from { opacity: 0; transform: translate3d(0, 40px, 0); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* --------------------------------------------------------------------------
   Botones (MDB: .btn, .btn-outline-white, .btn-co)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 45px; padding: 11.2px 34.24px; margin: 6px;
  font-family: var(--f-ui); font-size: 12.96px; font-weight: 400; letter-spacing: 2px; line-height: 1.5;
  text-transform: uppercase; text-decoration: none; text-align: center;
  border: 0; border-radius: 2px; cursor: pointer;
  box-shadow: var(--sombra-z1);
  transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.btn:hover { box-shadow: var(--sombra-z2); }
.btn:active { box-shadow: var(--sombra-z1); transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .65; cursor: not-allowed; box-shadow: none; }
.btn-outline-white { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline-white:hover, .btn-outline-white:focus-visible { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-co { background: var(--co-petroleo); color: #fff; padding: 13.44px 34.24px; letter-spacing: normal; }
.btn-co:hover, .btn-co:focus-visible { background: #076167; color: #fff; }
.btn-outline-co { background: transparent; color: var(--co-petroleo); border: 2px solid var(--co-petroleo); }
.btn-outline-co:hover { background: var(--co-petroleo); color: #fff; }

/* --------------------------------------------------------------------------
   Secciones de contenido
   -------------------------------------------------------------------------- */
.seccion { padding-block: 80px; }
.seccion-titulo { text-align: center; margin: 0 0 8px; }
.titles { color: var(--co-petroleo); }
.seccion-subtitulo { text-align: center; color: var(--co-petroleo); font-size: 24px; margin-bottom: 0; }
.quienes-somos-text { font-size: 20px; line-height: 30px; margin-block: 48px; }

/* Fondo claro con imagen lavada (como #quienes-somos) */
.fondo-lavado {
  background: linear-gradient(0deg, rgb(255, 255, 255), rgba(255, 255, 255, .918)), url("../img/hero-retrato.jpg");
  background-size: cover; background-position: center; background-repeat: no-repeat;
}

/* Columnas de áreas (como Misión / Visión) */
.areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin-top: 48px; }
.area { display: flex; flex-direction: column; align-items: center; text-align: center; }
.area h2 { font-size: 30px; letter-spacing: 6px; font-weight: 500; text-transform: uppercase; color: var(--co-texto); margin-bottom: 24px; }
.area p { text-align: left; flex: 1; }
@media (max-width: 900px) { .areas { grid-template-columns: 1fr; gap: 56px; } }

/* Banda petróleo con palabras (#box de CO) */
.banda {
  background: linear-gradient(90deg, #05494d, rgba(14, 128, 134, .796), #05494d), url("../img/hero-consultorio.jpg");
  background-size: cover; background-position: center top; background-attachment: fixed;
  padding-block: 64px; text-align: center;
}
@media (max-width: 991px), (hover: none) { .banda { background-attachment: scroll; } }
.banda h2 {
  font-family: var(--f-titulo); color: #fff; font-size: 42.5px; letter-spacing: 8px; font-weight: 500;
  line-height: 1.2; margin: 16px 0; text-transform: uppercase;
}
@media (max-width: 767px) { .banda h2 { font-size: 26px; letter-spacing: 4px; } }

/* Imagen intermedia (mid-img de CO) */
.mid-img {
  min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 40px 15px;
  background: linear-gradient(0deg, rgba(255, 255, 255, .514), rgba(255, 255, 255, .918)), url("../img/hero-lampara.jpg");
  background-size: cover; background-position: center center; background-attachment: fixed;
}
@media (max-width: 991px), (hover: none) { .mid-img { background-attachment: scroll; } }
.mid-img__marca { color: var(--co-petroleo); }
.mid-img__marca .marca-portada__linea1 { border-bottom-color: var(--co-petroleo); }

/* Curriculum: foto circular + texto (página personal de CO) */
.cv { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; align-items: flex-start; margin-top: 48px; }
.cv__foto { flex: 0 0 370px; max-width: 100%; display: flex; flex-direction: column; align-items: center; }
.cv__foto img { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; box-shadow: var(--sombra-z1); }
.cv__foto h5 { margin-top: 24px; font-weight: 700; text-transform: uppercase; color: var(--co-gris-oscuro); text-align: center; }
.cv__foto .cv__mat { font-size: 16px; color: var(--co-gris-oscuro); letter-spacing: 2px; text-align: center; }
.cv__texto { flex: 1 1 520px; max-width: 740px; color: var(--co-gris-oscuro); min-width: 0; }

.lista-co { list-style: none; }
.lista-co li { font-family: var(--f-texto); letter-spacing: 1px; font-weight: 500; font-size: 18px; padding: 10px 0; border-bottom: 1px solid #e0e0e0; color: var(--co-gris-oscuro); }
.lista-co li:first-child { border-top: 1px solid #e0e0e0; }
.lista-co .anio { display: inline-block; min-width: 5.5em; color: var(--co-petroleo); letter-spacing: 3px; }

/* Publicaciones */
.publicaciones { list-style: none; }
.publicaciones li { padding: 16px 0; border-bottom: 1px solid #e0e0e0; display: grid; gap: 4px; }
.publicaciones li:first-child { border-top: 1px solid #e0e0e0; }
.publicaciones cite { font-family: var(--f-titulo); font-style: normal; font-size: 20px; line-height: 1.35; }
.publicaciones cite a { color: var(--co-texto); text-decoration: none; }
.publicaciones cite a:hover { color: var(--co-petroleo); text-decoration: underline; }
.publicaciones span { font-family: var(--f-texto); letter-spacing: 1px; font-weight: 500; color: var(--co-gris-oscuro); }

/* --------------------------------------------------------------------------
   Acordeón de afecciones (afecciones.html de CO)
   -------------------------------------------------------------------------- */
.accordion { padding-inline: 12px; margin-top: 24px; }
.accordion-item { border-bottom: 1px solid rgba(0, 0, 0, .125); }
.accordion-header { margin: 0; font-family: var(--f-titulo); font-size: 32px; font-weight: 500; letter-spacing: normal; color: var(--co-gris-oscuro); }
.accordion-button {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px; min-height: 68px; background: transparent; border: 0; cursor: pointer; text-align: left;
  font-family: var(--f-titulo); font-size: 16px; font-weight: 500; color: var(--co-gris-oscuro); text-transform: uppercase;
}
.accordion-button:hover { background: rgba(5, 73, 77, .04); }
.accordion-button::after {
  content: ""; flex: 0 0 1.25rem; height: 1.25rem;
  background: no-repeat center / 1.25rem url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  transition: transform .2s ease-in-out;
}
.accordion-button[aria-expanded="true"] { color: var(--co-petroleo); }
.accordion-button[aria-expanded="true"]::after { transform: rotate(-180deg); }
.accordion-body { padding: 16px 20px; }
.accordion-body[hidden] { display: none; }
.accordion-body a { display: block; color: #000; text-decoration: none; }
.afecciones-hover { margin: 0 0 8px; font-family: var(--f-texto); font-size: 20px; font-weight: 500; letter-spacing: 3px; color: #000; transition-duration: .5s; }
.afecciones-hover:hover, a:hover > .afecciones-hover, a:focus-visible > .afecciones-hover { color: var(--co-petroleo); letter-spacing: 4px; }

/* --------------------------------------------------------------------------
   Páginas de afección (afecciones/*.html de CO)
   -------------------------------------------------------------------------- */
.afeccion { color: var(--co-gris-oscuro); }
.afeccion > h1 { text-transform: uppercase; text-align: center; color: var(--co-petroleo); margin-block: 48px; padding-block: 48px; }
.afeccion h3 { font-size: 27.2px; font-weight: 500; text-transform: uppercase; margin: 0 0 16px; color: var(--co-gris-oscuro); }
.afeccion p { line-height: 32px; }
.afeccion .bloque { margin-bottom: 48px; }
.afeccion ul.lista-items { list-style: none; margin-bottom: 16px; }
.afeccion ul.lista-items li { font-family: var(--f-texto); letter-spacing: 1px; font-weight: 500; font-size: 18px; line-height: 32px; padding-left: 20px; position: relative; }
.afeccion ul.lista-items li::before { content: ""; position: absolute; left: 2px; top: 14px; width: 6px; height: 6px; background: var(--co-petroleo); }
.faq { list-style: none; }
.faq li { margin-bottom: 16px; }
.faq-q { margin-bottom: 8px; }
.faq-a { color: var(--co-texto); }

/* Rejilla de Amsler */
.amsler { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.amsler svg { width: 100%; max-width: 360px; height: auto; background: #fff; box-shadow: var(--sombra-z1); }
.amsler__texto { flex: 1 1 360px; min-width: 0; }
.amsler__texto ol { padding-left: 1.3em; margin-bottom: 16px; }
.amsler__texto li { font-family: var(--f-texto); font-weight: 500; letter-spacing: 1px; font-size: 18px; line-height: 32px; }

/* --------------------------------------------------------------------------
   Contacto: tarjeta con formulario (md-form) y consultorios con mapa
   -------------------------------------------------------------------------- */
.contacto-titulo { font-weight: 700; text-align: center; margin: 48px 0; }
.card { background: #fff; border-radius: 4px; box-shadow: var(--sombra-z1); }
.card-form { max-width: 925px; margin: 0 auto; padding: 20px 20px 16px; }
.card-form__titulo { display: flex; align-items: center; gap: 12px; color: var(--co-petroleo); font-family: var(--f-titulo); font-size: 28px; font-weight: 500; letter-spacing: normal; margin: 8px 0; }
.card-form__titulo svg { width: 26px; height: 26px; }
.dark-grey-text { color: var(--co-gris-oscuro); }

.md-form { position: relative; display: flex; align-items: flex-start; gap: 14px; margin-top: 8px; }
.md-form .prefix { flex: 0 0 28px; width: 28px; height: 28px; color: var(--co-petroleo); margin-top: 22px; }
.md-form__campo { flex: 1; min-width: 0; position: relative; }
.md-form__campo { padding-top: 16px; }
.md-form label {
  position: absolute; left: 0; top: 26px; pointer-events: none; transform-origin: 0 100%;
  font-family: var(--f-ui); font-size: 16px; color: #757575; font-weight: 400;
  transition: transform .2s ease-out, color .2s ease-out, top .2s ease-out;
}
.md-form input:focus + label, .md-form input:not(:placeholder-shown) + label,
.md-form textarea:focus + label, .md-form textarea:not(:placeholder-shown) + label,
.md-form label.fija { top: 0; transform: scale(.8); }
.md-form input:focus + label, .md-form textarea:focus + label { color: var(--co-petroleo); }
.md-form input, .md-form select, .md-form textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--co-borde-input); border-radius: 0; background: transparent;
  font-family: var(--f-ui); font-size: 16px; font-weight: 400; color: var(--co-gris-input); padding: 9.6px 0 6.4px; min-height: 40px;
  transition: border-color .3s, box-shadow .3s;
}
.md-form select { appearance: none; background: no-repeat right 4px center / 12px url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23495057'%3e%3cpath d='M1.6 4.6a.5.5 0 0 1 .7 0L8 10.3l5.7-5.7a.5.5 0 0 1 .7.7l-6 6a.5.5 0 0 1-.7 0l-6-6a.5.5 0 0 1 0-.7z'/%3e%3c/svg%3e"); padding-right: 24px; }
.md-form textarea { resize: vertical; min-height: 70px; }
.md-form input:focus, .md-form select:focus, .md-form textarea:focus { outline: none; border-bottom-color: var(--co-petroleo); box-shadow: 0 1px 0 0 var(--co-petroleo); }
.md-form [aria-invalid="true"] { border-bottom-color: #c62828; box-shadow: 0 1px 0 0 #c62828; }
.error { display: block; color: #c62828; font-family: var(--f-ui); font-size: 13px; font-weight: 400; margin-top: 4px; }
.error:empty { display: none; }
.form-pie { display: flex; flex-direction: column; align-items: center; margin-top: 24px; text-align: center; }
.form-nota { font-family: var(--f-ui); font-weight: 300; letter-spacing: 0; font-size: 14px; color: var(--co-gris-oscuro); margin: 8px 0 0; max-width: 60ch; }

.sedes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; margin-top: 48px; }
@media (max-width: 767px) { .sedes { grid-template-columns: 1fr; gap: 48px; } }
.sede h3 { text-align: center; font-size: 27.2px; font-weight: 500; margin: 16px 0; }
.mapa { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; background: #e5e3df; }
.mapa iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mapa__enlace { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--f-texto); letter-spacing: 2px; font-size: 18px; color: var(--co-petroleo); }
.sede h4 { font-size: 22.4px; margin: 16px 0 8px; }
.sede p { margin-bottom: 8px; }

/* --------------------------------------------------------------------------
   Pie (footer de CO)
   -------------------------------------------------------------------------- */
.pie { background: var(--co-petroleo); color: #fff; padding-top: 24px; font-size: 14.4px; text-align: center; }
.pie a { color: #fff; text-decoration: none; }
.pie a:hover { text-decoration: underline; color: #fff; }
.pie :focus-visible { outline-color: #fff; }
.pie__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-inline: 15px; max-width: 1440px; margin: 0 auto; }
.pie h5 { text-transform: uppercase; color: #fff; margin-bottom: 8px; }
.pie p { color: #fff; margin-bottom: 16px; }
.pie__redes { list-style: none; display: flex; justify-content: center; gap: 40px; }
.pie__redes a { display: inline-flex; padding: 8px; }
.pie__redes svg { width: 30px; height: 30px; }
.pie__marca { display: flex; justify-content: center; padding: 48px 15px; }
.pie__marca .marca-portada__linea1 { border-bottom-color: #3aa3a8; }
.footer-copyright { background: rgba(0, 0, 0, .2); color: rgba(255, 255, 255, .6); font-family: "Signika", var(--f-ui); font-weight: 300; padding: 16px 15px; }
.footer-copyright p { font-family: inherit; font-weight: 300; letter-spacing: 0; font-size: 14.4px; color: inherit; margin: 0 auto; max-width: 900px; }
@media (max-width: 767px) { .pie__cols { grid-template-columns: 1fr; } }

/* Botón flotante de WhatsApp (whatsapp-btn de CO) */
.whatsapp-btn {
  position: fixed; right: 0; top: 55%; margin-top: 10rem; z-index: 99;
  display: flex; align-items: center; gap: 10px;
  background: var(--co-negro-wa); color: #fff; text-decoration: none;
  padding: 13.44px 16px; border-radius: 4.8px; box-shadow: var(--sombra-z1);
  font-family: var(--f-ui); font-size: 12.96px; font-weight: 400; text-transform: uppercase; line-height: 1.3;
  transition: background-color .15s ease-in-out;
}
.whatsapp-btn:hover { background: #303030; color: #fff; }
.whatsapp-btn__icono { color: #25d366; display: flex; }
@media (prefers-reduced-motion: no-preference) {
  .whatsapp-btn__icono { animation: pulso-wa 1s infinite alternate; }
}
@keyframes pulso-wa { from { color: #25d366; } to { color: #0b3f1e; } }
@media (max-width: 900px) {
  .whatsapp-btn { top: auto; bottom: calc(16px + env(safe-area-inset-bottom)); right: 12px; margin-top: 0; padding: 12px; }
  .whatsapp-btn__texto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media print { .navbar, .whatsapp-btn { display: none !important; } }

/* Utilidades de espaciado (equivalentes a mt-5 / mb-5 de Bootstrap) */
.u-mt32 { margin-top: 32px; } .u-mt48 { margin-top: 48px; } .u-mt64 { margin-top: 64px; } .u-mb48 { margin-bottom: 48px; }
.titulo-gris { color: var(--co-gris-oscuro); text-transform: uppercase; }
.seccion-bajada { font-family: var(--f-texto); font-size: 32px; font-weight: 500; letter-spacing: 3px; color: var(--co-gris-oscuro); padding-bottom: 48px; margin: 0; }
.banda .banda__texto { color: #fff; max-width: 760px; margin: 16px auto 0; font-size: 20px; }
@media (max-width: 480px) {
  .marca-portada__linea1 { font-size: 21px; letter-spacing: .1em; }
  .marca-portada__linea2 { font-size: 30px; }
}

/* Videos de Instagram */
.videos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin-top: 48px; align-items: start; }
.video { min-width: 0; display: flex; justify-content: center; }
.video .instagram-media { min-width: 0 !important; width: 100% !important; margin: 0 !important; box-shadow: var(--sombra-z1) !important; border-radius: 4px !important; }
.video blockquote.instagram-media { padding: 24px; background: #fff; font-family: var(--f-texto); letter-spacing: 1px; }
@media (max-width: 991px) { .videos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .videos { grid-template-columns: 1fr; } }

/* Títulos de sección con el estilo de h1 de CO (un solo h1 real por página, por SEO) */
.estilo-h1 { font-family: var(--f-titulo); font-size: 40px; letter-spacing: 8px; font-weight: 500; line-height: 1.2; }
@media (max-width: 767px) { .estilo-h1 { font-size: 30px; letter-spacing: 5px; } }
.afeccion > .estilo-h1 { text-transform: uppercase; text-align: center; color: var(--co-petroleo); margin-block: 48px; padding-block: 48px; }
.intro .intro__bajada { font-family: var(--f-texto); font-size: 20px; letter-spacing: 3px; font-weight: 500; text-transform: uppercase; color: #fff; margin: 0 0 8px; }
.intro .intro__lema { margin-top: 36px; }

/* Firma de revisión médica (E-E-A-T) */
.revision { text-align: center; color: var(--co-gris-oscuro); font-size: 16px; margin: -72px auto 48px; max-width: 760px; }
.revision a { color: var(--co-petroleo); }
.fondo-claro { background: #f5f7f7; }
.publicaciones span strong { font-weight: 700; color: var(--co-texto); }

/* Nota de tapa destacada */
.tapa { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; margin: 0 0 56px; padding: 28px; background: #f5f7f7; border-radius: 4px; }
.tapa > a { flex: 0 0 220px; max-width: 100%; display: block; }
.tapa img { width: 100%; height: auto; box-shadow: var(--sombra-z2); transition: transform .3s ease; }
.tapa > a:hover img { transform: scale(1.02); }
.tapa figcaption { flex: 1 1 280px; min-width: 0; }
.tapa h4 { margin: 10px 0 12px; font-size: 26px; }
.tapa .btn { margin: 8px 0 0; }
.tapa__etiqueta { display: inline-block; background: var(--co-petroleo); color: #fff; font-family: var(--f-ui); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; padding: 4px 10px; border-radius: 2px; }
.tapa__etiqueta--chica { font-size: 10px; padding: 2px 7px; margin-left: 6px; vertical-align: 1px; }
@media (max-width: 600px) { .tapa { padding: 20px; } .tapa > a { flex-basis: 100%; max-width: 260px; margin: 0 auto; } }

/* Foto de quirófano en Afecciones y hero de cirugía */
.intro--cirugia { --img: url("../img/hero-cirugia.jpg"); --img-movil: url("../img/hero-cirugia.jpg"); --pos: 70% 40%; }
.afecciones-grid { display: grid; gap: 40px; align-items: start; margin-top: 24px; }
.afecciones-grid .accordion { margin-top: 0; }
.foto-cirugia { margin: 0 auto; max-width: 420px; }
.foto-cirugia img { display: block; width: 100%; height: auto; box-shadow: 0 5px 11px rgba(0,0,0,.18), 0 4px 15px rgba(0,0,0,.15); }
.foto-cirugia figcaption { font-family: var(--f-texto); font-weight: 500; letter-spacing: 1px; color: var(--co-gris-oscuro); font-size: 16px; text-align: center; margin-top: 12px; }
@media (min-width: 992px) {
  .afecciones-grid { grid-template-columns: 5fr 7fr; gap: 56px; }
  .foto-cirugia { max-width: none; position: sticky; top: 96px; }
}
.referencias cite { font-size: 18px; }

/* Páginas relacionadas y tablas de procedimientos */
.relacionadas { margin: 48px auto 80px; padding-top: 32px; border-top: 1px solid #e0e0e0; }
.relacionadas h3 { margin-bottom: 16px; }
.relacionadas ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px 32px; }
@media (min-width: 768px) { .relacionadas ul { grid-template-columns: 1fr 1fr; } }
.relacionadas li { display: grid; gap: 2px; }
.relacionadas a { font-family: var(--f-titulo); font-size: 19px; color: var(--co-petroleo); text-decoration: none; }
.relacionadas a:hover { text-decoration: underline; }
.relacionadas span { font-family: var(--f-texto); font-weight: 500; letter-spacing: 1px; font-size: 16px; color: var(--co-gris-oscuro); }
.tabla-scroll { overflow-x: auto; margin: 24px 0 40px; }
.tabla { width: 100%; border-collapse: collapse; font-family: var(--f-texto); font-weight: 500; letter-spacing: .5px; font-size: 17px; }
.tabla caption { text-align: left; font-family: var(--f-titulo); color: var(--co-gris-oscuro); margin-bottom: 12px; font-size: 18px; }
.tabla th, .tabla td { text-align: left; vertical-align: top; padding: 12px; border-bottom: 1px solid #e0e0e0; }
.tabla thead th { background: var(--co-petroleo); color: #fff; letter-spacing: 2px; font-weight: 500; }
.tabla tbody th { white-space: nowrap; }
.tabla a { color: var(--co-petroleo); }
.bloque h3 a { color: inherit; text-decoration: none; }
.bloque h3 a:hover { color: var(--co-petroleo); }
