/*
 * AldeOn — Bento grid de la sección "Directiva" (fase "bento",
 * 2026-09-07). Solo se usa en index.html.
 */

.bento-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 18px;
}

.bento-tile {
  position: relative;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 28px 26px;
  box-shadow: 0 2px 10px rgba(46, 42, 34, 0.05);
  border-top: 3px solid var(--tile-accent, transparent);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
  transform-style: preserve-3d;
  will-change: transform;
  overflow: hidden;
}

/* Modernización 2026-09-13 (petición del usuario): franja de color a
   juego con cada icono arriba de la tarjeta (--tile-accent, fijada
   inline por tile en index.html) + un halo muy tenue del mismo color
   asomando por la esquina — mismo espíritu que el halo de "Lo esencial
   del día a día", pero fijo, no vinculado a scroll. */
.bento-tile::after {
  content: '';
  position: absolute;
  top: -40%; right: -30%;
  width: 55%; height: 90%;
  background: var(--tile-accent, transparent);
  opacity: 0.1;
  border-radius: 50%;
  filter: blur(30px);
  pointer-events: none;
}

.bento-tile--big {
  grid-column: span 2;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(155deg, #ffffff 0%, var(--sand) 160%);
}

.bento-tile h3 { font-family: 'Nunito'; font-weight: 800; font-size: 1.05rem; margin: 4px 0 8px; }
.bento-tile p { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.5; }
.bento-tile--big h3 { font-size: 1.35rem; }
.bento-tile--big p { font-size: 1.02rem; max-width: 360px; }

.bento-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.bento-icon svg { width: 24px; height: 24px; }
.bento-tile--big .bento-icon { width: 58px; height: 58px; border-radius: 17px; }
.bento-tile--big .bento-icon svg { width: 29px; height: 29px; }

/* Elevación al hover (desktop) — el tilt 3D lo añade bento.js sobre
   el mismo transform, esto solo añade la sombra. */
.bento-tile:hover {
  box-shadow: 0 26px 50px -16px rgba(46, 42, 34, 0.25);
  transform: translateY(-3px);
}

/* Feedback de "press" al tocar (móvil) — !important necesario porque
   gana incluso al transform inline que deja GSAP puesto (el tilt no
   se activa en touch, pero por si acaso queda alguno a medio animar). */
.bento-tile:active {
  transform: scale(0.97) !important;
  transition: transform 0.12s ease;
}

@media (max-width: 900px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-tile--big { grid-column: span 2; grid-row: span 1; }
}

@media (max-width: 560px) {
  .bento-grid { grid-template-columns: 1fr; gap: 14px; }
  .bento-tile--big { grid-column: span 1; }
}
