@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/poppins-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-latin-700-normal.woff2") format("woff2"); }

:root {
  --pt-navy-950: #011631;
  --pt-navy-900: #08203a;
  --pt-navy-800: #0b2a4a;
  --pt-navy-700: #19314b;
  --pt-ink: #0c2340;
  --pt-texto: #3d4b60;
  --pt-naranjo: #f8750d;
  --pt-naranjo-fuerte: #fc6605;
  --pt-verde: #70b14f;
  --pt-fondo: #fafbfd;
  --pt-blanco: #ffffff;
  --pt-linea: #e3e8ef;
  --pt-lateral: 264px;
  --pt-superior: 79px;
  --pt-fuente-titulo: "Poppins", "Segoe UI", Arial, sans-serif;
  --pt-fuente: "Inter", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body.portal {
  font-family: var(--pt-fuente);
  background: var(--pt-fondo);
  color: var(--pt-ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.portal a { text-decoration: none; color: inherit; }
.portal button { font-family: inherit; }

.portal-cabecera {
  display: grid;
  grid-template-columns: var(--pt-lateral) minmax(0, 1fr);
  background: var(--pt-navy-950);
}

.portal-lateral {
  background: linear-gradient(180deg, var(--pt-navy-900) 0%, #062039 100%);
  display: flex;
  flex-direction: column;
  z-index: 40;
}

.portal-lateral-logo {
  display: flex;
  align-items: center;
  height: 102px;
  padding: 0 28px;
}

.portal-lateral-logo img { width: 206px; height: auto; display: block; }

.portal-menu { display: flex; flex-direction: column; gap: 6px; padding-bottom: 14px; }

.portal-menu-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 50px;
  padding: 7px 14px 7px 33px;
  color: #d6dfec;
  font-size: 15.5px;
  line-height: 1.2;
  white-space: normal;
  font-weight: 500;
  border: 0;
  background: transparent;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.portal-menu-item svg { width: 25px; height: 25px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.portal-menu-item:hover { background: rgba(255, 255, 255, 0.07); color: #ffffff; }

.portal-menu-item:focus-visible { outline: 2px solid var(--pt-naranjo); outline-offset: -2px; }

.portal-menu-item.es-activo {
  background: var(--pt-navy-700);
  color: var(--pt-naranjo);
  font-weight: 600;
}

.portal-menu-item.es-activo::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--pt-naranjo);
}

.portal-menu-item--grupo { padding-right: 58px; }
.portal-menu-fila { position: relative; }
.portal-menu-alternar {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #d6dfec;
  cursor: pointer;
}
.portal-menu-alternar:hover { background: rgba(255, 255, 255, 0.12); color: #ffffff; }
.portal-menu-alternar:focus-visible { outline: 2px solid var(--pt-naranjo); outline-offset: -2px; }
.portal-menu-alternar svg { stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.portal-menu-item.es-rama { color: #ffffff; font-weight: 600; }
.portal-menu-flecha { width: 18px !important; height: 18px !important; transition: transform 0.2s ease; }
.portal-menu-grupo.es-abierto .portal-menu-flecha { transform: rotate(180deg); }
.portal-submenu { display: none; flex-direction: column; gap: 2px; padding: 2px 0 8px; }
.portal-menu-grupo.es-abierto .portal-submenu { display: flex; }
.portal-submenu-item {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 14px 6px 74px;
  border: 0;
  background: transparent;
  width: 100%;
  text-align: left;
  color: #c3cfe0;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.portal-submenu-item:hover { background: rgba(255, 255, 255, 0.07); color: #ffffff; }
.portal-submenu-item:focus-visible { outline: 2px solid var(--pt-naranjo); outline-offset: -2px; }
.portal-submenu-item.es-activo { background: var(--pt-navy-700); color: var(--pt-naranjo); font-weight: 600; }
.portal-submenu-item.es-activo::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--pt-naranjo); }

.portal-cabecera-derecha { display: flex; flex-direction: column; min-width: 0; }

.portal-superior {
  height: var(--pt-superior);
  background: var(--pt-blanco);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px 0 24px;
  position: relative;
  z-index: 30;
}

.portal-hamburguesa {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border: 0; border-radius: 10px;
  background: transparent;
  color: var(--pt-ink);
  cursor: pointer;
}

.portal-hamburguesa svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

.portal-superior-logo { display: none; height: 34px; width: auto; }

.portal-usuario { position: relative; margin-left: auto; }

.portal-usuario-boton {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 4px 6px 6px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--pt-ink);
  border-radius: 999px;
}

.portal-usuario-boton:focus-visible { outline: 2px solid var(--pt-naranjo); outline-offset: 2px; }

.portal-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--pt-navy-800);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: 0.02em;
}

.portal-usuario-nombre { font-size: 15px; font-weight: 500; white-space: nowrap; }

.portal-usuario-separador { width: 1px; height: 26px; background: var(--pt-linea); margin: 0 2px 0 6px; }

.portal-usuario-boton svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.15s ease; }

.portal-usuario-boton[aria-expanded="true"] svg { transform: rotate(180deg); }

.portal-usuario-menu {
  position: absolute;
  right: 0; top: calc(100% + 6px);
  min-width: 220px;
  background: var(--pt-blanco);
  border: 1px solid var(--pt-linea);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(8, 32, 58, 0.16);
  padding: 8px;
  display: none;
  z-index: 60;
}

.portal-usuario-menu.es-abierto { display: block; }

.portal-usuario-menu-datos { padding: 8px 10px 10px; border-bottom: 1px solid var(--pt-linea); margin-bottom: 6px; }

.portal-usuario-menu-datos strong { display: block; font-size: 14px; font-weight: 600; }

.portal-usuario-menu-datos span { display: block; font-size: 12.5px; color: var(--pt-texto); margin-top: 2px; }

.portal-usuario-menu button {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--pt-ink);
  cursor: pointer;
}

.portal-usuario-menu button:hover { background: var(--c-hover); }

.portal-hero {
  position: relative;
  flex: 1;
  min-height: 411px;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 18% 55%, rgba(24, 62, 110, 0.55), transparent 70%),
    linear-gradient(100deg, var(--pt-navy-950) 0%, #04244a 52%, #0a3157 100%);
  color: #fff;
}

.portal-hero::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(656px, 56%);
  background: url("/assets/hero.jpg") right center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 30%);
  mask-image: linear-gradient(to right, transparent 0, #000 30%);
}

.portal-hero-texto {
  position: relative;
  z-index: 2;
  padding: 40px 50px 26px;
  max-width: 720px;
}

.portal-hero-etiqueta {
  margin: 0 0 14px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.34em;
  color: #c3ccd9;
  text-transform: uppercase;
}

.portal-hero-titulo {
  margin: 0;
  font-family: var(--pt-fuente-titulo);
  font-weight: 700;
  font-size: clamp(32px, 3.7vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.portal-hero-titulo em { font-style: normal; color: var(--pt-naranjo-fuerte); }

.portal-hero-empresa {
  margin: 18px 0 0;
  font-family: var(--pt-fuente-titulo);
  font-weight: 600;
  font-size: clamp(20px, 2vw, 27px);
  color: var(--pt-verde);
}

.portal-hero-barra { width: 42px; height: 4px; border-radius: 2px; background: var(--pt-naranjo-fuerte); margin: 20px 0 16px; }

.portal-hero-descripcion { margin: 0; font-size: clamp(15px, 1.25vw, 18.5px); line-height: 1.28; max-width: 420px; color: #f3f6fa; }

.portal-tarjetas-envoltorio {
  position: relative;
  z-index: 35;
  margin: 0 30px;
  padding: 12px;
  background: var(--pt-blanco);
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(8, 32, 58, 0.1);
}

.portal-tarjetas { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }

.portal-tarjeta {
  --acento: var(--pt-naranjo-fuerte);
  --tinte: #fdf3ea;
  --circulo: #fce6cf;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 292px;
  padding: 26px 22px 72px;
  background: var(--tinte);
  border-radius: 14px;
  border: 0;
  text-align: left;
  color: var(--pt-ink);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.portal-tarjeta:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(8, 32, 58, 0.12); }

.portal-tarjeta:focus-visible { outline: 3px solid var(--acento); outline-offset: 2px; }

.portal-tarjeta--naranjo { --acento: #fc6605; --tinte: #fdf3ea; --circulo: #fce6cf; }
.portal-tarjeta--azul { --acento: #0b4986; --tinte: #ebf5fe; --circulo: #d1eafe; }
.portal-tarjeta--verde { --acento: #33731f; --tinte: #f3f8f2; --circulo: #d8ead0; }
.portal-tarjeta--pizarra { --acento: #31425c; --tinte: #f0f3f8; --circulo: #d8e1e8; }
.portal-tarjeta--gris { --acento: #62697b; --tinte: #f7f5f6; --circulo: #e6e5ea; }
.portal-tarjeta--turquesa { --acento: #0f6b73; --tinte: #eef7f7; --circulo: #cfe9ea; }
.portal-tarjeta--indigo { --acento: #3d4fa3; --tinte: #eff1fb; --circulo: #d9def5; }

.portal-tarjeta-icono {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--circulo);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--acento);
}

.portal-tarjeta-icono svg { width: 34px; height: 34px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.portal-tarjeta-titulo {
  margin: 0;
  font-family: var(--pt-fuente-titulo);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.2;
  min-height: 2.4em;
  color: var(--pt-ink);
}

.portal-tarjeta-linea { width: 30px; height: 3px; border-radius: 2px; background: var(--acento); margin: 13px 0 13px; }

.portal-tarjeta-texto { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--pt-texto); padding-right: 6px; }

.portal-tarjeta-flecha {
  position: absolute;
  right: 18px; bottom: 18px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--acento);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}

.portal-tarjeta-flecha svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.portal-pie { text-align: center; font-size: 12.5px; color: var(--c-t4); padding: 26px 20px 30px; }

.portal-aviso {
  position: fixed;
  left: 50%; bottom: 28px;
  transform: translate(-50%, 20px);
  background: var(--pt-navy-900);
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  box-shadow: 0 12px 30px rgba(8, 32, 58, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100;
  max-width: calc(100vw - 32px);
  text-align: center;
}

.portal-aviso.es-visible { opacity: 1; transform: translate(-50%, 0); }

.portal-velo { display: none; }

@media (min-width: 1400px) {
  .portal-tarjetas[data-cantidad="7"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .portal-tarjetas[data-cantidad="7"] .portal-tarjeta { min-height: 262px; }
}

@media (max-width: 1399px) {
  .portal-tarjetas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .portal-tarjeta { min-height: 250px; }
  .portal-tarjeta-titulo { font-size: 21px; }
  .portal-tarjeta-texto { font-size: 15px; }
}

@media (max-width: 899px) {
  .portal-cabecera { grid-template-columns: minmax(0, 1fr); }

  .portal-lateral {
    position: fixed;
    top: 0; bottom: 0; left: 0;
    width: min(300px, 84vw);
    transform: translateX(-102%);
    transition: transform 0.22s ease;
    overflow-y: auto;
  }

  body.menu-abierto .portal-lateral { transform: translateX(0); box-shadow: 0 0 40px rgba(0, 0, 0, 0.4); }

  .portal-velo {
    display: block;
    position: fixed; inset: 0;
    background: rgba(1, 22, 49, 0.55);
    opacity: 0; pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 35;
  }

  body.menu-abierto .portal-velo { opacity: 1; pointer-events: auto; }

  body.menu-abierto { overflow: hidden; }

  .portal-superior { height: 64px; padding: 0 14px 0 8px; gap: 8px; }
  .portal-hamburguesa { display: inline-flex; }
  .portal-superior-logo { display: block; margin-right: auto; margin-left: 6px; }
  .portal-usuario { margin-left: 0; }
  .portal-usuario-nombre, .portal-usuario-separador { display: none; }

  .portal-hero { min-height: 0; }
  .portal-hero::after { position: relative; display: block; width: 100%; height: 220px; background-position: center; mask-image: linear-gradient(to bottom, transparent 0, #000 35%); -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 35%); }
  .portal-hero-texto { padding: 34px 22px 8px; max-width: none; }
  .portal-hero-etiqueta { letter-spacing: 0.28em; font-size: 12.5px; }
  .portal-hero-barra { margin: 20px 0 16px; }

  .portal-tarjetas-envoltorio { margin: -22px 14px 0; padding: 10px; border-radius: 16px; }
  .portal-tarjetas { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .portal-tarjeta { min-height: 232px; padding: 20px 16px 68px; }
  .portal-tarjeta-icono { width: 60px; height: 60px; margin-bottom: 16px; }
  .portal-tarjeta-icono svg { width: 28px; height: 28px; }
  .portal-tarjeta-titulo { font-size: 17px; }
  .portal-tarjeta-texto { font-size: 13.5px; }
}

@media (max-width: 559px) {
  .portal-tarjetas { grid-template-columns: minmax(0, 1fr); }
  .portal-tarjeta { min-height: 0; padding: 20px 18px 72px; }
  .portal-tarjeta-titulo { min-height: 0; }
  .portal-tarjeta-flecha { bottom: 16px; }
}

.portal-app { display: grid; grid-template-columns: var(--pt-lateral) minmax(0, 1fr); min-height: 100vh; }

.portal-app > .portal-lateral { position: sticky; top: 0; height: 100vh; overflow-y: auto; }

.portal-columna { display: flex; flex-direction: column; min-width: 0; min-height: 100vh; }

.portal-app .portal-superior { border-bottom: 1px solid var(--pt-linea); }

@media (min-width: 900px) {
  .portal-app { transition: grid-template-columns 0.24s ease; }
  .portal-app > .portal-lateral { min-width: 0; overflow-x: hidden; }
  .portal-app > .portal-lateral > * { min-width: var(--pt-lateral); }
  .portal-hamburguesa { display: inline-flex; margin-right: 10px; }
  body:not(.menu-oculto) .portal-hamburguesa { margin-right: auto; }
  body.menu-oculto .portal-app { grid-template-columns: 0 minmax(0, 1fr); }
  body.menu-oculto .portal-app > .portal-lateral { visibility: hidden; transition: visibility 0s linear 0.24s; }
  body.menu-oculto .portal-superior-logo { display: block; margin-right: auto; }
  .portal-cabecera { transition: grid-template-columns 0.24s ease; }
  .portal-cabecera > .portal-lateral { min-width: 0; overflow-x: hidden; }
  .portal-cabecera > .portal-lateral > * { min-width: var(--pt-lateral); }
  body.menu-oculto .portal-cabecera { grid-template-columns: 0 minmax(0, 1fr); }
  body.menu-oculto .portal-cabecera > .portal-lateral { visibility: hidden; transition: visibility 0s linear 0.24s; }
}

.portal-hamburguesa:hover { background: rgba(8, 32, 58, 0.07); }
.portal-hamburguesa:focus-visible { outline: 2px solid var(--pt-naranjo-fuerte); outline-offset: 2px; }

.portal--simple .portal-app { grid-template-columns: minmax(0, 1fr); }
.portal--simple .portal-lateral { display: none; }
.portal--simple .portal-hamburguesa { display: none; }
.portal--simple .portal-superior-logo { display: block; height: 38px; margin-right: auto; }
.portal--simple .portal-superior { padding-left: 28px; }

.portal-pagina { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 34px 30px 48px; }

.portal--simple .portal-pagina { max-width: 1040px; }
.portal-pagina.portal-pagina--ancha { max-width: 1560px; }

.portal-migas { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--pt-texto); margin-bottom: 14px; }
.portal-migas a { color: var(--pt-texto); }
.portal-migas a:hover { color: var(--pt-naranjo-fuerte); }
.portal-migas [aria-current="page"] { color: var(--pt-ink); font-weight: 600; }
.portal-migas-separador { color: var(--c-t4); }

.portal-encabezado-fila { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

.portal-titulo-pagina { margin: 0; font-family: var(--pt-fuente-titulo); font-weight: 700; font-size: clamp(26px, 3vw, 36px); line-height: 1.1; letter-spacing: -0.015em; color: var(--pt-ink); }

.portal-titulo-pagina::after { content: ""; display: block; width: 42px; height: 4px; border-radius: 2px; background: var(--pt-naranjo-fuerte); margin-top: 14px; }

.portal-subtitulo-pagina { margin: 14px 0 0; font-size: 16px; line-height: 1.45; color: var(--pt-texto); max-width: 560px; }

.portal-volver {
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 20px 0 16px;
  border-radius: 999px;
  border: 1.5px solid var(--pt-naranjo-fuerte);
  background: var(--pt-blanco);
  color: var(--pt-naranjo-fuerte);
  font-size: 15px; font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.portal-volver svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.portal-volver:hover { background: var(--pt-naranjo-fuerte); color: #fff; }
.portal-volver:focus-visible { outline: 3px solid var(--pt-naranjo); outline-offset: 3px; }

.portal-opciones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 34px; }

.portal-opciones--una { grid-template-columns: minmax(0, 1fr); max-width: 760px; }

.portal-opcion {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 26px 24px;
  background: var(--tinte, var(--c-nabg));
  border-radius: 16px;
  color: var(--pt-ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.portal-opcion:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(8, 32, 58, 0.12); }
.portal-opcion:focus-visible { outline: 3px solid var(--acento); outline-offset: 3px; }

.portal-opcion .portal-tarjeta-icono { margin-bottom: 0; flex: none; }
.portal-opcion .portal-tarjeta-flecha { position: static; flex: none; }

.portal-opcion-cuerpo { display: flex; flex-direction: column; gap: 7px; min-width: 0; }

.portal-opcion-titulo { font-family: var(--pt-fuente-titulo); font-weight: 600; font-size: 19px; line-height: 1.22; color: var(--pt-ink); }

.portal-opcion-texto { font-size: 14.5px; line-height: 1.45; color: var(--pt-texto); }

body.portal--login { background: var(--pt-blanco); }

.login { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); min-height: 100vh; }

.login-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 44px 56px 0;
  color: #fff;
  background:
    radial-gradient(800px 460px at 20% 30%, rgba(24, 62, 110, 0.55), transparent 70%),
    linear-gradient(160deg, var(--pt-navy-950) 0%, #04244a 55%, #0a3157 100%);
}

.login-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  aspect-ratio: 656 / 412;
  background: url("/assets/hero.jpg") center bottom / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 45%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 45%);
}

.login-logo { position: relative; z-index: 2; width: 214px; height: auto; display: block; }

.login-hero-texto { position: relative; z-index: 2; margin-top: clamp(40px, 9vh, 96px); max-width: 560px; }

.login-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 28px 24px; background: var(--pt-fondo); }

.login-tarjeta {
  width: 100%;
  max-width: 440px;
  margin: auto 0;
  padding: 40px 38px 36px;
  background: var(--pt-blanco);
  border-radius: 20px;
  box-shadow: 0 16px 44px rgba(8, 32, 58, 0.1);
}

.login-titulo { margin: 0; font-family: var(--pt-fuente-titulo); font-weight: 700; font-size: 30px; letter-spacing: -0.015em; color: var(--pt-ink); }

.login-titulo::after { content: ""; display: block; width: 42px; height: 4px; border-radius: 2px; background: var(--pt-naranjo-fuerte); margin-top: 14px; }

.login-intro { margin: 14px 0 26px; font-size: 15.5px; line-height: 1.45; color: var(--pt-texto); }

.login-campo { margin-bottom: 18px; }

.login-campo label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--pt-ink); }

.login-entrada { position: relative; display: flex; align-items: center; }

.login-entrada > svg { position: absolute; left: 16px; width: 20px; height: 20px; stroke: var(--c-t4); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }

.login-entrada input {
  width: 100%;
  height: 54px;
  padding: 0 52px 0 48px;
  font-family: var(--pt-fuente);
  font-size: 16px;
  color: var(--pt-ink);
  background: var(--c-campo);
  border: 1.5px solid var(--pt-linea);
  border-radius: 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.login-entrada input:focus { outline: none; background: var(--c-sup); border-color: var(--pt-naranjo-fuerte); box-shadow: 0 0 0 4px rgba(252, 102, 5, 0.14); }

.login-ojito {
  position: absolute; right: 6px;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 10px;
  background: transparent; color: var(--c-t4);
  cursor: pointer;
}

.login-ojito:hover { color: var(--pt-ink); background: var(--c-chip); }
.login-ojito:focus-visible { outline: 2px solid var(--pt-naranjo); outline-offset: 1px; }
.login-ojito svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.login-ojito .icono-ojo-cerrado { display: none; }
.login-ojito.zamora-clave-visible .icono-ojo-abierto { display: none; }
.login-ojito.zamora-clave-visible .icono-ojo-cerrado { display: block; }

.login-error {
  margin: 0 0 16px;
  padding: 11px 14px;
  border-radius: 10px;
  background: var(--c-rjbg);
  color: var(--c-rjtx);
  font-size: 14px;
  line-height: 1.4;
}

.login-error:empty { display: none; }

.login-boton {
  width: 100%;
  height: 56px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  border: 0; border-radius: 12px;
  background: var(--pt-naranjo-fuerte);
  color: #fff;
  font-family: var(--pt-fuente-titulo);
  font-size: 17px; font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.login-boton svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.15s ease; }
.login-boton:hover { background: #e55a00; box-shadow: 0 10px 22px rgba(252, 102, 5, 0.28); }
.login-boton:hover svg { transform: translateX(3px); }
.login-boton:focus-visible { outline: 3px solid var(--pt-naranjo); outline-offset: 3px; }
.login-boton:disabled { opacity: 0.7; cursor: default; box-shadow: none; }

.login-ayuda { margin: 22px 0 0; text-align: center; font-size: 14px; color: var(--pt-texto); }

.login-panel .portal-pie { padding: 18px 0 6px; margin-top: auto; }

.login-hero-texto .portal-hero-descripcion { text-shadow: 0 1px 10px rgba(1, 22, 49, 0.85); }

@media (max-width: 1099px) {
  .login-hero { padding: 40px 36px 0; }
}

@media (max-width: 899px) {
  .portal-app { grid-template-columns: minmax(0, 1fr); }

  .portal-app > .portal-lateral {
    position: fixed;
    top: 0; bottom: 0; left: 0;
    height: auto;
    width: min(300px, 84vw);
    transform: translateX(-102%);
    transition: transform 0.22s ease;
    overflow-y: auto;
  }

  body.menu-abierto .portal-app > .portal-lateral { transform: translateX(0); box-shadow: 0 0 40px rgba(0, 0, 0, 0.4); }

  .portal--simple .portal-superior { padding-left: 16px; }
  .portal--simple .portal-superior-logo { margin-left: 0; }

  .portal-pagina { padding: 24px 16px 40px; }
  .portal-opciones { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 26px; }
  .portal-opcion { padding: 20px 18px; gap: 16px; }
  .portal-opcion .portal-tarjeta-icono { width: 56px; height: 56px; }
  .portal-opcion .portal-tarjeta-icono svg { width: 26px; height: 26px; }
  .portal-opcion-titulo { font-size: 17px; }
  .portal-opcion-texto { font-size: 14px; }
  .portal-opcion .portal-tarjeta-flecha { width: 36px; height: 36px; }
  .portal-volver { height: 42px; }

  .login { grid-template-columns: minmax(0, 1fr); min-height: 100vh; }
  .login-hero { padding: 28px 24px 0; min-height: 0; }
  .login-hero::after { display: none; }
  .login-hero-texto { margin-top: 26px; padding-bottom: 82px; }
  .login-hero-texto .portal-hero-empresa,
  .login-hero-texto .portal-hero-barra,
  .login-hero-texto .portal-hero-descripcion { display: none; }
  .login-hero-texto .portal-hero-etiqueta { margin-bottom: 10px; font-size: 12.5px; letter-spacing: 0.28em; }
  .login-hero-texto .portal-hero-titulo { font-size: 30px; }
  .login-logo { width: 170px; }
  .login-panel { padding: 0 16px 16px; background: var(--pt-fondo); justify-content: flex-start; }
  .login-tarjeta { margin: -56px 0 0; padding: 30px 22px 28px; position: relative; }
  .login-titulo { font-size: 26px; }
}

.portal-campana-caja { position: relative; margin-left: auto; margin-right: 6px; }

.portal-campana { position: relative; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: transparent; color: var(--pt-ink); cursor: pointer; }
.portal-campana:hover { background: var(--c-hover); }
.portal-campana:focus-visible { outline: 2px solid var(--pt-naranjo); outline-offset: 2px; }
.portal-campana svg { width: 23px; height: 23px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.portal-campana-numero { position: absolute; top: -1px; right: -3px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--pt-naranjo-fuerte); color: #fff; font-size: 11px; font-weight: 700; line-height: 19px; text-align: center; border: 2px solid var(--c-sup); box-sizing: content-box; }
.portal-campana-numero[hidden] { display: none; }
.portal-campana-caja + .portal-usuario { margin-left: 0; }

.portal-notif-panel { position: absolute; right: -6px; top: calc(100% + 8px); width: min(400px, calc(100vw - 24px)); background: var(--c-sup); border: 1px solid var(--pt-linea); border-radius: 14px; box-shadow: 0 18px 44px rgba(8, 32, 58, 0.2); display: none; z-index: 70; overflow: hidden; }
.portal-notif-panel.es-abierto { display: block; }
.portal-notif-cabecera { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--pt-linea); }
.portal-notif-cabecera strong { font-family: var(--pt-fuente-titulo); font-size: 16px; }
.portal-notif-cabecera button { border: 0; background: transparent; color: var(--pt-naranjo-fuerte); font: 600 13px var(--pt-fuente); cursor: pointer; }
.portal-notif-cabecera button:hover { text-decoration: underline; }
.portal-notif-lista { max-height: 380px; overflow-y: auto; }
.portal-notif-vacia { margin: 0; padding: 26px 16px; text-align: center; color: var(--pt-texto); font-size: 14px; }
.portal-notif-pie { display: block; padding: 12px 16px; text-align: center; font-size: 14px; font-weight: 600; color: var(--pt-ink); border-top: 1px solid var(--pt-linea); background: var(--c-sup2); }
.portal-notif-pie:hover { background: var(--c-hover); }

.portal-notif-item { display: flex; gap: 13px; padding: 13px 16px; border-bottom: 1px solid var(--c-lin2); color: var(--pt-ink); }
.portal-notif-item:hover { background: var(--c-sup2); }
.portal-notif-item.es-nueva { background: var(--c-nabg); }
.portal-notif-item.es-nueva:hover { background: var(--c-nabg2); }
.portal-notif-icono { width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--c-nabg); color: var(--c-natx); display: flex; align-items: center; justify-content: center; }
.portal-notif-icono svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.portal-notif-icono--anulacion, .portal-notif-icono--contrato-vencido, .portal-notif-icono--sistema { background: var(--c-rjbg); color: var(--c-rjtx); }
.portal-notif-icono--inventario { background: var(--c-chip); color: #31425c; }
.portal-notif-icono--devolucion { background: var(--c-nabg); color: var(--c-natx); }
.portal-notif-texto { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.portal-notif-texto strong { font-size: 14.5px; font-weight: 600; }
.portal-notif-texto span { font-size: 13.5px; color: var(--pt-texto); overflow-wrap: anywhere; }
.portal-notif-texto small { font-size: 12.5px; color: var(--c-t4); }

@media (max-width: 899px) {
  .portal-campana-caja { position: static; margin-left: 0; margin-right: 2px; }
  .portal-notif-panel { position: fixed; left: 12px; right: 12px; top: 70px; width: auto; }
}

@media (min-width: 600px) and (max-width: 899px) {
  .login-hero::after {
    display: block;
    aspect-ratio: auto;
    height: 330px;
    background-position: center 62%;
  }
  .login-hero-texto { padding-bottom: 340px; }
  .login-panel { align-items: center; }
  .login-tarjeta { max-width: 460px; }
}

@media (prefers-reduced-motion: reduce) {
  .portal-app,
  .portal-lateral, .portal-velo, .portal-tarjeta, .portal-opcion, .portal-aviso, .portal-menu-item, .login-boton, .login-boton svg { transition: none; }
}

.pz-panel { position: fixed; z-index: 2000; display: flex; flex-direction: column; overflow: hidden; background: var(--c-sup); border: 1px solid var(--pt-linea); border-radius: 13px; box-shadow: 0 18px 40px rgba(8, 32, 58, 0.22); animation: pz-entrada 0.12s ease-out; }
.pz-lista { overflow-y: auto; padding: 6px; overscroll-behavior: contain; }
.pz-op { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 9px; cursor: pointer; font-size: 14.5px; line-height: 1.35; color: var(--pt-ink); }
.pz-op.es-activa { background: var(--c-chip); }
.pz-op[aria-selected="true"] { font-weight: 700; }
.pz-op[aria-selected="true"]::after { content: ""; flex: none; width: 6px; height: 11px; margin-right: 3px; border: solid var(--pt-naranjo-fuerte); border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); }
.pz-op[aria-disabled="true"] { color: var(--c-t4); cursor: not-allowed; }
.pz-grupo { padding: 10px 12px 4px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--c-t3); }
.pz-fondo { position: fixed; inset: 0; z-index: 1999; background: rgba(8, 32, 58, 0.45); animation: pz-fundido 0.15s ease-out; }
.pz-hoja { left: 0; right: 0; bottom: 0; max-height: 72vh; border-radius: 20px 20px 0 0; border-width: 1px 0 0; padding-bottom: env(safe-area-inset-bottom); animation: pz-sube 0.18s ease-out; }
.pz-titulo { flex: none; padding: 16px 20px 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--c-t3); border-bottom: 1px solid var(--pt-linea); }
.pz-hoja .pz-op { min-height: 50px; padding: 12px 14px; font-size: 16px; }
.pz-hoja .pz-grupo { padding: 14px 14px 6px; }
@keyframes pz-entrada { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes pz-fundido { from { opacity: 0; } to { opacity: 1; } }
@keyframes pz-sube { from { transform: translateY(24px); opacity: 0.6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pz-panel, .pz-fondo, .pz-hoja { animation: none; } }
