/* AC Oftalmólogos v10. Mismas familias, pesos, estilos y cobertura; WOFF2 sin subset. */
/* Estas URLs resuelven desde este CSS local. Para instalar en css/: ejecutar con --css-url-prefix ../fonts. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-latin-0-v10.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-latin-1-v10.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-latin-2-v10.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-latin-3-v10.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/playfair-latin-0-v10.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/playfair-latin-1-v10.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/playfair-latin-2-v10.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/playfair-latin-3-v10.woff2") format("woff2");
}

/*
  AC OFTALMÓLOGOS · ESTILOS
  Cambia los colores en :root. El resto de la web utiliza estas variables.
  Las fuentes se alojan localmente: no se conecta a Google Fonts.
*/
:root {
  --ac-primary: #1e4d5f; /* Azul petróleo de la web Dr. Dávila */
  --ac-secondary: #5a7d7c; /* Verde quirófano */
  --ac-gold: #b8956a; /* Dorado discreto */
  --ac-dark: #173f4b;
  --ac-ink: #243b44;
  --ac-body: #55636a;
  --ac-soft: #f5f7f5;
  --ac-line: #dce4e1;
  --ac-white: #fff;
  --ac-serif: "Playfair Display", Georgia, serif;
  --ac-sans: "Inter", Arial, sans-serif;
  --ac-ease: cubic-bezier(0.23, 1, 0.32, 1);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}
body {
  margin: 0;
  font-family: var(--ac-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ac-body);
  background: white;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  color: var(--ac-primary);
  font-family: var(--ac-serif);
  font-weight: 500;
  line-height: 1.16;
}
h2 {
  font-size: clamp(34px, 3.45vw, 49px);
  letter-spacing: -1.4px;
}
h3 {
  font-size: 28px;
  letter-spacing: -0.5px;
}
em {
  font-weight: 400;
  color: var(--ac-secondary);
}
p + p {
  margin-top: 16px;
}
a {
  color: inherit;
  text-decoration: none;
}
a,
button {
  touch-action: manipulation;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
}
button {
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid var(--ac-gold);
  outline-offset: 5px;
}
::selection {
  background: #d9e4df;
  color: var(--ac-primary);
}
.ac-container {
  width: min(1180px, calc(100% - 80px));
  margin-inline: auto;
}
.section-pad {
  padding: 100px 0;
}
.soft-section {
  background: var(--ac-soft);
}
section[id] {
  scroll-margin-top: 105px;
}
.eyebrow {
  font-family: var(--ac-sans);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 2.1px;
  font-weight: 600;
  color: var(--ac-secondary);
  margin-bottom: 22px;
  text-transform: uppercase;
  display: block;
}
.eyebrow.light {
  color: #c7d8cf;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow.light > span {
  width: 27px;
  height: 1px;
  background: var(--ac-gold);
}
.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 13px 22px;
  border-radius: 5px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  transition:
    transform 160ms var(--ac-ease),
    background 180ms var(--ac-ease),
    box-shadow 180ms var(--ac-ease);
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary {
  background: var(--ac-primary);
  color: white;
}
.btn-primary:hover {
  background: var(--ac-dark);
  box-shadow: 0 5px 18px #173f4b20;
}
.btn-gold {
  background: #c6a77f;
  color: #183f4c;
}
.btn-gold:hover {
  background: #d9bd97;
}
.btn-outline-light {
  border-color: #ffffff70;
  color: white;
  background: #ffffff06;
}
.btn-outline-light:hover {
  background: #ffffff14;
}
.btn-outline {
  border-color: var(--ac-primary);
  color: var(--ac-primary);
  background: transparent;
}
.btn-outline:hover {
  background: #1e4d5f08;
}
.text-link,
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  border: 0;
  background: none;
  padding: 0 0 5px;
  color: var(--ac-primary);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  border-bottom: 1px solid var(--ac-line);
  transition: gap 180ms var(--ac-ease);
}
.text-link:hover,
.card-link:hover {
  gap: 32px;
}
.text-button {
  border: 0;
  background: none;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 12px;
  line-height: 1.6;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  background: white;
  color: var(--ac-primary);
  z-index: 200;
  padding: 12px 20px;
}
.skip-link:focus {
  top: 20px;
}
.mini-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ac-secondary);
}
/* CABECERA */
.topbar {
  background: var(--ac-soft);
  border-bottom: 1px solid #e7edea;
  font-size: 10px;
  letter-spacing: 0.3px;
  color: var(--ac-secondary);
}
.topbar-inner {
  min-height: 33px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.topbar-inner > span {
  display: flex;
  gap: 9px;
  align-items: center;
}
.topbar a:hover {
  color: var(--ac-primary);
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fffffff5;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e5eae7;
}
.nav-inner {
  min-height: 87px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}
.brand {
  width: 222px;
  flex-shrink: 0;
}
.brand img {
  width: 100%;
}
.main-menu {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--ac-primary);
  font-size: 12px;
  font-weight: 500;
}
.main-menu > a:not(.btn) {
  position: relative;
}
.main-menu > a:not(.btn):after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 1px;
  background: var(--ac-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms var(--ac-ease);
}
.main-menu > a:hover:after {
  transform: scaleX(1);
}
.nav-cta {
  margin-left: 3px;
  min-height: 43px;
  padding: 12px 17px;
  gap: 17px;
  font-size: 12px;
}
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  padding: 9px;
}
.menu-toggle span {
  display: block;
  height: 1px;
  background: var(--ac-primary);
  margin: 6px 0;
}
/* PORTADA: vídeo local con el mismo degradado verde que asegura contraste */
.hero {
  position: relative;
  background: #173f4b;
  overflow: hidden;
  color: white;
}
.hero-photo {
  position: absolute;
  inset: 0 0 0 35%;
  opacity: 0.89;
}
.hero-photo img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: 60% 50%;
}
.hero-media {
  overflow: hidden;
}
/* El encuadre de fondo oculta la franja blanca inferior del archivo aportado. */
.hero-media > .hero-poster,
.hero-media > .hero-background-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 110%;
  object-fit: cover;
  object-position: 52% 50%;
}
.hero-background-video {
  opacity: 0;
  pointer-events: none;
}
.hero-media.video-ready > .hero-background-video {
  opacity: 1;
}
.hero-media.video-ready > .hero-poster {
  opacity: 0;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      #173f4b 0%,
      #173f4bf8 28%,
      #173f4bb8 50%,
      #173f4b15 85%
    ),
    linear-gradient(0deg, #173f4b90, transparent 45%);
}
.hero-content {
  position: relative;
  min-height: 625px;
  padding-top: 73px;
  padding-bottom: 61px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hero-copy {
  width: 620px;
  max-width: 58%;
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-size: clamp(56px, 6.2vw, 84px);
  line-height: 1.08;
  letter-spacing: -2.4px;
  color: white;
  margin-bottom: 24px;
}
.hero h1 em {
  color: #d9c09c;
}
.hero-lead {
  max-width: 430px;
  font-size: 15px;
  line-height: 1.85;
  color: #e0e8e6;
}
.hero-actions {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  margin-top: 31px;
}
.hero-doctors {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid #ffffff26;
  margin-top: 38px;
  padding-top: 24px;
}
.avatar-pair {
  display: flex;
  padding-left: 4px;
  flex-shrink: 0;
}
.avatar-pair img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #cfddda;
  object-fit: cover;
  object-position: center 24%;
  margin-left: -4px;
}
.hero-doctors strong {
  font-size: 11px;
  font-weight: 500;
  display: block;
  color: #edf2ee;
}
.hero-doctors > div > span {
  display: block;
  font-size: 10px;
  color: #c4d1cc;
  margin-top: 3px;
}
.hero-caption {
  align-self: flex-end;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 13px;
  background: #fffffff0;
  border: 1px solid #fff;
  border-radius: 7px;
  padding: 15px 21px;
  color: var(--ac-primary);
  box-shadow: 0 15px 35px #15282c1c;
}
.caption-icon {
  font-size: 28px;
  color: var(--ac-secondary);
}
.hero-caption strong {
  font-size: 12px;
  font-weight: 600;
  display: block;
}
.hero-caption div > span {
  font-size: 10px;
  display: block;
  margin-top: 4px;
}
.hero-bottom {
  position: relative;
  border-top: 1px solid #ffffff21;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px max(40px, calc((100vw - 1180px) / 2));
  font-size: 10px;
  color: #d0dcd6;
  gap: 24px;
}
.hero-bottom > span {
  letter-spacing: 2px;
  font-size: 9px;
}
.hero-bottom a {
  display: flex;
  gap: 24px;
  align-items: center;
}
.hero-video-toggle {
  position: absolute;
  right: max(40px, calc((100vw - 1180px) / 2));
  bottom: 85px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid #ffffff60;
  border-radius: 5px;
  background: #173f4bd9;
  color: white;
  font-size: 10px;
}
.hero-video-toggle:hover {
  background: #173f4b;
}
@media (max-width: 650px) {
  .hero .hero-photo.hero-media {
    opacity: 0.95;
  }
  .hero .hero-shade {
    background:
      linear-gradient(90deg, #173f4bed, #173f4ba3),
      linear-gradient(0deg, #173f4b90, transparent);
  }
  .hero-video-toggle {
    right: 20px;
    top: 16px;
    bottom: auto;
    font-size: 9px;
  }
}
/* INTRODUCCIÓN */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center;
}
.intro-copy {
  font-size: 14px;
  line-height: 1.9;
}
.intro-copy .text-link {
  margin-top: 25px;
}
.commitments {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ac-line);
  padding-top: 35px;
  margin-top: 57px;
  gap: 36px;
}
.commitments > div {
  display: flex;
  gap: 18px;
  align-items: center;
}
.line-icon {
  font-size: 34px;
  color: var(--ac-secondary);
  font-weight: 400;
}
.commitments strong {
  display: block;
  color: var(--ac-primary);
  font-weight: 500;
  font-size: 13px;
}
.commitments small {
  display: block;
  font-size: 11px;
  margin-top: 3px;
  color: #687874;
}
/* SERVICIOS */
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 50px;
  margin-bottom: 48px;
}
.section-heading > p {
  font-size: 13px;
  max-width: 380px;
  line-height: 1.9;
  padding-bottom: 7px;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}
.service-card {
  position: relative;
  padding: 32px 30px 28px;
  background: white;
  border: 1px solid #e2e8e3;
  border-radius: 7px;
  display: flex;
  flex-direction: column;
  min-height: 306px;
  transition:
    transform 180ms var(--ac-ease),
    box-shadow 180ms var(--ac-ease);
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px #213f4a08;
}
.service-number {
  position: absolute;
  top: 31px;
  right: 29px;
  font-size: 10px;
  letter-spacing: 1px;
  color: #8a9892;
}
.service-symbol {
  display: block;
  font-size: 37px;
  height: 58px;
  line-height: 1;
  color: var(--ac-secondary);
}
.service-card h3 {
  font-size: 23px;
  margin: 9px 0 15px;
  max-width: 270px;
}
.service-card p {
  font-size: 12px;
  line-height: 1.9;
  margin-bottom: 26px;
  max-width: 290px;
}
.service-card .card-link {
  margin-top: auto;
  font-size: 11px;
  justify-content: space-between;
  width: 100%;
  border-bottom: none;
}
.service-card.featured {
  background: var(--ac-primary);
  border-color: var(--ac-primary);
  color: #d5e1df;
}
.service-card.featured h3,
.service-card.featured .card-link {
  color: white;
}
.service-card.featured .service-symbol {
  color: #d0b288;
}
.service-card.featured .service-number {
  color: #b5cac4;
}
.service-bottom {
  margin-top: 31px;
  padding-top: 26px;
  border-top: 1px solid var(--ac-line);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  font-size: 12px;
}
/* EQUIPO */
.doctor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 27px;
}
.doctor-card {
  border: 1px solid var(--ac-line);
  border-radius: 8px;
  overflow: hidden;
  background: white;
}
.doctor-image {
  position: relative;
  background: #e6e9e3;
  height: 396px;
  overflow: hidden;
}
.doctor-image > img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center 23%;
  transition: transform 250ms var(--ac-ease);
}
.doctor-card:hover .doctor-image > img {
  transform: scale(1.02);
}
.doctor-tag {
  position: absolute;
  bottom: 18px;
  left: 24px;
  font-size: 8px;
  letter-spacing: 1.6px;
  font-weight: 600;
  background: #ffffffeb;
  color: var(--ac-primary);
  padding: 8px 11px;
  border-radius: 3px;
}
.doctor-info {
  padding: 29px 30px 33px;
}
.doctor-info .eyebrow {
  margin-bottom: 10px;
  font-size: 9px;
  letter-spacing: 1.6px;
}
.doctor-info h3 {
  font-size: 29px;
}
.doctor-info p {
  font-size: 13px;
  margin: 17px 0 24px;
  line-height: 1.9;
  min-height: 74px;
}
.team-story {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 52px;
  max-width: 920px;
  margin: 75px auto 0;
  align-items: center;
}
.team-story > img {
  height: 278px;
  width: 100%;
  object-fit: cover;
  object-position: center 31%;
  border-radius: 7px;
}
.team-story h3 {
  font-size: 31px;
  margin-bottom: 22px;
}
.team-story .eyebrow {
  margin-bottom: 14px;
}
.team-story p {
  font-size: 13px;
  line-height: 1.9;
}
.team-story .text-link {
  margin-top: 23px;
}
/* CONSULTA */
.clinic-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.clinic-copy > p:not(.eyebrow) {
  font-size: 13px;
  line-height: 1.9;
  margin-top: 25px;
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 25px 0;
}
.check-list li {
  position: relative;
  padding-left: 24px;
  margin: 12px 0;
  font-size: 12px;
}
.check-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ac-secondary);
}
.address-card {
  display: flex;
  gap: 17px;
  padding: 23px 0;
  border-block: 1px solid var(--ac-line);
  margin: 28px 0;
}
.address-card > span {
  font-size: 25px;
  color: var(--ac-secondary);
}
.address-card strong {
  display: block;
  color: var(--ac-primary);
  font-size: 13px;
  font-weight: 600;
}
.address-card div > span {
  display: block;
  font-size: 11px;
  margin-top: 4px;
}
.address-card a {
  display: inline-block;
  font-size: 11px;
  color: var(--ac-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
  margin-top: 9px;
}
.gallery-button {
  position: relative;
  background: none;
  border: 0;
  padding: 0;
  display: block;
  width: 100%;
  border-radius: 7px;
  overflow: hidden;
  text-align: left;
}
.gallery-button > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 250ms var(--ac-ease);
}
.gallery-button:hover > img {
  transform: scale(1.025);
}
.gallery-button > span {
  position: absolute;
  right: 17px;
  bottom: 17px;
  background: white;
  color: var(--ac-primary);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-size: 15px;
}
.clinic-main-photo {
  height: 330px;
}
.clinic-small-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 15px;
}
.clinic-small-photos > button {
  height: 182px;
}
/* TELEMEDICINA */
.tele-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 100px;
  align-items: center;
}
.tele-grid > div > p:not(.eyebrow) {
  font-size: 13px;
  margin-top: 25px;
  line-height: 1.9;
}
.tele-art {
  position: relative;
  min-height: 530px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.tele-circle {
  position: absolute;
  border: 1px solid #dfe8df;
  border-radius: 50%;
  width: 430px;
  height: 430px;
  background: #f3f6f110;
}
.circle-two {
  width: 330px;
  height: 330px;
  background: #eef3ee;
}
.tele-card {
  position: relative;
  width: 310px;
  background: white;
  border: 1px solid var(--ac-line);
  border-radius: 10px;
  transform: rotate(-3deg);
  box-shadow: 0 20px 70px #1c443e13;
  overflow: hidden;
}
.tele-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 17px 15px;
  color: var(--ac-primary);
}
.online-label {
  font-size: 6px;
  letter-spacing: 0.5px;
  margin-left: auto;
  color: var(--ac-secondary);
  border: 1px solid var(--ac-line);
  padding: 4px 5px;
  border-radius: 3px;
}
.tele-card > img {
  height: 310px;
  object-fit: cover;
  object-position: 50% 25%;
  width: 100%;
}
.tele-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 19px 20px;
  color: var(--ac-primary);
  font-size: 12px;
}
.tele-card-footer strong {
  font-weight: 600;
}
.video-symbol {
  font-size: 25px;
  background: var(--ac-secondary);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.tele-note {
  position: absolute;
  bottom: 32px;
  right: 0;
  background: var(--ac-primary);
  color: white;
  padding: 13px 20px;
  font-size: 10px;
  border-radius: 4px;
  transform: rotate(2deg);
}
.tele-steps {
  margin: 26px 0;
}
.tele-steps > div {
  display: flex;
  align-items: flex-start;
  gap: 19px;
  margin: 21px 0;
}
.tele-steps > div > span {
  font-size: 10px;
  border: 1px solid var(--ac-line);
  color: var(--ac-secondary);
  min-width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-top: 2px;
}
.tele-steps p {
  font-size: 11px;
  line-height: 1.9;
}
.tele-steps strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ac-primary);
  margin-bottom: 3px;
}
.tele-grid > div > p.medical-note {
  font-size: 10px;
  line-height: 1.85;
  border-left: 2px solid var(--ac-line);
  padding-left: 14px;
  margin-top: 21px;
  color: #687773;
}
/* LABOR SOCIAL */
.social {
  background: var(--ac-dark);
  color: #d1ded7;
}
.social-heading {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  align-items: flex-end;
  margin-bottom: 54px;
}
.social h2,
.social h3,
.social h4 {
  color: white;
}
.social h2 em {
  color: #d4bd9a;
}
.social-heading > p {
  max-width: 320px;
  font-size: 12px;
  line-height: 1.9;
  margin-bottom: 5px;
  color: #c2d1cd;
}
.social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.social-images {
  display: grid;
  grid-template-columns: 1fr 0.65fr;
  gap: 16px;
  align-items: center;
  position: relative;
}
.social-main {
  height: 430px;
}
.social-secondary {
  height: 320px;
}
.location-stamp {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: #fbfbf1ed;
  color: var(--ac-primary);
  font-size: 10px;
  letter-spacing: 1.4px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 3px;
}
.location-stamp small {
  display: block;
  letter-spacing: 0.5px;
  font-size: 9px;
  margin-top: 1px;
}
.status-pill {
  display: inline-block;
  border: 1px solid #a8c0b84d;
  color: #c9dad0;
  padding: 6px 10px;
  font-size: 8px;
  letter-spacing: 1.3px;
  border-radius: 3px;
  margin-bottom: 19px;
}
.social-copy h3 {
  font-size: 33px;
  margin-bottom: 20px;
}
.social-copy > p {
  font-size: 13px;
  line-height: 1.95;
}
.light-link {
  color: #dec8a7;
  border-color: #ffffff36;
  margin-top: 25px;
}
.future-project {
  border-top: 1px solid #ffffff26;
  margin-top: 35px;
  padding-top: 25px;
}
.future-project > span {
  font-size: 8px;
  letter-spacing: 1.8px;
  color: #cfb48d;
}
.future-project h4 {
  font-size: 23px;
  margin: 10px 0 14px;
}
.future-project p {
  font-size: 11px;
  line-height: 1.9;
  color: #c1d1ca;
}
/* PREGUNTAS FRECUENTES */
.faq-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 100px;
}
.faq-grid > div > p:not(.eyebrow) {
  font-size: 13px;
  line-height: 1.9;
  max-width: 270px;
  margin-top: 23px;
}
.faq-grid > div > .text-link {
  margin-top: 28px;
}
.faq-list {
  border-top: 1px solid var(--ac-line);
}
.faq-list details {
  border-bottom: 1px solid var(--ac-line);
}
.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ac-primary);
  padding: 22px 0;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary > span {
  font-weight: 400;
  color: var(--ac-secondary);
  font-size: 20px;
  line-height: 1;
}
.faq-list details[open] summary > span {
  transform: rotate(45deg);
}
.faq-list details p {
  font-size: 12px;
  line-height: 1.9;
  margin-bottom: 24px;
  max-width: 570px;
}
/* AGENDA Y CONTACTO */
.booking-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 50px;
  align-items: stretch;
}
.contact-panel {
  padding: 32px 0;
}
.contact-panel h3 {
  font-size: 28px;
  margin-bottom: 19px;
}
.contact-panel > p {
  font-size: 12px;
  line-height: 1.9;
  max-width: 300px;
}
.contact-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-top: 30px;
  color: var(--ac-primary);
}
.contact-icon {
  width: 35px;
  height: 35px;
  background: #e9efeb;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}
.contact-item small {
  display: block;
  font-size: 8px;
  letter-spacing: 1.8px;
  color: var(--ac-secondary);
  margin-bottom: 4px;
}
.contact-item strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.contact-item span > span {
  font-size: 11px;
  display: block;
  margin-top: 2px;
  color: var(--ac-body);
}
.contact-panel > p.privacy-small {
  font-size: 10px;
  line-height: 1.8;
  margin-top: 35px;
}
.contact-panel > .text-link {
  margin-top: 20px;
  font-size: 11px;
}
.agenda-card {
  background: white;
  border: 1px solid var(--ac-line);
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 8px 35px #23433905;
}
.agenda-header {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--ac-line);
}
.agenda-header h3 {
  font-family: var(--ac-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}
.agenda-header p {
  font-size: 10px;
  margin-top: 4px;
}
.agenda-icon {
  color: var(--ac-secondary);
  font-size: 28px;
}
.agenda-badge {
  margin-left: auto;
  font-size: 7px;
  letter-spacing: 1.1px;
  padding: 5px 8px;
  border: 1px solid var(--ac-line);
  border-radius: 3px;
  color: var(--ac-secondary);
}
.agenda-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 40px 45px;
  min-height: 393px;
  background: linear-gradient(145deg, #fbfcfa, white);
}
.agenda-illustration {
  font-size: 44px;
  line-height: 1.1;
  color: var(--ac-secondary);
  margin-bottom: 24px;
}
.agenda-placeholder h4 {
  font-size: 27px;
  margin-bottom: 18px;
}
.agenda-placeholder p {
  font-size: 11px;
  line-height: 1.9;
  max-width: 375px;
  margin-bottom: 26px;
}
.agenda-placeholder > .text-link {
  font-size: 10px;
  margin-top: 18px;
  gap: 10px;
}
#agenda-container iframe {
  display: block;
  width: 100%;
  border: 0;
  min-height: 600px;
  background: white;
}
.agenda-controls {
  border-top: 1px solid var(--ac-line);
  padding: 18px 24px;
  font-size: 10px;
  line-height: 1.8;
}
.agenda-controls p a {
  text-decoration: underline;
}
.agenda-controls button {
  margin-top: 10px;
  font-size: 10px;
  color: var(--ac-primary);
}
/* FOOTER */
.site-footer {
  background: white;
  padding-top: 63px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 1.2fr;
  gap: 55px;
  padding-bottom: 53px;
}
.footer-brand img {
  width: 235px;
  margin-left: -8px;
}
.footer-brand p {
  font-size: 11px;
  line-height: 1.9;
  margin-top: 20px;
  max-width: 235px;
}
.footer-motto {
  display: block;
  font-family: var(--ac-serif);
  font-style: italic;
  color: var(--ac-secondary);
  font-size: 18px;
  margin-top: 15px;
}
.footer-grid > div > h3 {
  font-family: var(--ac-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  margin: 18px 0 23px;
}
.footer-grid > div:not(.footer-brand) > a {
  display: block;
  font-size: 11px;
  margin-top: 12px;
}
.footer-grid > div:not(.footer-brand) > a:hover {
  color: var(--ac-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-grid > div:not(.footer-brand) > p {
  font-size: 11px;
  line-height: 1.9;
}
.footer-bottom {
  border-top: 1px solid var(--ac-line);
  padding-block: 23px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 9px;
}
.footer-bottom > div {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-bottom .text-button {
  font-size: 9px;
}
/* WHATSAPP */
.whatsapp-float {
  position: fixed;
  right: 25px;
  bottom: 24px;
  z-index: 40;
  background: var(--ac-secondary);
  color: white;
  border-radius: 50px;
  box-shadow: 0 5px 20px #143c4430;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px 12px 12px;
  transition: transform 180ms var(--ac-ease);
}
.whatsapp-float:hover {
  transform: translateY(-3px);
}
.whatsapp-float svg {
  width: 25px;
  height: 25px;
}
.whatsapp-float > span {
  font-size: 11px;
  font-weight: 500;
}
body.has-cookie-banner .whatsapp-float {
  bottom: 133px;
}
/* COOKIES Y DIÁLOGOS */
.cookie-banner {
  position: fixed;
  inset: auto 0 0;
  z-index: 60;
  background: #fffffff8;
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--ac-line);
  box-shadow: 0 -6px 25px #173f4b07;
  padding: 22px 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.cookie-copy {
  max-width: 620px;
}
.cookie-copy strong {
  color: var(--ac-primary);
  font-size: 12px;
  font-weight: 600;
}
.cookie-copy p {
  font-size: 10px;
  line-height: 1.8;
  margin-top: 4px;
}
.cookie-copy a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}
.cookie-actions .btn {
  font-size: 10px;
  min-height: 39px;
  padding: 11px 15px;
  gap: 0;
}
.cookie-actions .text-button {
  font-size: 10px;
  margin-left: 7px;
}
dialog {
  border: 1px solid var(--ac-line);
  padding: 45px;
  border-radius: 10px;
  width: min(640px, calc(100% - 32px));
  max-height: calc(100dvh - 60px);
  overflow: auto;
  color: var(--ac-body);
  background: white;
  box-shadow: 0 25px 90px #0b242533;
}
dialog::backdrop {
  background: #0c2639a6;
  backdrop-filter: blur(4px);
}
.info-dialog h2 {
  font-size: 34px;
  margin: 0 25px 24px 0;
}
.info-dialog p {
  font-size: 13px;
  line-height: 1.9;
}
.info-dialog .eyebrow {
  font-size: 9px;
  margin-bottom: 17px;
}
.info-dialog .btn {
  margin-top: 27px;
}
.info-dialog > .text-link {
  margin-top: 25px;
  display: flex;
  width: fit-content;
}
.dialog-close {
  position: absolute;
  right: 17px;
  top: 13px;
  width: 33px;
  height: 33px;
  border: 0;
  border-radius: 50%;
  background: var(--ac-soft);
  color: var(--ac-primary);
  font-size: 25px;
  line-height: 1;
}
.media-dialog {
  width: min(920px, calc(100% - 32px));
  padding: 33px;
}
.media-dialog h2 {
  font-size: 28px;
  margin: 10px 40px 20px 0;
}
.media-dialog video {
  max-height: 70dvh;
  width: 100%;
  display: block;
  background: #173f4b;
  border-radius: 6px;
}
.media-dialog > img {
  max-height: 75dvh;
  margin: auto;
  width: auto;
  object-fit: contain;
}
.media-dialog > p {
  font-size: 11px;
  margin-top: 14px;
  text-align: center;
}
.cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-block-start: 1px solid var(--ac-line);
  padding: 21px 0;
  color: var(--ac-primary);
}
.cookie-option strong {
  font-size: 12px;
  font-weight: 600;
}
.cookie-option p {
  font-size: 11px;
  margin-top: 5px;
}
.cookie-option > span {
  font-size: 11px;
  color: var(--ac-secondary);
}
.cookie-option input {
  width: 19px;
  height: 19px;
  accent-color: var(--ac-primary);
  flex-shrink: 0;
}
.info-dialog p.privacy-small {
  font-size: 10px;
}
/* PÁGINAS LEGALES: comparten cabecera, pie y preferencias */
.legal-hero {
  padding: 65px 0;
  background: var(--ac-soft);
}
.legal-hero h1 {
  font-size: 48px;
  letter-spacing: -1px;
}
.legal-hero p {
  font-size: 12px;
  margin-top: 20px;
}
.legal-content {
  max-width: 850px;
  padding: 65px 0 90px;
}
.legal-content h2 {
  font-family: var(--ac-sans);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0;
  margin: 35px 0 17px;
}
.legal-content h3 {
  font-family: var(--ac-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  margin: 22px 0 12px;
}
.legal-content p,
.legal-content li {
  font-size: 13px;
  line-height: 1.95;
}
.legal-content a {
  color: var(--ac-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-notice {
  padding: 19px 22px;
  background: #f7f2e9;
  border-left: 3px solid var(--ac-gold);
  margin-bottom: 30px;
  font-size: 12px;
  color: var(--ac-primary);
}
.legal-content dl {
  font-size: 12px;
}
.legal-content dt {
  font-weight: 600;
  color: var(--ac-primary);
  margin-top: 15px;
}
.legal-content dd {
  margin: 4px 0 0;
}
/* ADAPTACIÓN A TABLET Y MÓVIL */
@media (min-width: 1450px) {
  .hero-content {
    min-height: 670px;
  }
  .hero-photo {
    left: 37%;
  }
}
@media (max-width: 1100px) {
  .ac-container {
    width: calc(100% - 48px);
  }
  .main-menu {
    gap: 17px;
    font-size: 11px;
  }
  .brand {
    width: 185px;
  }
  .nav-inner {
    gap: 20px;
  }
  .hero-content {
    min-height: 600px;
  }
  .hero-copy {
    max-width: 63%;
  }
  .hero h1 {
    font-size: 70px;
  }
  .hero-caption {
    padding: 12px 15px;
    max-width: 240px;
  }
  .section-pad {
    padding: 80px 0;
  }
  .intro-grid,
  .clinic-grid,
  .tele-grid,
  .social-grid,
  .faq-grid {
    gap: 50px;
  }
  .section-heading {
    gap: 35px;
  }
  .doctor-image {
    height: 350px;
  }
  .footer-grid {
    gap: 30px;
  }
  .cookie-banner {
    gap: 25px;
    padding: 18px 24px;
  }
  .cookie-copy {
    max-width: 430px;
  }
}
@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }
  .main-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: white;
    border-bottom: 1px solid var(--ac-line);
    padding: 15px 24px 23px;
    box-shadow: 0 20px 25px #173f4b0a;
    font-size: 14px;
  }
  .main-menu.is-open {
    display: flex;
  }
  .main-menu > a {
    padding: 13px 6px;
  }
  .main-menu .btn {
    margin: 9px 0 0;
  }
  .nav-inner {
    min-height: 78px;
  }
  .brand {
    width: 210px;
  }
  .hero-copy {
    max-width: 75%;
    width: 560px;
  }
  .hero h1 {
    font-size: 67px;
  }
  .hero-content {
    min-height: 575px;
  }
  .hero-photo {
    left: 22%;
    opacity: 0.7;
  }
  .hero-shade {
    background: linear-gradient(90deg, #173f4bf5, #173f4bab 65%, #173f4b35);
  }
  .hero-caption {
    display: none;
  }
  .hero-bottom {
    padding-inline: 24px;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }
  .section-heading > p {
    max-width: 500px;
  }
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .doctor-image {
    height: 325px;
  }
  .doctor-info {
    padding: 26px 23px;
  }
  .doctor-info h3 {
    font-size: 25px;
  }
  .team-story {
    grid-template-columns: 220px 1fr;
    gap: 35px;
  }
  .intro-grid {
    gap: 40px;
  }
  .commitments {
    gap: 22px;
  }
  .commitments > div {
    gap: 12px;
  }
  .commitments small {
    font-size: 10px;
  }
  .clinic-grid,
  .tele-grid {
    gap: 40px;
  }
  .clinic-main-photo {
    height: 300px;
  }
  .clinic-small-photos > button {
    height: 130px;
  }
  .tele-circle {
    width: 320px;
    height: 320px;
  }
  .circle-two {
    width: 250px;
    height: 250px;
  }
  .tele-card {
    width: 260px;
  }
  .tele-card > img {
    height: 260px;
  }
  .tele-art {
    min-height: 440px;
  }
  .tele-note {
    font-size: 9px;
    padding: 11px 14px;
    bottom: 30px;
  }
  .social-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }
  .social-heading > p {
    max-width: 500px;
  }
  .social-grid {
    gap: 40px;
  }
  .social-images {
    grid-template-columns: 1fr;
  }
  .social-main {
    height: 430px;
  }
  .social-secondary {
    display: none;
  }
  .faq-grid {
    gap: 45px;
    grid-template-columns: 0.7fr 1fr;
  }
  .booking-grid {
    gap: 30px;
    grid-template-columns: 0.75fr 1.25fr;
  }
  .agenda-header {
    padding: 20px 17px;
  }
  .agenda-badge {
    display: none;
  }
  .agenda-placeholder {
    padding: 30px 24px;
  }
  .footer-grid {
    grid-template-columns: 1.5fr 1fr;
    gap: 20px 60px;
  }
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .cookie-banner {
    align-items: flex-start;
    gap: 20px;
  }
  .cookie-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 310px;
  }
  .cookie-actions .text-button {
    margin: 0;
  }
  .cookie-actions .btn {
    min-height: 36px;
    padding: 10px;
  }
  .cookie-copy {
    max-width: 430px;
  }
}
@media (max-width: 650px) {
  html {
    scroll-padding-top: 95px;
  }
  .ac-container {
    width: calc(100% - 40px);
  }
  .section-pad {
    padding: 65px 0;
  }
  .topbar-inner {
    font-size: 8px;
    gap: 10px;
    min-height: 29px;
  }
  .topbar-inner .mini-dot {
    display: none;
  }
  .topbar-inner > a {
    font-size: 8px;
  }
  .nav-inner {
    min-height: 72px;
  }
  .brand {
    width: 185px;
  }
  .hero-content {
    min-height: 615px;
    padding-top: 58px;
    padding-bottom: 40px;
    align-items: flex-start;
  }
  .hero-copy {
    max-width: 100%;
    width: 100%;
  }
  .hero h1 {
    font-size: 58px;
    letter-spacing: -1.9px;
    margin-bottom: 25px;
  }
  .hero .eyebrow {
    font-size: 8px;
    letter-spacing: 1.6px;
    margin-bottom: 22px;
  }
  .hero-photo {
    inset: 0;
    opacity: 0.65;
  }
  .hero-photo img {
    object-position: 70% 50%;
  }
  .hero-shade {
    background:
      linear-gradient(90deg, #173f4bef, #173f4bc9),
      linear-gradient(0deg, #173f4b, transparent);
  }
  .hero-lead {
    font-size: 13px;
    max-width: 350px;
    line-height: 1.9;
  }
  .hero-actions {
    gap: 10px;
    margin-top: 28px;
  }
  .hero-actions .btn {
    font-size: 11px;
    gap: 13px;
    min-height: 45px;
    padding: 13px 16px;
  }
  .hero-doctors {
    margin-top: 35px;
    padding-top: 22px;
    gap: 11px;
  }
  .hero-doctors strong {
    font-size: 9px;
  }
  .hero-doctors > div > span {
    font-size: 9px;
  }
  .avatar-pair img {
    width: 34px;
    height: 34px;
  }
  .hero-bottom {
    padding: 16px 20px;
  }
  .hero-bottom > span {
    font-size: 7px;
    letter-spacing: 1px;
  }
  .hero-bottom > a {
    font-size: 8px;
    gap: 11px;
    max-width: 145px;
    line-height: 1.6;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 1.8px;
    margin-bottom: 16px;
  }
  h2 {
    font-size: 36px;
    letter-spacing: -1.1px;
  }
  .intro-grid,
  .clinic-grid,
  .tele-grid,
  .social-grid,
  .faq-grid,
  .booking-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .intro-copy {
    font-size: 13px;
  }
  .commitments {
    grid-template-columns: 1fr;
    padding-top: 25px;
    margin-top: 35px;
    gap: 23px;
  }
  .commitments > div {
    gap: 17px;
  }
  .commitments strong {
    font-size: 12px;
  }
  .commitments small {
    font-size: 11px;
  }
  .section-heading {
    margin-bottom: 31px;
    gap: 18px;
  }
  .section-heading > p {
    font-size: 12px;
    line-height: 1.8;
  }
  .service-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .service-card {
    min-height: 265px;
    padding: 28px 26px 25px;
  }
  .service-card h3 {
    font-size: 25px;
    max-width: 300px;
  }
  .service-card p {
    max-width: none;
    font-size: 12px;
    margin-bottom: 22px;
  }
  .service-symbol {
    height: 45px;
    font-size: 31px;
  }
  .service-number {
    top: 27px;
    right: 25px;
  }
  .service-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    font-size: 11px;
  }
  .doctor-grid {
    grid-template-columns: 1fr;
    gap: 23px;
  }
  .doctor-image {
    height: 360px;
  }
  .doctor-image > img {
    object-position: center 22%;
  }
  .doctor-info {
    padding: 25px 26px 30px;
  }
  .doctor-info h3 {
    font-size: 28px;
  }
  .doctor-info p {
    min-height: 0;
    font-size: 12px;
  }
  .team-story {
    grid-template-columns: 1fr;
    gap: 27px;
    margin-top: 49px;
  }
  .team-story > img {
    height: 340px;
    object-position: 50% 30%;
  }
  .team-story h3 {
    font-size: 30px;
  }
  .team-story p {
    font-size: 12px;
  }
  .clinic-copy > p:not(.eyebrow) {
    font-size: 12px;
    margin-top: 22px;
  }
  .clinic-main-photo {
    height: 275px;
  }
  .clinic-small-photos {
    gap: 10px;
    margin-top: 10px;
  }
  .clinic-small-photos > button {
    height: 130px;
  }
  .tele-art {
    min-height: 435px;
    order: 2;
  }
  .tele-grid {
    gap: 38px;
  }
  .tele-grid > div > p:not(.eyebrow) {
    font-size: 12px;
  }
  .tele-card {
    width: 265px;
  }
  .tele-card > img {
    height: 272px;
  }
  .tele-circle {
    width: 340px;
    height: 340px;
  }
  .circle-two {
    width: 260px;
    height: 260px;
  }
  .tele-note {
    right: 0;
    bottom: 13px;
  }
  .tele-steps {
    margin: 24px 0;
  }
  .tele-steps p {
    font-size: 11px;
  }
  .tele-grid .btn {
    font-size: 11px;
  }
  .social-heading {
    margin-bottom: 30px;
  }
  .social h2 {
    font-size: 35px;
  }
  .social-heading > p {
    font-size: 11px;
  }
  .social-grid {
    gap: 32px;
  }
  .social-images {
    grid-template-columns: 1fr 0.65fr;
    gap: 12px;
  }
  .social-main {
    height: 340px;
  }
  .social-secondary {
    display: block;
    height: 250px;
  }
  .location-stamp {
    font-size: 8px;
    left: 12px;
    bottom: 12px;
    padding: 8px 12px;
  }
  .social-copy h3 {
    font-size: 31px;
  }
  .social-copy > p {
    font-size: 12px;
  }
  .future-project p {
    font-size: 11px;
  }
  .faq-grid {
    gap: 35px;
  }
  .faq-grid > div > p:not(.eyebrow) {
    font-size: 12px;
    max-width: 350px;
  }
  .faq-list summary {
    font-size: 12px;
    padding: 22px 0;
  }
  .faq-list details p {
    font-size: 11px;
  }
  .contact-panel {
    padding: 0;
  }
  .contact-panel > p {
    max-width: none;
  }
  .contact-item {
    margin-top: 26px;
  }
  .contact-panel > p.privacy-small {
    max-width: 360px;
    margin-top: 26px;
  }
  .booking-grid {
    gap: 33px;
  }
  .agenda-placeholder {
    min-height: 385px;
    padding: 33px 25px;
  }
  .agenda-placeholder h4 {
    font-size: 25px;
  }
  .agenda-header {
    padding: 21px;
  }
  .agenda-placeholder > .btn {
    font-size: 12px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 23px 28px;
  }
  .footer-brand {
    grid-column: span 2;
  }
  .footer-brand p {
    max-width: 300px;
    margin-top: 15px;
  }
  .footer-grid > div > h3 {
    margin: 12px 0 20px;
    font-size: 10px;
  }
  .footer-grid > div:not(.footer-brand) > a {
    font-size: 10px;
  }
  .footer-grid > div:not(.footer-brand) > p {
    font-size: 10px;
  }
  .footer-grid > div:last-child {
    grid-column: span 2;
  }
  .footer-bottom {
    font-size: 8px;
    padding-bottom: 85px;
  }
  .footer-bottom > div {
    gap: 14px;
  }
  .footer-bottom .text-button {
    font-size: 8px;
  }
  .site-footer {
    padding-top: 40px;
  }
  .whatsapp-float {
    right: 18px;
    bottom: 18px;
    padding: 11px;
    gap: 0;
  }
  .whatsapp-float > span {
    display: none;
  }
  .whatsapp-float svg {
    width: 25px;
    height: 25px;
  }
  .cookie-banner {
    padding: 17px 20px 19px;
    flex-direction: column;
    gap: 13px;
  }
  .cookie-copy {
    max-width: none;
  }
  .cookie-copy p {
    font-size: 9px;
    line-height: 1.65;
  }
  .cookie-copy strong {
    font-size: 11px;
  }
  .cookie-actions {
    width: 100%;
    max-width: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .cookie-actions .btn {
    font-size: 9px;
    padding: 10px 8px;
    min-height: 36px;
  }
  .cookie-actions .text-button {
    grid-column: span 2;
    font-size: 9px;
    justify-self: center;
  }
  .has-cookie-banner .whatsapp-float {
    bottom: 220px;
  }
  dialog {
    padding: 32px 25px;
    width: calc(100% - 28px);
    max-height: calc(100dvh - 40px);
  }
  .info-dialog h2 {
    font-size: 29px;
    margin-right: 20px;
  }
  .info-dialog p {
    font-size: 12px;
  }
  .info-dialog .btn {
    font-size: 11px;
    gap: 10px;
  }
  .media-dialog {
    padding: 27px 20px;
  }
  .media-dialog h2 {
    font-size: 25px;
  }
  .legal-hero {
    padding: 48px 0;
  }
  .legal-hero h1 {
    font-size: 36px;
  }
  .legal-content {
    padding-top: 35px;
  }
  .legal-content p,
  .legal-content li {
    font-size: 12px;
  }
  .legal-content h2 {
    font-size: 17px;
    line-height: 1.5;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
  }
  .tele-card {
    transform: none;
  }
}

/* HERO · CAMBIOS V3 (solo portada; no cambian estilos de otras secciones) */
.hero .hero-kicker {
  color: #dec5a2;
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 1.7px;
  font-weight: 600;
  max-width: 540px;
  margin-bottom: 24px;
}
.hero .hero-kicker > span {
  flex-shrink: 0;
}
.hero .hero-lead {
  max-width: 470px;
}
.hero .hero-primary-action {
  min-height: 56px;
  padding: 16px 24px;
  font-size: 14px;
  gap: 11px;
  background: #cfb08a;
  color: #143c49;
  box-shadow: 0 7px 20px #102f3c26;
}
.hero .hero-primary-action:hover {
  background: #dfc19a;
}
.hero .hero-calendar {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.hero .hero-secondary-action {
  min-height: 52px;
  font-size: 12px;
  gap: 14px;
  background: transparent;
  border-color: #ffffff80;
}
.hero .hero-secondary-action:hover {
  background: #ffffff12;
}
@media (max-width: 650px) {
  .hero .hero-content {
    min-height: 0;
    padding-top: 63px;
    padding-bottom: 42px;
  }
  .hero .hero-kicker {
    font-size: 10px;
    line-height: 1.65;
    letter-spacing: 1.15px;
    margin-bottom: 19px;
  }
  .hero .hero-kicker > span {
    width: 18px;
  }
  .hero h1 {
    font-size: clamp(40px, 11.5vw, 46px);
    line-height: 1.12;
    letter-spacing: -1.3px;
    margin-bottom: 22px;
  }
  .hero .hero-lead {
    font-size: 13px;
    line-height: 1.85;
    max-width: 100%;
  }
  .hero .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 25px;
  }
  .hero .hero-primary-action {
    width: 100%;
    min-height: 56px;
    font-size: 14px;
    padding: 16px 18px;
    gap: 10px;
  }
  .hero .hero-secondary-action {
    width: 100%;
    min-height: 48px;
    font-size: 12px;
    padding: 13px 16px;
  }
  .hero .hero-doctors {
    margin-top: 28px;
    padding-top: 20px;
  }
}

/* V4 · INTRODUCCIÓN Y VENTANAS DE SERVICIOS: no afecta a portada, agenda ni cookies. */
.intro-copy .intro-highlight {
  color: #8a6032;
  font-weight: 700;
  font-size: 1.09em;
  text-decoration: underline;
  text-decoration-color: #c6a77f70;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}
.service-dialog {
  width: min(1060px, calc(100% - 48px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  padding: 0;
  border-radius: 13px;
}
.service-dialog > .dialog-close {
  position: sticky;
  top: 14px;
  right: auto;
  display: block;
  margin: 14px 14px -56px auto;
  width: 42px;
  height: 42px;
  z-index: 5;
  background: #fffffff5;
  box-shadow: 0 3px 16px #173f4b16;
  font-size: 27px;
}
.service-dialog-layout {
  position: relative;
  min-height: 580px;
  isolation: isolate;
}
.service-dialog-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: #edf1ec;
}
.service-dialog-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}
.service-dialog-visual .service-dialog-layout:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    #ffffffff 0%,
    #fffffffa 40%,
    #fffffff0 52%,
    #ffffff20 72%,
    #ffffff00
  );
}
.service-dialog-copy {
  padding: 60px 56px 56px;
  max-width: 740px;
}
.service-dialog-visual .service-dialog-copy {
  max-width: 650px;
  padding-right: 68px;
}
.service-dialog .service-dialog-copy .eyebrow {
  font-size: 11px;
  letter-spacing: 1.8px;
  margin-bottom: 20px;
}
.service-dialog .service-dialog-copy h2 {
  font-size: clamp(32px, 3.2vw, 42px);
  line-height: 1.17;
  margin: 0 0 28px;
  max-width: 440px;
}
.service-dialog .service-dialog-copy p {
  font-size: 14px;
  line-height: 1.85;
  color: #415862;
}
.service-dialog .service-dialog-copy .check-list {
  margin: 25px 0;
}
.service-dialog .service-dialog-copy .check-list li {
  font-size: 13px;
  line-height: 1.8;
}
.service-dialog .service-dialog-copy .btn {
  margin-top: 30px;
  min-height: 52px;
  font-size: 13px;
}
.service-dialog .service-visual-caption {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: min(320px, 34%);
  padding: 12px 14px;
  border: 1px solid #ffffffb3;
  border-radius: 6px;
  background: #fffffff2;
  color: #294955;
  font-size: 10px;
  line-height: 1.6;
}
#servicio-laser .service-dialog-media {
  left: 53%;
}
#servicio-laser .service-dialog-media img {
  object-position: center 35%;
}
#servicio-oculoplastia .service-dialog-media img {
  object-fit: contain;
  object-position: right center;
}
@media (max-width: 900px) and (min-width: 651px) {
  .service-dialog-visual .service-dialog-copy {
    max-width: 68%;
    padding: 52px 30px 46px;
  }
  .service-dialog .service-dialog-copy h2 {
    font-size: 32px;
  }
  .service-dialog .service-dialog-copy p {
    font-size: 13px;
  }
  .service-dialog .service-visual-caption {
    right: 14px;
    bottom: 14px;
    width: 29%;
    font-size: 9px;
  }
}
@media (max-width: 650px) {
  .service-dialog {
    width: calc(100% - 24px);
    max-height: calc(100dvh - 28px);
    padding: 0;
  }
  .service-dialog-layout {
    min-height: 0;
  }
  .service-dialog-media {
    position: relative;
    height: 225px;
    z-index: 0;
  }
  .service-dialog-media img {
    object-fit: cover;
    object-position: right center;
  }
  .service-dialog-visual .service-dialog-layout:before {
    display: none;
  }
  .service-dialog .service-dialog-copy,
  .service-dialog-visual .service-dialog-copy {
    max-width: 100%;
    padding: 30px 26px 26px;
    background: white;
  }
  .service-dialog .service-dialog-copy .eyebrow {
    font-size: 10px;
    margin-bottom: 15px;
  }
  .service-dialog .service-dialog-copy h2 {
    font-size: 30px;
    margin: 0 0 22px;
  }
  .service-dialog .service-dialog-copy p {
    font-size: 13px;
    line-height: 1.85;
  }
  .service-dialog .service-dialog-copy .check-list li {
    font-size: 12px;
  }
  .service-dialog .service-dialog-copy .btn {
    width: 100%;
    min-height: 52px;
    font-size: 12px;
    margin-top: 25px;
  }
  .service-dialog .service-visual-caption {
    position: static;
    width: auto;
    margin: 0;
    border: none;
    border-top: 1px solid var(--ac-line);
    border-radius: 0;
    padding: 16px 26px;
    background: var(--ac-soft);
    font-size: 9px;
  }
  #servicio-laser .service-dialog-media {
    left: 0;
    height: 300px;
  }
  #servicio-laser .service-dialog-media img {
    object-fit: contain;
    object-position: center;
    background: #edf1ec;
  }
  #servicio-oculoplastia .service-dialog-media img {
    object-fit: contain;
    object-position: center;
  }
}

@media (min-width: 901px) {
  /* La nota de cataratas no tapa la lente del recuadro de la esquina. */
  #servicio-cataratas .service-dialog-copy {
    padding-bottom: 112px;
  }
  #servicio-cataratas .service-dialog-media img {
    object-position: right bottom;
  }
  #servicio-cataratas .service-visual-caption {
    left: 56px;
    right: auto;
    width: 470px;
    max-width: 45%;
  }
}

/* V5 · EQUIPO TUMAINI: foto adicional completa en galería, sin recortar a nadie. */
.social-images-with-team .social-team-photo {
  grid-column: 1 / -1;
  height: auto;
  border: 1px solid #ffffff24;
}
.social-images-with-team .social-team-photo > img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.social-images-with-team .social-team-photo:hover > img {
  transform: none;
}
.social-images-with-team .social-team-photo > span {
  position: static;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  width: 100%;
  height: auto;
  border-radius: 0;
  padding: 12px 16px;
  font-size: 11px;
  background: #fffffff5;
}
.social-images-with-team .location-stamp {
  bottom: auto;
  top: 18px;
}
#historia-tanzania .dialog-photo-grid .tumaini-team-figure {
  grid-column: 1 / -1;
}
#historia-tanzania .dialog-photo-grid .tumaini-team-figure > img {
  height: auto;
  width: 100%;
  object-fit: contain;
}
@media (max-width: 650px) {
  .social-images-with-team .social-team-photo > span {
    font-size: 10px;
    padding: 10px 12px;
  }
  .social-images-with-team .location-stamp {
    top: 12px;
  }
}

/* V5 · REEL DE ACCESO VERTICAL: encuadre completo; el MP4 no contiene audio. */
#video-consulta video {
  width: auto;
  max-width: 100%;
  max-height: 70dvh;
  margin-inline: auto;
  object-fit: contain;
}

/* V9 · BOTONES DE LAS TARJETAS DE SERVICIOS: solo cambia su aspecto, no su destino. */
#servicios .service-card .card-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  gap: 12px;
  border: 1px solid var(--ac-primary);
  border-radius: 6px;
  background: var(--ac-primary);
  color: var(--ac-white);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none;
  box-shadow: 0 3px 10px #173f4b12;
  transition:
    transform 160ms var(--ac-ease),
    background 180ms var(--ac-ease),
    box-shadow 180ms var(--ac-ease);
}
#servicios .service-card .card-link:hover {
  background: var(--ac-dark);
  border-color: var(--ac-dark);
  gap: 12px;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px #173f4b24;
}
#servicios .service-card.featured .card-link {
  background: #cfb08a;
  border-color: #cfb08a;
  color: #143c49;
}
#servicios .service-card.featured .card-link:hover {
  background: #dfc19a;
  border-color: #dfc19a;
  color: #143c49;
}
#servicios .service-card .card-link:focus-visible {
  outline: 3px solid var(--ac-gold);
  outline-offset: 4px;
}
#servicios .service-card.featured .card-link:focus-visible {
  outline-color: var(--ac-white);
}
#servicios .service-card .card-link:active {
  transform: scale(0.98);
}
#servicios .service-card .card-link > span {
  flex-shrink: 0;
  font-size: 16px;
}

/* CONTACTO CONFIRMADO Y FOTOGRAFÍAS DE COLABORACIÓN */
.topbar-contacts {
  display: flex;
  align-items: center;
  gap: 24px;
}
.dialog-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 25px 0;
}
.dialog-photo-grid figure {
  margin: 0;
}
.dialog-photo-grid img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 5px;
}
.dialog-photo-grid figcaption {
  font-size: 9px;
  line-height: 1.6;
  margin-top: 8px;
}
.footer-grid > div:not(.footer-brand) > p:last-child {
  margin-top: 12px;
}
@media (max-width: 650px) {
  .topbar-hours {
    display: none;
  }
  .topbar-contacts {
    gap: 12px;
  }
  .topbar-inner > span {
    max-width: 125px;
    font-size: 7px;
    line-height: 1.4;
  }
  .topbar-contacts > a {
    font-size: 7px;
  }
  .dialog-photo-grid img {
    height: 190px;
  }
}
