/* =========================================
   FEATURES — 3×2 Grid con divisores internos
   ========================================= */

/* Sección usa padding de .section (base.css) */
.features { }

/* ─────────────────────────────────────────
   Cabecera
───────────────────────────────────────── */

.features__header {
  margin-bottom: 3rem;
}

.features__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 1rem;
}

.features__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1;
  letter-spacing: 2px;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.features__sub {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.7;
}

/* ─────────────────────────────────────────
   Grid container — "gap background" trick
   El fondo del grid (divisor color) se ve
   a través del gap de 1px entre las cards.
───────────────────────────────────────── */

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.07); /* color de los divisores */
  border-radius: 20px;
  overflow: hidden;
}

/* ─────────────────────────────────────────
   Tarjeta individual
───────────────────────────────────────── */

.fcard {
  position: relative;
  background: #141414;
  padding: 2.25rem 2rem;
  transition: background 0.3s ease;
  overflow: hidden;
}

/* Hover: fondo ligeramente más claro */
.fcard:hover {
  background: #191919;
}

/* Borde superior verde lima en hover — pseudo-element para evitar layout shift */
.fcard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--lime);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.fcard:hover::before {
  opacity: 1;
}

/* ─────────────────────────────────────────
   Contenido de la tarjeta
───────────────────────────────────────── */

/* Caja del icono */
.fcard__icon {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lime);
  margin-bottom: 1.25rem;
  padding: 10px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.fcard__icon svg {
  width: 100%;
  height: 100%;
}

/* Badge pill */
.fcard__badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--lime);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 1rem;
}

/* Título H3 */
.fcard__title {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.8vw, 20px);
  letter-spacing: 1px;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

/* Descripción */
.fcard__desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ─────────────────────────────────────────
   Responsive
───────────────────────────────────────── */

@media (max-width: 900px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
    border-radius: 16px;
  }
}

@media (max-width: 540px) {
  .features__grid {
    grid-template-columns: 1fr;
    border-radius: 14px;
  }

  .fcard {
    padding: 1.75rem 1.5rem;
  }
}
