/**
 * Dashboard Inicio — mejoras conservadas tras revert UI-01 (2026-07-06)
 * Solo: hero con foto + clima sin caja + CTAs B2 + iconos en headers de bloque.
 */
:root {
  --dash-retained-ico: 34px;
  --dash-retained-ico-img: 26px;
  --dash-retained-hero-img: url("../icons/dashinicio-hero.png?v=20260420dashHeroFoto");
}

html body #pg-dash.dash-serio-v1 {
  --hero-img: var(--dash-retained-hero-img);
}

/* Hero Inicio: foto + overlay (anula gradiente gris de index-inline) */
html body #pg-dash.dash-serio-v1 .dash-tab-panel--inicio .section-header .dash-serio-hero.dash-serio-hero--title-strip,
html body.light #pg-dash.dash-serio-v1 .dash-tab-panel--inicio .section-header .dash-serio-hero.dash-serio-hero--title-strip,
html body #pg-dash.dash-serio-v1 .dash-tab-panel--inicio .dash-serio-hero.dash-serio-hero--title-strip,
html body.light #pg-dash.dash-serio-v1 .dash-tab-panel--inicio .dash-serio-hero.dash-serio-hero--title-strip {
  background-color: transparent !important;
  background-image:
    linear-gradient(180deg, rgba(15, 23, 42, 0.06) 0%, rgba(15, 23, 42, 0.22) 52%, rgba(15, 23, 42, 0.42) 100%),
    var(--dash-retained-hero-img) !important;
  background-size: auto, cover !important;
  background-position: center, center !important;
  background-repeat: no-repeat, no-repeat !important;
  border: none !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.45) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 2px 10px rgba(15, 23, 42, 0.08) !important;
  flex-direction: column !important;
  align-items: stretch !important;
  padding: 10px 12px 8px !important;
  min-height: 96px !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

html body #pg-dash.dash-serio-v1 .dash-tab-panel--inicio .section-header .dash-serio-hero__head-row--dash-inicio .dash-serio-hero__ico-dash-inicio {
  width: auto !important;
  height: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  object-fit: contain !important;
}

html body #pg-dash.dash-serio-v1 .dash-tab-panel--inicio .section-header .dash-serio-hero--title-strip .dash-serio-hero__kicker {
  color: rgba(248, 250, 252, 0.9) !important;
  -webkit-text-fill-color: rgba(248, 250, 252, 0.9) !important;
  letter-spacing: 0.1em !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  text-shadow: none !important;
}

html body #pg-dash.dash-serio-v1 .dash-tab-panel--inicio .section-header .dash-serio-hero--title-strip .dash-serio-hero__title {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: clamp(20px, 4.8vw, 24px) !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.1 !important;
  text-shadow: none !important;
}

/* Clima — sin caja, texto sobre foto */
html body #pg-dash.dash-serio-v1 .dash-tab-panel--inicio .dash-hero-clima,
html body #pg-dash.dash-serio-v1 .dash-tab-panel--inicio .section-header .dash-serio-hero.dash-serio-hero--title-strip .dash-hero-clima {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}

html body #pg-dash.dash-serio-v1 .dash-tab-panel--inicio .dash-hero-clima__ubi,
html body #pg-dash.dash-serio-v1 .dash-tab-panel--inicio #dash-hero-clima-ubi {
  color: rgba(248, 250, 252, 0.92) !important;
  -webkit-text-fill-color: rgba(248, 250, 252, 0.92) !important;
  font-size: 9px !important;
  letter-spacing: 0.1em !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55), 0 0 1px rgba(0, 0, 0, 0.35) !important;
}

html body #pg-dash.dash-serio-v1 .dash-tab-panel--inicio .dash-hero-clima__temps,
html body #pg-dash.dash-serio-v1 .dash-tab-panel--inicio #dash-hero-clima-temps {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.4) !important;
}

html body #pg-dash.dash-serio-v1 .dash-tab-panel--inicio .dash-hero-clima__ico,
html body #pg-dash.dash-serio-v1 .dash-tab-panel--inicio #dash-hero-clima-ico {
  width: 24px !important;
  height: 24px !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html body #pg-dash.dash-serio-v1 .dash-tab-panel--inicio .dash-hero-clima__ico img,
html body #pg-dash.dash-serio-v1 .dash-tab-panel--inicio .dash-hero-clima__ico svg,
html body #pg-dash.dash-serio-v1 .dash-tab-panel--inicio #dash-hero-clima-ico img,
html body #pg-dash.dash-serio-v1 .dash-tab-panel--inicio #dash-hero-clima-ico svg {
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.45)) !important;
}

/* CTAs hero — solo espaciado (piel en dash-inicio-modern.css); fila propia pegada al borde derecho */
html body #pg-dash.dash-serio-v1 .dash-tab-panel--inicio .section-header .dash-serio-hero--title-strip .dash-inicio-hero-cta-row,
html body #pg-dash.dash-serio-v1 .dash-tab-panel--inicio .dash-serio-hero--title-strip .dash-inicio-hero-cta-row {
  gap: 6px !important;
  margin-top: 10px !important;
}

/* Iconos en headers de bloque */
html body #pg-dash.dash-serio-v1 .dash-tab-panel--inicio :is(
  .serio-v1-icon-box.header-bloque,
  .dash-inicio-recuadro__ico-box,
  .dash-noticias-widget__ico-slot.serio-v1-icon-box.header-bloque
) {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  width: var(--dash-retained-ico) !important;
  min-width: var(--dash-retained-ico) !important;
  max-width: var(--dash-retained-ico) !important;
  height: var(--dash-retained-ico) !important;
  min-height: var(--dash-retained-ico) !important;
  max-height: var(--dash-retained-ico) !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html body #pg-dash.dash-serio-v1 .dash-tab-panel--inicio :is(
  .serio-v1-icon-box.header-bloque .dash-inicio-recuadro__ico,
  .dash-inicio-recuadro__ico,
  .dash-noticias-widget__ico
) {
  width: var(--dash-retained-ico-img) !important;
  height: var(--dash-retained-ico-img) !important;
  min-width: var(--dash-retained-ico-img) !important;
  min-height: var(--dash-retained-ico-img) !important;
  max-width: var(--dash-retained-ico-img) !important;
  max-height: var(--dash-retained-ico-img) !important;
  object-fit: contain !important;
  display: block !important;
  filter: none !important;
  transform: none !important;
}

/* Banner demo eliminado del DOM — refuerzo por si queda caché */
#manto-demo-cta.manto-demo-cta {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
