/* =========================================================
   Mi Emprende Digital — Landing MisFiados
   Hoja de estilos única
   ========================================================= */

:root {
  --navy: #14314f;
  --navy-600: #1c4265;
  --navy-700: #0f2740;
  --blue: #2568c0;
  --blue-soft: #eaf2fd;
  --teal: #1e9e86;
  --teal-soft: #e6f6f2;
  --yellow: #f6c945;

  --text: #3b4c5c;
  --muted: #6d7e8d;
  --line: #e4eaef;

  --bg: #ffffff;
  --bg-soft: #f4f7f9;
  --bg-tint: #eef3f6;

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;

  --shadow-sm: 0 1px 2px rgba(16, 42, 67, .06), 0 4px 14px rgba(16, 42, 67, .05);
  --shadow: 0 2px 4px rgba(16, 42, 67, .05), 0 14px 34px rgba(16, 42, 67, .09);

  --grad: linear-gradient(120deg, var(--blue), var(--teal));
  --wrap: 1140px;
  --header-h: 74px;
}

/* ---------- Base ---------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 18px); }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }
img { display: block; }

h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 .6rem; font-weight: 800; letter-spacing: -.015em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.14rem; }
p { margin: 0 0 1rem; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { color: var(--navy-600); }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.wrap--narrow { max-width: 820px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; text-decoration: none; }

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

.eyebrow {
  margin: 0 0 .5rem;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
}

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 104, 192, .28);
}
.btn--primary:hover { box-shadow: 0 14px 30px rgba(30, 158, 134, .34); }

.btn--ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--navy-600);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover { border-color: #cfdbe4; }

.btn--sm { padding: 11px 20px; font-size: .94rem; }

.btn--light { background: #fff; color: var(--navy-700); }
.btn--outline-light { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--outline-light:hover { background: rgba(255, 255, 255, .2); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 6px 22px rgba(16, 42, 67, .06); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; }
.brand:hover { text-decoration: none; }
.brand__mark { display: inline-flex; flex: none; border-radius: 12px; box-shadow: 0 6px 16px rgba(37, 104, 192, .25); }
.brand__mark svg { display: block; width: 40px; height: 40px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; color: var(--navy); }
.brand__name--lg { font-size: 1.5rem; }
.brand__accent { color: var(--teal); }
.brand__tld { color: var(--muted); font-weight: 600; }
.brand__tag { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle__bar { display: block; height: 2px; margin: 4px 0; background: var(--navy); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav__list { display: flex; align-items: center; gap: 24px; }
.site-nav__list a {
  color: var(--navy-600);
  font-weight: 600;
  font-size: .96rem;
}
.site-nav__list a:hover { color: var(--teal); text-decoration: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 12% -8%, #eaf2fd 0%, rgba(234, 242, 253, 0) 62%),
    radial-gradient(800px 420px at 96% 6%, var(--teal-soft) 0%, rgba(230, 246, 242, 0) 60%),
    linear-gradient(180deg, #ffffff 0%, #f7fafb 100%);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 46px;
  padding-block: clamp(40px, 6vw, 82px);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 1.1rem;
  padding: 7px 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--navy-600);
  box-shadow: var(--shadow-sm);
}
.pill__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(30, 158, 134, .16);
}

.hero__title { margin-bottom: 1rem; }
.hero__lead { font-size: 1.12rem; max-width: 34em; color: #47596a; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 1.7rem 0 1.3rem; }

.hero__notes { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .92rem; color: var(--muted); }
.hero__notes li { display: flex; align-items: center; gap: 8px; }
.hero__notes li::before {
  content: "";
  width: 17px;
  height: 17px;
  flex: none;
  border-radius: 50%;
  background: var(--teal-soft);
  box-shadow: inset 0 0 0 1.5px rgba(30, 158, 134, .45);
}

.hero__art {
  margin: 0;
  padding: 10px;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 50% 45%, #fbfcfc 0%, #e9edef 100%);
  box-shadow: var(--shadow);
}
.hero__art img {
  width: 100%;
  border-radius: calc(var(--radius-lg) - 10px);
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 7%, #000 93%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-composite: intersect;
}
.hero__art-caption {
  margin: 4px 0 6px;
  text-align: center;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Secciones ---------- */

.section { padding-block: clamp(52px, 7vw, 92px); }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 760px; margin: 0 auto clamp(28px, 4vw, 46px); text-align: center; }
.section__lead { color: var(--muted); font-size: 1.06rem; margin-bottom: 0; }

.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Tarjetas */
.card {
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4rem; }
.card p { margin: 0; color: var(--muted); }
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  font-size: 1.5rem;
  border-radius: 15px;
  background: var(--bg-tint);
}

/* Features */
.feature {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d6e2ea; }
.feature h3 { margin-bottom: .35rem; }
.feature p { margin: 0; color: var(--muted); font-size: .97rem; }
.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  color: #fff;
  border-radius: 13px;
  background: var(--grad);
  box-shadow: 0 8px 18px rgba(37, 104, 192, .22);
}
.feature__icon svg { width: 22px; height: 22px; }

/* ---------- Split (WhatsApp) ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}
.split__copy h2 { margin-bottom: .8rem; }
.split__copy p { color: var(--muted); }
.split__copy .btn { margin-top: .6rem; }

.check-list { display: grid; gap: 10px; margin: 0 0 1.4rem; }
.check-list li { display: flex; gap: 11px; align-items: flex-start; color: #4a5c6c; }
.check-list li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 13l4 4L19 7' fill='none' stroke='%231e9e86' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
}

.chat {
  max-width: 430px;
  margin-inline: auto;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #e9f2ec 0%, #dfeee6 100%);
  border: 1px solid #d3e5da;
  box-shadow: var(--shadow);
}
.chat__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.chat__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(37, 211, 102, .35);
}
.chat__name { margin: 0; font-weight: 800; color: var(--navy); font-size: 1rem; }
.chat__status { margin: 0; font-size: .82rem; color: var(--muted); }

.chat__bubble {
  padding: 16px 18px;
  background: #fff;
  border-radius: 16px 16px 16px 5px;
  box-shadow: 0 4px 14px rgba(16, 42, 67, .08);
  font-size: .95rem;
}
.chat__bubble p { margin: 0 0 .6rem; }
.chat__bubble ol { counter-reset: deuda; display: grid; gap: 10px; margin-bottom: .7rem; }
.chat__bubble li { padding-left: 2px; color: var(--navy-600); font-weight: 600; }
.chat__bubble .muted { color: var(--muted); font-weight: 500; font-size: .89rem; }
.chat__total { color: var(--navy); }
.chat__time { display: block; text-align: right; font-size: .75rem; color: #9aa8b4; }

/* ---------- Pasos ---------- */

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; counter-reset: paso; }
.step {
  position: relative;
  padding: 26px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(37, 104, 192, .22);
}
.step h3 { margin-bottom: .35rem; }
.step p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ---------- CTA band ---------- */

.cta {
  display: grid;
  grid-template-columns: 1.35fr auto;
  align-items: center;
  gap: 32px;
  padding: clamp(30px, 5vw, 52px);
  border-radius: var(--radius-lg);
  background: var(--grad);
  color: #fff;
  box-shadow: 0 24px 50px rgba(20, 49, 79, .26);
}
.cta h2 { color: #fff; margin-bottom: .5rem; }
.cta p { color: rgba(255, 255, 255, .92); margin-bottom: .9rem; }
.cta__points { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .93rem; }
.cta__points li { display: flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .95); }
.cta__points li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
}
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Módulos ---------- */

.modules .module {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.module h3 { margin-bottom: .3rem; }
.module p { margin: 0 0 .9rem; color: var(--muted); font-size: .94rem; }
.module--live { border-color: rgba(30, 158, 134, .45); box-shadow: 0 10px 26px rgba(30, 158, 134, .14); }

.badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--bg-tint);
  color: var(--muted);
}
.badge--live { background: var(--teal-soft); color: #14705f; }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 12px; }
.faq__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 20px;
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  flex: none;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 1.15rem;
  line-height: 1;
  transition: transform .2s ease, background-color .2s ease;
}
.faq__item[open] summary::after { content: "–"; transform: rotate(180deg); background: var(--teal-soft); color: var(--teal); }
.faq__item p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy-700); color: #c3d2df; padding-top: 56px; }
.site-footer a { color: #dbe7f1; }
.site-footer a:hover { color: #fff; }
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.site-footer .brand__name { color: #fff; }
.site-footer .brand__accent { color: #4fd6bb; }
.site-footer .brand__tld { color: #9db4c7; }
.site-footer__tag { margin: .3rem 0 .6rem; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: #8fa7bb; }
.site-footer__desc { margin: 0; max-width: 34em; color: #a9bccd; font-size: .95rem; }

.site-footer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.site-footer__title { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: #8fa7bb; margin-bottom: .8rem; }
.site-footer__nav ul { display: grid; gap: 9px; font-size: .95rem; }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-block: 20px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .85rem;
  color: #8fa7bb;
}
.site-footer__bottom p { margin: 0; }

/* ---------- Animaciones ---------- */

.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .brand__tag { display: none; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
  .site-nav__list a { display: block; padding: 11px 6px; border-radius: 10px; }
  .site-nav__list a:hover { background: var(--bg-soft); }
  .site-nav__cta { width: 100%; }

  .hero__inner { grid-template-columns: 1fr; gap: 34px; text-align: left; }
  .hero__art { max-width: 560px; margin-inline: auto; }
  .hero__lead { margin-inline: 0; }

  .split { grid-template-columns: 1fr; gap: 34px; }
  .cta { grid-template-columns: 1fr; text-align: left; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid--3, .grid--4, .steps { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .site-footer__nav { grid-template-columns: 1fr; }
  .site-footer__bottom { justify-content: flex-start; }
}
