/* ==========================================================
   Ruta Labs · MiNave — Landing page
   Paleta tomada del logo Ruta Labs y de constants/Colors.ts (minave-app)
   ========================================================== */

:root {
  --navy-900: #0B1120;
  --navy-800: #0F172A;
  --navy-700: #1E293B;
  --blue-600: #1A5CBA;   /* primary MiNave */
  --blue-500: #2F7BF5;   /* azul Ruta Labs */
  --blue-100: #DBEAFE;
  --teal-500: #2B8FBF;
  --green-500: #38A169;
  --green-400: #7ED957;  /* verde logo MiNave */

  --text: #0F172A;
  --text-2: #4A5568;
  --text-3: #8896AB;
  --bg: #F8FAFC;
  --bg-2: #F1F5F9;
  --card: #FFFFFF;
  --border: #E2E8F0;

  --radius: 18px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px rgba(15, 23, 42, .07);
  --gradient: linear-gradient(120deg, var(--green-400) 0%, var(--teal-500) 45%, var(--blue-600) 100%);

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--text-2); }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-inline: 24px;
}

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 14px;
}
.eyebrow--light { color: var(--green-400); }

.lead { font-size: 1.15rem; max-width: 34em; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: 9px 18px; font-size: .88rem; }
.btn--primary {
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 8px 20px rgba(26, 92, 186, .25);
}
.btn--primary:hover { background: #164f9f; }
.btn--ghost { color: var(--blue-600); }
.btn--ghost:hover { background: var(--blue-100); }
.btn--light { background: #fff; color: var(--navy-800); }
.btn--outline-light { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn--outline-light:hover { background: rgba(255, 255, 255, .08); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 252, .85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.header__brand img { width: 110px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { font-weight: 600; font-size: .95rem; color: var(--text-2); }
.nav a:not(.btn):hover { color: var(--blue-600); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 88px 104px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(126, 217, 87, .22), rgba(47, 123, 245, .14) 45%, transparent 70%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero__visual { position: relative; min-height: 380px; display: grid; place-items: center; }
.hero__card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.hero__card--main {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 32px 32px;
  width: min(320px, 100%);
  animation: float 6s ease-in-out infinite;
}
.hero__card--main img { width: 190px; }
.hero__card--main strong { font-size: 1.5rem; font-weight: 800; }
.hero__card--main span { font-size: .92rem; color: var(--text-3); }

.hero__chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: .85rem;
  font-weight: 600;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow);
  white-space: nowrap;
}
.hero__chip--a { top: 12%; left: -6%; animation: float 7s ease-in-out infinite reverse; }
.hero__chip--b { bottom: 10%; right: -4%; animation: float 8s ease-in-out infinite; }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot--green { background: var(--green-500); }
.dot--blue { background: var(--blue-500); }

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

/* ---------- Secciones ---------- */
.section { padding-block: 96px; }
.section__head { max-width: 640px; margin: 0 auto 56px; text-align: center; }

.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: #BFD3F2; }

.service__icon,
.feature__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  margin-bottom: 20px;
}
.service__icon { background: var(--blue-100); color: var(--blue-600); }
.service__icon svg,
.feature__icon svg { width: 26px; height: 26px; }

.checklist { list-style: none; padding: 0; margin: 18px 0 0; }
.checklist li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 8px;
  font-size: .94rem;
  font-weight: 500;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 10px no-repeat;
}

/* ---------- MiNave (sección oscura) ---------- */
.section--dark {
  position: relative;
  overflow: hidden;
  background: var(--navy-800);
  color: #fff;
}
.section--dark::before {
  content: "";
  position: absolute;
  inset: auto auto -30% -15%;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(126, 217, 87, .18), rgba(26, 92, 186, .2) 45%, transparent 70%);
  pointer-events: none;
}
.section--dark p { color: #A0AEC0; }

.minave {
  position: relative;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.minave__brand img {
  width: 150px;
  margin-bottom: 16px;
  background: #fff;
  border-radius: 32px;
  padding: 10px;
}
.minave__stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.feature {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: var(--radius);
  padding: 28px;
}
.feature h3 { color: #fff; }
.feature p { margin: 0; font-size: .95rem; }
.feature__icon { background: var(--gradient); color: #fff; }

/* ---------- Proceso ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: none;
}
.step {
  padding: 28px;
  border-top: 3px solid transparent;
  border-image: var(--gradient) 1;
  background: var(--card);
  box-shadow: var(--shadow);
}
.step__num {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--blue-100);
  -webkit-text-stroke: 1.5px var(--blue-600);
}
.step p { margin: 0; }

/* ---------- CTA ---------- */
#contacto { padding-top: 0; }
.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding: 56px;
  border-radius: 28px;
  background: var(--gradient);
  color: #fff;
}
.cta h2 { margin-bottom: .3em; }
.cta p { color: rgba(255, 255, 255, .88); margin: 0; }

/* ---------- Footer ---------- */
.footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding-top: 56px;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 40px;
}
.footer__brand img { width: 120px; margin-bottom: 10px; }
.footer__brand p { margin: 0; font-size: .92rem; }

.social { display: flex; align-items: center; gap: 18px; }
.social__label { font-weight: 700; font-size: .9rem; color: var(--text-2); }
.social__list { list-style: none; display: flex; gap: 12px; margin: 0; padding: 0; }
.social__link {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--bg-2);
  color: var(--navy-800);
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.social__link svg { width: 20px; height: 20px; }
.social__link:hover { background: var(--blue-600); color: #fff; transform: translateY(-2px); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-block: 20px 28px;
  border-top: 1px solid var(--border);
}
.footer__bottom p { margin: 0; font-size: .85rem; color: var(--text-3); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__inner,
  .minave { grid-template-columns: 1fr; }
  .hero__visual { min-height: 320px; }
  .grid--3,
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav a:not(.btn) { display: none; }
  .hero { padding-block: 56px 72px; }
  .section { padding-block: 72px; }
  .grid--2 { grid-template-columns: 1fr; }
  .hero__chip--a { left: 0; }
  .hero__chip--b { right: 0; }
  .cta { padding: 36px 28px; }
  .container { padding-inline: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
