/* Caso OdontoFamilia (prefijo cod-). Se carga después de caso.css. */

/* Portada: el sitio en computador con el celular delante */
.cod-stage .cs-win { margin-right: clamp(40px, 7%, 90px); }
.cod-phone { position: absolute; z-index: 3; right: clamp(18px, 4%, 52px); top: 50%; width: clamp(92px, 9.5vw, 138px); aspect-ratio: 9 / 19.4; margin-top: clamp(-130px, -9vw, -80px); padding: 5px; border-radius: 22px; background: #0d1219; box-shadow: 0 24px 60px rgba(29, 42, 61, .3); overflow: hidden; }
.cod-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 17px; }

/* Resultados: el cuarto lugar en Google */
.cod-serp { display: grid; align-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cod-serp li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .08); }
.cod-serp li.is-you { background: var(--lime); color: var(--on-lime); }
.cod-serp b { display: block; font-weight: 600; font-size: 1.0625rem; }
.cod-serp small { display: block; font-size: .8125rem; }
.cod-pos { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .12); font-weight: 600; font-size: .9375rem; }
.cod-serp li.is-you .cod-pos { background: var(--navy); color: var(--lime); }
.cod-skel { flex: 1; display: grid; gap: 6px; }
.cod-skel i { display: block; height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .2); }
.cod-skel i + i { width: 62%; opacity: .6; }
.cs-proof .cod-wide { grid-column: span 6; }
.cod-wide strong { padding-right: 64px; }

/* El contexto: el paciente busca y la clínica no aparece */
.cod-find { width: min(100%, 460px); padding: 18px 20px; font-size: 1rem; }
.cod-find-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .875rem; color: var(--ui-soft); font-weight: 500; }
.cod-sbar { display: flex; align-items: center; gap: 10px; min-height: 48px; margin-top: 12px; padding: 0 16px; border-radius: 999px; background: var(--ui-line); font-weight: 500; }
.cod-sbar svg { width: 18px; height: 18px; flex: none; color: var(--ui-soft); }
.cod-caret { width: 2px; height: 1.15em; margin-left: -6px; background: var(--ui-ink); opacity: 0; }
.cod-res { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.cod-res li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--ui-line); }
.cod-res .cod-skel i { background: var(--ui-soft); opacity: .28; }
.cod-res .cod-skel i + i { opacity: .16; }
.cod-res-ico { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--ui-bg); color: var(--ui-soft); }
.cod-res-ico svg { width: 17px; height: 17px; }
.cod-miss { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: #fdecea; color: #8a1f17; font-size: .875rem; line-height: 1.3; }
.cod-miss svg { flex: none; width: 26px; height: 26px; color: #c2362f; }
.cod-miss b { display: block; font-size: 1rem; font-weight: 600; }

/* Las especialidades: la búsqueda lleva a su propia página */
#cod-especialidades .sec-head > div { max-width: 70rem; }
.cod-spec { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap); align-items: stretch; padding-inline: clamp(8px, 2vw, 28px); }
.cod-rot { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: clamp(22px, 2.6vw, 40px); border-radius: var(--tile-r); background: rgba(255, 255, 255, .06); }
.cod-q { display: flex; align-items: center; gap: 10px; margin: 0; padding: 14px 18px; border-radius: 999px; font-size: 1.0625rem; font-weight: 500; }
.cod-q svg { flex: none; width: 18px; height: 18px; color: var(--ui-soft); }
.cod-arrow { display: grid; place-items: center; width: 34px; height: 34px; margin-inline: auto; border-radius: 50%; background: var(--lime); color: var(--on-lime); }
.cod-arrow svg { width: 18px; height: 18px; }
.cod-page { padding: 0 8px 8px; border-radius: 16px; }
.cod-page-in { display: grid; justify-items: start; gap: 10px; padding: 20px; border-radius: 8px; background: #ffffff; color: #1d2a3d; }
.cod-page-k { padding: 3px 10px; border-radius: 999px; background: #e9f0d0; color: #3d4600; font-size: .8125rem; font-weight: 600; }
.cod-page-h { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; color: #0f4c5c; }
.cod-lines { display: grid; gap: 6px; width: 100%; }
.cod-lines i { display: block; height: 8px; border-radius: 8px; background: #e3e7e3; }
.cod-lines i:nth-child(2) { width: 88%; }
.cod-lines i:nth-child(3) { width: 64%; }
.cod-page-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; padding: 10px 16px; border-radius: 999px; background: #c5d82e; color: #0f3b46; font-weight: 600; font-size: .9375rem; }
.cod-page-cta svg { width: 18px; height: 18px; }
.cod-eg { font-size: .8125rem; font-weight: 600; color: #aeb9c7; text-align: center; }
.cod-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.cod-card { gap: 0; transition: background-color .3s ease, color .3s ease, translate .18s var(--ease-out); }
.cod-card:hover { translate: 0 -4px; }
.cod-card-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface); font-size: .875rem; font-weight: 600; transition: background-color .3s ease, color .3s ease; }
.cod-card h3 { margin-top: 16px; font-size: clamp(1.25rem, 1.05rem + .6vw, 1.625rem); font-weight: 600; letter-spacing: -0.022em; line-height: 1.15; }
.cod-card p { margin-top: 8px; color: var(--soft); line-height: 1.4; }
.cod-card.is-on { background: var(--lime); color: var(--on-lime); }
.cod-card.is-on p { color: #2c3a4f; }
.cod-card.is-on .cod-card-n { background: var(--navy); color: var(--lime); }

/* Reserva de horas */
.cod-book { width: min(100%, 440px); padding: 18px 20px; font-size: 1rem; }
.cod-book-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cod-book-h b { font-size: 1.125rem; font-weight: 600; }
.cod-book-s { margin-top: 2px; font-size: .875rem; color: var(--ui-soft); }
.cod-days { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-top: 14px; }
.cod-times { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.cod-days span, .cod-times span { display: grid; place-items: center; min-height: 40px; border-radius: 10px; background: var(--ui-line); font-size: .875rem; font-weight: 500; font-variant-numeric: tabular-nums; transition: background-color .25s ease, color .25s ease; }
.cod-days span.is-on, .cod-times span.is-on { background: var(--navy); color: var(--lime); }
.cod-wa { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 14px; border-radius: 14px 14px 14px 4px; background: #dcf7e3; color: #13502c; font-size: .875rem; line-height: 1.3; }
.cod-wa b { display: block; font-size: .9375rem; font-weight: 600; }
.cod-wa-ico { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: #1f9d55; color: #ffffff; }
.cod-wa-ico svg { width: 17px; height: 17px; }

/* SEO local */
.cod-schema { width: 100%; }
.cod-schema-h { font-weight: 600; margin-bottom: 10px; }
.cod-schema-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.cod-schema-grid span { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 10px 12px; border-radius: 10px; background: #f0f3f1; font-weight: 500; overflow-wrap: anywhere; }
.cod-schema-grid svg { flex: none; width: 18px; height: 18px; color: #5f6800; }

/* Confianza */
.cod-trust { display: grid; gap: 8px; width: 100%; margin: 0; padding: 0; list-style: none; }
.cod-trust li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .08); line-height: 1.25; }
.cod-trust li > span:nth-child(2) { flex: 1; min-width: 0; font-size: .875rem; color: #c8d1dc; }
.cod-trust b { display: block; font-size: 1rem; font-weight: 600; color: #ffffff; }
.cod-trust-ico { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--lime); color: var(--on-lime); }
.cod-trust-ico svg { width: 18px; height: 18px; }
.cod-ok { flex: none; width: 20px; height: 20px; color: var(--lime); }

/* Pensado para el celular */
.cod-mob-art { justify-content: center; gap: 0; min-height: 0; }
.cod-phone2 { position: relative; width: clamp(150px, 15vw, 200px); aspect-ratio: 9 / 17; padding: 6px; border-radius: 28px; background: #0d1219; overflow: hidden; }
.cod-phone2 img { width: 100%; height: auto; border-radius: 22px; }
.cod-tap { position: relative; z-index: 2; display: flex; align-items: center; gap: 8px; margin: 0 0 0 -28px; align-self: flex-end; margin-bottom: 18%; padding: 12px 18px; border-radius: 999px; background: #c5d82e; color: #0f3b46; font-weight: 600; font-size: .9375rem; box-shadow: 0 14px 34px rgba(29, 42, 61, .2); }
.cod-tap svg { width: 18px; height: 18px; }

/* Números de la clínica */
.cod-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.cod-nums .stat { grid-column: auto; }
.stat.cod-navy { background: var(--navy); color: #f2f5f8; }
.stat.cod-navy .stat-l { color: #c8d1dc; }
.stat.cod-navy > svg { color: var(--lime); }

/* Testimonio */
.cod-quote { margin: 0; padding-right: clamp(var(--tile-pad), 14vw, 220px); }
.cod-quote .tile-copy { max-width: 46em; }
.cod-quote blockquote { font-size: var(--t-lead); line-height: 1.3; letter-spacing: -0.018em; font-weight: 500; }
.cod-quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: 20px; font-size: var(--t-small); color: var(--soft); line-height: 1.3; }
.cod-quote figcaption b { display: block; color: var(--ink); font-weight: 600; }
.cod-av { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--lime); color: var(--on-lime); font-weight: 600; }
.cod-quote-3d { width: clamp(90px, 10vw, 160px); right: clamp(16px, 3vw, 48px); top: 50%; margin-top: clamp(-80px, -5vw, -45px); }

/* Modo oscuro */
html.dark .t-white .cod-wa { background: rgba(127, 227, 174, .14); color: #7fe3ae; }
html.dark .t-white .cod-miss { background: rgba(255, 138, 128, .14); color: #ffb4ab; }
html.dark .t-white .cod-miss svg { color: #ff8a80; }
html.dark .t-white .cod-days span.is-on, html.dark .t-white .cod-times span.is-on { background: var(--lime); color: var(--on-lime); }
html.dark .cod-card.is-on .cod-card-n { background: var(--navy); }

@media (min-width: 1024px) {
  .cod-challenge { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}
@media (max-width: 1023px) {
  .cod-spec { grid-template-columns: minmax(0, 1fr); }
  .cs-proof .cod-wide { grid-column: 1 / -1; }
  .cod-nums { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .cod-stage .cs-win { margin-right: 44px; }
  .cod-phone { width: 74px; right: 10px; padding: 4px; border-radius: 16px; margin-top: -60px; }
  .cod-phone img { border-radius: 12px; }
  .cod-cards { grid-template-columns: minmax(0, 1fr); }
  .cod-wide strong { font-size: clamp(2.25rem, 10vw, 2.75rem); }
  .cod-x > svg { position: static; margin-bottom: 10px; }
  .cod-days span { font-size: .8125rem; }
  .cod-schema-grid { grid-template-columns: minmax(0, 1fr); }
  .cod-tap { margin-left: -40px; padding: 10px 14px; font-size: .875rem; }
  .cod-quote { padding-right: var(--tile-pad); padding-top: calc(var(--tile-pad) + 88px); }
  .cod-quote-3d { width: 72px; top: 6px; margin-top: 0; }
}

/* Ajustes tras la primera revisión */
.cod-stage .cs-chip-2 { right: auto; left: clamp(10px, 2vw, 28px); }
html.dark .cod-phone2 { box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }
