/* VITTA Especialidades Dentales — sitio público
   Colores y tipografías del kit de marca (marca/LEEME.md). Las fuentes van en fuentes/ (licencia OFL),
   servidas desde aquí para que la página no dependa de Google ni le mande la IP del visitante a nadie. */

@font-face {
  font-family: 'Montserrat';
  src: url('fuentes/montserrat-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('fuentes/montserrat-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('fuentes/source-sans-3-400.woff2') format('woff2');
  font-weight: 200 900; font-style: normal; font-display: swap;
}

:root {
  --verde: #287D86;
  --verde-hover: #20656D;
  --agua: #7DB3B4;
  --agua-suave: #E4F0F0;
  --gris: #606061;
  --crema: #FBFAF6;
  --blanco: #FFFFFF;
  --tinta: #2C3335;
  --borde: #E3E1DB;
  --whatsapp: #1EA855;

  --titulos: 'Montserrat', 'Segoe UI', Tahoma, sans-serif;
  --texto: 'Source Sans 3', 'Segoe UI', Tahoma, sans-serif;

  --ancho: 1120px;
  --radio: 14px;
  --sombra: 0 1px 2px rgba(44, 51, 53, .06), 0 8px 24px rgba(44, 51, 53, .07);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--texto);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--tinta);
  background: var(--blanco);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { font-family: var(--titulos); font-weight: 600; line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5.4vw, 3.15rem); }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.35rem); }
h3 { font-size: 1.175rem; }
p { margin: 0 0 1em; }

a { color: var(--verde); }
a:hover { color: var(--verde-hover); }

:focus-visible { outline: 3px solid var(--verde); outline-offset: 3px; border-radius: 4px; }

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

.salto {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--verde); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
  font-family: var(--titulos); font-weight: 600; text-decoration: none;
}
.salto:focus { left: 0; color: #fff; }

.envoltura { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 20px; }
.envoltura--angosta { max-width: 760px; }

/* ---------------------------------------------------------------- botones */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--titulos); font-weight: 600; font-size: .975rem; line-height: 1.2;
  padding: .8rem 1.35rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, transform .1s;
}
.boton:active { transform: translateY(1px); }
.boton--grande { padding: 1rem 1.7rem; font-size: 1.05rem; }
.boton--ancho { width: 100%; }

.boton--principal { background: var(--verde); color: #fff; }
.boton--principal:hover { background: var(--verde-hover); color: #fff; }

.boton--borde { background: transparent; color: var(--verde); border-color: var(--verde); }
.boton--borde:hover { background: var(--agua-suave); color: var(--verde-hover); }

.boton--claro { background: #fff; color: var(--verde); }
.boton--claro:hover { background: var(--agua-suave); color: var(--verde-hover); }

/* ---------------------------------------------------------------- cabecera */
.cabecera {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--borde);
}
.cabecera__fila { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.cabecera__logo { display: block; flex: 0 0 auto; }
.cabecera__logo img { width: 168px; height: auto; }

.menu-boton {
  display: block; width: 46px; height: 46px; border: 1px solid var(--borde); border-radius: 12px;
  background: #fff; cursor: pointer; position: relative; flex: 0 0 auto;
}
.menu-boton__barras, .menu-boton__barras::before, .menu-boton__barras::after {
  position: absolute; left: 50%; width: 20px; height: 2px; background: var(--tinta);
  border-radius: 2px; transform: translateX(-50%); transition: transform .2s, opacity .2s;
}
.menu-boton__barras { top: 50%; margin-top: -1px; }
.menu-boton__barras::before { content: ''; top: -6px; }
.menu-boton__barras::after { content: ''; top: 6px; }
.menu-boton[aria-expanded="true"] .menu-boton__barras { background: transparent; }
.menu-boton[aria-expanded="true"] .menu-boton__barras::before { transform: translateX(-50%) translateY(6px) rotate(45deg); }
.menu-boton[aria-expanded="true"] .menu-boton__barras::after { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }

.menu {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--borde);
  padding: .5rem 20px 1.25rem; box-shadow: var(--sombra);
}
.menu.abierto { display: block; }
.menu a {
  display: block; padding: .8rem .25rem; font-family: var(--titulos); font-weight: 600;
  font-size: 1rem; color: var(--tinta); text-decoration: none; border-bottom: 1px solid var(--borde);
}
.menu a:hover { color: var(--verde); }
.menu .menu__cita { margin-top: 1rem; border-bottom: 0; color: #fff; text-align: center; }
.menu .menu__cita:hover { color: #fff; }

@media (min-width: 900px) {
  .menu-boton { display: none; }
  .menu {
    display: flex; position: static; align-items: center; gap: 1.6rem;
    background: none; border: 0; padding: 0; box-shadow: none;
  }
  .menu a { border-bottom: 0; padding: .35rem 0; font-size: .95rem; font-weight: 400; font-family: var(--texto); }
  .menu .menu__cita { margin-top: 0; font-family: var(--titulos); font-weight: 600; padding: .7rem 1.25rem; }
  .cabecera__logo img { width: 200px; }
}

/* ---------------------------------------------------------------- portada */
.portada {
  background: linear-gradient(180deg, var(--crema) 0%, #fff 100%);
  padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2.5rem, 6vw, 4.5rem);
  overflow: hidden;
}
.portada__reja { display: grid; gap: 2rem; align-items: center; }
.portada__marca { display: none; }

.sobretitulo {
  font-family: var(--titulos); font-weight: 600; font-size: .78rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--verde); margin: 0 0 .75rem;
}
.sobretitulo--claro { color: #DCEDEC; }

.entrada { font-size: clamp(1.05rem, 2.2vw, 1.2rem); color: #454C4E; max-width: 34em; }

.portada__botones { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.75rem 0 0; }

.sellos { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: .6rem; }
.sellos li { position: relative; padding-left: 1.85rem; color: var(--gris); font-size: .98rem; }
.sellos li::before {
  content: ''; position: absolute; left: 0; top: .45em; width: 1.15rem; height: 1.15rem;
  border-radius: 50%; background: var(--agua-suave);
  box-shadow: inset 0 0 0 2px var(--agua);
}

@media (min-width: 900px) {
  .portada__reja { grid-template-columns: 1.25fr .75fr; gap: 3rem; }
  .portada__marca { display: block; opacity: .16; }
  .portada__marca img { width: 100%; max-width: 380px; margin-left: auto; }
  .sellos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------------------------------------------------------------- secciones */
.seccion { padding: clamp(3rem, 7vw, 5.25rem) 0; }
.seccion--crema { background: var(--crema); }
.seccion--verde { background: var(--verde); color: #fff; }
.seccion--verde h2, .seccion--verde h3 { color: #fff; }
.seccion__entrada { color: var(--gris); max-width: 46em; margin-bottom: 2.5rem; }

/* tarjetas de servicios */
.tarjetas { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.tarjeta {
  background: #fff; border: 1px solid var(--borde); border-radius: var(--radio);
  padding: 1.5rem 1.4rem; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.tarjeta:hover { border-color: var(--agua); box-shadow: var(--sombra); transform: translateY(-2px); }
.tarjeta h3 { color: var(--verde); margin-bottom: .4rem; }
.tarjeta p { margin: 0; color: var(--gris); font-size: .985rem; }
.tarjeta--urgencia { background: var(--agua-suave); border-color: var(--agua); }

@media (min-width: 640px) { .tarjetas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .tarjetas { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* pasos */
.pasos { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; counter-reset: paso; }
.paso { background: #fff; border-radius: var(--radio); padding: 1.75rem 1.5rem; box-shadow: var(--sombra); }
.paso__numero {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--verde); color: #fff;
  font-family: var(--titulos); font-weight: 600; font-size: 1.2rem;
  margin-bottom: 1rem;
}
.paso p { margin: 0; color: var(--gris); }
@media (min-width: 860px) { .pasos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* equipo */
.equipo { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.persona {
  display: flex; align-items: center; gap: 1.1rem;
  border: 1px solid var(--borde); border-radius: var(--radio); padding: 1.25rem 1.4rem; background: #fff;
}
.persona h3 { margin: 0; }
.persona__inicial {
  flex: 0 0 auto; width: 3.4rem; height: 3.4rem; border-radius: 50%;
  background: var(--agua-suave); color: var(--verde);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--titulos); font-weight: 600; font-size: 1.45rem;
}
.persona__especialidad { margin: .15rem 0 0; color: var(--gris); font-size: .95rem; }
@media (min-width: 720px) { .equipo { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* visítanos */
.visitanos__reja { display: grid; gap: 2.25rem; }
.direccion { font-style: normal; font-size: 1.1rem; line-height: 1.7; margin-bottom: 1.25rem; }
.visitanos__botones { margin: 0 0 1.75rem; }

.contacto-lista { margin: 0; display: grid; gap: .15rem 1rem; }
.contacto-lista dt {
  font-family: var(--titulos); font-weight: 600; font-size: .72rem;
  letter-spacing: .12em; text-transform: uppercase; color: #C8E2E1; margin-top: .9rem;
}
.contacto-lista dd { margin: 0; }
.contacto-lista a { color: #fff; text-decoration-color: rgba(255, 255, 255, .5); text-underline-offset: 3px; }
.contacto-lista a:hover { color: #DCEDEC; }

.horario-caja { background: rgba(255, 255, 255, .11); border-radius: var(--radio); padding: 1.75rem 1.6rem; }
.horario { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.horario th, .horario td { text-align: left; padding: .6rem 0; border-bottom: 1px solid rgba(255, 255, 255, .22); font-weight: 400; }
.horario td { text-align: right; font-variant-numeric: tabular-nums; }
.horario tr:last-child th, .horario tr:last-child td { border-bottom: 0; }
.horario__nota { font-size: .92rem; color: #DCEDEC; margin-bottom: 1.4rem; }

@media (min-width: 880px) { .visitanos__reja { grid-template-columns: 1.1fr .9fr; gap: 3.5rem; } }

/* preguntas */
.pregunta { border-bottom: 1px solid var(--borde); padding: .35rem 0; }
.pregunta summary {
  cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; position: relative;
  font-family: var(--titulos); font-weight: 600; font-size: 1.06rem;
}
.pregunta summary::-webkit-details-marker { display: none; }
.pregunta summary::after {
  content: ''; position: absolute; right: .55rem; top: 50%; width: .6rem; height: .6rem;
  border-right: 2px solid var(--verde); border-bottom: 2px solid var(--verde);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.pregunta[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.pregunta p { color: var(--gris); margin: 0 0 1.1rem; padding-right: 1rem; }

/* cierre */
.cierre { background: var(--crema); padding: clamp(3rem, 7vw, 5rem) 0; }
.cierre__caja { text-align: center; }
.cierre__caja p { color: var(--gris); }
.cierre__botones { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 1.75rem; }

/* ---------------------------------------------------------------- pie */
.pie { background: var(--tinta); color: #D6DBDC; padding: 3rem 0 1.5rem; font-size: .96rem; }
.pie__reja { display: grid; gap: 2.25rem; }
.pie__logo { width: 190px; margin-bottom: 1rem; }
.pie__nota { color: #9AA3A5; margin: 0; }
.pie__titulo { font-family: var(--titulos); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--agua); margin: 0 0 .9rem; }
.pie__lista { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.pie__lista a { color: #D6DBDC; text-decoration: none; }
.pie__lista a:hover { color: #fff; text-decoration: underline; }
.pie__legal {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, .13); margin-top: 2.5rem; padding-top: 1.35rem;
  color: #9AA3A5; font-size: .88rem;
}
.pie__legal p { margin: 0; }
.pie__legal a { color: #9AA3A5; }
.pie__legal a:hover { color: #fff; }
.pie__analitica { flex-basis: 100%; font-size: .8rem; }

@media (min-width: 760px) { .pie__reja { grid-template-columns: 1.3fr .9fr .8fr; gap: 3rem; } }

/* ---------------------------------------------------------------- WhatsApp flotante */
.whatsapp-flotante {
  position: fixed; right: 16px; bottom: 16px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--whatsapp); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(44, 51, 53, .28);
  transition: transform .15s, background-color .15s;
}
.whatsapp-flotante:hover { background: #17924A; color: #fff; transform: scale(1.06); }

/* ---------------------------------------------------------------- aviso de privacidad */
.documento { padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3rem, 7vw, 5rem); }
.documento h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.documento h2 { font-size: 1.3rem; margin-top: 2.25rem; }
.documento h3 { font-size: 1.1rem; margin-top: 1.75rem; }
.documento ul { padding-left: 1.3rem; }
.documento li { margin-bottom: .4rem; }
.documento__version { color: var(--gris); font-size: .92rem; }
.documento__aviso {
  background: var(--agua-suave); border-left: 4px solid var(--agua);
  padding: 1rem 1.25rem; border-radius: 0 8px 8px 0; color: var(--tinta);
}
.documento__volver { display: inline-block; margin-top: 2.5rem; }

/* Bloque legal del pie: institucion, cedula profesional y especialidad (Ley General de Salud, art. 83).
   Lo pinta cedulas.js en cuanto el consultorio entregue los datos; con el arreglo vacio no se ve nada. */
.pie__cedulas:empty { display: none; }
.pie__cedulas-lista { list-style: none; margin: 0 0 .75rem; padding: 0; font-size: .82rem; line-height: 1.55; opacity: .8; }
.pie__cedulas-lista li + li { margin-top: .15rem; }
