/* ==========================================================
   FactorPyme — portada del sitio unificado.
   Base: styles.css + componentes.css + base-micro.css (los mismos
   de las páginas por perfil en /pymes, /empresas, /fondeadores,
   /avalistas y /forward).
   ========================================================== */
.hm-hero-bg {
  background:
    linear-gradient(90deg, #0F1E2B 0%, rgba(15,30,43,.96) 42%, rgba(15,30,43,.62) 72%, rgba(15,30,43,.4) 100%),
    linear-gradient(0deg, #0F1E2B 0%, rgba(15,30,43,0) 30%),
    url(/img/hero-pyme.jpg) right 30% / cover no-repeat;
}
.hm-cierre-img { background: linear-gradient(90deg, #14202B 0%, rgba(20,32,43,.3) 45%, rgba(20,32,43,.2) 100%), url(/img/fce.jpg) center / cover no-repeat; }

/* La portada usa el menú con Ingresar + Registrate (dos botones) */
.nav-cta-mobile { grid-template-columns: 1fr 1fr; }

/* ¿Quién sos? — tarjetas con foto por perfil */
.hm-roles { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; gap: 16px; }
.hm-role {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  padding: 22px; border-radius: var(--radius); overflow: hidden; isolation: isolate; text-decoration: none; color: #F3F7FA;
  background: var(--foto) center / cover no-repeat; box-shadow: var(--shadow-lg);
  transition: transform .2s ease, box-shadow .2s ease;
}
.hm-role::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(15,30,43,.95) 0%, rgba(15,30,43,.72) 45%, rgba(15,30,43,.15) 100%); transition: background .2s ease; }
.hm-role:hover { transform: translateY(-3px); }
.hm-role:hover::before { background: linear-gradient(0deg, rgba(15,30,43,.97) 0%, rgba(15,30,43,.8) 55%, rgba(15,30,43,.3) 100%); }
.hm-role-big { grid-row: span 2; }
.hm-role-tag { align-self: flex-start; font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: #14202B; background: #F28C45; padding: 6px 10px; border-radius: 999px; margin-bottom: auto; }
.hm-role h3 { font-family: var(--serif); font-size: 23px; font-weight: 700; line-height: 1.15; }
.hm-role-big h3 { font-size: 32px; }
.hm-role p { font-size: 14.5px; color: #C9D4DD; }
.hm-role-go { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: #F28C45; }
.hm-role-go .ic { width: 16px; height: 16px; transition: transform .2s ease; }
.hm-role:hover .hm-role-go .ic { transform: translateX(3px); }

/* Quiénes somos */
.hm-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hm-kpi { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: 14px; padding: 20px 22px; display: grid; gap: 4px; }
.hm-kpi b { font-size: 30px; font-weight: 600; color: #F28C45; line-height: 1.1; }
.hm-kpi span { font-size: 14px; color: var(--text-soft); }
.hm-prods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 28px; }
.hm-prod { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); text-decoration: none; transition: border-color .15s ease; }
.hm-prod:hover { border-color: var(--brand); }
.hm-prod .py-ic { grid-row: span 2; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-text); }
.hm-prod .py-ic.blue { background: var(--blue-soft); color: var(--blue-text); }
.hm-prod .py-ic .ic { width: 20px; height: 20px; }
.hm-prod b { font-size: 15px; color: var(--text); }
.hm-prod small { font-size: 12.5px; color: var(--text-faint); }

/* Aviso de vista previa (botones de la plataforma) */
.aviso { position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translate(-50%, 20px); max-width: calc(100% - 32px); width: max-content; padding: 14px 20px; border-radius: 14px; background: #14202B; color: #F3F7FA; border: 1px solid rgba(242,140,69,.6); box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); font-size: 15px; text-align: center; opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
.aviso.on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1080px) {
  .hm-roles { grid-template-columns: 1fr 1fr; }
  .hm-role-big { grid-row: auto; grid-column: span 2; }
  .hm-prods { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .hm-hero-bg {
    background:
      linear-gradient(180deg, rgba(15,30,43,.8) 0%, rgba(15,30,43,.95) 45%, #0F1E2B 75%),
      url(/img/hero-pyme.jpg) 70% 20% / cover no-repeat;
  }
  .hm-kpis { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hm-roles { grid-template-columns: 1fr; grid-auto-rows: 230px; }
  .hm-role-big { grid-column: auto; }
  .hm-role-big h3 { font-size: 25px; }
  .hm-prods { grid-template-columns: 1fr; }
  .hm-kpi b { font-size: 24px; }
}

/* Sin las cifras (sacadas 2026-11-10): los productos van pegados al título */
.section-head + .hm-prods { margin-top: 0; }

/* Portada: el ingreso REAL de la plataforma (prod.factorpyme.com.ar/ingreso-embebido) en lugar de la tarjeta fija
   (pedido 2026-11-20). main.js reemplaza .access por este recuadro cuando MODO_VISTA_PREVIA es false; el alto lo avisa
   la propia tarjeta (postMessage) para que crezca con un error o con el paso del código de verificación. */
.access-embed {
  justify-self: end; width: 100%; max-width: 420px;
  border-radius: 18px; overflow: hidden; background: #fff;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.7);
}
.access-embed iframe { display: block; width: 100%; height: 470px; border: 0; background: transparent; }
@media (max-width: 960px) { .access-embed { justify-self: start; } }

/* Portada con las medidas del login de la plataforma (prod.factorpyme.com.ar/login, pedido 2026-11-20): mismo título,
   mismos tamaños de letra, márgenes y ancho de la tarjeta (380 px). En escritorio la portada se ve al 100 % aunque el
   resto del sitio vaya al 90 % (styles.css), para que quede igual que el login. */
@media (min-width: 961px) {
  .hm-hero { zoom: 1.1112; min-height: 100vh; display: flex; align-items: center; padding: 92px 0 48px; }
  .hm-hero > .wrap { width: 100%; }
}
.hm-hero .wrap { max-width: 1280px; padding: 0 48px; }
.hm-hero .hero-in { grid-template-columns: minmax(0, 600px) 380px; justify-content: space-between; gap: 48px; }
.hm-hero .hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hm-hero .eyebrow { margin: 0; font-size: 13px; line-height: 1.5; letter-spacing: .2em; color: #F28C45; }
.hm-hero h1 { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.08; letter-spacing: -0.01em; color: #F3F7FA; }
.hm-hero .lead { margin: 0; max-width: 520px; font-size: 19px; line-height: 1.6; color: #B8C6D2; }
.hm-beneficios { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.hm-beneficios li { display: flex; align-items: center; gap: 12px; font-size: 16px; color: #F3F7FA; }
.hm-beneficio-ic { flex: none; width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; background: rgba(242,140,69,.15); color: #F28C45; }
.hm-beneficio-ic .ic { width: 18px; height: 18px; }
.hm-hero .access, .hm-hero .access-embed { max-width: 380px; }
.hm-hero .access-embed { align-self: center; }
@media (min-width: 1024px) { .hm-hero h1 { font-size: 60px; } }
@media (max-width: 960px) {
  .hm-hero .wrap { padding: 0 var(--gutter); }
  .hm-hero .hero-in { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  .hm-hero .hero-copy { gap: 18px; }
  .hm-hero h1 { font-size: 34px; }
  .hm-hero .lead { font-size: 17px; }
  .hm-beneficios li { font-size: 15px; }
}

/* El logo y el menú alineados con el texto y la tarjeta de la portada. La portada va al 100 % y el encabezado al 90 %,
   así que las medidas de la portada (1280 px de ancho, 48 px de margen) se pasan a la escala del encabezado (÷ 0,9). */
@media (min-width: 961px) { .hm-topbar .wrap { max-width: 1422.2px; padding: 0 53.3px; } }

/* «Próximamente» en los productos del Inicio: insignia sobre el borde de arriba, así no corre el texto y las 4 tarjetas quedan iguales */
.hm-prod { position: relative; }
.hm-prod .pill { position: absolute; top: -9px; right: 12px; margin: 0; padding: 2px 8px; font-size: 10px; line-height: 14px; background: #20384A; border: 1px solid rgba(124,192,228,.35); }
