/* ==========================================================================
   Italmed 4.0 · Capa de sitio (todas las páginas públicas)
   Menú, menú celular, pie de página, barra inferior y componentes de las
   páginas de servicio con el mismo diseño de la portada.
   ========================================================================== */
:root{
  --i4-bg:#f3f6fa; --i4-surface:#fff; --i4-line:#dfe7f0; --i4-line-soft:#edf2f7;
  --i4-ink:#0f2a47; --i4-muted:#4d6079;
  --i4-blue:#0a69bd; --i4-blue-dark:#084f8f; --i4-blue-tint:#eaf3fb;
  --i4-teal:#0b8a85; --i4-teal-tint:#e6f4f3;
  --i4-rose:#c8364b; --i4-rose-tint:#fbeaec;
  --i4-green:#15803d; --i4-green-text:#146c35; --i4-green-tint:#e8f5ec;
  --i4-neutral:#4a5d75; --i4-neutral-tint:#eef2f6;
  --i4-navy:#0b2540;
  --i4-radius:18px;
}
body{background:var(--i4-bg)}

/* ---------- Mini tiles de icono (menú) ---------- */
.itm4-mini-tile{width:36px;height:36px;flex:0 0 36px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center}
.itm4-mini-tile .itm4-ico{width:22px;height:22px}
.itm4-mini-tile.is-blue{background:var(--i4-blue-tint);color:var(--i4-blue)}
.itm4-mini-tile.is-teal{background:var(--i4-teal-tint);color:var(--i4-teal)}
.itm4-mini-tile.is-rose{background:var(--i4-rose-tint);color:var(--i4-rose)}
.itm4-mini-tile.is-neutral{background:var(--i4-neutral-tint);color:var(--i4-neutral)}

/* ---------- Barra superior (escritorio) ---------- */
.itm4-topbar{display:none;background:var(--i4-navy);color:#d6e3f0;font:500 13px/1.2 "Inter",system-ui,sans-serif}
.itm4-topbar__in{max-width:1200px;margin:0 auto;padding:8px 24px;display:flex;justify-content:space-between;align-items:center;gap:16px}
.itm4-topbar span{display:inline-flex;align-items:center;gap:6px}
.itm4-topbar__right{gap:18px!important}
.itm4-topbar a{color:#fff;text-decoration:none;display:inline-flex;align-items:center;gap:6px;font-weight:600}
.itm4-topbar a:hover{text-decoration:underline}
.itm4-topbar__ico{width:15px;height:15px}
@media (min-width:1024px){.itm4-topbar{display:block}}

/* ---------- Encabezado ---------- */
.itm4-header{position:sticky;top:0;z-index:900;background:#fff;border-bottom:1px solid var(--i4-line);font-family:"Inter",system-ui,sans-serif}
.admin-bar .itm4-header{top:32px}
@media (max-width:782px){.admin-bar .itm4-header{top:0}}
.itm4-header__in{max-width:1200px;margin:0 auto;padding:0 16px;min-height:64px;display:flex;align-items:center;gap:16px}
.itm4-brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--i4-ink);flex:0 0 auto}
.itm4-brand img{width:38px;height:40px;object-fit:contain}
.itm4-brand__txt{display:flex;flex-direction:column;line-height:1.15}
.itm4-brand__txt strong{font-size:17px;font-weight:800;letter-spacing:.04em;color:var(--i4-blue)}
.itm4-brand__txt small{font-size:12px;font-weight:500;color:var(--i4-muted)}
.itm4-nav{display:none;align-items:center;gap:2px;margin-left:auto}
.itm4-nav__link{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 12px;border:0;background:none;border-radius:10px;font:600 15px/1 "Inter",system-ui,sans-serif;color:var(--i4-ink);text-decoration:none;cursor:pointer}
.itm4-nav__link:hover,.itm4-nav__link.active,.itm4-nav__link[aria-current="page"]{background:var(--i4-blue-tint);color:var(--i4-blue)}
.itm4-nav__trigger svg{width:14px;height:14px}
.itm4-nav__drop{position:relative}
.itm4-nav__panel{position:absolute;top:calc(100% + 8px);left:-12px;width:520px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px;padding:10px;background:#fff;border:1px solid var(--i4-line);border-radius:16px;box-shadow:0 18px 40px rgba(15,42,71,.14);opacity:0;visibility:hidden;transform:translateY(4px);transition:opacity .15s ease,transform .15s ease,visibility .15s}
.itm4-nav__drop:hover .itm4-nav__panel,.itm4-nav__drop:focus-within .itm4-nav__panel{opacity:1;visibility:visible;transform:none}
.itm4-nav__panel a{display:flex;align-items:center;gap:10px;min-height:48px;padding:6px 10px;border-radius:10px;font:600 14.5px/1.2 "Inter",system-ui,sans-serif;color:var(--i4-ink);text-decoration:none}
.itm4-nav__panel a:hover{background:var(--i4-bg)}
.itm4-nav__panel a.itm4-nav__all{grid-column:1/-1;justify-content:center;color:var(--i4-blue);border-top:1px solid var(--i4-line-soft);border-radius:0 0 10px 10px;margin-top:4px}
.itm4-header__actions{display:flex;align-items:center;gap:8px;margin-left:auto}
.itm4-icon-btn{width:44px;height:44px;border:1px solid var(--i4-line);background:#fff;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;color:var(--i4-muted);text-decoration:none;cursor:pointer}
.itm4-icon-btn:hover{color:var(--i4-blue);border-color:#bcd3ea}
.itm4-icon-btn svg{width:20px;height:20px}
.itm4-header__cta{display:none;align-items:center;min-height:46px;padding:0 20px;border-radius:12px;background:var(--i4-blue);color:#fff!important;font:700 15px/1 "Inter",system-ui,sans-serif;text-decoration:none}
.itm4-header__cta:hover{background:var(--i4-blue-dark)}
.itm4-menu-btn{width:48px;height:48px;border:1px solid var(--i4-line);background:#fff;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;color:var(--i4-ink);cursor:pointer}
.itm4-menu-btn svg{width:24px;height:24px}
.itm4-header .itm4-icon-btn{display:none}
@media (min-width:1024px){
  .itm4-header__in{min-height:72px;padding:0 24px}
  .itm4-brand img{width:42px;height:44px}
  .itm4-brand__txt strong{font-size:19px}
  .itm4-brand__txt small{font-size:13px}
  .itm4-nav{display:flex}
  .itm4-header__actions{margin-left:12px}
  .itm4-header .itm4-icon-btn{display:inline-flex}
  .itm4-header__cta{display:inline-flex}
  .itm4-menu-btn{display:none}
}

/* ---------- Menú celular ---------- */
.itm4-drawer{position:fixed;top:0;right:0;bottom:0;z-index:1001;width:min(92vw,380px);background:#fff;display:flex;flex-direction:column;transform:translateX(100%);visibility:hidden;transition:transform .22s ease,visibility .22s;font-family:"Inter",system-ui,sans-serif;box-shadow:-12px 0 40px rgba(15,42,71,.18)}
.itm4-drawer.is-open{transform:none;visibility:visible}
.itm4-overlay{position:fixed;inset:0;z-index:1000;background:rgba(11,37,64,.45);opacity:0;visibility:hidden;transition:opacity .2s ease,visibility .2s}
.itm4-overlay.is-open{opacity:1;visibility:visible}
.itm4-drawer__head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid var(--i4-line)}
.itm4-drawer__ctas{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:14px 16px}
.itm4-dbtn{min-height:52px;border-radius:14px;display:flex;align-items:center;justify-content:center;gap:8px;font-size:16px;font-weight:700;text-decoration:none}
.itm4-dbtn svg{width:20px;height:20px}
.itm4-dbtn.is-primary{background:var(--i4-blue);color:#fff}
.itm4-dbtn.is-wa{background:var(--i4-green);color:#fff}
.itm4-drawer__nav{flex:1 1 auto;overflow-y:auto;padding:0 8px 24px;display:flex;flex-direction:column}
.itm4-drawer__label{padding:16px 10px 6px;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--i4-muted)}
.itm4-drawer__nav a{display:flex;align-items:center;gap:12px;min-height:52px;padding:6px 10px;border-radius:12px;font-size:16px;font-weight:600;color:var(--i4-ink);text-decoration:none}
.itm4-drawer__nav a:hover,.itm4-drawer__nav a.active{background:var(--i4-bg)}
.itm4-drawer__nav a.is-muted{color:var(--i4-muted);font-weight:500;font-size:15px}
body.menu-open{overflow:hidden}

/* ---------- Pie de página ---------- */
.itm4-footer{background:var(--i4-navy);color:#d6e3f0;font-family:"Inter",system-ui,sans-serif;margin-top:48px}
.itm4-footer__in{max-width:1200px;margin:0 auto;padding:40px 16px 8px;display:grid;grid-template-columns:1fr;gap:28px}
.itm4-footer h2{margin:0 0 12px;font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#9fcbf5}
.itm4-footer .itm4-brand__txt strong{color:#fff}
.itm4-footer .itm4-brand__txt small{color:#b9cde1}
.itm4-footer ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.itm4-footer li{margin:0}
.itm4-footer a{color:#e3edf7;text-decoration:none}
.itm4-footer a:hover{color:#fff;text-decoration:underline}
.itm4-footer__links a{display:flex;align-items:center;min-height:40px;font-size:15px}
.itm4-footer__contact{gap:4px}
.itm4-footer__contact li{display:flex;align-items:flex-start;gap:10px;min-height:40px;font-size:15px;line-height:1.45;padding-top:8px}
.itm4-footer__contact svg{width:18px;height:18px;margin-top:2px;color:#9fcbf5}
.itm4-footer__brand{display:flex;flex-direction:column;gap:14px}
.itm4-footer__note{font-size:13px;line-height:1.55;color:#b9cde1;margin:0}
.itm4-footer__social{display:flex;gap:10px;margin-top:4px}
.itm4-footer__social a{width:44px;height:44px;border-radius:12px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);display:inline-flex;align-items:center;justify-content:center;font-size:20px}
.itm4-footer__social a:hover{background:rgba(255,255,255,.16);text-decoration:none}
.itm4-footer__social svg{width:20px;height:20px}
.itm4-footer__bottom{max-width:1200px;margin:0 auto;padding:18px 16px calc(var(--itm-bar-h,72px) + 24px);border-top:1px solid rgba(255,255,255,.12);display:flex;flex-direction:column;gap:10px;font-size:13px;color:#9fb4ca}
.itm4-footer__bottom p{margin:0}
.itm4-footer__credit{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.itm4-footer__credit a{display:inline-flex;width:32px;height:32px;border-radius:9px;align-items:center;justify-content:center;background:rgba(255,255,255,.08);font-size:16px}
@media (min-width:821px){
  .itm4-footer__in{grid-template-columns:1.3fr 1fr 1fr 1fr;padding:56px 24px 16px;gap:32px}
  .itm4-footer__bottom{flex-direction:row;justify-content:space-between;align-items:center;padding:20px 24px 28px}
}

/* ---------- Barra inferior (celular) ---------- */
.itm-bottom-bar{background:#fff!important;border:1px solid var(--i4-line)!important;box-shadow:0 8px 28px rgba(15,42,71,.16)!important;font-family:"Inter",system-ui,sans-serif!important}
.itm-bottom-bar a:not(.is-main){color:#3c5a78!important;font-weight:600!important}
.itm-bottom-bar a:not(.is-main) i.ki{color:var(--i4-blue)!important}
@media (min-width:1024px){.whatsapp-float{bottom:24px!important;right:24px!important}}
@media (max-width:1023px){.whatsapp-float{display:none!important}}

/* Ajustes: estilos antiguos con más peso */
#colophon.itm4-footer h2{font-size:13px!important;line-height:1.3!important;letter-spacing:.08em!important;margin:0 0 12px!important;color:#9fcbf5!important;font-weight:800!important}
#colophon.itm4-footer{background:var(--i4-navy)!important;background-image:none!important;padding:0!important}
.itm4-drawer.mobile-menu-new{z-index:10001!important;left:auto!important;right:0!important;top:0!important;height:100%!important;padding:0!important;border-radius:0!important}
.itm4-overlay.mobile-menu-overlay{z-index:10000!important}
.itm4-drawer .itm4-drawer__nav.mobile-menu-nav{background:none!important;border:0!important;box-shadow:none!important;border-radius:0!important;margin:0!important}
body:has(.itm4-drawer.is-open) .itm-bottom-bar{display:none!important}
body:has(.itm4-drawer.is-open){overflow:hidden}

/* ==========================================================================
   Valores y cotizador (/cotizaciones/) · diseño 4.0
   ========================================================================== */
#itm-cotizador-page{background:var(--i4-bg);font-family:"Inter",system-ui,sans-serif;color:var(--i4-ink)}
#itm-cotizador-page #itm-cot-hero{background:var(--i4-bg)!important;background-image:none!important;color:var(--i4-ink)!important;padding:24px 16px 8px!important}
#itm-cotizador-page #itm-cot-hero::before,#itm-cotizador-page #itm-cot-hero::after{display:none!important;content:none!important}
#itm-cotizador-page .cot-hero-shell{max-width:1200px;margin:0 auto;display:block!important;background:none!important;box-shadow:none!important;border:0!important;padding:0!important}
#itm-cotizador-page .cot-hero-shell > :not(.cot-hero-copy){display:none!important}
#itm-cotizador-page .cot-hero-copy{display:flex;flex-direction:column;gap:12px;background:none!important;padding:0!important;color:var(--i4-ink)!important}
#itm-cotizador-page .cot-badge{align-self:flex-start;display:inline-flex;align-items:center;gap:6px;padding:6px 12px!important;border-radius:999px!important;background:var(--i4-green-tint)!important;color:var(--i4-green-text)!important;border:0!important;font-size:.875rem!important;font-weight:700!important;letter-spacing:0!important;text-transform:none!important}
#itm-cotizador-page #itm-cot-hero h1{margin:0!important;color:var(--i4-ink)!important;font-size:clamp(1.75rem,1.2rem + 2.2vw,2.6rem)!important;line-height:1.12!important;font-weight:800!important;letter-spacing:-.025em!important;text-shadow:none!important}
#itm-cotizador-page .cot-hero-sub{color:var(--i4-muted)!important;font-size:1.0625rem!important;line-height:1.55!important;max-width:42em}
#itm-cotizador-page .cot-hero-pills{display:flex!important;flex-wrap:wrap;gap:8px}
#itm-cotizador-page .cot-hero-pill{background:#fff!important;border:1px solid var(--i4-line)!important;color:var(--i4-ink)!important;border-radius:999px!important;padding:6px 12px!important;font-size:.875rem!important;font-weight:600!important;box-shadow:none!important;backdrop-filter:none!important}
#itm-cotizador-page .cot-hero-pill i{color:var(--i4-green)!important}
#itm-cotizador-page .cot-hero-stats{display:none!important}

/* Buscador */
#itm-cotizador-page #itm-cot-toolbar{max-width:1200px;margin:16px auto 0!important;background:#fff!important;border:1px solid var(--i4-line)!important;border-radius:var(--i4-radius)!important;box-shadow:none!important;padding:16px!important}
#itm-cotizador-page .cot-toolbar-copy{display:none!important}
#itm-cotizador-page #cot-search{min-height:56px!important;border-radius:14px!important;border:1.5px solid #c9d7e6!important;font-size:1.0625rem!important;padding-left:16px!important;background:#fff!important;color:var(--i4-ink)!important}
#itm-cotizador-page #cot-search:focus{border-color:var(--i4-blue)!important;box-shadow:0 0 0 3px rgba(10,105,189,.15)!important;outline:0!important}
#itm-cotizador-page .cot-price-toggle{background:var(--i4-neutral-tint)!important;border-radius:14px!important;padding:4px!important;border:0!important}
#itm-cotizador-page .cot-price-toggle button{min-height:48px!important;border-radius:11px!important;font-weight:700!important;font-size:.95rem!important}
#itm-cotizador-page .cot-price-toggle button.active{background:var(--i4-blue)!important;color:#fff!important;box-shadow:none!important}

/* Lista: una fila por examen */
#itm-cotizador-page .cot-cat-title{font-size:.8rem!important;font-weight:800!important;letter-spacing:.08em!important;color:var(--i4-muted)!important;padding:18px 4px 8px!important;border:0!important;background:none!important}
#itm-cotizador-page .cot-exam-item{display:flex!important;align-items:flex-start!important;gap:12px!important;padding:12px 14px!important;margin:0!important;border:0!important;border-bottom:1px solid var(--i4-line-soft)!important;border-radius:0!important;background:#fff!important;box-shadow:none!important;min-height:60px}
#itm-cotizador-page .cot-exam-item:hover{background:#f8fafd!important}
#itm-cotizador-page .cot-exam-item.selected{background:var(--i4-blue-tint)!important}
#itm-cotizador-page .cot-exam-item input[type=checkbox]{width:22px!important;height:22px!important;margin:2px 0 0!important;accent-color:var(--i4-blue);flex:0 0 22px}
#itm-cotizador-page .cot-exam-info{flex:1 1 auto;min-width:0}
#itm-cotizador-page .cot-exam-head{display:flex!important;justify-content:space-between!important;align-items:baseline!important;gap:12px!important;flex-wrap:nowrap!important}
#itm-cotizador-page .cot-exam-name{font-size:1rem!important;font-weight:600!important;line-height:1.35!important;color:var(--i4-ink)!important}
#itm-cotizador-page .cot-exam-price{flex:0 0 auto;background:none!important;border:0!important;padding:0!important;font-size:1rem!important;font-weight:800!important;color:var(--i4-green-text)!important;white-space:nowrap}
#itm-cotizador-page .cot-exam-price.cot-price-consultar{color:var(--i4-muted)!important;font-weight:600!important;font-size:.9rem!important}
#itm-cotizador-page .cot-exam-meta{display:flex!important;flex-wrap:wrap;gap:4px 12px!important;margin-top:4px!important}
#itm-cotizador-page :is(.cot-exam-code,.cot-exam-prep,.cot-exam-chip-empty){background:none!important;border:0!important;padding:0!important;font-size:.8125rem!important;font-weight:500!important;color:var(--i4-muted)!important;line-height:1.4!important}
#itm-cotizador-page :is(.cot-exam-code,.cot-exam-prep,.cot-exam-chip-empty) i{display:none!important}
#itm-cotizador-page .cot-exam-code::before{content:"Código ";font-weight:600}
#itm-cotizador-page [class*="cot-cat"]:not(.cot-cat-title){background:#fff;border:1px solid var(--i4-line);border-radius:var(--i4-radius);overflow:hidden;margin-bottom:14px;box-shadow:none}

/* Resumen */
#itm-cotizador-page .cot-resumen-box{background:#fff!important;border:1px solid var(--i4-line)!important;border-radius:var(--i4-radius)!important;box-shadow:none!important}
#itm-cotizador-page .cot-total-amount{color:var(--i4-ink)!important;font-weight:800!important}
#itm-cotizador-page .cot-exam-head{flex-direction:row!important}
#itm-cotizador-page .cot-exam-meta{flex-direction:row!important}
#itm-cotizador-page .cot-hero-copy > :not(.cot-badge):not(h1):not(.cot-hero-sub):not(.cot-hero-pills){display:none!important}
#itm-cotizador-page .cot-hero-pills{flex-direction:row!important;align-items:center}
#itm-cotizador-page .cot-badge{box-shadow:none!important}

/* ==========================================================================
   Mis resultados (/resultados/) · diseño 4.0
   ========================================================================== */
#itm-resultados-page{background:var(--i4-bg);font-family:"Inter",system-ui,sans-serif;color:var(--i4-ink)}
#itm-resultados-page #itm-res-hero{background:var(--i4-bg)!important;background-image:none!important;color:var(--i4-ink)!important;text-align:left!important;padding:24px 16px 4px!important;max-width:1200px!important;margin:0 auto!important;box-sizing:border-box!important}
#itm-resultados-page #itm-res-hero::before,#itm-resultados-page #itm-res-hero::after{display:none!important}
#itm-resultados-page #itm-res-hero .hero-icon{display:none!important}
#itm-resultados-page #itm-res-hero h1{margin:0 0 8px!important;color:var(--i4-ink)!important;font-size:clamp(1.8rem,1.2rem + 2.6vw,2.6rem)!important;font-weight:800!important;letter-spacing:-.025em!important;line-height:1.12!important;text-shadow:none!important}
#itm-resultados-page #itm-res-hero p{color:var(--i4-muted)!important;font-size:1.0625rem!important;margin:0!important;opacity:1!important}
#itm-resultados-page #itm-res-body{max-width:1200px;margin:0 auto;padding:12px 16px 24px!important;box-sizing:border-box;background:none!important}
#itm-resultados-page .paso-bloque{background:none!important;border:0!important;box-shadow:none!important;padding:0!important}
#itm-resultados-page .paso-header{display:none!important}
#itm-resultados-page .plataformas-grid{display:grid!important;grid-template-columns:1fr!important;gap:14px!important}
#itm-resultados-page .plat-card{background:#fff!important;border:1px solid var(--i4-line)!important;border-radius:var(--i4-radius)!important;box-shadow:none!important;overflow:hidden;display:flex;flex-direction:column}
#itm-resultados-page .plat-card-top{background:#fff!important;background-image:none!important;color:var(--i4-ink)!important;text-align:left!important;display:grid!important;grid-template-columns:52px 1fr;column-gap:12px;align-items:center;padding:16px 16px 4px!important}
#itm-resultados-page .plat-icon{grid-row:1 / span 2;width:52px;height:52px;border-radius:14px;display:flex;align-items:center;justify-content:center;margin:0!important;opacity:1!important;background:var(--i4-blue-tint)!important;color:var(--i4-blue)!important}
#itm-resultados-page .plat-icon .itm4-ico{width:32px;height:32px}
#itm-resultados-page .plat-card.rojo .plat-icon{background:var(--i4-rose-tint)!important;color:var(--i4-rose)!important}
#itm-resultados-page .plat-card.lab .plat-icon{background:var(--i4-neutral-tint)!important;color:var(--i4-neutral)!important}
#itm-resultados-page .plat-card-top h3{color:var(--i4-ink)!important;font-size:1.125rem!important;font-weight:800!important;margin:0!important;align-self:end}
#itm-resultados-page .plat-card-top p{color:var(--i4-muted)!important;opacity:1!important;font-size:.875rem!important;margin:0!important;align-self:start}
#itm-resultados-page .plat-card-body{padding:12px 16px 16px!important;display:flex;flex-direction:column;gap:10px;flex:1 1 auto;color:var(--i4-ink);font-size:.95rem;line-height:1.5}
#itm-resultados-page .plat-paso{display:flex;align-items:flex-start;gap:10px;font-size:.95rem;line-height:1.45;background:none!important;border:0!important;padding:0!important}
#itm-resultados-page .plat-paso-num{width:26px;height:26px;flex:0 0 26px;border-radius:999px;background:var(--i4-blue)!important;color:#fff!important;display:flex;align-items:center;justify-content:center;font-size:.8rem;font-weight:800}
#itm-resultados-page .plat-card.rojo .plat-paso-num{background:var(--i4-rose)!important}
#itm-resultados-page .plat-alerta{background:#fff8e8!important;border:1px solid #f1dfb0!important;border-radius:12px!important;color:#5c4a22!important}
#itm-resultados-page .btn-plataforma{min-height:52px!important;border-radius:14px!important;font-size:1rem!important;font-weight:800!important;box-shadow:none!important;transform:none!important}
#itm-resultados-page .plat-card.azul .btn-plataforma{background:var(--i4-blue)!important}
#itm-resultados-page .plat-card.rojo .btn-plataforma{background:var(--i4-blue)!important}
#itm-resultados-page .plat-card.lab .btn-plataforma{background:var(--i4-green)!important}
#itm-resultados-page .plat-card.lab .btn-plataforma--secundario{background:#fff!important;color:var(--i4-blue)!important;border:1.5px solid var(--i4-blue)!important}
#itm-resultados-page .btn-ayuda{min-height:52px!important;border-radius:14px!important;box-shadow:none!important;font-weight:700!important}
#itm-resultados-page .btn-ayuda.wsp{background:var(--i4-green)!important;color:#fff!important}
#itm-resultados-page .btn-ayuda.mail{background:#fff!important;color:var(--i4-blue)!important;border:1.5px solid var(--i4-blue)!important}
#itm-resultados-page .aviso-legal-comp{background:#eef4fa!important;border:0!important;border-radius:16px!important;box-shadow:none!important}
@media (min-width:821px){#itm-resultados-page .plataformas-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}

/* ==========================================================================
   Páginas de servicio · diseño 4.0
   (Ecografías, Cardiología, Laboratorio, Medicina, Kinesiología, Psicología,
    Matrona, Lavado de oídos, Doppler, Musculoesquelética, Ecocardiograma…)
   ========================================================================== */
/* Paleta: de 11 colores a 4 con significado */
:root{
  --t-blue:#0a69bd; --t-sky:#0b8a85; --t-cyan:#0a69bd; --t-rose:#c8364b; --t-violet:#4a5d75;
  --t-green:#15803d; --t-pink:#0b8a85; --t-teal:#4a5d75; --t-indigo:#4a5d75; --t-amber:#b45309;
  --t-orange:#0a69bd; --t-slate:#4a5d75;
}
.service-wrapper,.service-section{font-family:"Inter",system-ui,sans-serif;color:var(--i4-ink)}

/* Héroe de servicio: fondo limpio, sin manchas, texto a la izquierda */
.service-hero-premium{background:var(--i4-bg)!important;background-image:none!important;padding:28px 16px 8px!important;min-height:0!important;text-align:left!important;overflow:visible!important}
.service-hero-premium::before,.service-hero-premium::after{display:none!important;content:none!important}
.service-hero-premium .service-hero-content{max-width:1200px!important;margin:0 auto!important;text-align:left!important;align-items:flex-start!important;padding:0!important;background:none!important;box-shadow:none!important}
.service-hero-premium h1{color:var(--i4-ink)!important;font-size:clamp(1.8rem,1.2rem + 2.6vw,2.75rem)!important;line-height:1.1!important;font-weight:800!important;letter-spacing:-.028em!important;text-align:left!important;text-shadow:none!important;background:none!important;-webkit-text-fill-color:currentColor!important}
.service-hero-premium .hero-text,.service-hero-premium p{color:var(--i4-muted)!important;font-size:1.0625rem!important;line-height:1.6!important;text-align:left!important;max-width:44em;margin-left:0!important}
.service-hero-premium .hero-badge{display:inline-flex!important;align-items:center;gap:6px;padding:6px 12px!important;border-radius:999px!important;background:var(--i4-green-tint)!important;color:var(--i4-green-text)!important;border:0!important;box-shadow:none!important;font-size:.875rem!important;font-weight:700!important;letter-spacing:0!important;text-transform:none!important}
.service-hero-premium .hero-buttons{display:flex!important;flex-wrap:wrap;gap:10px!important;justify-content:flex-start!important}
.btn-hero-primary,.btn-hero-secondary{min-height:56px!important;padding:0 24px!important;border-radius:14px!important;font-size:1.0625rem!important;font-weight:700!important;box-shadow:none!important;transform:none!important;display:inline-flex!important;align-items:center;justify-content:center;gap:8px}
.btn-hero-primary{background:var(--i4-blue)!important;color:#fff!important;border:0!important}
.btn-hero-primary:hover{background:var(--i4-blue-dark)!important}
.btn-hero-secondary{background:#fff!important;color:var(--i4-blue)!important;border:1.5px solid var(--i4-blue)!important}
@media (max-width:820px){.btn-hero-primary,.btn-hero-secondary{width:100%}}

/* Títulos de sección */
.service-section{padding-left:16px!important;padding-right:16px!important}
.service-title-center,.service-section h2{color:var(--i4-ink)!important;font-size:clamp(1.4rem,1.15rem + 1vw,1.9rem)!important;line-height:1.2!important;font-weight:800!important;letter-spacing:-.02em!important;text-shadow:none!important}
.service-subtitle,.price-subtitle{color:var(--i4-muted)!important;font-size:1rem!important;line-height:1.55!important}

/* Tarjetas: un solo estilo */
:is(.service-feature-card,.service-faq-card,.service-step-card,.service-prep-item,.service-intro-card,.service-price-box,.service-card,.service-highlight-card,.service-use-card,.service-info-card,.service-schedule-box,.faq-item){
  background:#fff!important;background-image:none!important;border:1px solid var(--i4-line)!important;border-radius:var(--i4-radius)!important;box-shadow:none!important;color:var(--i4-ink)!important}
:is(.service-feature-card,.service-faq-card,.service-step-card,.service-card,.service-highlight-card,.service-use-card) :is(h3,h4){color:var(--i4-ink)!important;font-weight:700!important;letter-spacing:-.01em!important}
:is(.service-feature-card,.service-faq-card,.service-step-card,.service-prep-item,.service-intro-card,.service-card,.service-highlight-card,.service-use-card,.faq-item) p{color:var(--i4-muted)!important;line-height:1.55!important}
.service-step-card :is(.step-number,.step-num,[class*="step-n"]){background:var(--i4-blue)!important;color:#fff!important;box-shadow:none!important}

/* Encabezados de tarjetas informativas: tinte suave en vez de franja de color */
.info-card-header{background:var(--i4-blue-tint)!important;background-image:none!important;color:var(--i4-ink)!important;box-shadow:none!important}
.info-card-header :is(h3,h4,span,p){color:var(--i4-ink)!important}
.info-card-header .info-badge{background:#fff!important;color:var(--i4-blue)!important;border:1px solid #cfe2f4!important}
.info-card-header[style*="FF98" i],.info-card-header[style*="FFC1" i]{background:#fff4e5!important;box-shadow:none!important}

/* Tablas de precios */
.service-price-table-wrapper{background:#fff!important;border:1px solid var(--i4-line)!important;border-radius:var(--i4-radius)!important;box-shadow:none!important;overflow-x:auto}
.service-price-table{border-collapse:collapse!important;width:100%;font-size:.9375rem}
.service-price-table thead th,.service-price-table th{background:#fafcfe!important;background-image:none!important;color:var(--i4-muted)!important;font-size:.75rem!important;font-weight:700!important;letter-spacing:.04em!important;text-transform:uppercase!important;border-bottom:1px solid var(--i4-line)!important}
.service-price-table td{border-top:1px solid var(--i4-line-soft)!important;color:var(--i4-ink)!important;background:#fff!important;padding-top:12px!important;padding-bottom:12px!important}
.service-price-table td.price-fonasa,.price-fonasa{color:var(--i4-green-text)!important;font-weight:800!important;background:none!important}
.price-note{color:var(--i4-muted)!important;font-size:.875rem!important}

/* Avisos */
.service-alert-box{background:#fff8e8!important;background-image:none!important;border:1px solid #f1dfb0!important;border-left-width:1px!important;border-radius:16px!important;box-shadow:none!important;color:#5c4a22!important}
.service-alert-box.service-alert-info{background:var(--i4-blue-tint)!important;border-color:#cfe2f4!important;color:#2c4766!important}
.service-alert-box.service-alert-danger{background:#fdf0f1!important;border-color:#f3c9cf!important;color:#7a1f2b!important}
.service-alert-box :is(h3,h4,strong){color:inherit!important}

/* Cierre de página */
.service-cta-final{background:var(--i4-blue)!important;background-image:none!important;border-radius:20px!important;box-shadow:none!important;margin-left:16px!important;margin-right:16px!important}
.service-cta-final::before,.service-cta-final::after{display:none!important}
.service-cta-final :is(h2,h3,p){color:#fff!important;text-shadow:none!important}
.service-cta-btn{background:#fff!important;color:var(--i4-blue)!important;border:0!important;border-radius:14px!important;min-height:52px!important;font-weight:800!important;box-shadow:none!important;transform:none!important}
.service-cta-btn-secondary{background:transparent!important;color:#fff!important;border:1.5px solid rgba(255,255,255,.7)!important;border-radius:14px!important;min-height:52px!important;font-weight:700!important;box-shadow:none!important}
@media (min-width:1248px){.service-cta-final{margin-left:auto!important;margin-right:auto!important;max-width:1200px}}

/* Listas con check */
.service-check-list li::before,.service-prep-list li::before{color:var(--i4-green)!important}

/* Prioridad sobre reglas antiguas más específicas */
html body.page .service-hero-premium,html body .service-hero-premium.service-hero-premium{background:var(--i4-bg)!important;background-image:none!important;color:var(--i4-ink)!important}
html body .service-hero-premium a.btn-hero-primary,html body .service-hero-premium a.btn-hero-primary *{color:#fff!important}
html body .service-hero-premium a.btn-hero-primary{background:var(--i4-blue)!important;background-image:none!important}
html body .service-hero-premium a.btn-hero-secondary,html body .service-hero-premium a.btn-hero-secondary *{color:var(--i4-blue)!important}
html body .service-hero-premium a.btn-hero-secondary{background:#fff!important;background-image:none!important}
html body .service-hero-premium .hero-badge,html body .service-hero-premium .hero-badge *{color:var(--i4-green-text)!important}
html body.page:not(.itm4-none) .service-hero-premium.service-hero-premium,html body:not(.itm4-none) .service-hero-premium.service-hero-premium{background:var(--i4-bg)!important;background-image:none!important}
html body .service-hero-premium.service-hero-premium h1{color:var(--i4-ink)!important}
html body .service-schedule-box.service-schedule-box,html body .service-schedule-box.service-schedule-box *{color:var(--i4-ink)!important}
html body .service-schedule-box.service-schedule-box :is(i,svg){color:var(--i4-blue)!important}
html body .cta-card.cta-card :is(h2,h3,p),html body .rx-final-cta.rx-final-cta :is(h2,h3,p){color:#fff!important}

/* ==========================================================================
   4.1.1 · Alineación consistente (todo a la izquierda, como el diseño nuevo)
   ========================================================================== */
html body :is(.v5-section-heading,.itm-local-seo-copy,.s-section,.s-search,.service-price-box,.service-cta-final,.cta-card,.spal-section-head,.spal-hero-inner,.spal-cta-inner,.page-hero-premium-content,.prices-section,.rx-final-cta,.resconf-wrapper,.s-hero,.hero-inner) :is(h1,h2,h3,p,span,li,.section-badge,.hero-badge){text-align:left!important}
html body :is(.v5-section-heading,.itm-local-seo-copy,.spal-section-head,.page-hero-premium-content,.s-search,.service-price-box){align-items:flex-start!important;margin-left:0!important;margin-right:auto!important}
html body :is(.v5-section-heading,.itm-local-seo-copy) .section-badge,html body .s-search .s-mode{margin-left:0!important;margin-right:auto!important}
html body :is(.v5-section-heading,.itm-local-seo-copy,.spal-section-head) :is(h2,p){margin-left:0!important;margin-right:0!important;max-width:42em}
html body :is(.service-title-center,.service-section > h2,.service-section > p){text-align:left!important;margin-left:0!important}
html body :is(.service-step-card,.service-use-card,.service-feature-card,.service-highlight-card,.highlight-content,.paso-a-paso-card,.spal-card){text-align:left!important;align-items:flex-start!important}
html body :is(.service-step-card,.service-use-card,.service-feature-card,.service-highlight-card,.paso-a-paso-card) :is(h3,h4,p,li,ul){text-align:left!important}
html body :is(.service-step-card,.service-use-card,.service-feature-card,.paso-a-paso-card) > :is(.feature-icon,.step-icon,.highlight-icon,.service-card-icon,.step-number,.step-num,span:first-child){margin-left:0!important;margin-right:auto!important}
html body .service-cta-final,html body .cta-card,html body .rx-final-cta{text-align:left!important;align-items:flex-start!important;padding:24px 20px!important}
html body :is(.service-cta-final,.cta-card,.rx-final-cta) :is(.service-cta-buttons,.cta-buttons,div:has(> a)){justify-content:flex-start!important;align-items:stretch!important}
html body .s-faq h2,html body .s-section > h2{text-align:left!important}

/* Reseñas de Google: el carrusel nunca se sale de la pantalla */
.itm4 .v5-section:has(.ti-widget),.itm4 .v5-section:has([class*="trustindex"]),.v5-section:has(.ti-widget){overflow:hidden!important;max-width:100%}
.ti-widget,[class*="trustindex"]{max-width:100%!important;overflow:hidden!important}

/* Convenios: grilla pareja de 3 columnas */
.itm4 .itm4-conv,.itm4 .v5-convenios-grid,.itm4 [class*="convenios-grid"]{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;justify-items:stretch!important}
.itm4 [class*="convenios-grid"] > *{width:auto!important;max-width:none!important;margin:0!important;aspect-ratio:1/1;display:flex!important;align-items:center;justify-content:center;padding:10px!important;border:1px solid var(--i4-line)!important;border-radius:14px!important;background:#fff!important;box-shadow:none!important;transform:none!important}
.itm4 [class*="convenios-grid"] img{max-width:80%!important;max-height:80%!important;width:auto!important;height:auto!important;object-fit:contain}
@media (min-width:821px){.itm4 [class*="convenios-grid"]{grid-template-columns:repeat(6,minmax(0,1fr))!important}}
.itm4 .itm-convenios-marquee{overflow:visible!important;mask-image:none!important;-webkit-mask-image:none!important;padding:0!important}
.itm4 .itm-convenios-track{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;width:auto!important;animation:none!important;transform:none!important}
.itm4 .itm-convenio-dup{display:none!important}
.itm4 .itm-convenio-logo{width:auto!important;min-width:0!important;height:auto!important;aspect-ratio:1/1;margin:0!important;padding:12px!important;display:flex!important;align-items:center!important;justify-content:center!important;background:#fff!important;border:1px solid var(--i4-line)!important;border-radius:14px!important;box-shadow:none!important;transform:none!important;outline:0!important}
.itm4 .itm-convenio-logo img{max-width:85%!important;max-height:85%!important;width:auto!important;height:auto!important;object-fit:contain!important;filter:none!important}
@media (min-width:821px){.itm4 .itm-convenios-track{grid-template-columns:repeat(6,minmax(0,1fr))!important}}
html body .itm4 .itm-convenio-logo.itm-convenio-dup{display:none!important}

/* Bloque "Pacientes de sectores cercanos": sin círculos decorativos, fotos compactas */
html body .itm-local-network-section{background:var(--i4-bg)!important;background-image:none!important;padding:32px 16px!important}
html body .itm-local-network-section::before,html body .itm-local-network-section::after,
html body .itm-local-network-inner::before,html body .itm-local-network-inner::after,
html body .itm-local-network-media::before,html body .itm-local-network-media::after,
html body .itm-local-network-photo::before,html body .itm-local-network-photo::after{display:none!important;content:none!important}
html body .itm-local-network-inner{max-width:1200px;margin:0 auto;background:none!important;box-shadow:none!important}
html body .itm-local-network-panel{background:#fff!important;border:1px solid var(--i4-line)!important;border-radius:var(--i4-radius)!important;box-shadow:none!important}
html body .itm-local-network-media{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;background:none!important}
html body .itm-local-network-photo{margin:0!important;border-radius:14px!important;overflow:hidden!important;background:#fff!important;border:1px solid var(--i4-line)!important;box-shadow:none!important;transform:none!important}
html body .itm-local-network-photo img{display:block;width:100%!important;height:110px!important;object-fit:cover!important}
html body .itm-local-network-photo figcaption{padding:8px!important;font-size:.75rem!important;font-weight:700!important;text-align:left!important;color:var(--i4-ink)!important;background:#fff!important}
@media (min-width:821px){html body .itm-local-network-photo img{height:180px!important}}
html body .itm-local-network-photo,html body .itm-local-network-photo img{background-image:none!important}
html body .itm-local-network-media > *::before,html body .itm-local-network-media > *::after,html body .itm-local-network-media::before,html body .itm-local-network-media::after{display:none!important;content:none!important}
/* Tablas de precio: si no caben, se desplazan dentro de su tarjeta (nunca se cortan) */
html body .service-price-box{min-width:0!important;overflow:visible!important}
html body .service-price-table-wrapper{overflow-x:auto!important;max-width:100%!important;-webkit-overflow-scrolling:touch}
html body .service-price-table{min-width:0!important;table-layout:auto!important}
html body .service-price-table td,html body .service-price-table th{white-space:normal}
html body .service-price-table td:last-child,html body .service-price-table th:last-child,html body .service-price-table .price-fonasa{white-space:nowrap!important}

/* Tablas de 3 columnas en celular: cada fila como tarjeta (nada se corta) */
@media (max-width:820px){
  html body .service-price-table-wrapper{overflow:visible!important}
  html body .service-price-table thead{display:none!important}
  html body .service-price-table,html body .service-price-table tbody{display:block!important;width:100%!important}
  html body .service-price-table tr{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;column-gap:12px;row-gap:2px;padding:12px 14px!important;border-top:1px solid var(--i4-line-soft)}
  html body .service-price-table tr:first-child{border-top:0}
  html body .service-price-table td{display:block!important;border:0!important;padding:0!important;background:none!important;text-align:left!important;white-space:normal!important;font-size:.9375rem!important}
  html body .service-price-table td:first-child{grid-column:1;grid-row:1 / span 3;align-self:center;font-weight:600!important}
  html body .service-price-table td:not(:first-child){grid-column:2;text-align:right!important;white-space:nowrap!important}
  html body .service-price-table td:not(:first-child)[data-label]::before{content:attr(data-label) " ";font-size:.6875rem;font-weight:700;color:var(--i4-muted);text-transform:uppercase;letter-spacing:.03em}
  html body .service-price-table td:nth-child(3){font-size:.8125rem!important;color:var(--i4-muted)!important}
}

/* Recuadros de horario: etiqueta arriba, horario abajo, sin columnas apretadas */
html body .service-schedule-box{padding:18px!important;text-align:left!important}
html body .service-schedule-box h3{display:flex!important;align-items:center;gap:8px;font-size:1rem!important;letter-spacing:0!important;text-transform:none!important;margin:0 0 12px!important;text-align:left!important}
html body .service-schedule-box .schedule-time{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:2px!important;margin:0 0 12px!important;font-size:.875rem!important;font-weight:600!important;color:var(--i4-muted)!important;text-align:left!important}
html body .service-schedule-box .schedule-time span{display:block!important;font-size:1rem!important;font-weight:700!important;color:var(--i4-ink)!important;text-align:left!important;width:auto!important}
html body .service-schedule-box small{display:block;font-size:.8125rem!important;line-height:1.5!important;color:var(--i4-muted)!important}

/* Fotos del bloque local: grilla de 3 pareja */
html body .itm-local-network-media{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
html body .itm-local-network-media > *{grid-column:auto!important;grid-row:auto!important;width:auto!important}
@media (max-width:820px){
  html body .service-price-table tr{grid-template-columns:minmax(0,1fr) minmax(0,44%)!important;row-gap:8px!important}
  html body .service-price-table td:not(:first-child){white-space:normal!important;overflow-wrap:anywhere;display:flex!important;flex-direction:column;align-items:flex-end;line-height:1.3}
  html body .service-price-table td:not(:first-child)[data-label]::before{display:block;margin-bottom:1px;line-height:1.2}
  html body .service-price-table td:first-child{overflow-wrap:anywhere}
}

/* ==========================================================================
   4.1.1 · Encabezados de páginas antiguas (Servicios, Servicios Puente Alto,
   Contacto) con el mismo estilo del sitio: fondo limpio, texto a la izquierda
   ========================================================================== */
html body :is(.page-hero-premium,.spal-hero,#itm-con-hero){background:var(--i4-bg)!important;background-image:none!important;color:var(--i4-ink)!important;text-align:left!important;padding:28px 16px 12px!important;min-height:0!important;overflow:visible!important}
html body :is(.page-hero-premium,.spal-hero,#itm-con-hero)::before,html body :is(.page-hero-premium,.spal-hero,#itm-con-hero)::after,
html body :is(.page-hero-premium,.spal-hero,#itm-con-hero) *::before,html body :is(.page-hero-premium,.spal-hero,#itm-con-hero) *::after{background-image:none!important}
html body :is(.page-hero-premium,.spal-hero,#itm-con-hero)::before,html body :is(.page-hero-premium,.spal-hero,#itm-con-hero)::after,
html body #itm-con-hero .hero-inner::before,html body #itm-con-hero .hero-inner::after{display:none!important;content:none!important}
html body :is(.page-hero-premium-content,.spal-hero-inner,#itm-con-hero .hero-inner){max-width:1200px!important;margin:0 auto!important;text-align:left!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:12px!important;background:none!important;box-shadow:none!important;padding:0!important}
html body :is(.page-hero-premium,.spal-hero,#itm-con-hero) :is(h1,.hero-title){color:var(--i4-ink)!important;font-size:clamp(1.8rem,1.2rem + 2.6vw,2.75rem)!important;line-height:1.1!important;font-weight:800!important;letter-spacing:-.028em!important;text-align:left!important;text-shadow:none!important;margin:0!important;-webkit-text-fill-color:currentColor!important;background:none!important}
html body :is(.page-hero-premium,.spal-hero,#itm-con-hero) :is(p,.hero-sub,.spal-hero-sub){color:var(--i4-muted)!important;font-size:1.0625rem!important;line-height:1.6!important;text-align:left!important;margin:0!important;max-width:42em}
html body :is(.page-hero-premium,.spal-hero,#itm-con-hero) :is(.hero-badge,.spal-hero-badge,.hero-icon,.con-hero-badge){align-self:flex-start!important;margin:0!important}
html body #itm-con-hero .hero-icon{display:none!important}
html body :is(.page-hero-premium,.spal-hero,#itm-con-hero) :is(.hero-buttons,.spal-hero-actions,.hero-chips,.con-hero-chips,div:has(> a)){justify-content:flex-start!important;align-items:flex-start!important;flex-wrap:wrap!important}
html body .spal-hero a,html body .page-hero-premium a.btn-hero-primary{border-radius:14px!important}
html body :is(.spal-cta-section,.spal-cta-inner){text-align:left!important;align-items:flex-start!important}
html body .spal-cta-inner > div:has(> a){justify-content:flex-start!important}

/* Páginas de Rayos X por zona: botones que caben, lista de zonas a la izquierda */
html body .v5-hero-actions{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:10px!important}
html body .v5-hero-actions > a{width:100%!important;min-height:52px!important;justify-content:center!important;white-space:normal!important}
html body :is(.italmed-rx-related,.rx-related-links,.service-section) > div:has(> a.btn-new + a.btn-new){justify-content:flex-start!important}
html body .service-wrapper .service-section > div:has(> a + a + a){display:flex!important;flex-wrap:wrap!important;justify-content:flex-start!important;gap:8px!important}
html body .service-wrapper .service-section > div:has(> a + a + a) > a{margin:0!important}
html body .itm-rx-links{display:flex!important;flex-wrap:wrap!important;justify-content:flex-start!important;gap:8px!important}
html body .itm-rx-links a{margin:0!important;min-height:44px;display:inline-flex!important;align-items:center;padding:0 14px!important;border-radius:12px!important;border:1px solid var(--i4-line)!important;background:#fff!important;color:var(--i4-blue)!important;font-weight:600!important;text-decoration:none!important;box-shadow:none!important}
html body .v5-hero-actions .btn-new-solid{background:var(--i4-blue)!important;color:#fff!important;border:0!important}
html body .v5-hero-actions .btn-new-ghost{background:var(--i4-green)!important;color:#fff!important;border:0!important}
html body div#itm-con-hero,html body div#itm-con-hero .hero-inner{background:var(--i4-bg)!important;background-image:none!important}
html body div#itm-con-hero .hero-inner{background:none!important}
html body #itm-con-hero .con-hero-badges{display:flex!important;flex-wrap:wrap!important;justify-content:flex-start!important;gap:8px!important}
html body #itm-con-hero .con-hero-badge{margin:0!important;background:#fff!important;border:1px solid var(--i4-line)!important;color:var(--i4-ink)!important;box-shadow:none!important}
html body #itm-con-hero .hero-icon-wrap{display:none!important}
html body .spal-hero .spal-btn-primary{background:var(--i4-blue)!important;color:#fff!important;border:0!important;box-shadow:none!important}
html body .spal-hero .spal-btn-ghost{background:#fff!important;color:var(--i4-blue)!important;border:1.5px solid var(--i4-blue)!important;box-shadow:none!important}
html body .spal-stats{background:var(--i4-bg)!important;padding:4px 16px 12px!important}
html body .spal-stats-inner{max-width:1200px;margin:0 auto;display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:8px!important}
html body .spal-stat{justify-content:flex-start!important;text-align:left!important;color:var(--i4-muted)!important}
html body .spal-section-head{display:flex!important;flex-direction:column!important;align-items:flex-start!important;text-align:left!important}
html body .spal-section-head > *{margin-left:0!important;margin-right:0!important;align-self:flex-start!important}
html body :is(.spal-tabs,.spal-filters,.spal-cats,[class*="spal-tab"]):not(a):not(button){justify-content:flex-start!important}

/* 4.1.3 · Resultados: bloque "¿Necesitas ayuda?" con el mismo estilo de tarjeta */
html body #itm-resultados-page .ayuda-bloque{background:#fff!important;background-image:none!important;border:1px solid var(--i4-line)!important;border-radius:var(--i4-radius)!important;box-shadow:none!important;padding:18px!important;margin-top:14px!important;color:var(--i4-ink)!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:14px!important}
html body #itm-resultados-page .ayuda-texto h3{color:var(--i4-ink)!important;font-size:1.0625rem!important;display:flex;align-items:center;gap:8px}
html body #itm-resultados-page .ayuda-texto h3 i{color:var(--i4-blue)!important}
html body #itm-resultados-page .ayuda-texto p{color:var(--i4-muted)!important;font-size:.95rem!important}
html body #itm-resultados-page .ayuda-botones{display:grid!important;grid-template-columns:1fr!important;gap:10px!important}
html body #itm-resultados-page .btn-ayuda{width:100%!important;justify-content:center!important;transform:none!important}
@media (min-width:821px){
  html body #itm-resultados-page .ayuda-bloque{flex-direction:row!important;align-items:center!important;justify-content:space-between!important}
  html body #itm-resultados-page .ayuda-botones{grid-template-columns:auto auto!important}
  html body #itm-resultados-page .btn-ayuda{width:auto!important;padding:0 22px!important}
}

/* ==========================================================================
   4.1.4 · Detalles marcados
   ========================================================================== */
/* Tarjetas con enlace "Ver…": altura pareja y botón al pie de la tarjeta */
html body .service-grid-3,html body .service-grid-2{align-items:stretch!important}
html body :is(.service-feature-card,.service-card,.service-use-card):has(.feature-details a,.service-card-link,> a:last-child){display:flex!important;flex-direction:column!important;height:auto!important;transform:none!important;box-shadow:none!important}
html body .service-feature-card .feature-details{margin-top:auto!important;padding-top:16px!important;width:100%}
html body .service-feature-card .feature-details small{display:block;font-size:inherit!important}
html body .service-feature-card .feature-details a{display:flex!important;align-items:center;justify-content:center;gap:8px;width:100%;min-height:48px;padding:0 16px;box-sizing:border-box;border-radius:12px;border:1.5px solid var(--i4-blue)!important;background:#fff!important;color:var(--i4-blue)!important;font-size:.95rem!important;font-weight:700!important;text-decoration:none!important}
html body .service-feature-card .feature-details a::after{content:"→";font-weight:700}
html body .service-feature-card .feature-details a:hover{background:var(--i4-blue-tint)!important}

/* Bloques azules de cierre: botones alineados, mismo alto */
html body .service-cta-final .cta-buttons-row{display:flex!important;flex-wrap:wrap!important;gap:10px!important;justify-content:flex-start!important;align-items:stretch!important;margin:6px 0 0!important}
html body .service-cta-final .cta-buttons-row > a{min-height:52px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;padding:0 22px!important;margin:0!important}
html body .service-cta-final > small{display:none!important}
@media (max-width:820px){html body .service-cta-final .cta-buttons-row > a{width:100%!important}}

/* Rayos X: separación entre el bloque azul y los artículos */
.itm4 .itm4-section:has(> .itm4-wrap > .itm4-cta){padding-bottom:40px!important}
.itm4 .itm4-cta + *,.itm4 .itm4-section:has(.itm4-cta) + *{margin-top:24px!important}

/* "Cotizar varias radiografías": botón alineado con el título */
.itm4 .itm4-head{align-items:center!important}
.itm4 .itm4-head-btn{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;border-radius:12px;border:1.5px solid var(--i4-blue);background:#fff;color:var(--i4-blue);font-size:.9375rem;font-weight:700;text-decoration:none;white-space:nowrap}
.itm4 .itm4-head-btn::after{content:"→"}
.itm4 .itm4-head-btn:hover{background:var(--i4-blue-tint)}
@media (max-width:820px){.itm4 .itm4-head-btn{width:100%;justify-content:center}}

/* Cotizador: aire entre buscador y lista; selector FONASA sin cortes */
#itm-cotizador-page #itm-cot-toolbar{margin-bottom:16px!important}
#itm-cotizador-page #itm-cot-toolbar .cot-toolbar-controls{display:flex!important;flex-wrap:wrap!important;gap:12px!important;align-items:stretch!important;width:100%}
#itm-cotizador-page #itm-cot-toolbar .cot-toolbar-controls > :first-child{flex:1 1 320px!important;min-width:0!important}
#itm-cotizador-page #itm-cot-toolbar .cot-price-toggle{display:grid!important;grid-template-columns:1fr 1fr!important;flex:0 1 420px!important;min-width:0!important;width:auto!important;overflow:visible!important}
#itm-cotizador-page #itm-cot-toolbar .cot-price-toggle button{white-space:normal!important;line-height:1.2!important;padding:8px 12px!important;min-width:0!important;overflow:visible!important;text-overflow:clip!important}
@media (max-width:820px){#itm-cotizador-page #itm-cot-toolbar .cot-price-toggle{flex:1 1 100%!important}}
@media (max-width:820px){
  #itm-cotizador-page #itm-cot-toolbar .cot-price-toggle button{font-size:.8125rem!important;padding:8px 6px!important;white-space:nowrap!important}
  html body .service-cta-final{padding:22px 16px!important}
  html body .service-cta-final .cta-buttons-row > a{padding:0 12px!important;font-size:.98rem!important;white-space:nowrap!important}
  html body .service-cta-final h2{font-size:1.5rem!important;line-height:1.2!important}
}
