/* StreamHub - frontend. Los colores y tipografías llegan como variables desde Configuración. */
:root {
  --sh-primary: #FF4D5E;
  --sh-secondary: #2ED3C6;
  --sh-player: #FF4D5E;
  --sh-font-head: "Sora", system-ui, sans-serif;
  --sh-font-body: "Manrope", system-ui, sans-serif;
  --sh-radius: 14px;
  --sh-radius-sm: 8px;
  --sh-wrap: 1560px;
}
[data-bs-theme="dark"] {
  --sh-bg: #101523;
  --sh-text: #EEF1F8;
  --sh-surface: #19203A;
  --sh-surface-2: #222B4B;
  --sh-line: rgba(255, 255, 255, .1);
  --sh-muted: #9AA5C4;
}
[data-bs-theme="light"] {
  --sh-bg: #F3F5FA;
  --sh-text: #141A2E;
  --sh-surface: #FFFFFF;
  --sh-surface-2: #E7EAF3;
  --sh-line: rgba(20, 26, 46, .12);
  --sh-muted: #5A6485;
}
@supports (color: color-mix(in srgb, red, blue)) {
  [data-bs-theme="dark"] {
    --sh-surface: color-mix(in srgb, var(--sh-bg) 90%, white);
    --sh-surface-2: color-mix(in srgb, var(--sh-bg) 82%, white);
  }
}

html { scroll-behavior: smooth; }
body {
  --bs-body-bg: var(--sh-bg);
  --bs-body-color: var(--sh-text);
  --bs-link-color-rgb: 46, 211, 198;
  background-color: var(--sh-bg);
  color: var(--sh-text);
  font-family: var(--sh-font-body);
  font-size: 1rem;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
h1, h2, h3, .sh-brand { font-family: var(--sh-font-head); letter-spacing: -.01em; }
a { color: var(--sh-secondary); text-decoration: none; }
a:hover { text-decoration: underline; }
[data-bs-theme="light"] a { color: #0B7F76; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--sh-secondary); outline-offset: 2px; border-radius: 4px; }
.sh-wrap { max-width: var(--sh-wrap); margin-inline: auto; padding-inline: clamp(14px, 3vw, 40px); }
.sh-muted { color: var(--sh-muted); }
.sh-lead { color: var(--sh-muted); max-width: 70ch; }
.sh-skip { position: absolute; z-index: 2000; background: var(--sh-primary); color: #fff; padding: 8px 14px; }
.sh-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.btn { border-radius: var(--sh-radius-sm); font-weight: 600; }
.btn-primary {
  --bs-btn-bg: var(--sh-primary); --bs-btn-border-color: var(--sh-primary);
  --bs-btn-hover-bg: var(--sh-primary); --bs-btn-hover-border-color: var(--sh-primary);
  --bs-btn-active-bg: var(--sh-primary); --bs-btn-active-border-color: var(--sh-primary);
  --bs-btn-color: #fff; --bs-btn-hover-color: #fff;
}
.btn-primary:hover { filter: brightness(1.1); }
.btn-outline-light { --bs-btn-color: var(--sh-text); --bs-btn-border-color: var(--sh-line); --bs-btn-hover-bg: var(--sh-surface-2); --bs-btn-hover-color: var(--sh-text); --bs-btn-hover-border-color: var(--sh-line); --bs-btn-active-bg: var(--sh-surface-2); --bs-btn-active-color: var(--sh-text); }
.form-control, .form-select { background-color: var(--sh-surface); border-color: var(--sh-line); color: var(--sh-text); }
.form-control:focus, .form-select:focus { background-color: var(--sh-surface); color: var(--sh-text); border-color: var(--sh-secondary); box-shadow: 0 0 0 3px rgba(46, 211, 198, .25); }
.modal-content { background: var(--sh-surface); color: var(--sh-text); border-color: var(--sh-line); }

/* ---------- Header ---------- */
.sh-header { position: sticky; top: 0; z-index: 1020; background: var(--sh-bg); border-bottom: 1px solid var(--sh-line); }
/* Franja de barras de color: guiño a la carta de ajuste de TV, hecha con los colores de la marca */
.sh-header::after { content: ""; display: block; height: 3px; background: linear-gradient(90deg, var(--sh-primary) 0 34%, var(--sh-secondary) 34% 52%, var(--sh-text) 52% 60%, transparent 60%); opacity: .9; }
.sh-header .navbar { padding-block: 10px; }
.sh-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.25rem; color: var(--sh-text) !important; }
.sh-brand:hover { text-decoration: none; }
.sh-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--sh-primary); box-shadow: 0 0 0 4px rgba(255, 77, 94, .25); }
.sh-logo { height: 38px; width: auto; }
.sh-logo-light { display: none; }
[data-bs-theme="light"] .sh-logo-dark { display: none; }
[data-bs-theme="light"] .sh-logo-light { display: inline; }
.navbar-toggler { color: var(--sh-text); border-color: var(--sh-line); font-size: 1.5rem; padding: 2px 10px; }
.sh-header .nav-link { color: var(--sh-muted); font-weight: 600; padding: 8px 14px !important; border-radius: var(--sh-radius-sm); }
.sh-header .nav-link:hover, .sh-header .nav-link.active { color: var(--sh-text); background: var(--sh-surface); text-decoration: none; }
.sh-search { position: relative; display: flex; align-items: center; margin: 8px 8px 8px 0; }
.sh-search > i { position: absolute; left: 12px; color: var(--sh-muted); pointer-events: none; }
.sh-search input { width: 100%; min-width: 230px; padding: 9px 12px 9px 36px; border-radius: 99px; border: 1px solid var(--sh-line); background: var(--sh-surface); color: var(--sh-text); }
.sh-search input::placeholder { color: var(--sh-muted); }
.sh-search-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; min-width: 280px; background: var(--sh-surface); border: 1px solid var(--sh-line); border-radius: var(--sh-radius); box-shadow: 0 18px 40px rgba(0, 0, 0, .35); overflow: hidden; z-index: 1050; }
.sh-search-results a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; color: var(--sh-text); }
.sh-search-results a:hover, .sh-search-results a:focus { background: var(--sh-surface-2); text-decoration: none; }
.sh-search-results img { width: 36px; height: 36px; object-fit: contain; border-radius: 6px; background: var(--sh-bg); }
.sh-search-results small { color: var(--sh-muted); display: block; }
.sh-search-results p { margin: 0; padding: 12px; color: var(--sh-muted); }
.sh-iconbtn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--sh-line); background: transparent; color: var(--sh-text); font-size: 1.1rem; margin-left: 6px; }
.sh-iconbtn:hover { background: var(--sh-surface); text-decoration: none; }

/* ---------- Secciones ---------- */
.sh-section { margin-block: clamp(20px, 3vw, 40px); }
.sh-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.sh-section-head h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 0; }
.sh-section-head h2 { font-size: clamp(1.25rem, 2vw, 1.6rem); margin: 0; }
.sh-h3 { font-size: 1.15rem; margin-bottom: 12px; }
.sh-layout { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1200px) {
  .sh-layout.has-left { grid-template-columns: 300px minmax(0, 1fr); }
  .sh-layout.has-right { grid-template-columns: minmax(0, 1fr) 300px; }
  .sh-layout.has-left.has-right { grid-template-columns: 260px minmax(0, 1fr) 300px; }
  .sh-sidebar { position: sticky; top: 90px; align-self: start; margin-top: 28px; }
}
@media (max-width: 1199px) { .sh-sidebar-left { order: 2; } .sh-sidebar-right { order: 3; } }

/* ---------- Hero ---------- */
.sh-hero { margin-top: clamp(14px, 2vw, 28px); border-radius: var(--sh-radius); overflow: hidden; background: var(--sh-surface); }
.sh-hero .carousel-item { position: relative; min-height: clamp(220px, 34vw, 480px); background: repeating-linear-gradient(90deg, var(--sh-surface) 0 12.5%, var(--sh-surface-2) 12.5% 25%); }
.sh-hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sh-hero-text { position: absolute; inset: auto 0 0 0; padding: clamp(18px, 4vw, 56px); padding-top: 90px; background: linear-gradient(transparent, rgba(8, 11, 22, .88)); color: #fff; }
.sh-hero-text h2 { font-size: clamp(1.5rem, 4vw, 3.2rem); line-height: 1.08; max-width: 18ch; margin-bottom: 10px; }
.sh-hero-text p { max-width: 55ch; font-size: clamp(.95rem, 1.4vw, 1.15rem); color: rgba(255, 255, 255, .85); }
.sh-hero .carousel-control-prev, .sh-hero .carousel-control-next { width: 8%; }

/* ---------- Player ---------- */
.sh-stage { margin-top: clamp(14px, 2vw, 28px); }
.sh-player { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--sh-radius); overflow: hidden; color: #fff; }
@supports not (aspect-ratio: 16 / 9) { .sh-player { height: 0; padding-top: 56.25%; } }
.sh-player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.sh-player:fullscreen { border-radius: 0; }
.shp-overlay { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; background-size: cover; background-position: center; pointer-events: none; }
.shp-overlay > * { pointer-events: auto; }
.shp-overlay.is-dim { background-color: rgba(0, 0, 0, .55); }
.shp-msg { max-width: 46ch; }
.shp-msg p { margin-bottom: 14px; font-size: clamp(.95rem, 1.6vw, 1.15rem); }
.shp-spinner { width: 54px; height: 54px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .25); border-top-color: var(--sh-player); animation: shp-spin .9s linear infinite; }
@keyframes shp-spin { to { transform: rotate(360deg); } }
.shp-bigplay { width: clamp(64px, 9vw, 96px); height: clamp(64px, 9vw, 96px); border-radius: 50%; border: 0; background: var(--sh-player); color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); display: grid; place-items: center; padding-left: 6px; cursor: pointer; }
.shp-logo { position: absolute; max-width: 14%; max-height: 14%; opacity: .85; pointer-events: none; }
.shp-logo.tl { top: 3%; left: 3%; } .shp-logo.tr { top: 3%; right: 3%; } .shp-logo.bl { bottom: 14%; left: 3%; } .shp-logo.br { bottom: 14%; right: 3%; }
.shp-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 4px; padding: 26px 10px 8px; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); transition: opacity .2s; }
.sh-player.is-idle .shp-bar { opacity: 0; pointer-events: none; }
.sh-player.is-idle { cursor: none; }
.shp-btn { width: 44px; height: 44px; border: 0; border-radius: 8px; background: transparent; color: #fff; font-size: 1.3rem; display: grid; place-items: center; cursor: pointer; flex: none; }
.shp-btn:hover, .shp-btn:focus-visible { background: rgba(255, 255, 255, .16); }
.shp-btn[hidden] { display: none; }
.shp-vol { width: 90px; accent-color: var(--sh-player); flex: none; }
.shp-live { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .85rem; padding: 4px 10px; border-radius: 99px; background: rgba(0, 0, 0, .45); margin-left: 6px; }
.shp-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sh-player); animation: sh-pulse 1.6s ease-in-out infinite; }
.shp-spacer { flex: 1; }
.shp-quality { background: rgba(0, 0, 0, .5); color: #fff; border: 1px solid rgba(255, 255, 255, .3); border-radius: 8px; padding: 6px 8px; font-size: .85rem; max-width: 110px; }
.shp-skip { position: absolute; right: 14px; bottom: 70px; background: rgba(0, 0, 0, .7); color: #fff; border: 1px solid rgba(255, 255, 255, .4); border-radius: 8px; padding: 8px 14px; cursor: pointer; }
.shp-adtag { position: absolute; left: 14px; top: 14px; background: rgba(0, 0, 0, .6); padding: 3px 10px; border-radius: 6px; font-size: .8rem; }
@media (max-width: 575px) { .shp-vol { display: none; } .shp-btn { width: 40px; height: 40px; } }
@keyframes sh-pulse { 50% { opacity: .35; } }

.sh-now { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 18px 2px 6px; }
.sh-now-logo { width: 64px; height: 64px; object-fit: contain; border-radius: var(--sh-radius-sm); background: var(--sh-surface); padding: 6px; }
.sh-now-text { flex: 1; min-width: 220px; }
.sh-now-num { margin: 0; color: var(--sh-primary); font-family: var(--sh-font-head); font-weight: 700; font-size: .95rem; }
.sh-now-name { font-size: clamp(1.35rem, 2.6vw, 2rem); margin: 0; }
.sh-now-meta { margin: 2px 0 0; color: var(--sh-muted); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.sh-now-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sh-now-desc { color: var(--sh-muted); max-width: 80ch; }
.sh-now-desc:empty { display: none; }

/* ---------- Tarjetas de canal ---------- */
.sh-grid { display: grid; gap: clamp(12px, 1.6vw, 22px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.sh-card { position: relative; background: var(--sh-surface); border: 1px solid var(--sh-line); border-radius: var(--sh-radius); overflow: hidden; transition: transform .15s, border-color .15s; }
.sh-card:hover, .sh-card:focus-within { transform: translateY(-3px); border-color: var(--sh-secondary); }
.sh-card.is-current { border-color: var(--sh-primary); box-shadow: 0 0 0 2px var(--sh-primary); }
.sh-card-link { display: block; color: inherit; }
.sh-card-link:hover { text-decoration: none; }
.sh-card-link:focus-visible { outline-offset: -3px; }
.sh-card-media { position: relative; aspect-ratio: 16 / 9; background: var(--sh-surface-2); display: grid; place-items: center; overflow: hidden; }
.sh-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sh-card-media img.is-logo { object-fit: contain; padding: 18%; }
/* Número de canal, como en el mando a distancia */
.sh-card-num { position: absolute; left: 10px; bottom: 4px; font-family: var(--sh-font-head); font-weight: 700; font-size: 2.6rem; line-height: 1; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .7); font-variant-numeric: tabular-nums; }
.sh-card-media img.is-logo ~ .sh-card-num, .sh-card-media > .sh-card-num:first-child { color: var(--sh-text); text-shadow: none; opacity: .5; }
.sh-live, .sh-next { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; }
.sh-live { background: var(--sh-primary); color: #fff; }
.sh-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: sh-pulse 1.6s ease-in-out infinite; }
.sh-next { background: var(--sh-surface-2); color: var(--sh-text); border: 1px solid var(--sh-line); }
.sh-card-media .sh-live, .sh-card-media .sh-next { position: absolute; top: 10px; left: 10px; }
.sh-card-body { display: flex; align-items: center; gap: 10px; padding: 12px; }
.sh-card-logo { width: 38px; height: 38px; object-fit: contain; border-radius: 6px; background: var(--sh-bg); flex: none; }
.sh-card-text { flex: 1; min-width: 0; }
.sh-card-text h3 { font-size: 1rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-card-text p { margin: 0; font-size: .85rem; color: var(--sh-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-card-cta { font-size: .8rem; font-weight: 700; color: var(--sh-secondary); white-space: nowrap; }
[data-bs-theme="light"] .sh-card-cta { color: #0B7F76; }
.sh-fav { position: absolute; top: 8px; right: 8px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff; display: grid; place-items: center; cursor: pointer; }
.sh-fav[aria-pressed="true"] { background: var(--sh-primary); }
.sh-fav-inline { position: static; width: auto; height: auto; border-radius: var(--sh-radius-sm); background: transparent; display: inline-block; border: 1px solid var(--sh-line); color: var(--sh-text); }
.sh-fav-inline[aria-pressed="true"] { background: var(--sh-primary); border-color: var(--sh-primary); color: #fff; }
.sh-skel { border-radius: var(--sh-radius); aspect-ratio: 4 / 3; background: linear-gradient(100deg, var(--sh-surface) 30%, var(--sh-surface-2) 50%, var(--sh-surface) 70%); background-size: 300% 100%; animation: sh-skel 1.2s linear infinite; }
@keyframes sh-skel { to { background-position: -150% 0; } }
.sh-more { text-align: center; margin-top: 24px; }

.sh-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 8px; scrollbar-width: thin; }
.sh-chip { flex: none; padding: 8px 16px; border-radius: 99px; border: 1px solid var(--sh-line); color: var(--sh-text); font-weight: 600; font-size: .9rem; background: var(--sh-surface); }
.sh-chip:hover { text-decoration: none; border-color: var(--sh-secondary); }
.sh-chip.active { background: var(--sh-text); color: var(--sh-bg); border-color: var(--sh-text); }
.sh-gridbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sh-gridbar label { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--sh-muted); margin: 0; }
.sh-gridbar select { width: auto; }

/* ---------- Categorías ---------- */
.sh-cats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); }
.sh-cat { display: flex; flex-direction: column; gap: 2px; padding: 18px; min-height: 120px; justify-content: flex-end; border-radius: var(--sh-radius); background: var(--sh-surface) center / cover; border: 1px solid var(--sh-line); color: var(--sh-text); }
.sh-cat[style] { color: #fff; }
.sh-cat:hover { text-decoration: none; border-color: var(--sh-secondary); }
.sh-cat i { font-size: 1.6rem; color: var(--sh-secondary); margin-bottom: auto; }
.sh-cat strong { font-family: var(--sh-font-head); font-size: 1.1rem; }
.sh-cat span { font-size: .85rem; opacity: .75; }

/* ---------- Programación ---------- */
.sh-schedule { list-style: none; padding: 0; margin: 0; border: 1px solid var(--sh-line); border-radius: var(--sh-radius); overflow: hidden; background: var(--sh-surface); }
.sh-schedule li { display: grid; grid-template-columns: 120px 1fr; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--sh-line); }
.sh-schedule li:last-child { border-bottom: 0; }
.sh-schedule li.is-now { background: var(--sh-surface-2); box-shadow: inset 4px 0 0 var(--sh-primary); }
.sh-schedule time { font-family: var(--sh-font-head); font-variant-numeric: tabular-nums; color: var(--sh-muted); }
.sh-schedule p { margin: 4px 0 0; font-size: .9rem; color: var(--sh-muted); }
@media (max-width: 480px) { .sh-schedule li { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Widgets ---------- */
.sh-pos { margin-block: 16px; }
.sh-pos-header, .sh-pos-below-header, .sh-pos-before-footer { max-width: var(--sh-wrap); margin-inline: auto; padding-inline: clamp(14px, 3vw, 40px); }
.sh-pos-header { margin-block: 0; }
.sh-widget { margin-bottom: 18px; }
.sh-widget-title { font-size: 1.1rem; margin-bottom: 10px; }
.sh-widget img { border-radius: var(--sh-radius-sm); height: auto; }
.sh-widget-banner img { width: 100%; }
.sh-w-video { width: 100%; border-radius: var(--sh-radius-sm); background: #000; }
.sh-w-iframe { width: 100%; border: 0; border-radius: var(--sh-radius-sm); background: var(--sh-surface); }
.sh-ratio { position: relative; aspect-ratio: 16 / 9; }
.sh-ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--sh-radius-sm); }
.sh-gallery { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.sh-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.sh-links { list-style: none; padding: 0; margin: 0; }
.sh-links li { padding: 5px 0; }
.sh-ticker { overflow: hidden; background: var(--sh-surface); border: 1px solid var(--sh-line); border-radius: 99px; padding: 8px 0; }
.sh-ticker-track { display: inline-flex; gap: 48px; white-space: nowrap; padding-left: 24px; animation: sh-ticker 40s linear infinite; }
.sh-ticker:hover .sh-ticker-track, .sh-ticker:focus-within .sh-ticker-track { animation-play-state: paused; }
.sh-ticker-track span::before { content: "●"; color: var(--sh-primary); margin-right: 12px; font-size: .7em; vertical-align: middle; }
@keyframes sh-ticker { to { transform: translateX(-50%); } }
.sh-counter { display: flex; gap: 12px; flex-wrap: wrap; }
.sh-counter div { background: var(--sh-surface); border: 1px solid var(--sh-line); border-radius: var(--sh-radius-sm); padding: 12px 18px; text-align: center; min-width: 84px; }
.sh-counter b { display: block; font-family: var(--sh-font-head); font-size: 2rem; font-variant-numeric: tabular-nums; }
.sh-counter span { font-size: .8rem; color: var(--sh-muted); }
.sh-newsletter { display: flex; flex-wrap: wrap; gap: 8px; max-width: 520px; }
.sh-newsletter input[type="email"] { flex: 1; min-width: 200px; }
.sh-form-msg { width: 100%; margin-top: 8px; font-weight: 600; }
.sh-form-msg.is-ok { color: var(--sh-secondary); } .sh-form-msg.is-err { color: var(--sh-primary); }
.sh-ajax-form label { display: block; width: 100%; }
.sh-social { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0 0 12px; }
.sh-social a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--sh-line); color: var(--sh-text); background: var(--sh-surface); }
.sh-social a:hover { border-color: var(--sh-secondary); text-decoration: none; }
.sh-ad { position: relative; margin-inline: auto; text-align: center; max-width: 100%; }
.sh-ad img, .sh-ad iframe { max-width: 100%; border: 0; border-radius: var(--sh-radius-sm); }
.sh-ad-tag { display: block; font-size: .7rem; color: var(--sh-muted); text-align: left; margin-bottom: 3px; }
.sh-ad-728x90 { max-width: 728px; } .sh-ad-728x90 iframe { width: 728px; height: 90px; }
.sh-ad-970x250 { max-width: 970px; } .sh-ad-970x250 iframe { width: 970px; height: 250px; }
.sh-ad-300x250 { max-width: 300px; } .sh-ad-300x250 iframe { width: 300px; height: 250px; }
.sh-ad-320x100 { max-width: 320px; } .sh-ad-320x100 iframe { width: 320px; height: 100px; }
.sh-ad-responsive iframe, .sh-ad-interstitial iframe { width: 100%; min-height: 250px; }

/* ---------- Páginas, vacíos, footer ---------- */
.sh-page { max-width: 820px; }
.sh-page h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 18px; }
.sh-page-img { width: 100%; border-radius: var(--sh-radius); margin-bottom: 20px; }
.sh-prose { font-size: 1.05rem; line-height: 1.7; }
.sh-prose img { height: auto; border-radius: var(--sh-radius-sm); }
.sh-contact { margin-top: 24px; padding: 22px; background: var(--sh-surface); border: 1px solid var(--sh-line); border-radius: var(--sh-radius); }
.sh-empty { text-align: center; padding: clamp(28px, 6vw, 70px) 16px; border: 1px dashed var(--sh-line); border-radius: var(--sh-radius); color: var(--sh-muted); }
.sh-empty > i { font-size: 2.4rem; display: block; margin-bottom: 8px; }
.sh-empty[hidden] { display: none; }
.sh-404 { border: 0; }
.sh-404-num { font-family: var(--sh-font-head); font-size: clamp(5rem, 18vw, 11rem); line-height: 1; font-weight: 700; color: var(--sh-surface-2); margin: 0; }
.sh-404 h1 { color: var(--sh-text); }
.sh-footer { margin-top: 48px; padding: 40px 0 24px; border-top: 1px solid var(--sh-line); background: var(--sh-surface); }
.sh-footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.sh-copy { margin: 28px 0 0; color: var(--sh-muted); font-size: .9rem; }
.sh-install { position: fixed; right: 16px; bottom: 16px; z-index: 1030; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.sh-install[hidden] { display: none; }
.sh-plain { display: grid; place-items: center; text-align: center; background: #101523; color: #EEF1F8; font-family: system-ui, sans-serif; padding: 24px; }
.sh-plain .sh-brand { justify-content: center; }

/* ---------- Pantallas grandes y Smart TV ---------- */
@media (min-width: 1900px) {
  html { font-size: 18px; }
  .sh-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .shp-btn { width: 56px; height: 56px; font-size: 1.6rem; }
}
@media (min-width: 2500px) { html { font-size: 22px; } :root { --sh-wrap: 2200px; } }
.sh-tv :focus-visible { outline-width: 5px; outline-offset: 4px; }
.sh-tv .sh-card:focus-within { transform: scale(1.04); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .sh-ticker-track { animation: none; flex-wrap: wrap; white-space: normal; }
}

/* ---------- Home hecho con el constructor visual: filas y columnas ---------- */
main { overflow-x: clip; }
.sh-row { margin-block: 8px; }
.sh-row-pad-none { padding-block: 0; }
.sh-row-pad-sm { padding-block: 10px; }
.sh-row-pad-md { padding-block: 22px; }
.sh-row-pad-lg { padding-block: clamp(32px, 5vw, 72px); }
.sh-row.has-bg { padding-inline: clamp(14px, 2vw, 28px); border-radius: var(--sh-radius); }
.sh-row-full { margin-inline: calc(50% - 50vw); padding-inline: clamp(14px, 3vw, 40px); }
.sh-row-full.has-bg { border-radius: 0; }
.sh-row-grid { display: grid; gap: clamp(16px, 2vw, 28px); grid-template-columns: minmax(0, 1fr); align-items: start; }
.sh-col { min-width: 0; }
.sh-col > :first-child { margin-top: 0; }
.sh-col > :last-child { margin-bottom: 0; }
.sh-col:empty { display: none; }
@media (min-width: 768px) {
  .sh-cols-6-6, .sh-cols-3-3-3-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sh-row-grid .sh-col:empty { display: block; }
}
@media (min-width: 992px) {
  .sh-cols-8-4 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .sh-cols-4-8 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .sh-cols-4-4-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sh-cols-3-6-3 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); }
  .sh-cols-3-3-3-3 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.sh-widget-ad { margin-block: 14px; }
.sh-ad-responsive img { width: 100%; height: auto; }
