/* Revisión D1 · salud, Medicare y viajes (ES/EN) — ajuste 2: estructura anterior restaurada.
   grupo-salud, producto-salud-marketplace, producto-salud-fuera-marketplace, grupo-medicare, grupo-viajes.
   Solo espaciado, fondos, justificación y ocultar numeración; todas las reglas acotadas a main#main.rv-d1 */

/* ---------- Espaciado compacto de secciones ---------- */
html body main#main.rv-d1 > section:is(.a27,.b-section):not(.b-dark),
html body main#main.rv-d1 #bm-medicare > section.b-section{padding:clamp(40px,4.6vw,60px) 0!important;min-height:0!important;margin:0!important}
html body main#main.rv-d1 > section:is(.a27,.b-section):not(.b-dark) > .b-wrap,
html body main#main.rv-d1 #bm-medicare > section.b-section > .b-wrap{padding-top:0!important;padding-bottom:0!important}
html body main#main.rv-d1 > section.b-dark{padding:clamp(40px,4.6vw,56px) 0!important;min-height:0!important}
html body main#main.rv-d1 > section.b-dark .b-wrap{padding-top:0!important;padding-bottom:0!important}
html body main#main.rv-d1 #bm-medicare section#calculadora-medicare{padding:clamp(40px,4.6vw,60px) 0!important;margin:0!important}
html body main#main.rv-d1 #bm-medicare section#calculadora-medicare > .b-wrap{padding-top:0!important;padding-bottom:0!important}
html body main#main.rv-d1 :is(.a27,.b-section) h2{margin-top:4px!important;margin-bottom:12px!important}
html body main#main.rv-d1 .a27-intro{margin:0 0 22px!important;max-width:780px}
html body main#main.rv-d1 .a27-line,html body main#main.rv-d1 .a27-note{margin-top:22px!important}
html body main#main.rv-d1 .oe-wrap{margin-bottom:0!important}
html body main#main.rv-d1 [id]{scroll-margin-top:96px}

/* ---------- Fondos contiguos distintos (prioridad sobre reglas heredadas por id, que usan hasta 7 ids) ---------- */
html:not(#d1a):not(#d1b):not(#d1c):not(#d1d):not(#d1e):not(#d1f):not(#d1g) body main#main.rv-d1 section.rv-bg-pearl{background:#FAFAF7!important}
html:not(#d1a):not(#d1b):not(#d1c):not(#d1d):not(#d1e):not(#d1f):not(#d1g) body main#main.rv-d1 section.rv-bg-sky{background:#F0F6FC!important}
html:not(#d1a):not(#d1b):not(#d1c):not(#d1d):not(#d1e):not(#d1f):not(#d1g) body main#main.rv-d1 section.rv-bg-green{background:#F1F8F4!important}
html:not(#d1a):not(#d1b):not(#d1c):not(#d1d):not(#d1e):not(#d1f):not(#d1g) body main#main.rv-d1 section.rv-bg-white{background:#FFFFFF!important}

/* ---------- Párrafos justificados, sin cortes de palabra ---------- */
html body main#main.rv-d1 :is(.a27,.b-section) :is(p,li):not(.b-eyebrow):not(.m27-date):not(.mc-footnote):not(.a27-note):not(.m27-note){text-align:justify!important;text-align-last:left!important}
html body main#main.rv-d1 :is(p,li,dd,dt,h1,h2,h3,summary,span,a){hyphens:none!important;-webkit-hyphens:none!important}
/* Tarjetas angostas (cuatro o tres columnas) y notas con enlaces: alineadas a la izquierda para evitar huecos */
html body main#main.rv-d1.rv-d1.rv-d1.rv-d1.rv-d1.rv-d1.rv-d1.rv-d1.rv-d1 :is(.a27-ben4,.a27-ben3,.c27-grid,.fx-cards,.m27-grid) p,
html body main#main.rv-d1.rv-d1.rv-d1.rv-d1.rv-d1.rv-d1.rv-d1.rv-d1.rv-d1 :is(.mc-footnote,.a27-note,.m27-note){text-align:left!important}
@media (max-width:700px){html body main#main.rv-d1.rv-d1.rv-d1.rv-d1.rv-d1.rv-d1.rv-d1.rv-d1.rv-d1 :is(.a27,.b-section) li{text-align:left!important}}

/* ---------- Sin números decorativos ---------- */
html body main#main.rv-d1 .fx-ico,html body main#main.rv-d1 .lf-step > b{display:none!important}

/* ---------- Medicare ---------- */
html body main#main.rv-d1 #bm-medicare .hero p{max-width:34em}
html body main#main.rv-d1 #bm-medicare .m27-calc-head h2{margin:4px 0 12px!important}
html body main#main.rv-d1 #bm-medicare #bm-fechas .m27-note:first-of-type{margin:0 0 20px!important;font-size:16px!important;color:#16213D!important}
html body main#main.rv-d1 #bm-medicare #comparar-medicare .m27-note{font-size:15.5px!important;color:#16213D!important;max-width:900px;margin-top:22px!important}
html body main#main.rv-d1 #bm-medicare .mc-result .mc-actions a{text-decoration:none}

/* ---------- Móvil ---------- */
@media (max-width:700px){
  html body main#main.rv-d1 > section:is(.a27,.b-section):not(.b-dark),
  html body main#main.rv-d1 #bm-medicare > section.b-section,
  html body main#main.rv-d1 #bm-medicare section#calculadora-medicare{padding:34px 0!important}
  html body main#main.rv-d1 > section.b-dark{padding:36px 0!important}
}

/* Enlaces dentro de textos y notas */
html body main#main.rv-d1 :is(.a27,.b-section) :is(p,li) a:not(.b-link):not(.b-button){color:#10192A!important;text-decoration:underline!important;text-decoration-color:#B39C5C!important;text-underline-offset:3px}
