/* VARIABLES Y RESET */

:root {
  --bg-body: #f6f8fc;
  --bg-card: #ffffff;
  --bg-alt: #eef2ff;
  --primary: #0a2540;
  --primary-soft: rgba(10, 37, 64, 0.1);
  --accent: #635bff;
  --text-main: #0f172a;
  --text-muted: #475569;
  --border-subtle: #e2e8f0;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-soft: 0 30px 60px rgba(15, 23, 42, 0.12);
  --transition-fast: 150ms ease-out;
  --transition-med: 220ms ease-out;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-main);
  background: #f8fafc;
  min-height: 100vh;
  scroll-behavior: smooth;
}

/* UTILIDADES */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5.5rem 0;
}

.section-alt {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
}

.text-center {
  text-align: center;
}

.section-subtitle {
  max-width: 560px;
  margin: 0.75rem auto 0;
  color: var(--text-muted);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  filter: blur(10px);
  transition: opacity 620ms ease, transform 620ms ease, filter 620ms ease;
}

[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

[data-reveal][data-reveal-delay] {
  transition-delay: calc(var(--reveal-delay, 0ms));
}

/* BOTONES */

.btn-primary,
.btn-outline,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.65rem 1.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    background var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: #7eb4ea;
  color: white;
  box-shadow: 0 12px 30px rgba(10, 37, 64, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(199, 219, 239, 0.35);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(148, 163, 184, 0.6);
  color: #bac2d5;
}

.btn-outline:hover {
  border-color: var(--primary);
  background: #ffffff;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.8);
  color: var(--text-main);
}

.full-btn {
  width: 100%;
}

/* FOOTER */

.footer {
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  margin-top: 2.8rem;
  padding: 2.5rem 0 1.6rem;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.footer-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0.4rem 0;
}

.footer h4 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.35rem;
}

.footer-links a {
  font-size: 0.82rem;
  text-decoration: none;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text-main);
}

.footer-bottom {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* RESPONSIVE FOOTER */

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}