/* =========================================
   VALUE PROPS — DaruPay (FINTECH CLEAN)
   Archivo: /assets/css/value-props.css
   ========================================= */

/* Tokens base (dark por defecto) */
:root {
  --dp-green: #15D372;
  --vp-bg: #202A37;
  --vp-grad-1: rgba(21, 211, 114, .14);
  --vp-grad-2: rgba(21, 211, 114, .10);
  --card-bg: #0F161D;
  --card-fg: #E9F2F6;
  --card-muted: #A6B7C2;
  --card-border: rgba(255, 255, 255, .08);
  --card-radius: 20px;
  --card-shadow: 0 12px 32px rgba(0, 0, 0, .24);
  --title-color: #F3F8FA;
  --subtitle-color: #A8B8C2;
  --modal-bg: #0C1319;
  --modal-fg: #DCE8EF;
  --modal-border: rgba(255, 255, 255, .08);
  --modal-header-grad: linear-gradient(90deg, rgba(21, 211, 114, .12), transparent);
}

/* ===== Sección ===== */
.section-value-props {
  position: relative;
  padding: clamp(2rem, 5vw, 4rem) 0;
  background:
    radial-gradient(1100px 700px at 15% -15%, var(--vp-grad-1), transparent 60%),
    radial-gradient(900px 600px at 120% 20%, var(--vp-grad-2), transparent 55%),
    var(--vp-bg);
  overflow: hidden;
  isolation: isolate;
}

/* Header */
.vp-header {
  position: relative;
  z-index: 2;
}
.vp-eyebrow {
  display: inline-block;
  margin: 0 0 .5rem;
  padding: .22rem .6rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .72rem;
  color: #0f2a1d;
  background: color-mix(in srgb, var(--dp-green) 24%, transparent);
  border-radius: 999px;
}
.section-title {
  color: var(--title-color);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.08;
  margin: 0 0 .65rem;
  text-wrap: balance;
}
.section-subtitle {
  color: var(--subtitle-color);
  max-width: 72ch;
  margin: 0 auto 2.2rem;
  font-weight: 500;
}

/* ===== Grid ===== */
.vp-grid {
  --gap: clamp(1.2rem, 2.4vw, 2rem);
  display: grid;
  gap: var(--gap);
  /* CORRECCIÓN DEFINITIVA: Grid adaptable y robusto */
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  position: relative;
  z-index: 2;
}

/* ===== Card ===== */
.vp-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--card-bg);
  color: var(--card-fg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  padding: clamp(1.1rem, 1.6vw, 1.4rem);
  box-shadow: var(--card-shadow);
  transform: translateY(8px) scale(.995);
  opacity: 0;
  animation: vpIn .6s ease forwards;
  animation-delay: calc(var(--i) * 90ms + 60ms);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
  outline: none;
}
@keyframes vpIn { to { opacity: 1; transform: translateY(0) scale(1); } }

.vp-card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(21, 211, 114, .35), rgba(21, 211, 114, 0));
  opacity: .7;
}

/* Hover / Focus */
.vp-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .28);
  border-color: rgba(21, 211, 114, .22);
}
.vp-card:focus-visible {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--dp-green) 36%, transparent), var(--card-shadow);
}

/* Icono */
.vp-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(21, 211, 114, .10);
  margin-bottom: .9rem;
  box-shadow: inset 0 0 0 1px rgba(21, 211, 114, .22);
  transition: transform .2s ease, background .2s ease;
}
.vp-icon svg {
  width: 24px; height: 24px;
  color: var(--dp-green);
}
.vp-card:hover .vp-icon {
  transform: translateY(-1px);
  background: rgba(21, 211, 114, .14);
}

/* Título y texto */
.vp-title {
  font-weight: 800;
  letter-spacing: -.01em;
  margin: 0 0 .35rem;
}
.vp-text {
  color: var(--card-muted);
  margin: 0;
  font-size: .98rem;
  line-height: 1.6;
}

/* CTA — ocultamos el botón porque la card completa abre el modal. */
.section-value-props .vp-cta { display: none !important; }

/* ===== Modal ===== */
.vp-modal {
  background: var(--modal-bg);
  color: var(--modal-fg);
  border: 1px solid var(--modal-border);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .55);
  border-radius: 18px;
}
.vp-modal .modal-header {
  border-bottom: 1px solid var(--modal-border);
  background: var(--modal-header-grad);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}
.vp-modal .modal-title { letter-spacing: -.01em; }
[data-bs-theme="light"] .modal-backdrop.show { opacity: .35; }

/* ===== Tema claro (override GLOBAL) ===== */
[data-bs-theme="light"] {
  --vp-bg: #F6FBF8;
  --vp-grad-1: rgba(21, 211, 114, .12);
  --vp-grad-2: rgba(21, 211, 114, .08);
  --card-bg: #FFFFFF;
  --card-fg: #0C1A23;
  --card-muted: #4D5D69;
  --card-border: rgba(0, 0, 0, .08);
  --card-shadow: 0 12px 32px rgba(21, 46, 31, .08);
  --title-color: #0C1A23;
  --subtitle-color: #4D5D69;
  --modal-bg: #FFFFFF;
  --modal-fg: #0C1A23;
  --modal-border: rgba(0, 0, 0, .10);
  --modal-header-grad: linear-gradient(90deg, rgba(21, 211, 114, .10), transparent);
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .vp-card {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}