/* launcher_tiles.css
   CSS SOLO para vistas tipo "launcher" (HR + Backend)
*/

/* ===== Shared tile variables (misma forma en todas) ===== */
:root{
  --tileW: 190px;
  --tileH: 190px;
  --tileR: 10px;

  --shadow: 0 10px 24px rgba(0,0,0,.10);
  --shadowHover: 0 14px 34px rgba(0,0,0,.14);
  --border: rgba(0,0,0,.06);

  --text: rgba(0,0,0,.78);
  --muted: rgba(0,0,0,.60);
}

/* ===================== Backend launcher ===================== */
.bk_page{
  width: 100%;
  padding: 24px 16px 40px;
  box-sizing: border-box;
}

.bk_title{
  text-align: center;
  font-size: 2rem;
  margin: 8px 0 22px;
  color: rgba(70,90,120,.60);
  letter-spacing: .2px;
}

.bk_grid{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 18px;

  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.bk_card{
  width: var(--tileW);
  min-height: var(--tileH);
  border-radius: var(--tileR);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #eaf3ff, #f6fbff);
  transition: transform .16s ease, box-shadow .16s ease;

  display: block;
  text-decoration: none !important;
  cursor: pointer;
}

.bk_card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadowHover);
}

.bk_card.manage{
  background: linear-gradient(135deg, #ffd6d6, #ffecec);
}

.bk_card::after{
  content:"";
  position:absolute;
  right:-40px; top:-50px;
  width: 140px; height: 140px;
  background: rgba(255,255,255,.55);
  border-radius: 999px;
}
.bk_card::before{
  content:"";
  position:absolute;
  left:-70px; bottom:-80px;
  width: 200px; height: 200px;
  background: rgba(0,0,0,.03);
  border-radius: 999px;
}

.bk_content{
  position: relative;
  z-index: 2;
  display:flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 16px 14px 14px;
  box-sizing: border-box;
}

.bk_icon{
  width: 46px;
  height: 46px;
  border-radius: var(--tileR);
  background: #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,.10);
  border: 1px solid rgba(0,0,0,.06);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  color: rgba(0,0,0,.70);
  user-select:none;
}

.bk_name{
  font-size: 1.05rem;
  font-weight: 780;
  line-height: 1.15;
  color: var(--text);
  white-space: normal;
}

.bk_desc{
  font-size: .80rem;
  line-height: 1.25;
  color: var(--muted);
  max-width: 18ch;
}

.bk_badge{
  margin-top: 4px;
  font-size: .72rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.65);
  color: rgba(0,0,0,.62);
}

/* safety: neutralize inherited floats */
.bk_page *{ float: none !important; }

@media (max-width: 520px){
  .bk_card{ width: 100%; max-width: 320px; }
}

/* ===================== HR launcher (vertical layout) ===================== */
.hrwrap{
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 12px 30px;
}

.hrtop{
  display:flex;
  justify-content:flex-end;
  margin-top: 4px;
}

.hrclock{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 44px;
  height: 44px;
  border-radius: var(--tileR);
  background: #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,.10);
  border: 1px solid rgba(0,0,0,.08);
  transition: transform .15s ease, box-shadow .15s ease;
  text-decoration:none !important;
}
.hrclock:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(0,0,0,.14);
}

.hrtitle{
  text-align:center;
  font-size: 2.0rem;
  margin: 18px 0 22px;
  color: rgba(70,90,120,.60);
  letter-spacing: .2px;
}

.hrgrid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--tileW), var(--tileW)));
  gap: 18px;
  justify-content: center;
  align-items: start;
}

.hrcard{
  width: var(--tileW);
  min-height: var(--tileH);
  border-radius: var(--tileR);
  padding: 14px 14px 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .16s ease, box-shadow .16s ease;
  position: relative;
}

.hrcard:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadowHover);
}

.hrcard::after{
  content:"";
  position:absolute;
  right:-40px; top:-50px;
  width: 140px; height: 140px;
  background: rgba(255,255,255,.55);
  border-radius: 999px;
}
.hrcard::before{
  content:"";
  position:absolute;
  left:-70px; bottom:-80px;
  width: 200px; height: 200px;
  background: rgba(0,0,0,.03);
  border-radius: 999px;
}

.hrlink{
  position:absolute;
  inset:0;
  z-index:1;
  border-radius: var(--tileR);
  text-decoration:none !important;
}

.hrcontent{
  position:relative;
  z-index:2;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap: 8px;
  padding-top: 2px;
}

.hricon{
  width: 46px;
  height: 46px;
  border-radius: var(--tileR);
  background: #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,.10);
  border: 1px solid rgba(0,0,0,.06);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 20px;
  user-select:none;
}

.hrname{
  font-size: 1.05rem;
  font-weight: 780;
  line-height: 1.15;
  color: var(--text);
  white-space: normal;
  margin-top: 2px;
}

.hrdesc{
  font-size: .80rem;
  line-height: 1.25;
  color: var(--muted);
  white-space: normal;
  max-width: 16ch;
}

.hractions{
  position:relative;
  z-index:3;
  margin-top: 12px;
  display:flex;
  justify-content:center;
}

.hrsubbtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--tileR);
  background: #fff;
  color: rgba(0,0,0,.72);
  border: 1px solid rgba(0,0,0,.08);
  text-decoration:none !important;
  font-size: .86rem;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
}
.hrsubbtn:hover{
  background: #f6f6f6;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0,0,0,.10);
  color: rgba(0,0,0,.82);
}

/* HR pastel themes */
.m-config  { background: linear-gradient(135deg, #ffd6d6, #ffecec); }
.m-calendar{ background: linear-gradient(135deg, #d7f0ff, #eff9ff); }
.m-plan    { background: linear-gradient(135deg, #dff8e7, #f3fdf6); }
.m-staff   { background: linear-gradient(135deg, #e7e6ff, #f6f5ff); }
.m-att     { background: linear-gradient(135deg, #fff1cf, #fff8ea); }
.m-times   { background: linear-gradient(135deg, #d9fff3, #f1fffb); }



/* 1) Overlay: clickable en todo el tile */
.hrlink{
  z-index: 2;
  pointer-events: auto;
}

/* 2) El contenido NO intercepta el ratón (así el cursor/link funciona) */
.hrcontent{
  position: relative;
  z-index: 1;
  pointer-events: none;
}

/* 3) Submenu: SI intercepta, y va por encima del overlay */
.hractions{
  position: relative;
  z-index: 5;          /* por encima del overlay */
  pointer-events: auto;
}

.hrsubbtn{
  position: relative;
  z-index: 6;          /* por encima de todo */
  pointer-events: auto;
}