/* Enlace Media — tema de Webs. Móvil primero con aire de app nativa; escritorio desde 960 px. */
@font-face { font-family: "InterEM"; src: url("fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --em-navy: #071F43; --em-navy-2: #0f2d5c; --em-red: #C8102E; --em-red-2: #A01725;
  --em-bg: #ffffff; --em-surface: #f3f5f9; --em-card: #ffffff; --em-text: #0d1526; --em-muted: #5b6478; --em-line: #e6e9f0;
  --em-head-bg: rgba(255,255,255,.88); --em-tab-bg: rgba(255,255,255,.9); --em-kicker: #C8102E;
  --em-r: 14px; --em-r-sm: 10px; --em-pad: 16px; --em-max: 1200px;
  --em-font: "InterEM", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --em-tab-h: 62px; --em-safe-b: env(safe-area-inset-bottom, 0px);
  --em-shadow: 0 1px 2px rgba(7,31,67,.06), 0 6px 20px rgba(7,31,67,.06);
  --em-prose: 18px;
  color-scheme: light;
}
html[data-font="lg"] { --em-prose: 20px; }
html[data-font="xl"] { --em-prose: 22px; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) { --em-bg: #0b1220; --em-surface: #111a2c; --em-card: #131d31; --em-text: #e8ecf4; --em-muted: #98a3b8; --em-line: #1f2a40; --em-head-bg: rgba(11,18,32,.86); --em-tab-bg: rgba(13,20,35,.9); --em-kicker: #ff5a6e; --em-navy-ink: #e8ecf4; color-scheme: dark; }
}
html[data-theme="dark"] { --em-bg: #0b1220; --em-surface: #111a2c; --em-card: #131d31; --em-text: #e8ecf4; --em-muted: #98a3b8; --em-line: #1f2a40; --em-head-bg: rgba(11,18,32,.86); --em-tab-bg: rgba(13,20,35,.9); --em-kicker: #ff5a6e; --em-navy-ink: #e8ecf4; color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; }
body.theme-em { margin: 0; background: var(--em-bg); color: var(--em-text); font-family: var(--em-font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; padding-bottom: calc(var(--em-tab-h) + var(--em-safe-b)); overflow-x: clip; }
.theme-em a { color: inherit; text-decoration: none; }
.theme-em img { max-width: 100%; display: block; }
.theme-em button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.theme-em h1, .theme-em h2, .theme-em h3, .theme-em h4 { font-family: var(--em-font); color: inherit; }
.em-wrap { width: 100%; max-width: var(--em-max); margin: 0 auto; padding: 0 var(--em-pad); }
.em-pad { padding-top: 18px; padding-bottom: 28px; }
.em-flex { flex: 1; }
.em-skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--em-navy); color: #fff; padding: 8px 14px; }
.em-skip:focus { left: 8px; top: 8px; }
.theme-em :focus-visible { outline: 2px solid var(--em-red); outline-offset: 2px; border-radius: 6px; }

/* ── Cabecera / barra de app ── */
.em-header { position: sticky; top: 0; z-index: 40; background: var(--em-head-bg); -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid var(--em-line); transition: transform .28s cubic-bezier(.2,.7,.2,1); padding-top: env(safe-area-inset-top, 0px); }
.em-header.is-hidden { transform: translateY(-100%); }
.em-topstrip { display: none; }
.em-appbar-in { display: flex; align-items: center; gap: 6px; height: 54px; }
.em-brand { display: flex; align-items: center; min-width: 0; }
.em-logo { height: 30px; width: auto; }
.theme-em .em-logo-dark { display: none; }
html[data-theme="dark"] .theme-em .em-logo-light { display: none; } html[data-theme="dark"] .theme-em .em-logo-dark { display: block; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .theme-em .em-logo-light { display: none; } html:not([data-theme="light"]) .theme-em .em-logo-dark { display: block; } }
.em-iconbtn, .em-back { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 50%; font-size: 22px; color: var(--em-text); flex: none; }
.em-iconbtn:active, .em-back:active { background: var(--em-surface); }
.em-back { display: none; margin-left: -8px; font-size: 24px; }
.em-only-post { display: none; }
.em-hsearch { display: none; }
.em-iconbtn .ph-fill, [data-save-article] .ph-fill, .em-save .ph-fill { display: none; }
.is-saved .ph-fill { display: inline-block !important; color: var(--em-red); }
.is-saved .ph:not(.ph-fill) { display: none; }

.em-chips { border-top: 1px solid transparent; }
.em-chips-in { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-top: 2px; padding-bottom: 10px; scroll-snap-type: x proximity; }
.em-chips-in::-webkit-scrollbar { display: none; }
.em-chips a { flex: none; padding: 7px 14px; border-radius: 999px; background: var(--em-surface); color: var(--em-muted); font-size: 14px; font-weight: 600; white-space: nowrap; scroll-snap-align: start; transition: background .2s, color .2s; }
.em-chips a.is-active { background: var(--em-navy); color: #fff; }
html[data-theme="dark"] .em-chips a.is-active { background: #e8ecf4; color: #0b1220; }

/* Vista de noticia en el móvil: atrás + compartir/guardar, sin chips */
.view-post .em-back { display: inline-grid; }
.view-post .em-only-post { display: inline-grid; }
.view-post .em-hide-post { display: none; }
.view-post .em-chips { display: none; }
.view-post .em-logo { height: 24px; }

/* ── Barra de pestañas ── */
.em-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(5, 1fr); height: calc(var(--em-tab-h) + var(--em-safe-b)); padding-bottom: var(--em-safe-b); background: var(--em-tab-bg); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px); border-top: 1px solid var(--em-line); }
.theme-em .em-tabbar > * { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--em-muted); font-size: 11px; font-weight: 600; letter-spacing: .01em; position: relative; }
.em-tabbar i { font-size: 25px; line-height: 1; transition: transform .2s; }
.em-tabbar .ph-fill { display: none; }
.em-tabbar .is-active { color: var(--em-navy); }
html[data-theme="dark"] .em-tabbar .is-active { color: #fff; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .em-tabbar .is-active, html:not([data-theme="light"]) .em-chips a.is-active { color: #0b1220; } html:not([data-theme="light"]) .em-tabbar .is-active { color: #fff; } html:not([data-theme="light"]) .em-chips a.is-active { background: #e8ecf4; } }
.em-tabbar .is-active .ph { display: none; }
.em-tabbar .is-active .ph-fill { display: block; }
.em-tabbar .is-active::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--em-red); }
.em-tabbar > *:active i { transform: scale(.88); }
.em-tab-badge { position: absolute; top: 7px; left: 50%; margin-left: 6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--em-red); color: #fff; font-size: 10px; display: grid; place-items: center; }

/* ── Progreso de lectura ── */
.em-progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 60; pointer-events: none; }
.em-progress span { display: block; height: 100%; width: 0; background: var(--em-red); transition: width .1s linear; }
.em-loading .em-progress span { width: 70%; transition: width 6s cubic-bezier(.1,.6,.2,1); }

/* ── Títulos de bloque ── */
.em-hometitle { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 6px; }
.em-hometitle h1 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.em-hometitle span { color: var(--em-muted); font-size: 13px; font-weight: 600; }
.em-block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.em-block-head h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; }
.em-block-head a { color: var(--em-red); font-size: 14px; font-weight: 650; display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.em-bar { width: 4px; height: 18px; border-radius: 2px; background: var(--em-red); display: inline-block; }
.em-eyebrow { margin: 22px 0 10px; font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--em-muted); }
.em-kicker { color: var(--em-kicker); font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

/* ── Última hora ── */
.em-flash { display: flex; align-items: center; gap: 10px; margin: 8px 0 14px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--em-red) 9%, var(--em-bg)); color: var(--em-text); font-size: 14px; font-weight: 600; }
.em-flash-tag { flex: none; display: inline-flex; align-items: center; gap: 6px; background: var(--em-red); color: #fff; border-radius: 999px; padding: 3px 10px 3px 8px; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.em-flash-txt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.em-flash > i { color: var(--em-muted); }
.em-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: em-pulse 1.4s infinite; }
@keyframes em-pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

/* ── Tarjetas ── */
.em-card { position: relative; }
.em-card-link { display: block; }
.em-card-media { display: block; position: relative; overflow: hidden; background: var(--em-surface); border-radius: var(--em-r-sm); }
.em-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.em-ph { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, var(--em-surface), color-mix(in srgb, var(--em-navy) 10%, var(--em-surface))); }
.em-ph img { width: 34%; max-width: 64px; height: auto !important; opacity: .55; object-fit: contain !important; }
.em-card-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.em-card-meta:empty { display: none; }
.em-card-title { font-weight: 700; letter-spacing: -.012em; line-height: 1.28; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.em-card-text { color: var(--em-muted); font-size: 15px; line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.em-card-foot { color: var(--em-muted); font-size: 12.5px; font-weight: 500; }
.em-save { position: absolute; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--em-muted); font-size: 19px; }
.em-save:active { background: var(--em-surface); }
@media (hover: hover) { .em-card-link:hover .em-card-media img { transform: scale(1.04); } .em-card-link:hover .em-card-title { color: var(--em-red); } }

/* fila: miniatura a la derecha */
.em-card-row { border-bottom: 1px solid var(--em-line); }
.em-card-row .em-card-link { display: grid; grid-template-columns: 1fr 108px; grid-template-areas: "body media"; gap: 14px; padding: 14px 0; align-items: start; }
.em-card-row .em-card-media { grid-area: media; aspect-ratio: 4 / 3; }
.em-card-row .em-card-body { grid-area: body; min-height: 81px; padding-bottom: 22px; position: relative; }
.em-card-row .em-card-title { font-size: 16px; }
.em-card-row .em-card-foot { position: absolute; bottom: 0; left: 0; }
.em-card-row .em-save { right: 112px; bottom: 6px; }
.em-list .em-card-row:last-child, .em-listing-grid .em-card-row:last-child { border-bottom: 0; }

/* tile: vertical */
.em-card-tile .em-card-media { aspect-ratio: 16 / 10; margin-bottom: 10px; }
.em-card-tile .em-card-title { font-size: 15.5px; }
.theme-em .em-card-tile .em-save { right: 8px; top: 8px; bottom: auto; background: rgba(255,255,255,.92); color: #0d1526; box-shadow: 0 2px 8px rgba(0,0,0,.15); }

/* lead: destacada */
.em-card-lead { border-bottom: 1px solid var(--em-line); padding-bottom: 16px; margin-bottom: 2px; }
.em-card-lead .em-card-media { aspect-ratio: 16 / 9; border-radius: var(--em-r); margin-bottom: 12px; }
.em-card-lead .em-card-title { font-size: 23px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; -webkit-line-clamp: 4; }
.em-card-lead .em-card-body { padding-right: 34px; }
.em-card-lead .em-save { right: -6px; bottom: 8px; }

/* slide: carrusel con texto sobre la foto */
.em-card-slide .em-card-link { position: relative; display: block; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 4.4; background: #0b1220; box-shadow: var(--em-shadow); }
.em-card-slide .em-card-media { position: absolute; inset: 0; border-radius: 0; }
.em-card-slide .em-card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,12,28,0) 30%, rgba(4,12,28,.55) 58%, rgba(4,12,28,.92) 100%); }
.em-card-slide .em-card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 18px 20px; color: #fff; gap: 8px; }
.em-card-slide .em-kicker { color: #fff; background: var(--em-red); padding: 3px 9px; border-radius: 6px; align-self: flex-start; font-size: 10.5px; }
.em-card-slide .em-card-title { font-size: 22px; line-height: 1.18; font-weight: 800; letter-spacing: -.02em; -webkit-line-clamp: 4; text-shadow: 0 1px 12px rgba(0,0,0,.25); }
.em-card-slide .em-card-foot { color: rgba(255,255,255,.78); }

/* ── Portada ── */
.em-carousel { position: relative; margin: 0 calc(-1 * var(--em-pad)); }
.em-carousel-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 var(--em-pad); scroll-padding: 0 var(--em-pad); }
.em-carousel-track::-webkit-scrollbar { display: none; }
.em-carousel-track > .em-card { flex: 0 0 88%; scroll-snap-align: start; }
.em-dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.em-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--em-line); transition: width .25s, background .25s; }
.em-dots i.is-on { width: 20px; background: var(--em-red); }
.em-hero-side { margin-top: 22px; }
.em-section { margin-top: 26px; }
.em-rail-wrap { position: relative; }
.em-rail { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(-1 * var(--em-pad)); padding: 2px var(--em-pad) 6px; scroll-padding: 0 var(--em-pad); }
.em-rail::-webkit-scrollbar { display: none; }
.em-rail > .em-card { flex: 0 0 72%; max-width: 290px; scroll-snap-align: start; }
.em-grid-list { display: block; }

/* ── Listados ── */
.em-pagehead { margin-bottom: 8px; }
.em-pagehead .em-eyebrow { margin: 0 0 4px; color: var(--em-red); }
.em-pagehead h1 { margin: 0; font-size: 30px; line-height: 1.1; font-weight: 800; letter-spacing: -.03em; }
.em-pagehead-sub { margin: 6px 0 12px; color: var(--em-muted); font-size: 14.5px; }
.em-pager { display: flex; gap: 10px; justify-content: center; margin: 22px 0 6px; flex-wrap: wrap; }
.theme-em .em-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; background: var(--em-navy); color: #fff !important; font-weight: 700; font-size: 15px; transition: transform .15s, opacity .2s; }
.em-btn:active { transform: scale(.97); }
.theme-em .em-btn-ghost { background: var(--em-surface); color: var(--em-text) !important; }
.em-btn-block { width: 100%; }
html[data-theme="dark"] .theme-em .em-btn:not(.em-btn-ghost), html[data-theme="dark"] .theme-em .em-roundbtn-accent { background: var(--em-red); }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .theme-em .em-btn:not(.em-btn-ghost), html:not([data-theme="light"]) .theme-em .em-roundbtn-accent { background: var(--em-red); } }
.em-btn.is-busy { opacity: .6; pointer-events: none; }
.em-empty { text-align: center; padding: 48px 12px; color: var(--em-muted); }
.em-empty > i { font-size: 46px; color: var(--em-line); }
.em-empty h1 { color: var(--em-text); font-size: 24px; margin: 10px 0 4px; }
.em-empty p { margin: 10px 0 18px; }

/* Secciones */
.em-sections-grid { display: grid; gap: 10px; margin-top: 8px; }
.em-section-tile { display: flex; align-items: center; gap: 14px; padding: 10px; padding-right: 14px; border-radius: var(--em-r); background: var(--em-card); border: 1px solid var(--em-line); }
.em-section-tile-media { width: 64px; height: 64px; flex: none; border-radius: 12px; overflow: hidden; background: var(--em-surface); }
.em-section-tile-media img { width: 100%; height: 100%; object-fit: cover; }
.em-section-tile-body { flex: 1; display: flex; flex-direction: column; }
.em-section-tile-body b { font-size: 17px; }
.em-section-tile-body small { color: var(--em-muted); font-size: 13px; }
.em-section-tile > i { color: var(--em-muted); font-size: 18px; }
.em-section-all { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 16px; border-radius: var(--em-r); background: var(--em-navy); color: #fff !important; font-weight: 700; }
.em-section-all i:last-child { margin-left: auto; }

/* Buscar */
.em-searchbox { position: relative; display: flex; align-items: center; margin: 4px 0 12px; }
.em-searchbox > i { position: absolute; left: 14px; font-size: 20px; color: var(--em-muted); }
.em-searchbox input { width: 100%; height: 50px; border-radius: 14px; border: 1px solid var(--em-line); background: var(--em-surface); color: var(--em-text); padding: 0 44px; font: inherit; font-size: 16px; outline: none; -webkit-appearance: none; appearance: none; }
.em-searchbox input:focus { border-color: var(--em-navy); background: var(--em-bg); }
.em-searchbox-clear { position: absolute; right: 12px; color: var(--em-muted); font-size: 20px; }
.em-topic-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.em-topic-chips a, .em-recent-list a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--em-line); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.em-topic-chips-soft a { background: var(--em-surface); border-color: transparent; }
.em-topic-chips a i { color: var(--em-red); }
.em-recent-list { display: flex; flex-wrap: wrap; gap: 8px; }
.em-recent-list a i { color: var(--em-muted); }

/* ── Noticia ── */
.em-article-wrap { max-width: var(--em-max); margin: 0 auto; padding: 14px var(--em-pad) 30px; }
.em-article-meta-top { display: flex; align-items: center; gap: 10px; color: var(--em-muted); font-size: 13px; font-weight: 600; }
.em-dot-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--em-line); }
.em-article-title { margin: 10px 0 10px; font-size: 27px; line-height: 1.16; font-weight: 800; letter-spacing: -.028em; text-wrap: balance; }
.em-article-lead { margin: 0 0 14px; font-size: 18px; color: var(--em-muted); line-height: 1.5; }
.em-byline { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--em-line); border-bottom: 1px solid var(--em-line); }
.em-byline-avatar { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--em-line); background: #fff; display: grid; place-items: center; flex: none; }
.em-byline-avatar img { width: 22px; }
.em-byline-txt { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.em-byline-txt b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.em-byline-txt time { font-size: 12.5px; color: var(--em-muted); }
.theme-em .em-roundbtn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--em-surface); font-size: 19px; flex: none; }
.em-roundbtn .ph-fill { display: none; }
.theme-em .em-roundbtn-accent { background: var(--em-navy); color: #fff !important; }
.em-article-cover { margin: 16px calc(-1 * var(--em-pad)) 6px; }
.em-article-cover img { width: 100%; max-height: 72vh; object-fit: cover; }
.em-prose { font-size: var(--em-prose); line-height: 1.68; letter-spacing: -.003em; overflow-wrap: anywhere; }
.em-prose > *:first-child { margin-top: 18px; }
.em-prose p { margin: 0 0 1.05em; }
.em-prose h2, .em-prose h3, .em-prose h4 { line-height: 1.25; letter-spacing: -.02em; margin: 1.4em 0 .5em; }
.em-prose h2 { font-size: 1.28em; } .em-prose h3 { font-size: 1.15em; } .em-prose h4 { font-size: 1.05em; }
.em-prose a { color: var(--em-red); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.em-prose figure { margin: 1.3em 0; }
.em-prose img { width: 100%; height: auto; border-radius: var(--em-r-sm); background: var(--em-surface); }
.em-prose figcaption { font-size: 13.5px; color: var(--em-muted); margin-top: 6px; line-height: 1.45; }
.em-prose blockquote { margin: 1.3em 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--em-red); font-size: 1.05em; font-weight: 600; }
.em-prose blockquote p:last-child { margin-bottom: 0; }
.em-prose ul, .em-prose ol { padding-left: 1.3em; margin: 0 0 1.05em; }
.em-prose li { margin-bottom: .35em; }
.em-prose table { width: 100%; border-collapse: collapse; font-size: .85em; display: block; overflow-x: auto; }
.em-prose td, .em-prose th { border: 1px solid var(--em-line); padding: 6px 8px; }
.em-embed { position: relative; margin: 1.3em 0; aspect-ratio: 16 / 9; border-radius: var(--em-r-sm); overflow: hidden; background: #000; }
.em-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.em-embed-tall { aspect-ratio: 4 / 5; background: var(--em-surface); }
.em-article-foot { margin-top: 26px; padding: 18px; border-radius: var(--em-r); background: var(--em-surface); text-align: center; }
.em-share-label { margin: 0 0 12px; font-weight: 700; }
.em-share-row { display: flex; justify-content: center; gap: 10px; }
.theme-em .em-sh { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; color: #fff !important; }
.em-sh-wa { background: #25D366; } .em-sh-fb { background: #1877F2; } .em-sh-x { background: #0f1419; } .em-sh-tg { background: #229ED9; } .em-sh-copy { background: var(--em-navy); }
.em-article-side { margin-top: 30px; }
.em-article-side .em-block { margin-bottom: 26px; }

/* ── Contacto y formularios ── */
.em-contact-grid { display: grid; gap: 18px; }
.em-contact-cards { display: grid; gap: 10px; }
.em-contact-card { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--em-r); border: 1px solid var(--em-line); background: var(--em-card); }
.em-contact-card > i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--em-red) 10%, transparent); color: var(--em-red); font-size: 22px; flex: none; }
.em-contact-card span { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.em-contact-card small { color: var(--em-muted); font-size: 12.5px; }
.em-formcard { padding: 18px; border-radius: var(--em-r); border: 1px solid var(--em-line); background: var(--em-card); }
.em-formcard h2 { margin: 0 0 12px; font-size: 20px; }
.em-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; font-size: 14px; font-weight: 600; }
.em-field-row { display: grid; gap: 0 12px; }
.em-field input, .em-field select, .em-field textarea { font: inherit; font-size: 16px; font-weight: 400; color: var(--em-text); background: var(--em-bg); border: 1px solid var(--em-line); border-radius: 12px; padding: 12px 14px; outline: none; width: 100%; }
.em-field input:focus, .em-field select:focus, .em-field textarea:focus { border-color: var(--em-navy); box-shadow: 0 0 0 3px color-mix(in srgb, var(--em-navy) 14%, transparent); }

/* ── Pie ── */
.em-footer { background: #071F43; color: #c9d2e3; margin-top: 30px; padding: 34px 0 calc(18px + var(--em-safe-b)); font-size: 14.5px; }
.em-footer-in { display: grid; gap: 26px; }
.em-footer-brand img { height: 32px; width: auto; margin-bottom: 12px; }
.em-footer-brand p { margin: 0 0 14px; line-height: 1.6; max-width: 460px; }
.em-footer h3 { color: #fff; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 10px; }
.em-footer-col { display: flex; flex-direction: column; gap: 8px; }
.em-footer-col a:hover { color: #fff; }
.em-footer-col:first-of-type { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.em-footer-col:first-of-type h3 { grid-column: 1 / -1; }
.em-social { display: flex; gap: 8px; }
.em-social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); font-size: 19px; color: #fff; }
.em-footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-top: 26px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; color: #93a0b9; }

/* ── Hoja «Más» ── */
.em-drawer { position: fixed; inset: 0; z-index: 70; }
.em-drawer[hidden] { display: none; }
.em-drawer-backdrop { position: absolute; inset: 0; background: rgba(4,10,24,.45); opacity: 0; transition: opacity .25s; }
.em-drawer-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 86vh; display: flex; flex-direction: column; background: var(--em-bg); border-radius: 22px 22px 0 0; transform: translateY(100%); transition: transform .32s cubic-bezier(.2,.8,.2,1); padding-bottom: var(--em-safe-b); box-shadow: 0 -10px 40px rgba(0,0,0,.18); }
.em-drawer.is-open .em-drawer-backdrop { opacity: 1; }
.em-drawer.is-open .em-drawer-panel { transform: none; }
.em-grabber { width: 40px; height: 5px; border-radius: 3px; background: var(--em-line); margin: 10px auto 2px; flex: none; }
.em-drawer-scroll { overflow-y: auto; padding: 0 var(--em-pad) 20px; overscroll-behavior: contain; }
.em-drawer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.em-drawer-grid a { padding: 12px 14px; border-radius: 12px; background: var(--em-surface); font-weight: 650; font-size: 15px; }
.em-setting { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; font-weight: 600; font-size: 15px; }
.em-setting > span { display: inline-flex; align-items: center; gap: 8px; }
.em-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--em-surface); }
.theme-em .em-seg button { padding: 6px 11px; border-radius: 8px; font-size: 13px; font-weight: 650; color: var(--em-muted); }
.theme-em .em-seg button.is-on { background: var(--em-bg); color: var(--em-text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.em-seg .em-seg-lg { font-size: 15px; } .em-seg .em-seg-xl { font-size: 17px; }
.em-drawer-links { display: flex; flex-direction: column; border-radius: 14px; background: var(--em-surface); overflow: hidden; }
.theme-em .em-drawer-links > * { display: flex; align-items: center; gap: 12px; padding: 14px; font-weight: 600; font-size: 15px; border-bottom: 1px solid var(--em-line); text-align: left; width: 100%; }
.em-drawer-links > *:last-child { border-bottom: 0; }
.em-drawer-links > *[hidden] { display: none; }
.em-drawer-links i:first-child { font-size: 20px; color: var(--em-red); }
.em-drawer-links i:last-child { margin-left: auto; color: var(--em-muted); }
.em-drawer-about { color: var(--em-muted); font-size: 13.5px; margin: 18px 0 0; line-height: 1.55; }
html.em-noscroll, html.em-noscroll body { overflow: hidden; }

/* ── Aviso ── */
.em-toast { position: fixed; left: 50%; bottom: calc(var(--em-tab-h) + var(--em-safe-b) + 14px); z-index: 80; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: #0d1526; color: #fff; padding: 11px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; box-shadow: 0 8px 30px rgba(0,0,0,.25); transition: opacity .2s, transform .25s; white-space: nowrap; }
.em-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ── Transición entre pantallas ── */
.em-main { min-height: 60vh; }
.em-main.is-leaving { opacity: .35; transition: opacity .15s; }
.em-main.is-entering { animation: em-in .28s cubic-bezier(.2,.7,.2,1); }
@keyframes em-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .em-main.is-entering { animation: none; } .em-header { transition: none; } }

/* Lo que Webs pinta por su cuenta (borradores, 404, formularios) */
.em-fallback .w-article { max-width: 760px; margin: 0 auto; }
.theme-em .w-empty { text-align: center; padding: 40px 0; }
.theme-em .w-btn { display: inline-flex; padding: 12px 20px; border-radius: 999px; background: var(--em-navy); color: #fff; font-weight: 700; }
.theme-em .w-flash, .theme-em .w-notice { border-radius: 12px; }
.theme-em .w-hp { position: absolute !important; left: -9999px !important; }

/* ── Tableta ── */
@media (min-width: 640px) {
  :root { --em-pad: 24px; }
  .em-carousel-track > .em-card { flex-basis: 62%; }
  .em-card-slide .em-card-link { aspect-ratio: 16 / 11; }
  .em-rail > .em-card { flex-basis: 40%; }
  .em-sections-grid { grid-template-columns: 1fr 1fr; }
  .em-field-row { grid-template-columns: 1fr 1fr; }
  .em-card-row .em-card-link { grid-template-columns: 1fr 150px; }
  .em-card-row .em-save { right: 154px; }
}

/* ── Escritorio ── */
@media (min-width: 960px) {
  body.theme-em { padding-bottom: 0; }
  .em-tabbar, .em-only-mobile, .em-hometitle { display: none !important; }
  .em-toast { bottom: 28px; }
  .em-header { position: sticky; }
  .em-header.is-hidden { transform: none; }
  .em-topstrip { display: block; background: #071F43; color: #c9d2e3; font-size: 12.5px; }
  .em-topstrip-in { display: flex; align-items: center; gap: 14px; height: 32px; }
  .em-topstrip a, .em-linkbtn { display: inline-flex; align-items: center; gap: 6px; color: #c9d2e3; }
  .em-topstrip a:hover, .em-linkbtn:hover { color: #fff; }
  .em-today { font-weight: 600; color: #fff; }
  .em-linkbtn { font-size: 16px; }
  .em-i-sun { display: none; }
  html[data-theme="dark"] .em-i-sun { display: inline; } html[data-theme="dark"] .em-i-moon { display: none; }
  .em-appbar-in { height: 76px; }
  .em-logo, .view-post .em-logo { height: 40px; }
  .em-back, .view-post .em-back { display: none; }
  .view-post .em-only-post { display: none; }
  .view-post .em-chips { display: block; }
  .em-hsearch { display: flex; align-items: center; position: relative; }
  .em-hsearch i { position: absolute; left: 13px; color: var(--em-muted); font-size: 17px; }
  .em-hsearch input { width: 280px; height: 42px; border-radius: 999px; border: 1px solid var(--em-line); background: var(--em-surface); color: var(--em-text); padding: 0 16px 0 38px; font: inherit; font-size: 14.5px; outline: none; }
  .em-hsearch input:focus { border-color: var(--em-navy); background: var(--em-bg); }
  .em-chips { border-top: 1px solid var(--em-line); }
  .em-chips-in { gap: 2px; padding-top: 0; padding-bottom: 0; }
  .em-chips a { background: none; border-radius: 0; padding: 13px 12px; color: var(--em-text); font-size: 14.5px; border-bottom: 3px solid transparent; }
  .em-chips a:hover { color: var(--em-red); }
  .em-chips a.is-active, html[data-theme="dark"] .em-chips a.is-active { background: none; color: var(--em-red); border-bottom-color: var(--em-red); }
  @media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .em-chips a.is-active { background: none; color: var(--em-red); } }

  .em-flash { margin-top: 22px; }
  .em-hero { margin-top: 4px; }
  .em-hero-in { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 34px; align-items: start; }
  .em-carousel { margin: 0; }
  .em-carousel-track { padding: 0; scroll-padding: 0; gap: 0; border-radius: 20px; }
  .em-carousel-track > .em-card { flex-basis: 100%; }
  .em-card-slide .em-card-link { aspect-ratio: 16 / 10.5; border-radius: 20px; }
  .em-card-slide .em-card-body { padding: 30px 32px 30px; }
  .em-card-slide .em-card-title { font-size: 34px; }
  .em-hero-side { margin-top: 0; }
  .em-hero-side .em-card:nth-child(n+5) { display: none; }
  .em-hero-side .em-card-row .em-card-link { grid-template-columns: 1fr 112px; padding: 11px 0; }
  .em-hero-side .em-card-row .em-card-title { font-size: 15px; }
  .em-hero-side .em-card-row .em-save { right: 116px; }
  .em-section { margin-top: 40px; }
  .em-rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; overflow: visible; margin: 0; padding: 0; }
  .em-rail > .em-card { max-width: none; }
  .em-rail > .em-card:nth-child(n+5) { display: none; }
  .em-grid-list, .em-listing-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .em-listing-grid .em-card-lead { grid-column: 1 / -1; display: block; }
  .em-listing-grid .em-card-lead .em-card-link { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; }
  .em-listing-grid .em-card-lead .em-card-media { margin: 0; }
  .em-listing-grid .em-card-lead .em-card-title { font-size: 30px; }
  .em-grid-list .em-card-row:nth-last-child(2), .em-listing-grid .em-card-row:nth-last-child(2) { border-bottom: 0; }
  .em-block-head h2 { font-size: 22px; }
  .em-pagehead h1 { font-size: 40px; }
  .em-sections-grid { grid-template-columns: repeat(3, 1fr); }

  .em-article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; padding-top: 34px; }
  .em-article { max-width: 760px; }
  .em-article-title { font-size: 42px; }
  .em-article-lead { font-size: 20px; }
  .em-article-cover { margin: 22px 0 4px; }
  .em-article-cover img { border-radius: var(--em-r); }
  .em-article-side { margin-top: 0; position: sticky; top: 140px; align-self: start; }
  .em-article-side .em-rail { grid-template-columns: 1fr 1fr; gap: 16px; }
  .em-article-side .em-rail > .em-card:nth-child(n+5) { display: none; }
  .em-article-side .em-card-row .em-card-link { grid-template-columns: 1fr 96px; }
  .em-article-side .em-card-row .em-card-title { font-size: 14.5px; }
  .em-article-side .em-card-row .em-save { right: 100px; }

  .em-contact-grid { grid-template-columns: 1fr 1.2fr; align-items: start; gap: 30px; }
  .em-footer-in { grid-template-columns: 1.4fr 1.2fr 1fr; gap: 40px; }
  .em-drawer-panel { left: auto; right: 24px; bottom: 24px; width: 420px; border-radius: 22px; }
}
