/* ========== COMPONENTES COMUNES ========== */

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.1;
  text-align: center;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease),
              box-shadow .3s var(--ease), transform .3s var(--ease);
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-text);
  color: var(--accent-ink);
  box-shadow: 0 0 0 4px var(--accent-faint), 0 10px 30px -10px var(--accent-glow);
}
.btn-secondary {
  background: var(--light-btn);
  border-color: var(--light-btn);
  color: var(--light-btn-ink);
}
.btn-secondary:hover {
  background: transparent;
  color: var(--ink);
  border-color: var(--line2);
}
.btn-small { min-height: 44px; padding: 11px 16px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row.center { justify-content: center; }

/* Etiqueta de sección con "+" */
.subtitle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--accent-text);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.subtitle-icon { display: inline-flex; }

/* Títulos */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .2px;
  max-width: 20ch;
}
.section-title.big { font-size: clamp(32px, 4.2vw, 52px); }
.section-lead {
  color: var(--ink-soft);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  max-width: 60ch;
}

.section-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 60px;
  align-items: end;
  margin-bottom: 60px;
}
.section-head { margin-bottom: 60px; }
.section-head.center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.section-head.center .section-title { max-width: 22ch; margin-bottom: 18px; }

/* Tarjetas */
.card-title {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 12px;
}
.card-text { color: var(--muted); font-size: 18px; line-height: 1.6; }

/* Tarjeta con halo (sigue al ratón) */
.glow-card {
  --mx: 20%;
  --my: 100%;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(420px circle at var(--mx) var(--my), var(--accent-faint), transparent 60%),
    linear-gradient(180deg, rgba(30, 41, 59, .35), rgba(15, 23, 42, .2));
  transition: border-color .4s var(--ease), transform .4s var(--ease), background .2s linear;
}
.glow-card:hover { border-color: var(--line2); }

/* Círculo de icono */
.icon-circle {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line2);
  color: var(--accent-text);
  box-shadow: inset 0 0 18px rgba(45, 212, 191, .12);
}
.icon-circle.small { width: 50px; height: 50px; }

/* Lista con check */
.check-list { display: grid; gap: 12px; margin: 26px 0 32px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink-soft); font-size: 17px; }
.check-ico {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--accent-faint);
  border: 1px solid rgba(45, 212, 191, .35);
  color: var(--accent-text);
}

/* Píldora con punto */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(45, 212, 191, .35);
  border-radius: 999px;
  background: var(--accent-faint);
  color: var(--accent-text);
  font-size: 14px;
  font-weight: 400;
}
.pill-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-text);
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: pulse 2.4s infinite;
}

/* Revelado al hacer scroll (efecto de la plantilla) */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--rd, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 var(--accent-glow); }
  70%  { box-shadow: 0 0 0 10px rgba(45, 212, 191, 0); }
  100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0); }
}
