/* ==========================================================================
   GINNOA · Components — buttons, cards, forms básicos
   ========================================================================== */

/* ---- Buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-body);
  font-size: var(--button-size);
  font-weight: var(--button-weight);
  letter-spacing: var(--button-tracking);
  line-height: 1;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: var(--transition-base);
  cursor: pointer;
  text-decoration: none;
  user-select: none;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--ring-accent);
}

.btn--primary {
  background: var(--brand-primary);
  color: var(--text-on-brand);
}
.btn--primary:hover { background: var(--brand-primary-hover); color: var(--text-on-brand); }
.btn--primary:active { background: var(--brand-primary-active); }

.btn--accent {
  background: var(--brand-accent);
  color: var(--text-on-accent);
  box-shadow: var(--shadow-accent);
}
.btn--accent:hover { background: var(--brand-accent-hover); color: var(--text-on-accent); }
.btn--accent:active { background: var(--brand-accent-active); }

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-default);
}
.btn--ghost:hover {
  background: var(--surface-subtle);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.btn--link {
  background: transparent;
  color: var(--text-brand);
  padding-inline: 0;
}
.btn--link:hover { color: var(--text-link-hover); text-decoration: underline; }

.btn--sm { padding: var(--space-2) var(--space-4); font-size: var(--text-xs); }
.btn--lg { padding: var(--space-4) var(--space-6); font-size: var(--text-base); }

.btn:disabled, .btn[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}

/* ---- Card --------------------------------------------------------------- */

.card {
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: var(--transition-base);
}
.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-default);
}

/* ---- Badge -------------------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  border-radius: var(--radius-full);
  background: var(--brand-primary-subtle);
  color: var(--brand-primary);
}
.badge--accent {
  background: var(--brand-accent-subtle);
  color: var(--color-amber-800);
}

/* ---- Section ------------------------------------------------------------ */

.section {
  padding-block: var(--section-py);
}
.section--lg { padding-block: var(--section-py-lg); }
.section--sm { padding-block: var(--section-py-sm); }

.section__head {
  max-width: 720px;
  margin-bottom: var(--space-12);
}
.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.section--alt    { background: var(--surface-subtle); }
.section--brand  { background: var(--color-teal-700); color: var(--text-inverse); }
.section--brand h2, .section--brand h3 { color: var(--text-inverse); }
.section--brand .eyebrow { color: var(--color-amber-400); }
.section--brand p { color: var(--color-teal-100); }

/* ---- Page hero (sub-pages) ---------------------------------------------- */

.page-hero {
  position: relative;
  padding-block: clamp(var(--space-16), 8vw, var(--space-24)) var(--space-12);
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(255, 193, 7, 0.10), transparent 60%),
    radial-gradient(ellipse 60% 80% at 0% 100%, rgba(0, 95, 96, 0.08), transparent 60%),
    var(--surface-page);
}
.page-hero__inner { max-width: 760px; }
.page-hero__title {
  font-size: var(--heading-1-clamp);
  font-weight: var(--weight-extrabold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin: var(--space-3) 0 var(--space-4) 0;
}
.page-hero__lead {
  font-size: var(--body-lg-size);
  line-height: var(--body-lg-leading);
  color: var(--text-secondary);
  max-width: 60ch;
}

/* ---- Feature grid (servicios, etapas, etc.) ----------------------------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-5);
}

.feature {
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-7);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: var(--transition-base);
  height: 100%;
}
.feature:hover {
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-brand);
  transform: translateY(-2px);
}

.feature__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  background: var(--brand-accent-subtle);
  color: var(--color-amber-800);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
}

.feature h3 {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
}

.feature p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.feature__link {
  margin-top: auto;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-brand);
}
.feature__link:hover { color: var(--text-link-hover); }

/* ---- Stat block --------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-8);
}
.stat__value {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw + 1rem, 3.5rem);
  font-weight: var(--weight-extrabold);
  line-height: 1;
  background: linear-gradient(135deg, var(--color-teal-500), var(--color-amber-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-snug);
  max-width: 26ch;
}

/* ---- Logo wall (aliados) ------------------------------------------------ */

.logo-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-4);
  align-items: stretch;
}
.logo-wall__item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  font-family: var(--font-heading);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  color: var(--text-secondary);
  text-align: center;
  font-size: var(--text-sm);
  min-height: 90px;
  transition: var(--transition-base);
}
.logo-wall__item:hover {
  border-color: var(--brand-primary);
  color: var(--text-brand);
  transform: translateY(-2px);
}

/* ---- CTA banner --------------------------------------------------------- */

.cta-banner {
  background: linear-gradient(135deg, var(--color-teal-500), var(--color-teal-700));
  color: var(--text-inverse);
  border-radius: var(--radius-2xl);
  padding: clamp(var(--space-10), 5vw, var(--space-16));
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-8);
  align-items: center;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 100% at 100% 50%, rgba(255, 193, 7, 0.2), transparent 60%);
  pointer-events: none;
}
.cta-banner > * { position: relative; }
.cta-banner h2 {
  font-size: var(--heading-3-clamp);
  font-weight: var(--weight-bold);
  color: var(--text-inverse);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-2);
}
.cta-banner p {
  color: var(--color-teal-100);
  max-width: 50ch;
}
@media (max-width: 768px) {
  .cta-banner { grid-template-columns: 1fr; text-align: left; }
}

/* ---- List with check ---------------------------------------------------- */

.check-list { display: grid; gap: var(--space-3); }
.check-list li {
  display: flex;
  gap: var(--space-3);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
}
.check-list li::before {
  content: "✓";
  flex-shrink: 0;
  width: 24px; height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--brand-accent-subtle);
  color: var(--color-amber-800);
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  margin-top: 2px;
}
