/* ===== TOKENS ===== */
:root {
  --navy: #0B1A2E;
  --navy-2: #13294A;
  --blue: #2563EB;
  --blue-2: #3B82F6;
  --cyan: #22D3EE;
  --cyan-soft: #CFF6FC;
  --bg: #F6F8FC;
  --white: #FFFFFF;
  --line: #E3E8F0;
  --text: #0F172A;
  --muted: #5B6678;

  --radius: 16px;
  --radius-lg: 24px;
  --shadow-card: 0 2px 8px rgba(11, 26, 46, .05);
  --shadow-float: 0 20px 48px rgba(11, 26, 46, .14);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg); color: var(--text);
  font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--white); padding: 8px 14px; border-radius: 8px; }

.material-symbols-outlined { font-size: 20px; line-height: 1; vertical-align: middle; }
.material-symbols-outlined.filled { font-variation-settings: 'FILL' 1; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 12px;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--navy-2); }
.btn--accent { background: var(--cyan); color: var(--navy); }
.btn--accent:hover { background: #5EE3F5; }
.btn--ghost { border: 1px solid rgba(255, 255, 255, .25); color: var(--white); }
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn--sm { padding: 10px 18px; font-size: 14px; }

/* ===== NAV ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88); backdrop-filter: blur(14px);
  box-shadow: 0 1px 8px rgba(11, 26, 46, .05);
}
.nav__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; color: var(--navy); }
.logo--light { color: var(--white); }
.nav__links { display: flex; gap: 6px; margin-left: auto; }
.nav__links a { padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--muted); transition: color .2s, background-color .2s; }
.nav__links a:hover { color: var(--text); background: var(--bg); }
.nav__toggle { display: none; width: 44px; height: 44px; border-radius: 10px; margin-left: auto; }
.nav__toggle .material-symbols-outlined { font-size: 26px; }
.nav__mobile { display: none; }

/* ===== HERO ===== */
.hero-wrap { padding-top: 28px; }
.hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center;
  background: var(--navy); color: var(--white);
  border-radius: var(--radius-lg); padding: 64px 56px; min-height: 600px;
  box-shadow: 0 24px 60px rgba(11, 26, 46, .18);
}
.hero::before {
  content: ''; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px;
  border-radius: 50%; background: rgba(34, 211, 238, .10); filter: blur(40px); pointer-events: none;
}
.hero__copy { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 22px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(34, 211, 238, .35);
  color: var(--cyan-soft); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.badge .material-symbols-outlined { font-size: 16px; color: var(--cyan); }
.hero h1 { font-size: clamp(32px, 4vw, 50px); font-weight: 800; }
.hero__lead { font-size: 17px; color: #C3CEDD; max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.founder {
  display: inline-flex; align-items: center; gap: 12px; align-self: flex-start;
  margin-top: 8px; padding: 10px 18px 10px 10px; border-radius: 14px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .10);
}
.founder img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--cyan); }
.founder strong { display: flex; align-items: center; gap: 4px; font-size: 15px; }
.founder strong .material-symbols-outlined { font-size: 17px; color: var(--cyan); }
.founder span { display: block; font-size: 13px; color: #A9B6C8; }

.hero__visual { position: relative; z-index: 1; padding: 0 40px 56px 0; }
.frame {
  border-radius: 14px; overflow: hidden; background: var(--white);
  box-shadow: var(--shadow-card); border: 1px solid var(--line);
}
.frame__bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: #F1F4F9; border-bottom: 1px solid var(--line); }
.frame__bar i { width: 10px; height: 10px; border-radius: 50%; background: #D5DCE6; }
.frame__bar i:first-child { background: #F87171; }
.frame__bar i:nth-child(2) { background: #FBBF24; }
.frame__bar i:nth-child(3) { background: #34D399; }
.frame__bar span { margin-left: 10px; font-size: 12px; color: var(--muted); font-weight: 500; }
.frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.frame--hero { border: 0; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); transform: perspective(1400px) rotateY(-6deg); transform-origin: left center; }
.phone {
  position: absolute; right: 0; bottom: 0; width: 26%;
  border-radius: 22px; overflow: hidden; border: 6px solid #0F223B; background: #0F223B;
  box-shadow: 0 24px 48px rgba(0, 0, 0, .4);
  animation: float 6s ease-in-out infinite;
}
.phone img { border-radius: 16px; aspect-ratio: 9 / 17; object-fit: cover; object-position: top; }
.float-card {
  position: absolute; left: -24px; bottom: 16px;
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px;
  background: var(--white); color: var(--text); box-shadow: var(--shadow-float);
  animation: float 6s ease-in-out infinite 1.5s;
}
.float-card > .material-symbols-outlined { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--cyan-soft); color: #0E7490; }
.float-card strong { display: block; font-size: 14px; }
.float-card span { font-size: 12px; color: var(--muted); }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ===== SECTIONS ===== */
.section { padding-top: 112px; }
.section__head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section__head--left { margin: 0; text-align: left; }
.eyebrow { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.eyebrow--light { color: var(--cyan); }
.section__head h2 { font-size: clamp(28px, 3vw, 38px); font-weight: 800; color: var(--navy); }
.section__head p { margin-top: 14px; font-size: 17px; color: var(--muted); }

.icon {
  display: inline-grid; place-items: center; flex: none;
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--navy); color: var(--cyan);
}
.icon .material-symbols-outlined { font-size: 24px; }

/* Para quién */
.audience__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-card);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); }
.card h3 { margin: 18px 0 8px; font-size: 19px; color: var(--navy); }
.card p { color: var(--muted); }

/* Productos */
.products { padding-bottom: 8px; }
.product {
  display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 48px; box-shadow: var(--shadow-card);
}
.product + .product { margin-top: 28px; }
.product--reverse .product__info { order: 2; }
.product__tag {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  background: #EAF1FF; color: var(--blue); font-size: 13px; font-weight: 600;
}
.product h3 { margin: 14px 0 10px; font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; color: var(--navy); }
.product__info > p { color: var(--muted); }
.checks { display: grid; gap: 10px; margin: 22px 0; }
.checks li { position: relative; padding-left: 30px; font-size: 15px; font-weight: 500; }
.checks li::before {
  content: 'check'; font-family: 'Material Symbols Outlined'; font-size: 16px; line-height: 20px;
  position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; background: var(--cyan-soft); color: #0E7490;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { padding: 5px 11px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--muted); }
.product__media .frame { box-shadow: var(--shadow-float); }
.gallery__main { transition: opacity .25s; }
.gallery__main.is-swapping { opacity: 0; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.thumbs button {
  padding: 8px 14px; border-radius: 10px; font-size: 14px; font-weight: 600;
  color: var(--muted); background: var(--bg); border: 1px solid var(--line);
  transition: background-color .2s, color .2s, border-color .2s;
}
.thumbs button:hover { color: var(--text); border-color: #C7D2E2; }
.thumbs button[aria-selected="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* Ecosistema */
.eco {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center;
  background: var(--navy); color: var(--white); border-radius: var(--radius-lg); padding: 56px;
}
.eco h2 { font-size: clamp(26px, 2.8vw, 36px); font-weight: 800; }
.eco p { margin-top: 14px; color: #C3CEDD; }
.eco__flow { display: flex; align-items: center; gap: 12px; }
.node {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
  padding: 22px 12px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
}
.node > .material-symbols-outlined { font-size: 30px; color: var(--cyan); margin-bottom: 6px; }
.node strong { font-size: 15px; }
.node span { font-size: 13px; color: #A9B6C8; }
.arrow { color: var(--cyan); }

/* Servicios */
.services { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: start; }
.services .btn { margin-top: 24px; }
.services__list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.service {
  display: flex; gap: 16px; padding: 24px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-card);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow-float); }
.service h3 { font-size: 17px; color: var(--navy); margin-bottom: 4px; }
.service p { font-size: 15px; color: var(--muted); }

/* Proceso */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps li {
  position: relative; padding: 28px 24px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-card);
}
.steps li::after {
  counter-increment: step; content: counter(step);
  position: absolute; right: 22px; top: 18px; font-size: 40px; font-weight: 800; color: #E9EEF5;
}
.steps h3 { margin: 18px 0 6px; font-size: 18px; color: var(--navy); }
.steps p { font-size: 15px; color: var(--muted); }

/* Nosotros */
.about {
  display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 48px; box-shadow: var(--shadow-card);
}
.about__photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 20px; }
.about__copy h2 { font-size: clamp(26px, 2.8vw, 36px); font-weight: 800; color: var(--navy); margin-bottom: 16px; }
.about__copy p { color: var(--muted); max-width: 62ch; }
.about__copy p + p { margin-top: 12px; }
.about__copy strong { color: var(--text); }
.about__facts { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 24px; font-size: 15px; font-weight: 500; }
.about__facts li { display: flex; align-items: center; gap: 6px; }
.about__facts .material-symbols-outlined { color: var(--blue); }
.about__facts a:hover { color: var(--blue); }

/* Contacto */
.contact {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center;
  background: var(--navy); color: var(--white);
  border-radius: var(--radius-lg); padding: 56px;
}
.contact::before {
  content: ''; position: absolute; left: -100px; bottom: -140px; width: 360px; height: 360px;
  border-radius: 50%; background: rgba(37, 99, 235, .25); filter: blur(50px); pointer-events: none;
}
.contact > * { position: relative; }
.contact h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; }
.contact__copy > p { margin-top: 14px; color: #C3CEDD; font-size: 17px; max-width: 44ch; }
.contact__list { display: grid; gap: 12px; margin-top: 28px; font-size: 15px; }
.contact__list li { display: flex; align-items: center; gap: 10px; }
.contact__list .material-symbols-outlined { color: var(--cyan); }
.contact__list a:hover { color: var(--cyan); }

.form {
  display: grid; gap: 16px; padding: 32px; border-radius: var(--radius);
  background: var(--white); color: var(--text); box-shadow: var(--shadow-float);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 14px; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--text);
  padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-2); background: var(--white); box-shadow: 0 0 0 3px rgba(59, 130, 246, .18);
}
.field.is-invalid input, .field.is-invalid textarea { border-color: #EF4444; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__submit { justify-self: start; }
.form__submit[disabled] { opacity: .6; cursor: progress; transform: none; }
.form__status { min-height: 1.4em; font-size: 14px; font-weight: 500; }
.form__status.is-ok { color: #047857; }
.form__status.is-error { color: #B91C1C; }

/* ===== FOOTER ===== */
.footer { margin-top: 112px; background: var(--navy); color: #A9B6C8; padding-top: 56px; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 32px; }
.footer__brand p { margin-top: 14px; font-size: 14px; max-width: 30ch; }
.footer h3 { color: var(--white); font-size: 14px; margin-bottom: 12px; letter-spacing: 0; }
.footer nav a, .footer__inner > div:last-child a { display: block; font-size: 14px; padding: 4px 0; transition: color .2s; }
.footer a:hover { color: var(--cyan); }
.footer__bottom { margin-top: 40px; padding-top: 20px; padding-bottom: 24px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; }

/* ===== MOTION ===== */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .card:hover, .js .service:hover { transform: translateY(-4px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .phone, .float-card { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== TABLET ===== */
@media (max-width: 1024px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: grid; place-items: center; }
  .nav__mobile { display: none; flex-direction: column; padding: 8px 24px 16px; background: var(--white); }
  .nav.is-open .nav__mobile { display: flex; }
  .nav__mobile a { padding: 12px 4px; font-weight: 600; border-bottom: 1px solid var(--line); }
  .hero { grid-template-columns: 1fr; padding: 48px 36px; }
  .hero__visual { max-width: 640px; }
  .product, .product--reverse { grid-template-columns: 1fr; gap: 32px; padding: 32px; }
  .product--reverse .product__info { order: 0; }
  .eco { grid-template-columns: 1fr; padding: 40px 32px; }
  .services { grid-template-columns: 1fr; gap: 32px; }
  .contact { grid-template-columns: 1fr; padding: 40px 32px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 220px 1fr; gap: 32px; padding: 32px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

/* ===== PHONE ===== */
@media (max-width: 720px) {
  .container { padding: 0 16px; }

  .hero-wrap { padding-top: 16px; }
  .hero { padding: 32px 22px; min-height: 0; gap: 32px; }
  .hero__actions .btn { flex: 1; }
  .hero__visual { padding: 0 24px 40px 0; }
  .frame--hero { transform: none; }
  .phone { width: 34%; border-width: 4px; border-radius: 16px; }
  .phone img { border-radius: 12px; }
  .float-card { left: 0; bottom: -4px; padding: 10px 12px; }

  .section { padding-top: 80px; }
  .section__head { margin-bottom: 32px; }
  .audience__grid, .services__list, .steps { grid-template-columns: 1fr; }
  .product, .product--reverse { padding: 22px; border-radius: 20px; }
  .eco { padding: 32px 22px; }
  .eco__flow { flex-direction: column; }
  .node { width: 100%; }
  .arrow { transform: rotate(90deg); }
  .about { grid-template-columns: 1fr; padding: 22px; }
  .about__photo { max-width: 200px; }
  .contact { padding: 32px 18px; gap: 32px; }
  .form { padding: 22px; }
  .form__row { grid-template-columns: 1fr; }
  .form__submit { justify-self: stretch; }
  .footer { margin-top: 80px; }
  .footer__inner { grid-template-columns: 1fr; }
}
