/* ============================================================
   iNNpulsa Mujeres — nuevas secciones
   CSS de apoyo (navbar superior, calendario, caja de herramientas,
   página métricas). Paleta y tipografías tomadas del look gráfico oficial.
   Cargar DESPUÉS de css/main.css.

   Nota de fidelidad: css/main.css define `html { font-size: 62.5% }`
   (1rem = 10px, técnica propia del tema Rayo). Los componentes de este
   archivo fueron diseñados asumiendo el root por defecto del navegador
   (1rem = 16px), así que aquí TODAS las longitudes (fuentes, paddings,
   márgenes, gaps) se expresan en px — son los mismos valores del diseño
   original, ya convertidos (rem × 16), para que se vean idénticos sin
   depender del root font-size del resto del sitio.
   ============================================================ */

:root {
  --im-negro:      #161616;
  --im-negro-2:    #1c1c1c;
  --im-borde:      #2a2a2a;
  --im-lima:       #d5fc4c;
  --im-magenta:    #d62987;
  --im-rosa:       #f08bf5;
  --im-rosa-claro: #fbd6ff;
  --im-lila:       #bd98dd;
  --im-verde:      #518164;
  --im-verde-2:    #a9ca70;
  --im-crema:      #f6f4f2;
  --im-crema-2:    #efebe6;

  --im-font-titulo: 'Neulis Neue', 'Outfit', system-ui, sans-serif;
  --im-font-texto:  'Nunito Sans', system-ui, sans-serif;

  --im-radio:      32px;
  --im-radio-card: 28px;
  --im-radio-item: 24px;
}

/* Si ya tienes Neulis Neue licenciada, descomenta y ajusta las rutas:
@font-face { font-family:'Neulis Neue'; src:url('../fonts/NeulisNeue-Medium.woff2') format('woff2'); font-weight:500; font-display:swap; }
@font-face { font-family:'Neulis Neue'; src:url('../fonts/NeulisNeue-SemiBold.woff2') format('woff2'); font-weight:600; font-display:swap; }
*/

.im-titulo { font-family: var(--im-font-titulo); font-weight: 600; letter-spacing: -.03em; line-height: 1.02; }
.im-titulo em { font-style: italic; }
.im-texto  { font-family: var(--im-font-texto); }

/* Etiqueta / eyebrow -------------------------------------------------- */
.im-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--im-font-texto); font-size: 12px; font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase;
  padding: 8px 16px; border-radius: 999px;
}
.im-tag--lima  { background: var(--im-lima);  color: var(--im-negro); }
.im-tag--negro { background: var(--im-negro); color: #fff; }

/* Botones ------------------------------------------------------------- */
.im-btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--im-font-texto); font-weight: 800; font-size: 16px;
  padding: 17px 32px; border-radius: 999px; border: 0;
  text-decoration: none; transition: background-color .25s, color .25s, transform .25s;
}
.im-btn--lima    { background: var(--im-lima);    color: var(--im-negro); }
.im-btn--lima:hover    { background: #fff;             color: var(--im-negro); }
.im-btn--magenta { background: var(--im-magenta); color: #fff; }
.im-btn--magenta:hover { background: var(--im-rosa);   color: var(--im-negro); }
.im-btn--lg { font-size: 19px; padding: 22px 44px; }

/* ============ 01 · NAVBAR SUPERIOR ================================== */
.im-navbar { position: sticky; top: 0; z-index: 1030; padding: 20px 0; transition: padding .3s, background-color .3s; }
.im-navbar__inner {
  display: flex; position: relative; align-items: center; justify-content: space-between; gap: 32px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(18px); border-radius: 999px; padding: 12px 12px 12px 28px;
}
.im-navbar__logo { height: 30px; width: auto; display: block; filter: brightness(0) invert(1); }
.im-navbar__links { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 6px; }
.im-navbar__inner > a:first-child { flex: 1 0 0; }
.im-navbar__spacer { flex: 1 0 0; }
.im-navbar__link {
  font-family: var(--im-font-texto); font-size: 15px; font-weight: 600;
  color: #e6e6e6; text-decoration: none; padding: 11px 22px;
  border-radius: 999px; white-space: nowrap; transition: background-color .2s, color .2s;
}
.im-navbar__link:hover { background: rgba(255,255,255,.10); color: #fff; }
.im-navbar__link.active { background: var(--im-lima); color: var(--im-negro); font-weight: 700; }

/* Variante sobre fondo claro / estado compacto tras scroll */
.im-navbar--claro .im-navbar__inner { background: #fff; border-color: #e6e1dc; box-shadow: 0 12px 30px rgba(22,22,22,.07); }
.im-navbar--claro .im-navbar__logo { filter: none; }
.im-navbar--claro .im-navbar__link { color: #4a4a4a; }
.im-navbar--claro .im-navbar__link:hover { background: #f1efec; color: var(--im-negro); }
.im-navbar.is-compact { padding: 8px 0; background: rgba(22,22,22,.85); backdrop-filter: blur(18px); }

/* Menú hamburguesa en tablet y móvil (mismo breakpoint que el diseño: 860px) */
.im-navbar__chk { position: absolute; opacity: 0; width: 0; height: 0; }
.im-navbar__burger {
  display: none; order: 2; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
  width: 46px; height: 46px; border-radius: 999px; flex-shrink: 0; cursor: pointer;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
}
.im-navbar__burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: #fff; }
.im-navbar--claro .im-navbar__burger { background: #f1efec; border-color: #e6e1dc; }
.im-navbar--claro .im-navbar__burger span { background: var(--im-negro); }

@media (max-width: 860px) {
  .im-navbar__inner { position: relative; flex-wrap: wrap; border-radius: var(--im-radio-item); padding: 12px 14px 12px 20px; gap: 12px; }
  .im-navbar__burger { display: inline-flex; }
  .im-navbar__inner > a:first-child { flex: 1 1 auto; }
  .im-navbar__spacer { display: none; }
  .im-navbar__links {
    display: none; order: 4; width: 100%; flex-direction: column; align-items: stretch;
    justify-content: flex-start; gap: 2px; padding-top: 10px; margin-top: 2px;
    border-top: 1px solid rgba(255,255,255,.12);
  }
  .im-navbar--claro .im-navbar__links { border-top-color: #e6e1dc; }
  .im-navbar__chk:checked ~ .im-navbar__links { display: flex; }
  .im-navbar__link { min-height: 46px; display: flex; align-items: center; padding: 12px 16px; }
}

/* ============ 02 · CALENDARIO ======================================= */
.im-calendario { background: var(--im-negro); color: #fff; padding: clamp(48px, 7vw, 96px) clamp(20px, 4vw, 40px); position: relative; overflow: hidden; }
.im-calendario > * { position: relative; }

.im-fecha {
  display: grid; grid-template-columns: 200px minmax(0,1fr) auto auto; align-items: center; gap: 32px;
  background: var(--im-negro-2); border: 1px solid var(--im-borde);
  border-radius: var(--im-radio-item); padding: 26px 32px;
  transition: background-color .25s, border-color .25s;
}
.im-fecha:hover { background: #212121; border-color: #3a3a3a; }
.im-fecha__dia { font-family: var(--im-font-titulo); font-size: 44px; font-weight: 600; line-height: 1; letter-spacing: -.03em; }
.im-fecha__mes { font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #8f8f8f; margin-top: 6px; }
.im-fecha__titulo { font-family: var(--im-font-titulo); font-size: 25px; font-weight: 600; letter-spacing: -.01em; margin: 0; }
.im-fecha__lugar { font-size: 15px; color: #a9a9a9; }
.im-fecha__hora  { font-size: 15px; color: #c9c9c9; }
.im-estado { justify-self: end; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .06em; padding: 11px 20px; border-radius: 999px; white-space: nowrap; text-decoration: none; transition: background-color .2s, color .2s, transform .2s; }
a.im-estado--abierta:hover { background: #fff; color: var(--im-negro); transform: translateY(-2px); }
.im-estado--abierta  { background: var(--im-lima); color: var(--im-negro); }
.im-estado--limitada { background: var(--im-lima); color: var(--im-negro); }
.im-estado--cierre   { background: var(--im-rosa-claro); color: var(--im-negro); }
.im-estado--proxima  { background: var(--im-lima); color: var(--im-negro); }

.im-fecha--destacada { background: rgba(213,252,76,.08); border-color: rgba(213,252,76,.35); }
.im-fecha--destacada:hover { background: rgba(213,252,76,.13); }
.im-fecha--destacada .im-fecha__dia,
.im-fecha--destacada .im-fecha__mes { color: var(--im-lima); }
.im-fecha--cierre { background: linear-gradient(100deg, rgba(189,152,221,.16), rgba(240,139,245,.10)); border-color: rgba(189,152,221,.42); }
.im-fecha--cierre .im-fecha__dia { color: var(--im-rosa-claro); }
.im-fecha--cierre .im-fecha__mes { color: var(--im-lila); }

@media (max-width: 1100px) { .im-fecha { grid-template-columns: 150px minmax(0,1fr); row-gap: 14px; column-gap: 24px; } .im-fecha > *:nth-child(3), .im-fecha > *:nth-child(4) { grid-column: 2; justify-self: start; } }
@media (max-width: 720px) { .im-fecha { grid-template-columns: 1fr; gap: 14px; padding: 22px 20px; } .im-fecha > *:nth-child(3), .im-fecha > *:nth-child(4) { grid-column: 1; } }

/* ============ 03 · CAJA DE HERRAMIENTAS ============================ */
.im-herramientas { background: var(--im-negro); color: #fff; border-top: 1px solid var(--im-borde); padding: clamp(48px, 7vw, 96px) clamp(20px, 4vw, 40px); }
.im-herramientas__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; }
.im-tool {
  display: flex; flex-direction: column; justify-content: space-between; gap: 56px;
  height: 100%; min-height: 320px; padding: 34px; border-radius: var(--im-radio-card);
  text-decoration: none; transition: transform .3s ease, box-shadow .3s ease;
}
.im-tool:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(22,22,22,.14); }
.im-tool__num { font-family: ui-monospace, monospace; font-size: 12px; font-weight: 700; letter-spacing: .14em; opacity: .55; }
.im-tool__arrow { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 19px; flex-shrink: 0; }
.im-tool__titulo { font-family: var(--im-font-titulo); font-size: 32px; line-height: 1.05; font-weight: 600; letter-spacing: -.025em; margin: 0; }
.im-tool__texto { font-size: 16px; line-height: 1.55; margin: 0; }

.im-tool--comercial  { background: var(--im-lima);    color: var(--im-negro); }
.im-tool--financiera { background: var(--im-magenta); color: #fff; }
.im-tool--legal      { background: var(--im-lila);    color: var(--im-negro); }
.im-tool--productiva { background: var(--im-verde);   color: #fff; }
.im-tool--comercial  .im-tool__arrow { background: var(--im-negro); color: var(--im-lima); }
.im-tool--financiera .im-tool__arrow { background: #fff; color: var(--im-magenta); }
.im-tool--legal      .im-tool__arrow { background: var(--im-negro); color: var(--im-lila); }
.im-tool--productiva .im-tool__arrow { background: var(--im-lima); color: var(--im-negro); }
.im-tool--comercial  .im-tool__texto,
.im-tool--legal      .im-tool__texto { color: rgba(22,22,22,.72); }
.im-tool--financiera .im-tool__texto,
.im-tool--productiva .im-tool__texto { color: rgba(255,255,255,.82); }

@media (max-width: 767.98px) { .im-tool { min-height: 0; gap: 32px; } }

/* ============ 04 · PÁGINA MÉTRICAS ================================= */
.im-metricas-hero { background: var(--im-negro); color: #fff; position: relative; overflow: hidden; padding: clamp(56px, 8vw, 112px) clamp(20px, 4vw, 40px) clamp(48px, 6vw, 88px); text-align: center; }
.im-metricas-hero::before { content: ''; position: absolute; border-radius: 50%; pointer-events: none; top: -180px; left: -140px; width: 520px; height: 520px; background: radial-gradient(circle at 40% 40%, rgba(213,252,76,.22), rgba(213,252,76,0) 70%); }
.im-metricas-hero__inner { position: relative; max-width: 1440px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.im-metricas-hero h1 { font-size: clamp(40px, 7.2vw, 82px); letter-spacing: -.035em; line-height: 1; max-width: 900px; margin: 0; }
.im-metricas-hero .im-lead { font-size: clamp(17px, 1.9vw, 23px); line-height: 1.55; color: #cfcfcf; max-width: 52ch; margin: 8px 0 0; }

.im-cinta { background: var(--im-lima); color: var(--im-negro); padding: 16px 0; overflow: hidden; white-space: nowrap; }
.im-cinta__track { display: flex; width: max-content; animation: im-marquee 32s linear infinite; }
.im-cinta span { display: inline-block; font-family: var(--im-font-titulo); font-size: 20px; font-weight: 700; text-transform: lowercase; white-space: nowrap; padding-right: 40px; }
@keyframes im-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .im-cinta__track { animation: none; } }

.im-metricas-cuerpo { background: var(--im-crema); color: var(--im-negro); padding: clamp(48px, 7vw, 96px) clamp(20px, 4vw, 40px); }
.im-metricas-cuerpo__grid { max-width: 1440px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 64px; align-items: start; }
.im-metricas-cuerpo__grid > *:first-child { display: flex; flex-direction: column; gap: 20px; }
.im-metricas-cuerpo__grid > *:last-child { display: flex; flex-direction: column; gap: 32px; padding-top: 34px; }
.im-dash { display: block; border-radius: var(--im-radio-item); border: 1px solid #e2ddd7; background: #fff; overflow: hidden; box-shadow: 0 20px 50px rgba(22,22,22,.07); transition: box-shadow .3s, border-color .3s; }
.im-dash:hover { box-shadow: 0 26px 60px rgba(22,22,22,.16); border-color: #d5c8bd; }
.im-dash img { width: 100%; height: auto; display: block; }
.im-dash__bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--im-crema-2); }
.im-dash__bar i { width: 10px; height: 10px; border-radius: 50%; background: #e6e1dc; display: block; }
.im-dash__bar small { font-family: ui-monospace, monospace; font-size: 11px; color: #9a9a9a; margin-left: 12px; }
.im-etiqueta-dash { font-family: ui-monospace, monospace; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #8a8a8a; }
.im-parrafo { font-size: clamp(16px, 1.7vw, 21px); line-height: 1.6; color: #3d3d3d; margin: 0; }
.im-cita { font-family: var(--im-font-titulo); font-size: clamp(21px, 2.2vw, 28px); line-height: 1.3; font-weight: 500; letter-spacing: -.015em; color: var(--im-negro); margin: 0; }
.im-cita em { font-style: italic; color: var(--im-magenta); }

.im-metricas-cta { background: var(--im-negro); color: #fff; padding: clamp(56px, 7vw, 96px) clamp(20px, 4vw, 40px) clamp(64px, 8vw, 112px); display: flex; flex-direction: column; align-items: center; gap: 36px; text-align: center; }
.im-metricas-cta h2 { font-size: clamp(28px, 4.2vw, 46px); line-height: 1.1; letter-spacing: -.028em; max-width: 22ch; margin: 0; }
.im-metricas-cta .im-btn { gap: 14px; }
.im-nota { font-family: ui-monospace, monospace; font-size: 12px; color: #6f6f6f; display: block; margin-top: 0; }

/* Utilidad de texto equilibrado */
.im-pretty { text-wrap: pretty; }

/* ============================================================
   Overrides de integración con el tema Rayo
   (no viene del entregable original; corrige colisiones con
   el sitio existente)
   ============================================================ */

/* El loader inicial usa z-index:1000 (css/loaders/loader.css) */
.im-navbar { z-index: 500; }

/* Gutters de Bootstrap (g-4/g-5 fijan --bs-gutter-x/y en rem, afectados
   por html{font-size:62.5%} de main.css) — igualados a su equivalente en
   px SOLO dentro de los componentes nuevos, sin tocar Bootstrap globalmente. */
#calendario .row.g-5,
#caja-de-herramientas .row.g-5 { --bs-gutter-x: 48px; --bs-gutter-y: 48px; }

/* Reemplazos de utilidades Bootstrap (mb-, px-, gap- y pt-lg-5 usan
   "!important" en css/plugins.css sobre valores en rem, así que en vez de
   pelear especificidad se usan clases propias con el valor ya en px). */
.im-mb-3 { margin-bottom: 16px; }
.im-mb-4 { margin-bottom: 24px; }
.im-mb-5 { margin-bottom: 48px; }
.im-mb-56 { margin-bottom: 56px; }
.im-px-4 { padding-left: 24px; padding-right: 24px; }
.im-px-5 { padding-left: 48px; padding-right: 48px; }
.im-gap-2 { gap: 8px; }
.im-gap-4 { gap: 24px; }
.im-pt-lg-5 { padding-top: 0; }
@media (min-width: 992px) { .im-pt-lg-5 { padding-top: 48px; } }
