:root {
  /* Colors */
  --primary-color: #0f172a;
  /* Midnight Blue */
  --secondary-color: #334155;
  /* Dark Slate */
  --accent-color: #06b6d4;
  /* Cyan / Electric Blue */
  --accent-hover: #0891b2;
  --text-color: #1e293b;
  /* Slate 800 */
  --text-light: #94a3b8;
  /* Slate 400 */
  --bg-color: #ffffff;
  --bg-alt: #f8fafc;
  /* Slate 50 */
  --border-color: #e2e8f0;

  /* Fonts */
  --font-heading: "Outfit", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Border Radius */
  --radius-md: 8px;
  --radius-lg: 16px;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--bg-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-color);
  text-wrap: balance;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

/* Utilities */
.text-center {
  text-align: center;
}

.text-white {
  color: #ffffff !important;
}

.text-light {
  color: var(--text-light);
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent-color), #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75;
}

/* Skip Link (a11y) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  background: var(--accent-color);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
  border: none;
  font-family: var(--font-heading);
  touch-action: manipulation;
}

.btn:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 3px;
}

.btn-primary {
  background-color: var(--accent-color);
  color: #ffffff;
  box-shadow: 0 4px 6px -1px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(6, 182, 212, 0.4);
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--border-color);
  color: var(--secondary-color);
}

.btn-secondary:hover {
  border-color: var(--secondary-color);
  color: var(--primary-color);
}

/* Login link style — subtle, borderless */
.btn-login {
  border: none !important;
  padding: 0.5rem 1rem;
  color: var(--secondary-color);
  background: transparent;
}

.btn-login:hover {
  background-color: var(--bg-alt);
  color: var(--primary-color);
  transform: none;
  box-shadow: none;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.btn-block {
  display: block;
  width: 100%;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 80px;
  /* Adjust based on logo aspect ratio */
  width: auto;
}

.logo-img-footer {
  height: 80px;
  /* Increased size */
  width: auto;
  filter: brightness(0) invert(1);
  /* Ensure it's white for footer */
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.nav-links a:not(.btn) {
  font-weight: 500;
  color: var(--secondary-color);
  position: relative;
}

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-links a:not(.btn):hover {
  color: var(--accent-color);
}

.nav-links a:not(.btn):hover::after,
.nav-links a.active-link::after {
  width: 100%;
}

.nav-links a:not(.btn):focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Hamburger toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  gap: 5px;
  border-radius: var(--radius-md);
  touch-action: manipulation;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 3px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--primary-color);
  border-radius: 2px;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

/* Hero */
.hero {
  padding-top: calc(var(--spacing-xl) + 2rem);
  padding-bottom: var(--spacing-xl);
  background-color: var(--bg-color);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  right: -5%;
  top: 10%;
  width: 55%;
  height: 80%;
  background: radial-gradient(
    ellipse at center,
    rgba(6, 182, 212, 0.07) 0%,
    rgba(37, 99, 235, 0.04) 50%,
    transparent 70%
  );
  pointer-events: none;
  border-radius: 50%;
}

/* Eyebrow badge in hero */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.25);
  color: var(--accent-color);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  font-family: var(--font-heading);
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-color);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.75);
  }
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--secondary-color);
  margin-bottom: 2.5rem;
  max-width: 90%;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

.hero-visual {
  position: relative;
  height: 100%;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Abstract Shape */
.abstract-shape {
  width: 320px;
  height: 320px;
  background: linear-gradient(
    135deg,
    rgba(6, 182, 212, 0.18),
    rgba(37, 99, 235, 0.1)
  );
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: morph 8s ease-in-out infinite;
  position: absolute;
}

.abstract-shape::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: inherit;
  border: 2px solid rgba(6, 182, 212, 0.25);
  animation: morph 8s ease-in-out infinite reverse;
}

.abstract-shape::after {
  content: "";
  position: absolute;
  inset: -42px;
  border-radius: inherit;
  border: 1.5px solid rgba(6, 182, 212, 0.13);
  animation: morph 10s ease-in-out infinite;
}

@keyframes morph {
  0% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
  50% {
    border-radius: 30% 30% 70% 70% / 50% 30% 70% 50%;
  }
  100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
}

/* Sections */
.section {
  padding: var(--spacing-xl) 0;
}

section[id] {
  scroll-margin-top: 5rem;
}

.form-group input {
  touch-action: manipulation;
}

/* Hero stat pills */
.hero-stats {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
}

.hero-stat {
  position: absolute;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  white-space: nowrap;
  pointer-events: none;
}

.hero-stat-icon {
  font-size: 1.2rem;
  width: 32px;
  height: 32px;
  background: rgba(6, 182, 212, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-stat-icon svg {
  width: 16px;
  height: 16px;
  color: var(--accent-color);
}

.hero-stat-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.72rem;
  color: var(--text-light);
  font-weight: 500;
  line-height: 1;
}

.hero-stat--1 {
  top: 12%;
  right: 6%;
  animation: float-1 6s ease-in-out infinite;
}

.hero-stat--2 {
  bottom: 18%;
  right: 3%;
  animation: float-2 7s ease-in-out infinite 1s;
}

.hero-stat--3 {
  top: 55%;
  left: 3%;
  animation: float-1 8s ease-in-out infinite 0.5s;
}

@keyframes float-1 {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes float-2 {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
  position: relative;
}

.section-title.text-center::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-color), #2563eb);
  border-radius: 2px;
  margin: 0.75rem auto 0;
}

/* Benefits (Grid) */
.benefits {
  background-color: var(--bg-alt);
}

.grid {
  display: grid;
  gap: 2rem;
}

/* Benefits: row 1 = 2 cards estiradas, row 2 = 3 cards normales */
.benefits-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.benefit-card:nth-child(-n + 2) {
  flex: 1 1 calc(50% - 0.75rem);
}

.benefit-card:nth-child(n + 3) {
  flex: 1 1 calc(33.333% - 1rem);
}

.card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-top-color 0.3s ease;
  border: 1px solid var(--border-color);
  border-top: 3px solid transparent;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  border-top-color: var(--accent-color);
}

.card-icon {
  width: 3rem;
  height: 3rem;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card p {
  color: var(--secondary-color);
}

/* Purpose Section */
.purpose {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
}

.purpose-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.purpose-content::before {
  content: "\201C";
  font-family: var(--font-heading);
  font-size: 8rem;
  line-height: 1;
  color: rgba(6, 182, 212, 0.12);
  position: absolute;
  top: -2.5rem;
  left: -1rem;
  pointer-events: none;
  user-select: none;
}

.purpose p {
  font-size: 1.5rem;
  color: #e2e8f0;
  font-weight: 300;
}

/* Contact Form */
.contact {
  display: flex;
  justify-content: center;
  background-color: var(--bg-alt);
}

.contact-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

.form-container {
  width: 100%;
  max-width: 600px;
  background: white;
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
}

.form-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.form-subtitle {
  text-align: center;
  color: var(--secondary-color);
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.form-status {
  margin-top: 1rem;
  min-height: 1.25rem;
  font-size: 0.95rem;
  color: var(--secondary-color);
}

.form-status.is-success,
.form-status.is-error {
  color: var(--primary-color);
  font-weight: 500;
}

/* Footer */
.footer {
  background-color: var(--primary-color);
  color: white;
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: white;
}

.copyright {
  color: #64748b;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* ─── Active Nav Link ─── */
.active-link {
  color: var(--accent-color) !important;
  font-weight: 600;
}

/* ─── Ecosystem ─── */
.ecosystem {
  background-color: var(--bg-alt);
}

/* Ecosystem: 2-col wider top row + 3-col bottom row (inverted bento) */
/* Ecosystem: row 1 = 3 cards normales, row 2 = 2 cards estiradas (inverso) */
.ecosystem-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.ecosystem-card:nth-child(-n + 3) {
  flex: 1 1 calc(33.333% - 1rem);
}

.ecosystem-card:nth-child(n + 4) {
  flex: 1 1 calc(50% - 0.75rem);
}

.ecosystem-subtitle {
  max-width: 800px;
  margin: 0 auto 2rem;
  color: var(--secondary-color);
  text-align: center;
}

.ecosystem-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  text-align: left;
  align-items: flex-start;
}

.ecosystem-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.ecosystem-card p {
  color: var(--secondary-color);
  font-size: 1rem;
}

/* ─── Pricing ─── */
.pricing-header {
  background-color: transparent;
  /* Compensate for fixed navbar (~72px) + breathing room */
  padding-top: calc(var(--spacing-xl) + 2rem);
  padding-bottom: var(--spacing-xl);
}

.pricing-section {
  padding-top: 0;
}

.pricing-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  /* allow badge to overflow above first row */
  overflow: visible;
  padding-top: 1rem;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: visible;
}

.pricing-card.popular {
  border-color: var(--accent-color);
  border-top-color: var(--accent-color) !important;
  box-shadow: 0 10px 40px -8px rgba(6, 182, 212, 0.25);
  transform: scale(1.02);
  /* extra top space so the floating badge doesn't overlap the row above */
  margin-top: 0.5rem;
}

.pricing-card.popular:hover {
  transform: scale(1.02) translateY(-5px);
}

.popular-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent-color);
  color: white;
  padding: 0.35rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.45);
}

.pricing-header-card {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.pricing-title {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.pricing-subtitle {
  font-size: 0.9rem;
  color: var(--accent-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-body {
  flex-grow: 1;
  margin-bottom: 2rem;
}

.pricing-desc {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.pricing-features {
  list-style: none;
  padding: 0;
}

.pricing-features li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-color);
  font-size: 0.9rem;
}

.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

.pricing-footer {
  text-align: center;
}

.pricing-tag {
  display: block;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--primary-color);
  font-family: var(--font-heading);
}

/* ─── Login Page ─── */
.login-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.login-page .navbar.relative-nav {
  position: relative;
  background-color: white;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.login-page .footer {
  margin-top: auto;
}

.login-selection {
  padding: var(--spacing-lg) 0;
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.login-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  max-width: 1160px;
  margin: 0 auto;
  gap: 1.5rem;
}

.login-card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-color);
  background-color: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 20px;
  padding: 0.2rem 0.75rem;
  margin-bottom: 1.25rem;
}

.login-card {
  text-align: center;
  border: 1px solid var(--border-color);
  border-top: 3px solid transparent;
  transition:
    border-color 0.25s ease,
    border-top-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 2.5rem 1.75rem;
  height: 100%;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.login-card:hover {
  border-color: var(--accent-color);
  border-top-color: var(--accent-color);
  box-shadow: 0 10px 25px -5px rgba(6, 182, 212, 0.15);
  transform: translateY(-5px);
}

.login-card:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 3px;
}

.login-card .card-icon {
  width: 4rem;
  height: 4rem;
  background-color: var(--bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--accent-color);
  transition: background-color 0.3s ease;
}

.login-card:hover .card-icon {
  background-color: rgba(6, 182, 212, 0.1);
}

.login-card h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.login-card p {
  margin-bottom: 2rem;
  color: var(--secondary-color);
  font-size: 0.95rem;
}

.btn-text {
  color: var(--accent-color);
  font-weight: 600;
  font-family: var(--font-heading);
  transition:
    letter-spacing 0.2s ease,
    color 0.2s ease;
}

.login-card:hover .btn-text {
  color: var(--accent-hover);
  letter-spacing: 0.03em;
}

.mb-5 {
  margin-bottom: 3rem;
}

/* ─── Fade-in scroll animation ─── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  opacity: 0;
}

.fade-in-up.is-visible {
  animation: fadeInUp 0.6s ease forwards;
}

.fade-in-up.delay-1 {
  animation-delay: 0.08s;
}
.fade-in-up.delay-2 {
  animation-delay: 0.16s;
}
.fade-in-up.delay-3 {
  animation-delay: 0.24s;
}
.fade-in-up.delay-4 {
  animation-delay: 0.32s;
}
.fade-in-up.delay-5 {
  animation-delay: 0.4s;
}

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  .fade-in-up {
    opacity: 1;
  }
}

/* ─── Responsive: tablet / mobile ─── */
/* ─── Bento grid: tablet breakpoint ─── */
@media (max-width: 1024px) {
  /* Flex grids: 2 por fila en tablet */
  .benefit-card:nth-child(-n + 2),
  .benefit-card:nth-child(n + 3),
  .ecosystem-card:nth-child(-n + 3),
  .ecosystem-card:nth-child(n + 4) {
    flex: 1 1 calc(50% - 0.75rem);
  }

  /* Hero: reduce title en rango tablet 901–1024px */
  .hero-title {
    font-size: 3rem;
  }
}

@media (max-width: 900px) {
  /* Nav: hamburger (tablet y móvil) */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    z-index: 999;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  /* Hero: columna única en tablet */
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-title {
    font-size: 2.75rem;
  }

  .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-visual {
    min-height: 280px;
  }

  .abstract-shape {
    width: 240px;
    height: 240px;
  }
}

@media (max-width: 768px) {
  /* Section titles */
  .section-title {
    font-size: 2rem;
  }

  /* Footer */
  .footer-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  /* Form */
  .form-container {
    padding: 2rem 1.5rem;
  }

  /* Pricing: disable scale on popular card */
  .pricing-card.popular {
    transform: none;
  }

  .pricing-card.popular:hover {
    transform: translateY(-5px);
  }

  /* Purpose quote - hide on small screens */
  .purpose-content::before {
    display: none;
  }

  /* Flex grids: apilados en móvil */
  .benefit-card:nth-child(-n + 2),
  .benefit-card:nth-child(n + 3),
  .ecosystem-card:nth-child(-n + 3),
  .ecosystem-card:nth-child(n + 4) {
    flex: 1 1 100%;
  }

  /* Login: 2 columnas en móvil */
  .login-selection {
    padding: 2rem 0;
  }

  .login-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .login-card {
    padding: 1.75rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
  }

  .form-container {
    padding: 1.5rem 1rem;
  }

  /* Login: 1 columna en móvil pequeño */
  .login-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
  }

  .login-card {
    padding: 1.5rem 1rem;
  }
}
