/*
  tile-card.css
  El "botón grande" de la pantalla de inicio tipo central multimedia.
  Usa tokens de rol (theme.css) para que se vea bien en claro y en oscuro
  sin ninguna regla condicional propia más que las estrictamente visuales
  (el halo de fondo cambia de opacidad, ver --tile-glow-opacity).
*/

.epe-tile {
  --tile-accent: var(--teal-600);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  min-height: 148px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--tile-bg);
  border: 1px solid var(--tile-border);
  box-shadow: var(--tile-shadow);
  text-align: left;
  overflow: hidden;
  transition:
    transform 0.18s var(--ease),
    background 0.18s var(--ease),
    border-color 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
}

.epe-tile:hover,
.epe-tile:focus-visible {
  transform: translateY(-2px);
  background: var(--tile-bg-hover);
  border-color: var(--tile-border-hover);
  box-shadow: var(--tile-shadow-hover);
}

.epe-tile::before {
  content: "";
  position: absolute;
  inset: auto -10% -70% auto;
  width: 75%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--tile-accent) 0%, transparent 72%);
  opacity: var(--tile-glow-opacity);
  pointer-events: none;
}

.epe-tile-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--tile-accent) 16%, transparent);
  color: var(--tile-accent);
}

.epe-tile-icon svg {
  width: 22px;
  height: 22px;
}

.epe-tile-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-strong);
}

.epe-tile-desc {
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.4;
}

.epe-tile[data-soon]::after {
  content: "Próximamente";
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--badge-text);
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  border-radius: 20px;
  padding: 3px 8px;
}

/* Tile grande: destaca el Configurador como acceso principal.
   Un tinte sutil de la marca (no la mancha de antes) alcanza para
   diferenciarlo — es el único tile con contenido real hoy. */
.epe-tile.epe-tile-lg {
  grid-column: span 2;
  background: color-mix(in srgb, var(--tile-accent) 7%, var(--tile-bg));
  border-color: color-mix(in srgb, var(--tile-accent) 22%, var(--tile-border));
}

.epe-tile.epe-tile-lg:hover,
.epe-tile.epe-tile-lg:focus-visible {
  background: color-mix(in srgb, var(--tile-accent) 11%, var(--tile-bg));
}
