:root {
  --ink: #102a43;
  --muted: #4a657c;
  --paper: #f5f8fb;
  --white: #ffffff;
  --navy: #155a9a;
  --navy-deep: #0c3d6e;
  --accent: #c62828;
  --vision: #1e6bb8;
  --cuerpo: #2f7d4a;
  --mente: #c45c26;
  --line: rgba(16, 42, 67, 0.1);
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100%;
}

a { color: inherit; }

/* ——— Nav ——— */
.top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem clamp(1rem, 3vw, 2rem);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--navy-deep);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}
.brand img {
  height: 38px;
  width: auto;
  object-fit: contain;
}
.top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
}
.top nav a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}
.top nav a:hover { color: var(--ink); }
.btn-nav {
  background: var(--navy-deep) !important;
  color: #fff !important;
  padding: 0.5rem 0.95rem !important;
  border-radius: 0.4rem;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
}
.btn-nav:hover { background: var(--navy) !important; }
.btn-nav-medicos {
  background: var(--ink) !important;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.btn-nav-medicos:hover { background: #243b53 !important; }

.lang-switch { position: relative; }
.lang-switch-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.32rem 0.55rem;
  border-radius: 0.35rem;
  cursor: pointer;
  min-width: 2.4rem;
}
.lang-switch-btn:hover { color: var(--ink); border-color: rgba(16, 42, 67, 0.22); }
.lang-switch-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  margin: 0;
  padding: 0.3rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  box-shadow: 0 10px 28px rgba(16, 42, 67, 0.12);
  min-width: 8.2rem;
  z-index: 40;
}
.lang-switch-menu[hidden] { display: none !important; }
.lang-switch-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  font: inherit;
  font-size: 0.86rem;
  color: var(--ink);
  padding: 0.4rem 0.75rem;
  cursor: pointer;
}
.lang-switch-menu button:hover,
.lang-switch-menu button.is-active { background: var(--paper); }

.staff-modal[hidden] { display: none !important; }
.staff-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}
.staff-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 28, 52, 0.55);
}
.staff-modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 22rem);
  background: #fff;
  border-radius: 0.75rem;
  padding: 1.5rem 1.35rem 1.25rem;
  box-shadow: 0 18px 50px rgba(8, 28, 52, 0.28);
}
.staff-modal-card h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--navy-deep);
}
.staff-modal-card p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.staff-modal-card input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  font: inherit;
  margin-bottom: 0.65rem;
}
.staff-modal-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
  margin-top: 0.35rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.foot-links .linkish {
  background: none;
  border: 0;
  padding: 0;
  color: var(--navy);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.foot-links .linkish:hover { text-decoration: underline; }

/* ——— Hero editorial (colección óptica) ——— */
.hero {
  position: relative;
  min-height: min(86vh, 780px);
  display: grid;
  place-items: center;
  padding: clamp(2.5rem, 7vh, 4.5rem) clamp(1.25rem, 5vw, 4rem) 3.5rem;
  overflow: hidden;
  background: #0a2a4a;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.03);
  animation: heroZoom 16s var(--ease) both;
}
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 28, 52, 0.5) 0%, rgba(8, 28, 52, 0.4) 45%, rgba(8, 28, 52, 0.78) 100%);
  pointer-events: none;
}
.hero-stage {
  position: relative;
  z-index: 2;
  width: min(100%, 36rem);
  text-align: center;
  animation: riseIn 1s var(--ease) both;
}
.hero-vital {
  margin: 0 0 0.65rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}
.hero-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 6.5vw, 4.6rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  line-height: 1.05;
  max-width: 100%;
  overflow-wrap: normal;
  word-break: keep-all;
}
.hero-name .amp {
  color: #ff6b6b;
  font-family: var(--font-body);
  font-weight: 700;
  font-style: normal;
  font-size: 0.82em;
  display: inline-block;
  padding: 0 0.12em;
  letter-spacing: 0;
  line-height: 1;
  vertical-align: 0.02em;
}
.hero-lede {
  margin: 1.1rem auto 1.5rem;
  max-width: 28rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.45;
}
.hero .cta-row { justify-content: center; }
.hero .btn.primary {
  background: #fff;
  color: var(--navy-deep);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}
.hero .btn.primary:hover { background: #eef4fb; }
@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1.03); }
}

.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.trust-bar p {
  margin: 0;
  padding: 0.35rem 0.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}
.trust-bar p:last-child { border-right: 0; }

/* ——— Carrusel anuncios TV (vivo desde Admin → Anuncios TV) ——— */
.ads-carousel {
  padding: 0;
  max-width: none;
  width: 100%;
  margin: 0;
}
.ads-stage {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  background: #0c3d6e;
  width: 100%;
  aspect-ratio: 21 / 9;
  min-height: clamp(280px, 42vw, 560px);
  max-height: 72vh;
  box-shadow: none;
}
.ads-track { position: absolute; inset: 0; }
.ads-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s var(--ease);
  pointer-events: none;
}
.ads-slide.is-active { opacity: 1; pointer-events: auto; }
.ads-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #0a335c;
  display: block;
}
.ads-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy-deep);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.ads-nav.prev { left: clamp(10px, 2vw, 28px); }
.ads-nav.next { right: clamp(10px, 2vw, 28px); }
.ads-nav:hover { background: #fff; }
.ads-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 0 64px;
}
.ads-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}
.ads-dots button.is-active {
  background: #fff;
  width: 18px;
  border-radius: 999px;
}
@media (max-width: 720px) {
  .ads-stage {
    aspect-ratio: 16 / 10;
    min-height: 220px;
    max-height: 55vh;
  }
  .ads-nav { width: 38px; height: 38px; font-size: 1.35rem; }
  .ads-slide img { object-fit: contain; }
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.35rem;
  border-radius: 0.4rem;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn.primary {
  background: var(--navy-deep);
  color: #fff;
  box-shadow: 0 10px 24px rgba(12, 61, 110, 0.22);
}
.btn.primary:hover { background: var(--navy); }
.btn.ghost {
  background: transparent;
  color: var(--navy-deep);
  box-shadow: inset 0 0 0 1.5px rgba(12, 61, 110, 0.28);
}
.btn.ghost:hover { background: rgba(12, 61, 110, 0.05); }
.btn.ghost.light {
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.65);
}
.btn.ghost.light:hover { background: rgba(255, 255, 255, 0.1); }

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes floatMark {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ——— Sections ——— */
.section-head {
  max-width: 36rem;
  margin: 0 auto 2.75rem;
  text-align: center;
  padding: 0 1.25rem;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 600;
  margin: 0 0 0.55rem;
  color: var(--navy-deep);
  letter-spacing: -0.01em;
}
.section-head p { margin: 0; color: var(--muted); font-size: 1.05rem; }

.about {
  padding: 4rem 0 3.25rem;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.about-card {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.about-card p {
  margin: 0 0 1.15rem;
  color: var(--ink);
  font-size: 1.06rem;
  line-height: 1.7;
}
.about-card p:last-child { margin-bottom: 0; }
.about-sign {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--navy-deep);
  margin-top: 1.6rem !important;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ——— Services ——— */
.services {
  padding: 4rem 0 1rem;
  display: grid;
  gap: 0;
  background: var(--paper);
}
.svc {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: min(52vh, 480px);
  max-width: none;
  margin: 0;
  width: 100%;
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
/* Nombre / texto primero; foto a la derecha (y abajo en móvil) */
.svc-text { order: 1; }
.svc-visual { order: 2; }
.svc-visual {
  min-height: 240px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.svc-optica .svc-visual { background-image: url("/sitio/img/photos/svc-optica.jpg?v=77"); }
.svc-fisiatria .svc-visual { background-image: url("/sitio/img/photos/svc-fisiatria.jpg?v=77"); background-position: center; }
.svc-psico .svc-visual { background-image: url("/sitio/img/photos/svc-psico.jpg?v=77"); background-position: center; }
.svc-fono .svc-visual { background-image: url("/sitio/img/photos/svc-fono.jpg?v=77"); background-position: center; }
.svc-acuatica .svc-visual { background-image: url("/sitio/img/photos/svc-acuatica.jpg?v=77"); background-position: center; }
.svc-hiper .svc-visual { background-image: url("/sitio/img/photos/svc-hiper.jpg?v=77"); background-position: center; }

.optica-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
  width: 100%;
  padding: 0.35rem 0 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.optica-strip img {
  width: 100%;
  height: clamp(140px, 22vw, 220px);
  object-fit: cover;
  display: block;
}
.svc-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 5vw, 4rem);
  background: #fff;
  max-width: 34rem;
  margin: 0 auto;
  width: 100%;
}
.svc-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
}
.svc-optica .svc-kicker { color: var(--vision); }
.svc-fisiatria .svc-kicker { color: var(--cuerpo); }
.svc-psico .svc-kicker { color: var(--mente); }
.svc-fono .svc-kicker { color: #6b4f9a; }
.svc-acuatica .svc-kicker { color: #1a7a8c; }
.svc-hiper .svc-kicker { color: #3d5a80; }
.svc-text h3 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--navy-deep);
}
.svc-text p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 28rem;
  line-height: 1.6;
}
.svc-text a {
  color: var(--navy);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* ——— Listado oficial (mismo catálogo que WhatsApp / Coral Bot) ——— */
.svc-catalog {
  padding: 3.5rem clamp(1.15rem, 4vw, 2.5rem) 4.25rem;
  background: #fff;
  border-top: 1px solid var(--line);
}
.svc-catalog .section-head { margin-bottom: 2rem; }
.svc-catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 74rem;
  margin: 0 auto;
}
.svc-catalog-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.35rem 1.3rem 1.2rem;
}
.svc-catalog-card h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--navy-deep);
}
.svc-catalog-card[data-group="oftalmologia"] h3 { color: var(--vision); }
.svc-catalog-card[data-group="fisiatria"] h3 { color: var(--cuerpo); }
.svc-catalog-card[data-group="psicologia"] h3 { color: var(--mente); }
.svc-catalog-card[data-group^="fono"] h3 { color: #6b4f9a; }
.svc-catalog-card[data-group="fono-pediatrica"],
.svc-catalog-card[data-group="fono-adultos"],
.svc-catalog-card[data-group="fono-mayores"] {
  grid-column: 1 / -1;
}
.svc-catalog-sec {
  margin: 0 0 0.95rem;
}
.svc-catalog-sec:last-child { margin-bottom: 0; }
.svc-catalog-sec h4 {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  opacity: 0.8;
}
.svc-catalog-intro {
  margin: 0 0 0.4rem;
  font-size: 0.88rem;
  color: var(--ink);
  opacity: 0.82;
  line-height: 1.45;
}
.svc-catalog-card ul {
  margin: 0;
  padding: 0 0 0 1.05rem;
  columns: 1;
  column-gap: 1.4rem;
}
.svc-catalog-card[data-group="psicologia"] ul,
.svc-catalog-card[data-group="fono-pediatrica"] ul,
.svc-catalog-card[data-group="fono-adultos"] ul,
.svc-catalog-card[data-group="fono-mayores"] ul {
  columns: 2;
}
.svc-catalog-card li {
  break-inside: avoid;
  margin: 0.22rem 0;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.4;
}

/* ——— Citas (full-bleed) ——— */
.citas-band {
  margin: 3.5rem 0 0;
  padding: clamp(3rem, 7vw, 4.5rem) 1.25rem;
  background:
    radial-gradient(ellipse 60% 80% at 15% 20%, rgba(255, 255, 255, 0.1), transparent 50%),
    linear-gradient(145deg, #0a335c 0%, var(--navy) 55%, #1a6aad 100%);
  color: #fff;
  text-align: center;
}
.citas-inner { max-width: 34rem; margin: 0 auto; }
.citas-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 600;
  margin: 0 0 0.75rem;
}
.citas-band p {
  margin: 0 0 1.5rem;
  opacity: 0.92;
  font-size: 1.05rem;
}
.citas-band .btn.primary {
  background: #fff;
  color: var(--navy-deep);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}
.citas-band .btn.primary:hover { background: #eef4fb; }
.reag-panel {
  margin-top: 1.75rem;
  text-align: left;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  padding: 1.1rem 1.15rem 1.15rem;
}
.reag-panel h3 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 650;
}
.reag-panel p { margin: 0 0 0.85rem; font-size: 0.95rem; }
.reag-panel label {
  display: block;
  margin: 0.7rem 0 0.28rem;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}
.reag-panel input,
.reag-panel select {
  display: block;
  width: 100%;
  margin-top: 0.28rem;
  border: 0;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
.reag-panel .btn { margin-top: 0.85rem; }
.reag-msg { min-height: 1.2em; margin: 0.7rem 0 0; font-size: 0.92rem; }
.citas-svc-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  justify-content: center;
}
.citas-svc-list li {
  margin: 0;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.08);
}
.citas-band .muted-inline {
  display: inline-block;
  margin-top: 0.45rem;
  font-size: 0.92rem;
  opacity: 0.85;
}

/* ——— Contact ——— */
.contact { padding: 4.5rem 1.25rem 4rem; }
.contact-grid {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.contact-info { padding-top: 0.25rem; }
.contact-photo {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  margin: 0 0 1.5rem;
  border-radius: 0.85rem;
}
.info-block { margin-bottom: 1.75rem; }
.info-block h3 {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.info-block p {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
}
.mails {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.35rem;
}
.mails a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}
.mails a:hover { text-decoration: underline; }
.clinic-by {
  margin: 2rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-family: var(--font-display);
  color: var(--navy-deep);
}
.clinic-by-name {
  font-style: normal;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.clinic-by-line {
  font-style: italic;
  font-size: 1.05rem;
}

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.5rem 1.35rem 1.35rem;
}
.contact-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.9rem;
  color: var(--muted);
}
.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  padding: 0.75rem 0.9rem;
  font: inherit;
  color: var(--ink);
  background: #fafcfe;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(21, 90, 154, 0.45);
  box-shadow: 0 0 0 3px rgba(21, 90, 154, 0.12);
}
.field-phone-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.field-phone-label .wa-ico {
  color: #25d366;
  flex-shrink: 0;
}
.phone-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.phone-list li { margin: 0; }
.phone-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}
.phone-wa,
.phone-tel {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}
.phone-wa .wa-ico {
  color: #25d366;
  flex-shrink: 0;
}
.phone-tel .tel-ico {
  color: var(--navy);
  flex-shrink: 0;
}
.phone-wa:hover,
.phone-tel:hover {
  color: var(--navy);
}
.phone-wa:hover .wa-ico { color: #1ebe57; }
.phone-tel:hover .tel-ico { color: var(--navy-deep); }
.phone-fb {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}
.phone-fb .fb-ico {
  color: #1877f2;
  flex-shrink: 0;
}
.phone-fb:hover { color: var(--navy); }
.phone-fb:hover .fb-ico { color: #0d65d9; }
.phone-ig {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}
.phone-ig .ig-ico {
  color: #c13584;
  flex-shrink: 0;
}
.phone-ig:hover { color: var(--navy); }
.phone-ig:hover .ig-ico { color: #a1286d; }
.wa-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.contact-form .btn {
  width: 100%;
  margin-top: 0.35rem;
}
.form-msg { margin: 0.75rem 0 0; font-size: 0.92rem; }
.form-msg.ok { color: var(--cuerpo); }
.form-msg.err { color: #9b1c1c; }

/* ——— Footer ——— */
.foot {
  padding: 2.5rem 1.25rem 3rem;
  text-align: center;
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 0.9rem;
}
.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-align: left;
  margin-bottom: 1.1rem;
}
.foot-brand img {
  height: 48px;
  width: auto;
  object-fit: contain;
}
.foot-name {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--navy-deep);
}
.foot-motto {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: center;
  margin: 0 0 0.85rem;
}
.foot-links a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}
.foot-links a:hover { text-decoration: underline; }
.foot .muted { margin: 0; color: var(--muted); }

@media (max-width: 860px) {
  .top {
    gap: 0.45rem;
    padding: 0.55rem 0.75rem;
  }
  .brand {
    min-width: 0;
    flex: 1 1 auto;
    gap: 0.4rem;
  }
  .brand span {
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }
  .brand img { height: 30px; }
  .top nav a:not(.btn-nav) { display: none; }
  .top nav {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 0.3rem;
  }
  .btn-nav {
    padding: 0.4rem 0.55rem !important;
    font-size: 0.72rem !important;
    white-space: nowrap;
  }
  .hero {
    min-height: min(68vh, 560px);
    padding: 2rem 1rem 2.25rem;
  }
  .hero-stage {
    text-align: center;
    width: 100%;
    max-width: 100%;
    padding: 0 0.15rem;
  }
  .hero-vital {
    letter-spacing: 0.14em;
    font-size: 0.68rem;
  }
  .hero-name {
    font-size: clamp(1.9rem, 10.5vw, 2.55rem);
    line-height: 1.12;
    letter-spacing: -0.015em;
  }
  .hero-name .amp {
    font-size: 0.78em;
    padding: 0 0.14em;
    vertical-align: 0.05em;
  }
  .hero-lede {
    font-size: 0.98rem;
    margin: 0.85rem auto 1.25rem;
    max-width: 22rem;
  }
  .hero-photo { object-position: center 35%; }
  .trust-bar {
    grid-template-columns: 1fr 1fr;
    font-size: 0.75rem;
  }
  .trust-bar p:nth-child(2n) { border-right: 0; }
  .trust-bar p { border-bottom: 1px solid rgba(255,255,255,0.12); }
  .svc {
    grid-template-columns: 1fr;
    min-height: 0;
    width: 100%;
    margin-bottom: 0;
  }
  .svc-text { order: 1; }
  .svc-visual { order: 2; min-height: 260px; }
  .optica-strip { grid-template-columns: repeat(2, 1fr); }
  .optica-strip img { height: 140px; }
  .svc-catalog-grid { grid-template-columns: 1fr; }
  .svc-catalog-card[data-group="psicologia"] ul,
  .svc-catalog-card[data-group="fono-pediatrica"] ul,
  .svc-catalog-card[data-group="fono-adultos"] ul,
  .svc-catalog-card[data-group="fono-mayores"] ul {
    columns: 1;
  }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-photo { max-width: 100%; aspect-ratio: 16 / 10; object-position: center 20%; }
  .foot-brand { text-align: center; flex-direction: column; }
}

@media (max-width: 380px) {
  .brand span { font-size: 0.7rem; }
  .btn-nav {
    font-size: 0.65rem !important;
    padding: 0.35rem 0.42rem !important;
  }
  .hero-name { font-size: clamp(1.7rem, 11vw, 2.1rem); }
}

/* ——— Coral Bot (asistente web = misma fuente WhatsApp) ——— */
.coral-bot {
  position: fixed;
  right: clamp(0.85rem, 3vw, 1.5rem);
  bottom: clamp(0.85rem, 3vw, 1.5rem);
  z-index: 40;
  font-family: var(--font-body);
}
.coral-bot-fab {
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(12, 61, 110, 0.28);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.coral-bot-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(12, 61, 110, 0.34);
}
.coral-bot-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.65rem);
  width: min(360px, calc(100vw - 1.7rem));
  max-height: min(520px, 70vh);
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(16, 42, 67, 0.18);
  overflow: hidden;
}
.coral-bot-panel[hidden] { display: none !important; }
.coral-bot-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  background: linear-gradient(135deg, #0f766e, var(--navy-deep));
  color: #fff;
}
.coral-bot-head strong {
  display: block;
  font-size: 1.05rem;
  font-family: var(--font-display);
  font-weight: 600;
}
.coral-bot-head p {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  opacity: 0.9;
}
.coral-bot-close {
  border: 0;
  background: rgba(255,255,255,0.15);
  color: #fff;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.coral-bot-msgs {
  flex: 1 1 auto;
  overflow: auto;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: #f0f5f9;
  min-height: 220px;
}
.coral-bot-bubble {
  max-width: 92%;
  padding: 0.65rem 0.8rem;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.45;
  white-space: pre-wrap;
}
.coral-bot-bubble.bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}
.coral-bot-bubble.user {
  align-self: flex-end;
  background: var(--navy);
  color: #fff;
}
.coral-bot-bubble.escalate {
  border-color: #fcd34d;
  background: #fffbeb;
}
.coral-bot-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem;
  padding: 0.7rem;
  border-top: 1px solid var(--line);
  background: #fff;
}
.coral-bot-form input {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  font-size: 0.9rem;
}
.coral-bot-form .btn {
  padding: 0.65rem 0.9rem;
  font-size: 0.85rem;
}
.coral-bot-foot {
  margin: 0;
  padding: 0 0.85rem 0.7rem;
  font-size: 0.75rem;
  color: var(--muted);
  background: #fff;
}
.coral-bot-foot a { color: var(--navy); font-weight: 600; text-decoration: none; }
.coral-bot-foot a:hover { text-decoration: underline; }

.pwa-banner {
  position: fixed;
  top: calc(0.7rem + env(safe-area-inset-top, 0px));
  left: 50%;
  bottom: auto;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: min(22.5rem, calc(100vw - 1.5rem));
  padding: 0.55rem 0.5rem 0.55rem 0.55rem;
  background: #fff;
  border: 1px solid rgba(12, 61, 110, 0.08);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(16, 42, 67, 0.14);
  transform: translateX(-50%);
  animation: pwaIn 0.35s var(--ease);
}
.pwa-banner[hidden] { display: none; }
.pwa-banner img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex: 0 0 auto;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(12, 61, 110, 0.06);
}
.pwa-banner-text {
  min-width: 0;
  flex: 1;
  line-height: 1.25;
}
.pwa-banner-text strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--navy-deep);
}
.pwa-banner-text span {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
}
.pwa-banner-apk {
  display: inline-block;
  margin-top: 0.12rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
}
.pwa-banner-apk:hover { text-decoration: underline; }
.pwa-banner-add {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 0.42rem 0.8rem;
  background: var(--navy-deep);
  color: #fff;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
}
.pwa-banner-add:hover { background: var(--navy); }
.pwa-banner-x {
  flex: 0 0 auto;
  width: 1.7rem;
  height: 1.7rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}
.pwa-banner-x:hover { background: var(--paper); color: var(--navy-deep); }
.pwa-hint {
  margin: 0.25rem 0 0;
  font-size: 0.68rem;
  color: var(--navy-deep);
}
@keyframes pwaIn {
  from { opacity: 0; transform: translate(-50%, -10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
