:root {
  --ink: #0F1B2E;
  --ink-2: #132840;
  --text: #1F2937;
  --muted: #52606D;
  --muted-2: #6B7280;
  --border: #D9E2EC;
  --bg: #F7F9FC;
  --surface: #F5F7FA;
  --teal: #00B4C6;
  --green: #14B87A;
  --gradient: linear-gradient(90deg, #00B4C6, #14B87A);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
}

::selection { background: var(--green); color: #fff; }

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--green); }

h1, h2, h3, h4, p { margin: 0; }

.page { width: 100%; overflow-x: hidden; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 600;
  font-family: inherit;
  border: none;
  cursor: pointer;
}
.btn-gradient { background: var(--gradient); color: #fff; }
.btn-gradient:hover { color: #fff; opacity: 0.92; }
.btn-outline { color: var(--ink); border: 1px solid var(--border); }
.btn-outline:hover { color: var(--ink); background: var(--surface); }
.btn-small { padding: 12px 24px; font-size: 15px; }
.btn-large { padding: 16px 32px; font-size: 16px; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 64px;
  background: rgba(247, 249, 252, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.logo { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.logo-sm { font-size: 18px; }
.logo-accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-links { display: flex; align-items: center; gap: 40px; }
.nav-links a { color: var(--text); font-size: 15px; font-weight: 500; }

/* Hero */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 96px 64px 64px;
  gap: 32px;
  overflow: hidden;
}
@keyframes blobDrift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(30px,-20px) scale(1.08); } }
@keyframes blobDrift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-24px,24px) scale(1.05); } }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.blob-1 { top: -80px; left: -60px; width: 280px; height: 280px; background: var(--teal); opacity: 0.18; animation: blobDrift1 9s ease-in-out infinite; }
.blob-2 { bottom: -60px; right: -40px; width: 260px; height: 260px; background: var(--green); opacity: 0.16; animation: blobDrift2 11s ease-in-out infinite; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  position: relative;
}

.hero-title {
  font-size: 56px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 820px;
  color: var(--ink);
  text-wrap: pretty;
}
.hero-sub {
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 620px;
  text-wrap: pretty;
}
.hero-ctas { display: flex; gap: 16px; align-items: center; }

.hero-stats { display: flex; gap: 56px; margin-top: 8px; }
.stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stat-value { font-size: 32px; font-weight: 800; color: var(--ink); }
.stat-label { font-size: 13px; color: var(--muted-2); }

.hero-frame {
  margin-top: 24px;
  width: 100%;
  max-width: 1100px;
  border-radius: 24px;
  background: var(--ink);
  padding: 16px;
  box-shadow: 0 20px 60px -20px rgba(15,27,46,0.35);
}
.hero-frame-bar { display: flex; gap: 8px; padding: 4px 8px 16px; }
.hero-shot { aspect-ratio: 16 / 9; height: auto; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }

/* Placeholder image slots (replace with real <img> once assets are ready) */
.placeholder-img {
  width: 100%;
  border-radius: 16px;
  background: repeating-linear-gradient(135deg, #eef1f6, #eef1f6 10px, #e5e9f0 10px, #e5e9f0 20px);
  border: 1px dashed #b8c2d0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #7b8794;
  font-size: 14px;
  font-weight: 500;
  padding: 24px;
  background-size: cover;
  background-position: center;
}
.placeholder-img::before { content: attr(data-placeholder); }
.placeholder-img.has-image::before { content: none; }

/* Sections */
.section { padding: 120px 64px; display: flex; flex-direction: column; align-items: center; gap: 64px; }
.section-head { text-align: center; max-width: 640px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 12px; }
.eyebrow-teal { color: var(--teal); }
.eyebrow-green { color: var(--green); }
.section-head-wide { max-width: 680px; }
.section-head h2 { font-size: 36px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.section-head h2.text-white { color: #fff; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; width: 100%; max-width: 1100px; }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.card-hover:hover { transform: translateY(-6px); box-shadow: 0 16px 32px -16px rgba(15,27,46,0.2); }
.icon-box { width: 48px; height: 48px; border-radius: 12px; background: var(--surface); display: flex; align-items: center; justify-content: center; }
.card h3 { font-size: 22px; font-weight: 700; color: var(--ink); }
.card p { font-size: 15px; line-height: 1.6; color: var(--muted); }

/* Beneficios cards (generated) */
.benefit-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 12px; transition: transform 200ms ease, box-shadow 200ms ease; }
.benefit-card:hover { transform: translateY(-6px); box-shadow: 0 16px 32px -16px rgba(15,27,46,0.2); }
.benefit-dot { width: 40px; height: 40px; border-radius: 10px; background: var(--gradient); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.benefit-card h4 { font-size: 18px; font-weight: 700; color: var(--ink); }
.benefit-card p { font-size: 14px; line-height: 1.6; color: var(--muted); }

/* Historia */
.historia-grid { display: grid; grid-template-columns: 340px 1fr; gap: 64px; max-width: 1100px; width: 100%; align-items: start; }
.historia-photo { height: 420px; position: sticky; top: 120px; margin-top: 6px; }
.historia-copy { display: flex; flex-direction: column; gap: 32px; }
.p-lg { font-size: 17px; line-height: 1.8; color: var(--text); }
.p-muted { font-size: 16px; line-height: 1.8; color: var(--muted); }
.p-strong { font-size: 17px; font-weight: 600; color: var(--ink); }
.quote-block { border-left: 3px solid var(--green); padding: 4px 0 4px 24px; }
.quote-block p { font-size: 20px; font-weight: 600; line-height: 1.5; color: var(--ink); }
.historia-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; }
.historia-facts p { font-size: 15px; line-height: 1.7; color: var(--muted); }
@media (max-width: 900px) {
  .historia-grid { grid-template-columns: 1fr; }
  .historia-photo { position: static; height: 320px; }
  .historia-facts { grid-template-columns: 1fr; }
}

/* Manifiesto */
.section-dark { background: var(--ink); }
.text-white { color: #fff; }
.manifesto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 48px; max-width: 920px; width: 100%; }
.manifesto-grid p { font-size: 17px; line-height: 1.6; color: var(--surface); }
.manifesto-closing { font-size: 20px; font-weight: 600; color: #fff; text-align: center; }
@media (max-width: 700px) { .manifesto-grid { grid-template-columns: 1fr; } }

/* Producto */
.producto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; width: 100%; max-width: 1100px; align-items: center; }
.modules-list { display: flex; flex-direction: column; gap: 24px; }
#modules-screenshot { aspect-ratio: 16 / 9; height: auto; }
.module-row {
  display: flex; gap: 16px; align-items: flex-start; padding: 16px; border-radius: 12px;
  cursor: pointer; transition: background 200ms ease, transform 200ms ease; background: transparent;
}
.module-row:hover { background: var(--surface); }
.module-row.active { background: var(--surface); transform: translateX(6px); }
.module-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 8px; flex-shrink: 0; background: var(--border); transition: background 200ms ease; }
.module-row.active .module-dot { background: var(--green); }
.module-row p.module-name { font-size: 16px; font-weight: 700; margin: 0 0 4px; color: var(--ink); }
.module-row p.module-desc { font-size: 14px; line-height: 1.5; color: var(--muted); margin: 0; }
@media (max-width: 900px) { .producto-grid { grid-template-columns: 1fr; } }

/* Contacto */
.section-contact { padding: 0 64px 120px; display: block; }
.contact-card {
  max-width: 1100px; margin: 0 auto; background: linear-gradient(120deg, var(--ink), var(--ink-2));
  border-radius: 24px; padding: 72px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.contact-copy h2 { font-size: 36px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 16px; }
.contact-copy p { font-size: 16px; line-height: 1.6; color: var(--border); max-width: 420px; }
.contact-form { background: #fff; border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.contact-form input { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border); font-size: 15px; font-family: inherit; outline: none; }
.contact-form input:focus { border-color: var(--teal); }
.contact-form button {
  background: var(--gradient); color: #fff; border: none; padding: 14px; border-radius: 12px;
  font-size: 15px; font-weight: 700; font-family: inherit; cursor: pointer;
}
.contact-form button:disabled { opacity: 0.7; cursor: default; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-message { font-size: 13px; margin: 0; min-height: 16px; }
.form-message.success { color: var(--green); }
.form-message.error { color: #d64545; }
@media (max-width: 900px) { .contact-card { grid-template-columns: 1fr; padding: 40px 24px; } }

/* Footer */
.footer {
  border-top: 1px solid var(--border); padding: 48px 64px; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 24px;
}
.footer p { font-size: 13px; color: var(--muted-2); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--muted); font-size: 14px; }

/* Responsive */
@media (max-width: 1024px) {
  .nav { padding: 16px 24px; }
  .nav-links { display: none; }
  .section, .hero { padding-left: 24px; padding-right: 24px; }
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero-title { font-size: 38px; }
  .hero-stats { gap: 28px; flex-wrap: wrap; justify-content: center; }
  .contact-card { padding: 32px; }
}