/* ============================================================
   Boletín #23 — Impacto UNICEF Colombia
   Vista única por sección (sin scroll entre secciones)
   ============================================================ */
html { margin: 0; padding: 0; }
body { margin: 0; padding: 0; overflow: hidden; height: 100vh; }

@font-face {
  font-family: "Noto Sans HM";
  src: url("../fonts/NotoSans.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --hm-azul: #00aeef;
  --hm-azul-osc: #0047bb;
  --hm-azul-claro: #9adbe8;
  --hm-amarillo: #ffb500;
  --hm-naranja: #ff8200;
  --hm-white: #ffffff;
  --hm-gris: #f0f6fa;
  --hm-sidebar-w: 180px;
}

*, *::before, *::after { box-sizing: border-box; }
img { display: block; max-width: 100%; }

body {
  font-family: "Noto Sans HM", "Noto Sans", system-ui, sans-serif;
  color: var(--hm-azul-osc);
  line-height: 1.5;
  background: var(--hm-gris);
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.hm-sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--hm-sidebar-w);
  height: 100vh;
  background: var(--hm-white);
  box-shadow: 2px 0 20px rgba(0,71,187,0.08);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  overflow-y: auto;
  scrollbar-width: none;
}
.hm-sidebar::-webkit-scrollbar { display: none; }

.hm-sidebar-top {
  padding: 20px 16px 12px;
  text-align: center;
  border-bottom: 1px solid #eef4f8;
}
.hm-sidebar-logo { display: block; margin-bottom: 10px; cursor: pointer; }
.hm-sidebar-logo img { max-width: 120px; height: auto; margin: 0 auto; }

.hm-sidebar-nav { list-style: none; margin: 0; padding: 8px 0; flex: 1; display: flex; flex-direction: column; justify-content: center; }

.hm-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  color: var(--hm-azul-osc);
  text-decoration: none;
  font-size: 13px; font-weight: 600;
  border-left: 3px solid transparent;
  transition: all 0.25s ease;
  cursor: pointer;
}
.hm-nav-item:hover {
  background: var(--hm-gris);
  border-left-color: var(--hm-azul);
}
.hm-nav-item--active {
  background: var(--hm-azul-osc) !important;
  color: var(--hm-white) !important;
  border-left-color: var(--hm-azul-osc) !important;
  border-radius: 0 20px 20px 0;
  margin-right: 10px;
}
.hm-nav-ico {
  width: 32px; height: 32px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
}

.hm-sidebar-bottom {
  padding: 14px; border-top: 1px solid #eef4f8; text-align: center;
}
.hm-dona-btn {
  display: block;
  background: #e53935 !important; color: var(--hm-white);
  text-decoration: none; padding: 11px 14px;
  border-radius: 999px; font-weight: 700; font-size: 14px;
  transition: background 0.3s ease, transform 0.3s ease;
}
.hm-dona-btn:hover { background: #c62828 !important; transform: scale(1.04); }



p.hm-dona-contexto {
    font-size: 13px !important;
}
/* ============================================================
   MAIN
   ============================================================ */
.hm-main {
  margin-left: var(--hm-sidebar-w);
  height: 100vh;
  position: relative;
  overflow: hidden;
}

/* ============================================================
   VISTAS: solo UNA visible a la vez
   ============================================================ */
.hm-vista {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.96);
  transition: opacity 0.4s ease, transform 0.4s ease;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--hm-gris);
}

.hm-vista--active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
  z-index: 5;
}

/* Iframes dentro de cada vista */
.hm-vista iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ============================================================
   HERO (vista inicio)
   ============================================================ */
.hm-hero {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.hm-hero-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: right center;
  z-index: 0;
}



.hm-hero-content {
  position: relative; z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 50px;
  max-width: 580px;
}..hm-icono

.hm-hero-textos {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  padding: 28px 32px;
}

.hm-hero-textos .hm-hero-texto-prin,
.hm-hero-textos .hm-hero-texto {
  color: var(--hm-azul-osc);
}

.hm-hero-titulo {
  width: clamp(200px, 28vw, 340px);
  height: auto;
  margin-bottom: 24px;
}
p.hm-hero-texto-prin {
    color: #fff !important;
    font-size: 22px !important;
    font-weight: 700 !important;
}
.hm-hero-texto {
  margin: 0 0 14px;
  font-size: clamp(14px, 1.3vw, 18px);
  color: var(--hm-white);
  font-weight: 400;
  line-height: 1.6;
}

/* 7 ÍCONOS */
.hm-iconos {
  position: relative; z-index: 2;
  display: flex;
  justify-content: center;
  gap: clamp(16px, 2.5vw, 40px);
  padding: 20px 30px 30px;
  background: linear-gradient(0deg, rgba(240,246,250,0.95) 0%, rgba(240,246,250,0.5) 60%, transparent 100%);
}

.hm-icono {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: transform 0.3s ease;
  cursor: pointer;
}
.hm-icono:hover { transform: scale(1.12) translateY(-4px); }

.hm-icono img {
  width: clamp(60px, 6vw, 90px);
  height: clamp(60px, 6vw, 90px);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(0,71,187,0.15);
  transition: box-shadow 0.3s ease;
}
.hm-icono:hover img { box-shadow: 0 8px 24px rgba(0,71,187,0.3); }

.hm-icono span {
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 700;
  color: var(--hm-azul-osc);
  text-align: center;
}

.hm-hero-logos {
  position: absolute;
  top: 24px;
  right: 30px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hm-hero-logos img {
  height: 100px;
  width: auto;
}


/* ============================================================
   HAMBURGER
   ============================================================ */
.hm-hamburger {
  display: none;
  position: fixed; top: 16px; left: 16px; z-index: 1100;
  background: var(--hm-azul-osc); color: var(--hm-white);
  border: none; border-radius: 12px; padding: 10px; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,71,187,0.3);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 820px) {
  :root { --hm-sidebar-w: 0px; }
  body { overflow: hidden; }

  .hm-sidebar {
    transform: translateX(-100%);
    transition: transform 0.35s ease;
    width: 220px;
  }
  .hm-sidebar.hm-sidebar--open { transform: translateX(0); }

  .hm-main { margin-left: 0; }
  .hm-hamburger { display: block; }

  .hm-hero-content { padding: 80px 24px 20px; max-width: 100%; }
  .hm-hero-titulo { width: 220px; }

  .hm-iconos { flex-wrap: wrap; gap: 14px; padding: 16px 16px 20px; }
  .hm-icono img { width: 56px; height: 56px; }
  .hm-icono span { font-size: 10px; }


  .hm-hero-content {
    justify-content: start !important;
    padding: 78px 20px !important;
}

p.hm-hero-texto-prin {
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}
  .hm-hero-logos { top: 16px; right: 16px; }
  .hm-hero-logos img { height: 70px; }

  .hm-hero {
    height: auto;
    min-height: 100vh;
  }

  .hm-hero-bg {
    object-position: center top;
    object-fit: cover;
  }
  .hm-hero-bg {
    object-position: center center;
    object-fit: cover;
    height: 100%;
  }
  
}

@media (max-width: 480px) {
  .hm-hero-content { padding: 70px 16px 16px; }
  .hm-hero-titulo { width: 180px; }
  .hm-hero-texto { font-size: 14px; }
  .hm-icono img { width: 48px; height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
