/* Plantilla dental de NATTO (2026-12-02, desde webs/maquetas/agenda-simple). Celular primero; letra grande y
   botones amplios para que cualquier adulto pida hora. Lo de cada clínica llega como variables en
   <style>:root{…}</style> (paginaDental): acento y sus derivados, el color secundario de su logo, la tinta y las
   fuentes. Sin tarjetas iguales ni etiquetas sobre los títulos: las barras de su logo marcan cada sección. */
:root {
  --fondo: #ffffff; --suave: #f3f4f4; --tinta: #1f272c; --gris-logo: #48525a; --gris: #5a646b; --linea: #dfe3e5;
  --acento: #f86800; --acento-osc: #c25200; --tenue: #fff1e6; --sobre-acento: #1f272c; --verde: #1faa53; --verde-osc: #178a43;
  --fuente-titulos: 'Saira'; --fuente-texto: 'Figtree';
  --titulos: var(--fuente-titulos), system-ui, sans-serif; --f: var(--fuente-texto), system-ui, sans-serif;
  --m: clamp(1.25rem, 5vw, 4rem); --ancho: 82rem; --r: .9rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 7.5rem; overflow-x: clip; }
body { margin: 0; background: var(--fondo); color: var(--tinta); font: 400 1.125rem/1.6 var(--f); overflow-x: clip; }
body.bloq { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--acento); outline-offset: 3px; border-radius: 6px; }
.cont { max-width: var(--ancho); margin: 0 auto; padding: 0 var(--m); }
h1, h2 { font-family: var(--titulos); font-weight: 600; letter-spacing: -0.01em; line-height: 1.05; }

/* Las barras del logo */
.barras-logo { display: inline-flex; align-items: flex-end; gap: .22em; height: 1em; }
.barras-logo i { width: .2em; border-radius: 99px; background: var(--gris-logo); }
.barras-logo i:nth-child(1) { height: 45%; }
.barras-logo i:nth-child(2) { height: 75%; }
.barras-logo i:nth-child(3) { height: 100%; background: var(--acento); }
.barras-logo i:nth-child(4) { height: 65%; background: var(--acento); }
.barras-logo i:nth-child(5) { height: 35%; }
.titulo-sec { font-size: clamp(2rem, 4.2vw, 3rem); }
.titulo-sec .barras-logo { display: flex; font-size: 1.6rem; margin-bottom: .7rem; }

/* Botones */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 3.4rem; padding: .8rem 1.5rem; border-radius: .8rem; border: 0; font: 600 1.08rem/1.2 var(--f); text-decoration: none; cursor: pointer; transition: background .15s, transform .1s; }
.btn:active { transform: scale(.98); }
.btn svg { width: 1.4rem; height: 1.4rem; flex: none; }
.btn-agenda { background: var(--acento); color: var(--sobre-acento); }
.btn-agenda:hover { filter: brightness(1.06); }
.btn-wa { background: var(--verde); color: #fff; }
.btn-wa:hover { background: var(--verde-osc); }
.btn-borde { background: #fff; color: var(--tinta); box-shadow: inset 0 0 0 1.5px var(--tinta); }
.btn-borde:hover { background: var(--suave); }
.btn[disabled] { background: var(--linea); color: #8a979c; cursor: default; box-shadow: none; }
.enlace { font-weight: 600; text-decoration: underline; text-decoration-color: var(--acento); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.enlace:hover { color: var(--acento-osc); }

/* Barra de arriba y cabecera */
.barra-tel { background: var(--gris-logo); color: #fff; font-size: .95rem; }
.barra-tel .cont { display: flex; flex-wrap: wrap; gap: .2rem 2rem; justify-content: space-between; padding-block: .5rem; }
.barra-tel a { color: #fff; font-weight: 600; text-decoration: none; }
.barra-tel span { color: #d5dadd; }
.cabecera { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--linea); }
.cabecera .cont { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 5.25rem; }
.cabecera .logo img { height: 3.9rem; width: auto; }
.cabecera nav { display: none; gap: 2.2rem; font-weight: 500; }
.cabecera nav a { text-decoration: none; }
.cabecera nav a:hover, .cabecera nav .abre:hover { color: var(--acento-osc); }
.cabecera nav .abre { background: none; border: 0; padding: .5rem 0; font: inherit; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; }
.cabecera nav .abre::after { content: ''; width: .45rem; height: .45rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.cabecera nav .abre[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-1px); }
.con-desplegable { position: relative; }
.desplegable { position: absolute; top: calc(100% + 1rem); left: -1.2rem; width: 26rem; background: #fff; border-radius: var(--r); box-shadow: 0 20px 50px -15px rgba(31, 39, 44, .3), 0 0 0 1px var(--linea); padding: .5rem; display: none; }
.desplegable.ver { display: block; }
.desplegable a { display: block; padding: .6rem .85rem; border-radius: .6rem; text-decoration: none; }
.desplegable a:hover, .desplegable a:focus-visible { background: var(--suave); }
.desplegable b { display: block; font-weight: 600; }
.desplegable small { color: var(--gris); font-size: .9rem; }
.cab-acc { display: flex; gap: .5rem; align-items: center; }
.cabecera .btn { min-height: 3rem; padding: .6rem 1.15rem; font-size: 1rem; }
.btn-cab { background: var(--gris-logo); color: #fff; }
.btn-cab:hover { background: var(--tinta); }
.btn-cab svg { width: 1.2rem; height: 1.2rem; }
.menu-btn { min-height: 3rem; padding: .5rem 1rem; border-radius: .8rem; border: 1.5px solid var(--linea); background: #fff; font-weight: 600; cursor: pointer; font-size: 1rem; }
.menu-movil { display: none; border-top: 1px solid var(--linea); max-height: calc(100svh - 6rem); overflow-y: auto; padding: .25rem var(--m) 1.25rem; }
.menu-movil.ver { display: block; }
.menu-movil p { font-size: .9rem; color: var(--gris); margin: .9rem 0 .2rem; }
.menu-movil a { display: block; padding: .65rem 0; text-decoration: none; border-bottom: 1px solid var(--linea); }
.menu-movil a b { display: block; font-weight: 600; }
.menu-movil a small { color: var(--gris); font-size: .9rem; }
.menu-movil .secundarios a { font-weight: 600; }
.aparece { transition: opacity .2s, transform .2s, visibility .2s; }
.aparece.oculto { opacity: 0; visibility: hidden; pointer-events: none; }
@media (max-width: 899px) { .cabecera .cab-acc .btn-cab { display: none; } }

/* Portada */
.portada { display: grid; gap: 1.75rem; padding-block: 1.25rem 3.5rem; }
.portada .foto { position: relative; isolation: isolate; }
.portada .foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 40% 30%; border-radius: var(--r); }
.portada .foto .barras-logo { position: absolute; z-index: -1; right: -.4rem; top: -1.4rem; font-size: 4rem; gap: .8rem; align-items: flex-start; }
.portada .foto .barras-logo i { height: auto !important; }
.portada .foto .barras-logo i:nth-child(1) { height: 40% !important; } .portada .foto .barras-logo i:nth-child(2) { height: 70% !important; } .portada .foto .barras-logo i:nth-child(3) { height: 100% !important; } .portada .foto .barras-logo i:nth-child(4) { height: 60% !important; } .portada .foto .barras-logo i:nth-child(5) { height: 30% !important; }
.portada .foto .barras-logo i { width: .6rem; }
.portada h1 { font-size: clamp(2.4rem, 5.6vw, 4.1rem); line-height: 1.08; max-width: 13ch; margin-top: 1rem; }
.portada .bajada { font-size: 1.2rem; color: var(--gris); margin-top: 1.1rem; max-width: 34ch; }
.portada .acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; }
.portada .sello { display: flex; gap: .65rem; align-items: center; margin-top: 2rem; font-size: 1rem; color: var(--gris); max-width: 30rem; }
.portada .sello svg { width: 1.6rem; height: 1.6rem; color: var(--gris-logo); flex: none; }

/* Especialidades: un índice */
.sec { padding-block: clamp(3.5rem, 8vw, 5.5rem); }
.sec .intro { color: var(--gris); font-size: 1.15rem; margin-top: .9rem; max-width: 44ch; }
.indice { margin-top: 2.25rem; display: grid; gap: 0; }
.indice .fila { width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--linea); padding: 1.05rem 0 1.05rem 1.1rem; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; align-items: center; position: relative; }
.indice .fila:last-of-type { border-bottom: 1px solid var(--linea); }
.indice .fila::before { content: ''; position: absolute; left: 0; top: 1.15rem; bottom: 1.15rem; width: 4px; border-radius: 99px; background: var(--linea); transition: background .2s; }
.indice .fila:hover::before { background: var(--gris-logo); }
.indice .fila.si::before { background: var(--acento); }
.indice .fila b { font-family: var(--titulos); font-weight: 600; font-size: 1.35rem; line-height: 1.2; }
.indice .fila small { grid-column: 1; color: var(--gris); font-size: 1rem; }
.indice .fila .flecha { grid-row: 1 / span 2; grid-column: 2; width: 2.3rem; height: 2.3rem; border-radius: 50%; display: grid; place-items: center; background: var(--suave); transition: transform .25s, background .2s; font-size: 1.1rem; }
.indice .fila.si .flecha { background: var(--tinta); color: #fff; transform: rotate(90deg); }
.detalle { display: grid; gap: 1.1rem; padding: .25rem 0 1.75rem 1.1rem; }
.detalle h3 { font-family: var(--titulos); font-weight: 600; font-size: 2rem; line-height: 1.1; display: none; }
.detalle p { font-size: 1.1rem; color: var(--gris); max-width: 48ch; }
.detalle .quien { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; }
.detalle .quien div { display: flex; gap: .7rem; align-items: center; }
.detalle .quien img { width: 3.6rem; height: 3.6rem; border-radius: 50%; object-fit: cover; }
.detalle .quien b { display: block; font-weight: 600; line-height: 1.25; }
.detalle .quien span { font-size: .95rem; color: var(--gris); }
.detalle .equipo-todo { color: var(--gris); font-size: 1rem; }
.detalle .btn { justify-self: start; }
@media (prefers-reduced-motion: no-preference) { .detalle.entra { animation: entra .3s ease both; } @keyframes entra { from { opacity: 0; transform: translateY(.4rem); } } }

/* Compromiso: la clínica */
.compromiso { background: var(--suave); }
.compromiso .grid { display: grid; gap: 2.5rem; }
.compromiso .fotos { display: grid; grid-template-columns: 1.25fr 1fr; gap: .75rem; align-items: end; }
.compromiso .fotos img { width: 100%; border-radius: var(--r); object-fit: cover; }
.compromiso .fotos img:first-child { aspect-ratio: 4 / 4.4; }
.compromiso .fotos img:last-child { aspect-ratio: 4 / 3.3; }
.compromiso ul { list-style: none; padding: 0; margin-top: 1.75rem; display: grid; gap: 1.1rem; }
.compromiso li { display: grid; grid-template-columns: auto 1fr; gap: .9rem; font-size: 1.12rem; align-items: start; }
.compromiso li::before { content: ''; width: 4px; height: 1.4rem; margin-top: .2rem; border-radius: 99px; background: var(--acento); }
.compromiso li:nth-child(2)::before { background: var(--gris-logo); }

/* Staff clínico */
.staff { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(11.5rem, 1fr); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .75rem; margin-top: 2.25rem; scrollbar-width: thin; }
.miembro { scroll-snap-align: start; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; display: flex; flex-direction: column; justify-content: flex-start; align-self: start; }
.miembro .ret { overflow: hidden; border-radius: var(--r); }
.miembro img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .35s ease; }
.miembro:hover img { transform: scale(1.04); }
.miembro b { display: block; margin-top: .7rem; font-weight: 600; line-height: 1.3; }
.miembro span { display: block; color: var(--gris); font-size: .95rem; }
.ficha { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 1rem; background: rgba(31, 39, 44, .5); opacity: 0; pointer-events: none; transition: opacity .2s; }
.ficha.ver { opacity: 1; pointer-events: auto; }
.ficha .caja { background: #fff; border-radius: 1.1rem; width: min(26rem, 100%); overflow: hidden; transform: translateY(.75rem); transition: transform .25s ease; }
.ficha.ver .caja { transform: none; }
.ficha img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; object-position: 50% 25%; }
.ficha .txt { padding: 1.25rem 1.4rem 1.4rem; display: grid; gap: .5rem; }
.ficha h3 { font-family: var(--titulos); font-size: 1.5rem; font-weight: 600; line-height: 1.15; }
.ficha .esp { color: var(--acento-osc); font-weight: 600; }
.ficha p { color: var(--gris); }
.ficha .acc { display: flex; gap: .5rem; margin-top: .75rem; }
.ficha .acc .btn { flex: 1; min-height: 3.1rem; font-size: 1rem; }

/* ¡Te esperamos! */
.llegar .grid { display: grid; gap: 2rem; margin-top: 2.25rem; }
.llegar iframe { width: 100%; height: 22rem; border: 0; border-radius: var(--r); background: var(--suave); }
.llegar dl { display: grid; gap: 1.2rem; }
.llegar dt { font-size: .95rem; color: var(--gris); }
.llegar dd { margin: .15rem 0 0; font-size: 1.15rem; font-weight: 500; }

/* Pie */
.pie { border-top: 1px solid var(--linea); padding-block: 2rem 6.5rem; font-size: .95rem; }
.pie .grid { display: grid; gap: 2rem; }
.pie img { height: 2.8rem; width: auto; }
.pie h4 { font-family: var(--titulos); font-weight: 600; font-size: 1.05rem; margin-bottom: .6rem; }
.pie ul { list-style: none; padding: 0; display: grid; gap: .35rem; color: var(--gris); }
.pie a { text-decoration: none; }
.pie a:hover { color: var(--acento-osc); }
.pie .abajo { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--linea); color: var(--gris); font-size: .9rem; }

/* WhatsApp para dudas y barra del celular */
.flotante { position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 15; display: none; box-shadow: 0 10px 30px -8px rgba(31, 170, 83, .6); border-radius: 999px; padding-inline: 1.3rem; font-size: 1rem; }
.barra-movil { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; display: grid; grid-template-columns: 1fr auto; gap: .6rem; padding: .65rem .8rem calc(.65rem + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--linea); }
.barra-movil .btn { min-height: 3.3rem; padding: .6rem; font-size: 1.08rem; }
.barra-movil .btn-wa { width: 3.3rem; padding: 0; border-radius: 50%; }
.barra-movil .btn-wa svg { width: 1.6rem; height: 1.6rem; }
.barra-movil.aparece.oculto { transform: translateY(100%); }

/* Panel de la agenda: compacto (letra de 16 px adentro), 3 pasos, resumen editable arriba */
.velo { position: fixed; inset: 0; background: rgba(29, 42, 48, .5); z-index: 30; opacity: 0; pointer-events: none; transition: opacity .25s; }
.velo.ver { opacity: 1; pointer-events: auto; }
.panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 31; width: 100%; background: #fff; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .32s cubic-bezier(.2,.8,.2,1); visibility: hidden; font-size: 1rem; }
.panel.ver { transform: none; visibility: visible; }
.panel .cab-p { display: flex; align-items: center; gap: .75rem; padding: .7rem 1.1rem; border-bottom: 1px solid var(--linea); }
.panel .cab-p img { height: 2.1rem; width: auto; }
.panel .cab-p .titulo-p { font-weight: 600; margin-left: auto; }
.cerrar { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 0; background: var(--suave); cursor: pointer; font-size: 1rem; flex: none; }
.cerrar:hover { background: var(--linea); }
.pasos-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; padding: .85rem 1.1rem .1rem; }
.pasos-nav button { background: none; border: 0; padding: 0; text-align: left; font-size: .82rem; color: var(--gris); cursor: pointer; }
.pasos-nav button[disabled] { cursor: default; }
.pasos-nav button:not([disabled]):hover { color: var(--tinta); }
.pasos-nav i { display: block; height: .3rem; border-radius: 999px; background: var(--linea); margin-bottom: .35rem; position: relative; overflow: hidden; }
.pasos-nav i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: 0; background: var(--tinta); border-radius: inherit; transition: width .4s ease; }
.pasos-nav .hecho i::after { width: 100%; }
.pasos-nav .ahora i::after { width: 100%; background: var(--acento); }
.pasos-nav .ahora { color: var(--tinta); font-weight: 600; }
.ticket { display: flex; flex-wrap: wrap; gap: .35rem; padding: .55rem 1.1rem 0; }
.ticket:empty { display: none; }
.ticket button { display: inline-flex; align-items: center; gap: .35rem; background: var(--suave); border: 0; border-radius: 999px; padding: .28rem .6rem .28rem .3rem; font-size: .84rem; font-weight: 500; cursor: pointer; transition: background .15s; }
.ticket button:hover { background: var(--linea); }
.ticket button:not(:has(img)) { padding-left: .65rem; }
.ticket img { width: 1.45rem; height: 1.45rem; border-radius: 50%; object-fit: cover; }
.ticket .lapiz { color: var(--gris); font-size: .78rem; }
.ticket button.pulso { animation: pulso .55s ease; }
@keyframes pulso { 45% { transform: scale(1.07); background: var(--tenue); } }
.cuerpo-p { flex: 1; overflow-y: auto; padding: .9rem 1.1rem 1.25rem; }
.cuerpo-p.entra-der { animation: entraDer .26s ease both; }
.cuerpo-p.entra-izq { animation: entraIzq .26s ease both; }
@keyframes entraDer { from { opacity: 0; transform: translateX(1.5rem); } }
@keyframes entraIzq { from { opacity: 0; transform: translateX(-1.5rem); } }
.cuerpo-p h3 { font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: .8rem; }
.segmento { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: var(--suave); border-radius: .8rem; padding: .25rem; margin-bottom: .9rem; }
.segmento .fondo { position: absolute; top: .25rem; bottom: .25rem; left: .25rem; width: calc(50% - .25rem); background: #fff; border-radius: .6rem; box-shadow: 0 1px 3px rgba(29, 42, 48, .16); transition: transform .28s cubic-bezier(.2,.8,.2,1); }
.segmento[data-v="profesional"] .fondo { transform: translateX(100%); }
.segmento button { position: relative; z-index: 1; border: 0; background: none; padding: .55rem; border-radius: .6rem; font-weight: 600; font-size: .93rem; color: var(--gris); cursor: pointer; transition: color .2s; }
.segmento button[aria-pressed="true"] { color: var(--tinta); }
.opciones { display: grid; gap: .45rem; }
.opcion { display: flex; align-items: center; gap: .75rem; width: 100%; min-height: 3.4rem; text-align: left; background: #fff; border: 1.5px solid var(--linea); border-radius: .85rem; padding: .55rem .8rem; cursor: pointer; transition: border-color .15s, background .15s, transform .1s; }
.opcion:hover { border-color: #9aa8ad; }
.opcion:active { transform: scale(.99); }
.opcion.si { border-color: var(--acento); background: var(--tenue); }
.opcion img { width: 2.6rem; height: 2.6rem; border-radius: 50%; object-fit: cover; flex: none; }
.opcion b { display: block; font-size: 1rem; font-weight: 600; line-height: 1.3; }
.opcion small { display: block; color: var(--gris); font-size: .85rem; line-height: 1.35; margin-top: .1rem; }
.opcion .marca { margin-left: auto; width: 1.35rem; height: 1.35rem; border-radius: 50%; border: 1.5px solid var(--linea); flex: none; display: grid; place-items: center; transition: background .2s, border-color .2s; }
.opcion .marca svg { width: .8rem; height: .8rem; color: var(--sobre-acento); opacity: 0; }
.opcion.si .marca { background: var(--acento); border-color: var(--acento); }
.opcion.si .marca svg { opacity: 1; }
.opcion.nuevo .marca { animation: pop .32s ease; }
@keyframes pop { 50% { transform: scale(1.3); } }
.sub { margin: 1.25rem 0 .5rem; font-weight: 600; }
.sub-quien { animation: entraAbajo .3s ease both; }
@keyframes entraAbajo { from { opacity: 0; transform: translateY(-.4rem); } }
.elegido { display: flex; align-items: center; gap: .7rem; background: var(--suave); border-radius: .85rem; padding: .55rem .8rem; margin-bottom: 1rem; }
.elegido img { width: 2.4rem; height: 2.4rem; border-radius: 50%; object-fit: cover; }
.elegido b { display: block; font-size: .98rem; line-height: 1.25; }
.elegido span { color: var(--gris); font-size: .85rem; }
.elegido .cambiar { margin-left: auto; border: 0; background: none; color: var(--acento-osc); font-weight: 600; font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: .4rem; }
.semana-cab { display: flex; align-items: center; justify-content: space-between; margin-bottom: .55rem; }
.semana-cab b { font-size: .98rem; }
.semana-cab button { width: 2.4rem; height: 2.4rem; border-radius: .7rem; border: 1.5px solid var(--linea); background: #fff; cursor: pointer; font-size: 1.1rem; }
.semana-cab button[disabled] { opacity: .35; cursor: default; }
.dias { display: grid; grid-template-columns: repeat(5, 1fr); gap: .35rem; }
.dia { min-height: 3.9rem; border-radius: .75rem; border: 1.5px solid var(--linea); background: #fff; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15; transition: border-color .15s, background .15s; }
.dia:hover:not([disabled]) { border-color: #9aa8ad; }
.dia small { font-size: .74rem; color: var(--gris); text-transform: capitalize; }
.dia b { font-size: 1.15rem; }
.dia em { font-style: normal; font-size: .66rem; font-weight: 600; color: var(--verde-osc); margin-top: .1rem; }
.dia.si { background: var(--tinta); border-color: var(--tinta); color: #fff; }
.dia.si small { color: #c5d0d4; }
.dia.si em { color: #9fe3b6; }
.dia[disabled] { opacity: .35; cursor: default; }
.franjas { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
.ejemplo { display: inline-flex; align-items: center; gap: .35rem; background: var(--tenue); color: var(--acento-osc); font-weight: 600; font-size: .8rem; padding: .25rem .6rem; border-radius: 999px; margin-top: 1.1rem; }
.ejemplo svg { width: .95rem; height: .95rem; }
.grupo-horas { margin-top: .8rem; }
.grupo-horas p { font-weight: 600; font-size: .92rem; margin-bottom: .4rem; }
.grupo-horas p span { color: var(--gris); font-weight: 400; }
.horas { display: grid; grid-template-columns: repeat(4, 1fr); gap: .35rem; }
.hora { min-height: 2.6rem; border-radius: .65rem; border: 1.5px solid var(--linea); background: #fff; cursor: pointer; font-weight: 600; font-size: .95rem; transition: border-color .15s, background .15s, transform .1s; }
.hora:hover:not([disabled]) { border-color: var(--tinta); }
.hora:active:not([disabled]) { transform: scale(.96); }
.hora.si { background: var(--tinta); border-color: var(--tinta); color: #fff; }
.hora[disabled] { background: var(--suave); border-color: var(--suave); color: #a3aeb2; text-decoration: line-through; cursor: default; }
.horas.cascada .hora { animation: entraAbajo .25s ease both; animation-delay: calc(var(--i) * 22ms); }
.horas .esqueleto { height: 2.6rem; border-radius: .65rem; background: linear-gradient(90deg, var(--suave) 25%, #e6ebed 50%, var(--suave) 75%); background-size: 200% 100%; animation: brillo .9s linear infinite; }
@keyframes brillo { to { background-position: -200% 0; } }
.sin-dia { color: var(--gris); margin-top: 1rem; font-size: .95rem; }
.aparece { transition: opacity .2s, transform .2s, visibility .2s; }
.aparece.oculto { opacity: 0; visibility: hidden; pointer-events: none; }
.barra-movil.aparece.oculto { transform: translateY(100%); }
.aviso { display: flex; gap: .6rem; background: var(--suave); border-radius: .85rem; padding: .7rem .85rem; margin-top: 1rem; font-size: .86rem; color: var(--gris); line-height: 1.45; }
.aviso svg { width: 1.1rem; height: 1.1rem; flex: none; margin-top: .1rem; color: var(--tinta); }
.campo { margin-bottom: 1rem; }
.campo label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .95rem; }
.campo input { width: 100%; font: inherit; font-size: 1.05rem; min-height: 3rem; padding: .6rem .9rem; border: 1.5px solid var(--linea); border-radius: .8rem; transition: border-color .15s; }
.campo input:focus { outline: none; border-color: var(--tinta); }
.pregunta-p { font-weight: 600; font-size: .95rem; margin-bottom: .4rem; }
.vista-wa { margin-top: 1.25rem; background: #efe9e1; border-radius: .9rem; padding: .9rem; }
.vista-wa small { display: block; color: var(--gris); font-size: .78rem; margin-bottom: .45rem; }
.vista-wa p { background: #dcf8c6; border-radius: .8rem .8rem .2rem .8rem; padding: .6rem .75rem; font-size: .92rem; line-height: 1.45; margin-left: 1.5rem; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.pie-p { display: flex; gap: .5rem; padding: .75rem 1.1rem calc(.75rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--linea); }
.pie-p .btn { flex: 1; min-height: 3.1rem; font-size: 1.02rem; padding: .6rem 1rem; }
.pie-p .volver { flex: 0 0 auto; }
.btn.late { animation: late .55s ease; }
@keyframes late { 40% { transform: scale(1.03); box-shadow: 0 0 0 6px var(--tenue); } }
.listo { text-align: center; padding: 2rem .5rem; }
.listo .ok { width: 4rem; height: 4rem; border-radius: 50%; background: #e6f6ec; color: var(--verde-osc); display: grid; place-items: center; margin: 0 auto 1.1rem; }
.listo .ok svg { width: 2rem; height: 2rem; }
.listo .ok path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: trazo .45s .15s ease forwards; }
@keyframes trazo { to { stroke-dashoffset: 0; } }
.listo p { color: var(--gris); margin-top: .5rem; font-size: .95rem; }
@media (prefers-reduced-motion: reduce) {
  .panel *, .panel { animation: none !important; transition: none !important; }
  .listo .ok path { stroke-dashoffset: 0; }
}

@media (min-width: 900px) {
  .cabecera nav { display: flex; align-items: center; }
  .menu-btn, .menu-movil, .menu-movil.ver { display: none; }
  .cabecera .logo img { height: 5rem; }
  .cabecera .cont { min-height: 6.5rem; }
  /* La foto llega al borde derecho de la pantalla; el texto queda sobre blanco */
  .portada { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); align-items: center; gap: clamp(3rem, 6vw, 6rem); padding-block: clamp(3rem, 7vh, 5rem) clamp(4rem, 9vh, 6.5rem); }
  .portada .foto { order: 2; margin-right: calc(-1 * (max(0px, (100vw - var(--ancho)) / 2) + var(--m))); }
  .portada .foto img { aspect-ratio: auto; height: clamp(26rem, 68vh, 40rem); object-position: 35% 30%; border-radius: var(--r) 0 0 var(--r); }
  .portada .foto .barras-logo { left: -2.6rem; right: auto; top: auto; bottom: 2.5rem; font-size: 9rem; gap: 1rem; align-items: flex-end; }
  .portada .foto .barras-logo i { width: .75rem; }
  .esp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(3rem, 6vw, 6rem); align-items: start; margin-top: 2.25rem; }
  .esp-grid .indice { margin-top: 0; }
  .indice .detalle { display: none; }
  .panel-esp { position: sticky; top: 8.5rem; background: var(--suave); border-radius: 1.1rem; padding: 2.25rem; }
  .panel-esp .detalle { padding: 0; gap: 1.25rem; }
  .panel-esp .detalle h3 { display: block; }
  .staff { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(11rem, 13.5rem)); overflow: visible; }
  .compromiso .grid { grid-template-columns: 1.1fr 1fr; gap: 4.5rem; align-items: center; }
  .llegar .grid { grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: start; }
  .llegar iframe { height: 26rem; }
  .pie .grid { grid-template-columns: 1.2fr 2fr auto; gap: 3rem; align-items: start; }
  .pie .contacto-sedes { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .35rem 2rem; }
  .pie { padding-bottom: 6rem; } /* el botón flotante de WhatsApp no tapa la firma */
  .flotante { display: inline-flex; }
  .barra-movil { display: none; }
  .panel { width: 30rem; box-shadow: -20px 0 60px -20px rgba(31, 39, 44, .35); }
}
@media (max-width: 899px) { .panel-esp { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .miembro img, .ficha, .ficha .caja { transition: none; } }

/* Piezas que dependen de los datos de cada clínica */
[hidden] { display: none !important; }
.nombre-texto { font-family: var(--titulos); font-weight: 600; font-size: 1.35rem; line-height: 1.1; text-decoration: none; }
.miembro .ret.sin-foto { aspect-ratio: 4 / 5; background: var(--suave); }
.compromiso .grid.sin-fotos { grid-template-columns: 1fr; }
.llegar .grid.sin-mapa { grid-template-columns: 1fr; }
.resenas { background: var(--suave); }
.resenas .citas { list-style: none; padding: 0; margin-top: 2rem; display: grid; gap: 1.5rem; }
.resenas li { border-left: 4px solid var(--acento); padding-left: 1.25rem; }
.resenas blockquote { margin: 0; font-size: 1.12rem; }
.resenas li p { color: var(--gris); margin-top: .5rem; font-weight: 600; font-size: 1rem; }
.fuente-resenas { margin-top: 1.5rem; }
.convenios { display: grid; gap: 2rem; }
.convenios h3 { font-family: var(--titulos); font-weight: 600; font-size: 1.3rem; margin-bottom: .75rem; }
.convenios .fichas { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.convenios .fichas li { background: var(--suave); border-radius: 999px; padding: .4rem .9rem; font-size: 1rem; }
.pie .pie-bajada { color: var(--gris); margin-top: 1rem; max-width: 28ch; }
.pie .firma { display: inline-flex; align-items: center; gap: .4rem; color: var(--gris); }
.pie .firma-logo { display: inline-flex; color: var(--tinta); }
.pie .firma-logo svg { height: 1rem; width: auto; }
.barra-movil.sin-redondo { grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .portada.sin-foto { grid-template-columns: 1fr; }
  .resenas .citas { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
  .convenios { grid-template-columns: 1fr 1fr; }
}

/* Varias sedes */
.barra-tel .sedes-tel .sep { color: #d5dadd; }
.llegar .sedes { display: grid; gap: 2.5rem; margin-top: 2.25rem; }
.llegar .sede h3 { font-family: var(--titulos); font-weight: 600; font-size: 1.5rem; margin-bottom: 1rem; }
.llegar .sede img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); margin-bottom: .75rem; }
.llegar .sede iframe { height: 16rem; margin-bottom: 1.25rem; }
.llegar .comun { margin-top: 2rem; }
.vista-wa.correo { background: var(--suave); }
.vista-wa.correo p { background: #fff; margin-left: 0; border-radius: .8rem; }
@media (min-width: 900px) { .llegar .sedes { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 3rem; } }
.compromiso .fotos img:only-child { grid-column: 1 / -1; aspect-ratio: 4 / 3.4; }
