/* ==========================
   SELECTOR - ENTERPRISE
   Compatible con variables.css y components.css
   ========================== */

.page{
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
}

/* HEADER GLOBAL */
.appHeader{
  position: sticky;
  top: 0;
  z-index: 20;

  background: rgba(255,255,255,.72);
  border-bottom: 1px solid var(--line2);
  backdrop-filter: blur(10px);
}

.appHeader__inner{
  width: min(1200px, 92vw);
  margin: 0 auto;
  min-height: 64px;

  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 1rem;

  padding: .7rem 0;
}

.brand{
  display:flex;
  align-items:center;
  gap: .75rem;
  min-width: 260px;
}

/* FIX logo cortado */
.brand__logo{
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 10px;
  background: transparent;
  border: 1px solid rgba(20,20,22,.10);
}

.brand__text{
  display:flex;
  flex-direction:column;
  line-height: 1.1;
}

.brand__name{
  font-weight: 900;
  letter-spacing: .2px;
  color: var(--text);
}

.brand__sub{
  font-size: .88rem;
  color: var(--text2);
}

.headerRight{
  display:flex;
  align-items:center;
  gap: .9rem;
}
.headerMeta{
  text-align:right;
  line-height: 1.1;
}
.headerMeta__hello{
  font-weight: 800;
  color: var(--text);
}
.headerMeta__date{
  color: var(--text2);
  font-size: .9rem;
}

/* Shell principal */
.shell{
  width: min(860px, 100%);
  margin: clamp(1rem, 2.2vh, 1.6rem) auto;
  padding: 1.4rem;
}

.brandCenter{
  text-align:center;
  padding-top: .25rem;
}

/* Logo grande */
.logo{
  width: min(420px, 82%);
  height: auto;
  max-height: 120px;
  object-fit: contain;
  margin: 0 auto;
  background: transparent;
  border: none;
  box-shadow: none;
}

/* Tipografía */
.title{
  margin: .85rem 0 0;
  font-size: clamp(1.25rem, 1.1rem + .8vw, 1.75rem);
  letter-spacing: .15px;
  font-weight: 900;
  color: var(--text);
}
.subtitle{
  margin: .35rem 0 0;
  color: var(--text2);
  font-size: 1rem;
}
.hint{
  margin: .55rem 0 0;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.35;
}

/* Botones roles */
.roleGrid{
  margin-top: 1.2rem;
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
}
@media (max-width: 720px){
  .roleGrid{ grid-template-columns: 1fr; }
  .appHeader__inner{ min-height: 60px; }
}

/* ENTERPRISE */
.roleBtn{
  width: 100%;
  display:flex;
  align-items:center;
  gap: .9rem;

  padding: 1rem;
  border-radius: var(--radius2);

  border: 1px solid rgba(20,20,22,.14);
  background: rgba(255,255,255,.76);

  box-shadow: var(--shadow2);
  cursor:pointer;

  transition: transform .12s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.roleBtn:hover{
  transform: translateY(-1px);
  border-color: rgba(20,20,22,.22);
  background: rgba(255,255,255,.86);
  box-shadow: 0 12px 30px rgba(20,20,22,.10);
}

.roleBtn:active{
  transform: translateY(0px);
}

/* Icono sobrio (profesional) */
.roleIcon{
  width: 46px;
  height: 46px;
  display:grid;
  place-items:center;
  border-radius: 12px;

  background: rgba(69,85,108,.08);
  border: 1px solid rgba(69,85,108,.18);

  color: rgba(20,20,22,.82);
  flex: 0 0 46px;
}

.roleIcon svg{ width: 24px; height: 24px; }
.roleIcon svg path{ stroke: currentColor; }

.roleText{ display:flex; flex-direction:column; gap: .15rem; text-align:left; }
.roleName{ font-weight: 900; color: var(--text); font-size: 1.05rem; letter-spacing: .15px; }
.roleDesc{ color: var(--muted); font-size: .9rem; }

.roleChevron{
  margin-left: auto;
  font-size: 1.45rem;
  line-height: 1;
  color: rgba(20,20,22,.55);
}

/* Último acceso (con icono y animación) */
.lastBox{
  margin: 1rem auto 0;
  padding: .65rem .9rem;
  width: fit-content;
  max-width: 100%;
  display:flex;
  align-items:center;
  gap: .55rem;

  border-radius: 999px;
  border: 1px solid rgba(20,20,22,.14);
  background: rgba(255,255,255,.72);
  box-shadow: 0 10px 25px rgba(20,20,22,.06);

  color: rgba(20,20,22,.78);
  font-weight: 900;
  font-size: .92rem;
  letter-spacing: .12px;

  animation: fadeSlide .25s ease-out both;
}

@keyframes fadeSlide{
  from{ opacity:0; transform: translateY(-4px); }
  to{ opacity:1; transform: translateY(0); }
}

.lastIcon{
  width: 22px;
  height: 22px;
  display:grid;
  place-items:center;
  color: var(--primary);
}
.lastIcon svg{ width: 18px; height: 18px; }

#lastText{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Footer */
.footer{
  margin-top: 1.1rem;
  display:flex;
  justify-content:center;
  gap: .5rem;
  color: var(--muted);
  font-size: .85rem;
  flex-wrap: wrap;
}
.dot{ opacity: .65; }
