/* ============================================================
   FEATURES-01 — Bloque de Beneficios / Características
   Sistema: 6 colores base + 1 color cliente
   ============================================================ */

.feat-grid-section {
  padding: 100px 24px;
  background: var(--background);
  position: relative;
  overflow: hidden;
}

/* Decoración de fondo sutil */
.feat-grid-section::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary) 5%, transparent) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}

.feat-grid-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* ── Header ──────────────────────────────────────────────── */
.feat-header {
  text-align: center;
  margin-bottom: 72px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.feat-header .feat-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  color: var(--primary);
  font-family: var(--font-title, 'Outfit', sans-serif);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid color-mix(in srgb, var(--primary) 15%, transparent);
  margin-bottom: 20px;
}

.feat-header h2 {
  font-family: var(--font-title, 'Outfit', sans-serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--secondary);
  font-weight: 800;
  margin: 0 0 18px 0;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.feat-header p {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto;
}

/* ── Grid de Cards ───────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
}

/* ── Card individual ─────────────────────────────────────── */
.feat-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease;
  position: relative;
  overflow: hidden;
}

/* Línea de acento superior */
.feat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 32px;
  right: 32px;
  height: 2px;
  background: var(--primary);
  border-radius: 0 0 4px 4px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.feat-card:hover::before {
  transform: scaleX(1);
}

.feat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -12px color-mix(in srgb, var(--secondary) 8%, transparent),
              0 0 0 1px color-mix(in srgb, var(--primary) 12%, transparent);
  border-color: color-mix(in srgb, var(--primary) 18%, transparent);
}

/* ── Número de orden (01, 02, 03...) ─────────────────────── */
.feat-card-num {
  font-family: var(--font-title, 'Outfit', sans-serif);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--primary);
  opacity: 0.5;
  margin-bottom: 20px;
  display: block;
}

/* ── Ícono SVG ───────────────────────────────────────────── */
.feat-icon-wrap {
  width: 54px;
  height: 54px;
  background: color-mix(in srgb, var(--primary) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.3s ease,
              border-color 0.3s ease;
  flex-shrink: 0;
}

.feat-icon-wrap svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
  flex-shrink: 0;
}

.feat-card:hover .feat-icon-wrap {
  transform: scale(1.12) rotate(4deg);
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  border-color: color-mix(in srgb, var(--primary) 22%, transparent);
}

/* ── Texto ───────────────────────────────────────────────── */
.feat-card h3 {
  font-family: var(--font-title, 'Outfit', sans-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--secondary);
  margin: 0 0 10px 0;
  line-height: 1.3;
}

.feat-card p {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
}

/* ── Link opcional en card ───────────────────────────────── */
.feat-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  margin-top: 18px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.3s, transform 0.3s;
}

.feat-card:hover .feat-card-link {
  opacity: 1;
  transform: translateX(0);
}

.feat-card-link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  transition: transform 0.2s;
}

.feat-card:hover .feat-card-link svg {
  transform: translateX(3px);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .feat-grid-section {
    padding: 50px 20px;
  }
  .cards-grid {
    gap: 16px;
  }
  .feat-card {
    padding: 24px 20px;
  }
  .feat-header {
    margin-bottom: 32px;
  }
}

@media (max-width: 480px) {
  .feat-grid-section {
    padding: 40px 16px;
  }
  .cards-grid {
    gap: 12px;
  }
  .feat-card {
    padding: 18px 16px;
    text-align: center;
  }
  .feat-header {
    margin-bottom: 24px;
  }
  .feat-header .feat-eyebrow {
    margin-bottom: 12px;
  }
  .feat-icon-wrap {
    margin-bottom: 14px;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    margin-left: auto;
    margin-right: auto;
  }
  .feat-icon-wrap svg {
    width: 20px;
    height: 20px;
  }
  .feat-card-num {
    margin-bottom: 12px;
  }
  .feat-card h3 {
    margin-bottom: 6px;
  }
}