/* ClinicTrue "spice" layer (2 Oct 2026, loaded after ct-layer.css).
   The look stays: navy institutional system, real photo headers and covers. This adds colour (sky and mist tints, blue
   accents, amber caveat tags), line icons, etiquetas (tags), small images, numbered section labels and a median pull-out.
   Text on a tint is navy or slate (AA); blue text only sits on white. No art behind text or prices. */

:root {
  --sky-t: #E3EDF8;       /* sky #6FA3DB at about 22% on white */
  --mist-2: #F2F6FA;
  --ic-a: #6FA3DB;        /* accent fill inside the line icons */
}

/* ---- line icons ---- */
.ci { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round;
  stroke-linejoin: round; flex: none; vertical-align: -.2em; }
.ci-badge { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--sky-t);
  color: var(--navy); flex: none; }
.ci-badge .ci { width: 21px; height: 21px; vertical-align: 0; }
.ci-badge--lg { width: 52px; height: 52px; }
.ci-badge--lg .ci { width: 30px; height: 30px; }
.ci-badge--mist { background: var(--mist); }
.ci-badge--amber { background: var(--cbg); color: var(--caution); --ic-a: #D9A441; }
.ci-badge--navy { background: var(--navy); color: #fff; --ic-a: #9CC3EC; }

/* ---- etiquetas (tags): short factual labels, never a seal ---- */
.etq { display: inline-flex; align-items: center; gap: 5px; font: 600 12.5px/1.25 var(--sans); padding: 3px 9px 3px 7px;
  border-radius: 3px; background: var(--mist); color: var(--navy); border: 1px solid transparent; white-space: nowrap; max-width: 100%; }
.etq .ci { width: 14px; height: 14px; color: var(--blue); vertical-align: 0; }
.etq--own { background: var(--mist); }
.etq--from, .etq--pkg { background: var(--sky-t); border-color: #C9DBF0; }
.etq--warn { background: var(--cbg); color: var(--caution); border-color: #EBD5A8; --ic-a: #D9A441; }
.etq--warn .ci { color: var(--caution); }
.etq--seen { background: #fff; border-color: var(--line); color: var(--slate); font-weight: 500; font-family: var(--sans); }
.etq--reg-found { background: var(--sky-t); border-color: #C9DBF0; }
.etq--reg-none { background: #fff; border: 1px dashed #9AA6B4; color: var(--grey); }
.etq--reg-none .ci { color: var(--grey); }
.etq--reg-no_match { background: var(--mist); color: var(--slate); }
.etq--reg-no_match .ci { color: var(--grey); }
.etq--city, .etq--proc { background: #fff; border-color: #C9DBF0; color: var(--navy); font-weight: 600; text-decoration: none; }
a.etq:hover { background: var(--sky-t); }
.etq--proc .ci { color: var(--blue); }
.etq-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.etq-row--tight { gap: 4px; margin-top: 6px; }
td .etq-row { margin-top: 6px; }

/* ---- numbered section labels with a hairline above ---- */
.sp-head { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; margin: 0 0 16px; flex-wrap: wrap; }
.sp-head h2, .sp-head h3 { margin: 0; display: flex; align-items: center; gap: 10px; }
.sp-no { font: 600 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); white-space: nowrap; }
.sp-head .ci-badge { width: 34px; height: 34px; }
.sp-sec { display: grid; gap: 0; }
.sp-sec + .sp-sec { margin-top: 34px; }

/* ---- tinted panels (section backgrounds that are not art) ---- */
.sp-panel { background: var(--mist); padding: 22px clamp(16px, 3vw, 28px); border-radius: 4px; border-top: 3px solid var(--sky); }
.sp-panel--sky { background: var(--sky-t); border-top-color: var(--blue); }
.sp-panel--white { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--sky); }
.sp-panel .sp-no { color: var(--navy); }
.sp-panel .tag, .sp-panel .small { color: var(--slate); }
.sp-panel .ruled td { border-bottom-color: #C9D5E3; }

/* ---- median pull-out ---- */
.sp-median { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 18px; align-items: center; background: var(--sky-t);
  border-left: 4px solid var(--blue); padding: 16px 20px; border-radius: 0 4px 4px 0; margin: 4px 0; max-width: 760px; }
.sp-median .ci-badge { grid-row: 1 / span 3; width: 56px; height: 56px; background: #fff; }
.sp-median .ci-badge .ci { width: 30px; height: 30px; }
.sp-median__k { font: 600 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--navy); }
.sp-median__v { font: 300 clamp(40px, 6vw, 56px)/1 var(--serif); color: var(--navy); font-variant-numeric: lining-nums; }
.sp-median__v small { font: 600 15px var(--sans); color: var(--slate); margin-left: 6px; }
.sp-median__r { font-size: 14.5px; color: var(--slate); }
@media (max-width: 520px) { .sp-median { grid-template-columns: minmax(0, 1fr); } .sp-median .ci-badge { grid-row: auto; } }

/* ---- procedure names with their icon ---- */
.pn { display: inline-flex; align-items: center; gap: 9px; color: inherit; text-decoration: inherit; }
.pn .ci { width: 22px; height: 22px; color: var(--blue); background: var(--sky-t); border-radius: 50%; padding: 4px; box-sizing: content-box; vertical-align: 0; }
.ruled td:first-child .pn { font-weight: 600; }
.ruled td .pn-sub { display: block; margin-left: 41px; }

/* ---- clinic logo and doctor photo in lists ---- */
.row-clinic { display: flex; align-items: center; gap: 11px; min-width: 0; }
.row-clinic > span { min-width: 0; overflow-wrap: anywhere; }
.row-clinic .clinic-logo, .row-clinic .clinic-monogram { width: 40px; height: 40px; flex: none; border-radius: 6px; object-fit: contain; background: #fff;
  border: 1px solid var(--line); display: grid; place-items: center; font: 600 14px var(--serif); color: var(--navy); }
.row-clinic .clinic-monogram { border-color: transparent; }
.row-clinic .rc-doc { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); flex: none; }
.row-clinic small { display: block; font-size: 13px; color: var(--grey); font-weight: 400; }
.ruled td .row-clinic a { color: var(--navy); }

/* ---- the tables: a light blue head rule and a hover tint ---- */
.ruled th { color: var(--navy); }
.ruled tr:hover td { background: var(--mist-2); }
@media (max-width: 600px) { .ruled tr:hover td { background: none; } }

/* ---- home ---- */
.sp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); counter-reset: s; }
@media (min-width: 800px) { .sp-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; } }
.sp-steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; align-items: start; }
.sp-steps .ci-badge { grid-row: 1 / span 2; width: 48px; height: 48px; background: #fff; }
.sp-steps .ci-badge .ci { width: 27px; height: 27px; }
.sp-steps b { font: 600 20px/1.2 var(--serif); color: var(--navy); }
.sp-steps .sp-no { grid-column: 2; }
.sp-steps li > span:last-child { grid-column: 2; color: var(--slate); font-size: 16px; }
.ct-how.sp-panel-wrap { padding: 8px 0 40px; }
.ct-how .sp-panel { padding-block: 30px 34px; }
.ct-stats .nums div { position: relative; }
.ct-stats .nums .ci-badge { margin-bottom: 10px; }
.sp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-chips .etq { font-size: 14px; padding: 6px 12px 6px 9px; }
.sp-chips .etq .ci { width: 18px; height: 18px; }

/* card extras: a coloured edge and a count chip on the picture cards */
.ct-card { box-shadow: inset 0 -3px 0 var(--sky); }
.ct-card__text small { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.ct-card__text small .ci { width: 14px; height: 14px; color: #BFD6F0; vertical-align: -2px; }

/* ---- clinic page: fact rows, glance with icons, contact card ---- */
.cl-glance dl > div { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 12px; align-items: center; }
.cl-glance dl .ci-badge { grid-row: 1 / span 2; }
.cl-glance dt, .cl-glance dd { grid-column: 2; }
.cl-glance dl { background: var(--mist-2); border: 1px solid var(--line); border-top: 3px solid var(--sky); padding: 16px 18px; border-radius: 4px; }
.cl-card { border-top-color: var(--blue); background: linear-gradient(180deg, var(--sky-t) 0, #fff 120px); }
.cl-card h2 { display: flex; align-items: center; gap: 10px; }
.cl-card .ct-contact__buttons .btn .ci, .cl-card .ct-wa .btn .ci { width: 18px; height: 18px; vertical-align: -3px; margin-right: 6px; }
.sp-facts { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.sp-facts li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--slate); }
.sp-facts .ci-badge { grid-row: 1 / span 2; width: 32px; height: 32px; }
.sp-facts .ci-badge .ci { width: 18px; height: 18px; }
.sp-facts b { font: 600 11.5px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--grey); }
.sp-facts li > span:not(.ci-badge) { grid-column: 2; overflow-wrap: anywhere; }
.sp-facts a { color: var(--navy); font-weight: 600; }
.cl-sec h2 { display: flex; align-items: center; gap: 10px; }
.cl-sec .sp-head h2 { font-size: 26px; }
.cl-sim__card { background: var(--mist-2); border-top: 3px solid var(--sky); }
.cl-sim__card .row-clinic { align-items: flex-start; }
.cl-tags { gap: 8px; }
.cl-tag { background: var(--sky-t); color: var(--navy); }
a.cl-tag:hover { background: #D1E2F5; }
.cl-badge--ok { background: #fff; }
.cl-prices .etq-row { margin-top: 6px; }
.cl-prices td:first-child { min-width: 190px; }
.cl-badges .ci { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }
.rec .ico { color: var(--blue); }
.rec .ci-badge { width: 30px; height: 30px; margin-top: 0; }
.rec .ci-badge .ci { width: 17px; height: 17px; }
.rec.claim .ci-badge { background: var(--cbg); color: var(--caution); }
.cl-doc { background: var(--mist-2); padding: 14px 16px; border-radius: 4px; border-top: 3px solid var(--sky); margin-bottom: 12px; }

/* ---- notices and notes get a little more colour ---- */
.note { border-left-color: var(--blue); background: var(--sky-t); }
.sp-note { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; background: var(--sky-t); border-left: 4px solid var(--blue); padding: 14px 16px; font-size: 14.5px; color: var(--slate); }
.sp-note .ci-badge { background: #fff; width: 32px; height: 32px; }
.sp-note p { margin: 0; }

/* ---- hospital, guide and list pages ---- */
.sp-list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.sp-list a { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; align-items: center; padding: 14px 16px; background: var(--mist-2); border: 1px solid var(--line);
  border-top: 3px solid var(--sky); border-radius: 4px; text-decoration: none; color: var(--slate); }
.sp-list a:hover { border-top-color: var(--blue); background: var(--sky-t); }
.sp-list a .ci-badge { grid-row: 1 / span 2; }
.sp-list a b { font: 600 17px/1.25 var(--serif); color: var(--navy); }
.sp-list a small { font-size: 14px; color: var(--grey); grid-column: 2; }
.guide-body h2 { font-size: 26px; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 30px; }
.guide-body h2:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.guide-body thead th { background: var(--mist); }

/* ---- city page: procedure table and country page rows ---- */
.rtable .rrow { transition: background .15s; }
.rtable .rrow:hover { background: var(--mist-2); }
.sp-cityrow { display: flex; align-items: center; gap: 12px; }
.sp-cityrow .ci-badge { width: 34px; height: 34px; }

@media (prefers-reduced-motion: reduce) { .rtable .rrow { transition: none; } }

/* automatic section numbers: "No. 01" in English, "N.º 01" in Spanish, counted in page order (no strings to translate) */
main { counter-reset: spn; }
.sp-no { counter-increment: spn; }
.sp-no::before { content: "No. " counter(spn, decimal-leading-zero); }
:lang(es) .sp-no::before { content: "N.º " counter(spn, decimal-leading-zero); }
@media (max-width: 600px) { .ruled td.seen::before { content: none; } }
.sp-facts b { grid-column: 2; }
.ruled td .pn-sub { display: inline-block; margin-left: 31px; font-weight: 400; }
.ct-stats .ci-badge { background: #fff; }
.ct-site-link { display: inline-block; margin: 4px 0 0 51px; }
.ct-checklist .sp-panel { padding-block: 28px 30px; }
.ct-checklist .ct-steps .no { color: var(--navy); }

/* country page figures: tinted cards, not bare columns */
.ct-figures.stat-band { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.ct-figures .stat { background: var(--sky-t); border: 0; border-top: 3px solid var(--blue); border-radius: 0 0 4px 4px; padding: 16px 18px 14px; display: grid; gap: 4px; align-content: start; }
.ct-figures .stat .label { font: 600 14px var(--sans); color: var(--navy); text-transform: none; letter-spacing: 0; }
.ct-figures .stat .label.pn .ci { background: #fff; }
.ct-figures .stat .value { font: 300 42px/1.05 var(--serif); color: var(--navy); }
.ct-figures .stat .small { color: var(--slate); }
.sp-head h2, .sp-head h3 { font-size: clamp(22px, 4.6vw, 30px); }
.sp-sec--tint { background: var(--mist-2); border-top: 3px solid var(--sky); padding: 8px clamp(14px, 2.4vw, 24px) 20px; border-radius: 0 0 4px 4px; }
.sp-sec--tint .sp-head { border-top: 0; }
.sp-sec--tint .ruled tr:hover td { background: var(--sky-t); }
