/* =========================================================
   FFS · Despacho Contable
   Paleta: Azul + Gris plata
   ========================================================= */
:root {
  --navy-900: #061a3a;
  --navy-800: #0a2a5c;
  --blue-700: #134a9c;
  --blue-600: #1e5bb8;
  --blue-500: #2f74d8;
  --blue-300: #7fb2ff;

  --silver-50: #f6f7f9;
  --silver-100: #eceef1;
  --silver-200: #dde1e6;
  --silver-300: #c3c9d1;
  --silver-400: #a3abb6;
  --gray-500: #6b7380;
  --gray-700: #3b4250;
  --gray-900: #161b24;

  --grad-blue: linear-gradient(135deg, var(--blue-600), var(--navy-800));
  --grad-silver: linear-gradient(135deg, #f4f6f8 0%, #c3c9d1 45%, #eef0f3 70%, #b5bcc6 100%);

  --radius: 16px;
  --shadow-sm: 0 2px 8px rgba(6, 26, 58, .06);
  --shadow: 0 12px 32px rgba(6, 26, 58, .10);
  --shadow-lg: 0 24px 60px rgba(6, 26, 58, .18);

  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--gray-700);
  background: #fff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--gray-900); line-height: 1.2; margin: 0 0 .6em; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 2.5rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .9rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem; letter-spacing: .2px;
  cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn--primary { background: var(--grad-blue); color: #fff; box-shadow: 0 8px 22px rgba(30, 91, 184, .35); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(30, 91, 184, .45); }
.btn--ghost { border-color: var(--silver-300); color: #fff; background: rgba(255,255,255,.06); }
.btn--ghost:hover { background: rgba(255,255,255,.14); }
.btn--sm { padding: .6rem 1.2rem; font-size: .88rem; }
.btn--block { width: 100%; }

.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: .78rem;
  letter-spacing: 2px; text-transform: uppercase; color: var(--silver-300);
  padding: .4rem .9rem; border: 1px solid rgba(195, 201, 209, .4); border-radius: 999px; margin-bottom: 1.2rem;
}
.eyebrow--dark { color: var(--blue-600); border-color: rgba(30, 91, 184, .25); background: rgba(30, 91, 184, .06); }
.text-silver {
  background: var(--grad-silver); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; transition: background .3s, box-shadow .3s;
}
.header.is-scrolled { background: rgba(6, 26, 58, .92); backdrop-filter: blur(10px); box-shadow: 0 4px 20px rgba(0,0,0,.2); }
.header__inner { display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: .7rem; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__text strong { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; letter-spacing: 2px; color: #fff; }
.brand__text small { font-size: .7rem; letter-spacing: 2.4px; text-transform: uppercase; color: var(--silver-300); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a:not(.btn) { color: var(--silver-200); font-weight: 500; font-size: .95rem; position: relative; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--blue-300); transition: width .25s;
}
.nav a:not(.btn):hover { color: #fff; }
.nav a:not(.btn):hover::after { width: 100%; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: #fff; margin: 6px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--silver-200);
  padding: calc(var(--header-h) + 5rem) 0 6rem;
  background: radial-gradient(1200px 600px at 85% 10%, rgba(47,116,216,.35), transparent 60%),
              linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--blue-700) 100%);
}
.hero__bg {
  position: absolute; inset: 0; opacity: .14; pointer-events: none;
  background-image:
    linear-gradient(rgba(195,201,209,.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(195,201,209,.5) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 4rem; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -.5px; }
.hero__lead { font-size: 1.12rem; max-width: 560px; color: var(--silver-200); }
.hero__lead strong { color: #fff; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0 2.2rem; }
.hero__badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; font-size: .92rem; }
.hero__badges span {
  display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(127,178,255,.2); color: var(--blue-300); font-size: .7rem; margin-right: .35rem;
}

/* Dashboard mockup */
.hero__visual { position: relative; }
.dash {
  background: linear-gradient(160deg, rgba(255,255,255,.96), rgba(236,238,241,.94));
  border-radius: 22px; padding: 1.5rem; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.6); color: var(--gray-700);
  transform: perspective(1200px) rotateY(-6deg) rotateX(3deg);
}
.dash__head { display: flex; align-items: center; gap: 6px; margin-bottom: 1.2rem; }
.dash__head .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--silver-300); }
.dash__head p { margin: 0 0 0 .6rem; font-family: var(--font-head); font-weight: 700; color: var(--navy-800); font-size: .95rem; }
.dash__kpis { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin-bottom: 1.2rem; }
.dash__kpis > div { background: #fff; border-radius: 12px; padding: .9rem 1rem; box-shadow: var(--shadow-sm); }
.dash__kpis small { display: block; color: var(--gray-500); font-size: .75rem; text-transform: uppercase; letter-spacing: 1px; }
.dash__kpis b { display: block; font-family: var(--font-head); color: var(--navy-800); font-size: 1.15rem; margin: .2rem 0; }
.dash__kpis em { font-style: normal; font-size: .78rem; font-weight: 600; }
.up, .ok { color: #1f9d6b; }
.dash__chart {
  height: 130px; display: flex; align-items: flex-end; gap: 8px; padding: 1rem;
  background: #fff; border-radius: 12px; box-shadow: var(--shadow-sm); margin-bottom: 1.2rem;
}
.dash__chart span {
  flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--blue-500), var(--navy-800));
  transform-origin: bottom; animation: grow 1.2s cubic-bezier(.2,.8,.2,1) both;
}
.dash__chart span:nth-child(odd) { background: linear-gradient(180deg, var(--silver-300), var(--silver-400)); }
.dash__chart span:nth-child(2) { animation-delay: .08s; }
.dash__chart span:nth-child(3) { animation-delay: .16s; }
.dash__chart span:nth-child(4) { animation-delay: .24s; }
.dash__chart span:nth-child(5) { animation-delay: .32s; }
.dash__chart span:nth-child(6) { animation-delay: .40s; }
.dash__chart span:nth-child(7) { animation-delay: .48s; }
.dash__chart span:nth-child(8) { animation-delay: .56s; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.dash__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.dash__list li { display: flex; align-items: center; gap: .6rem; font-size: .88rem; background: #fff; padding: .6rem .9rem; border-radius: 10px; }
.dash__list li b { margin-left: auto; font-size: .78rem; color: #1f9d6b; background: rgba(31,157,107,.1); padding: .15rem .6rem; border-radius: 999px; }
.dash__list i { width: 8px; height: 8px; border-radius: 50%; background: #1f9d6b; }

.floating-card {
  position: absolute; left: -2.2rem; bottom: -1.6rem; display: flex; align-items: center; gap: .8rem;
  background: var(--grad-blue); color: #fff; padding: .9rem 1.2rem; border-radius: 14px;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(195,201,209,.35);
  animation: float 5s ease-in-out infinite;
}
.floating-card svg { width: 34px; height: 34px; fill: var(--blue-300); }
.floating-card b { display: block; font-family: var(--font-head); font-size: .92rem; }
.floating-card small { color: var(--silver-200); font-size: .78rem; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Sections ---------- */
.section { padding: 6rem 0; }
.section--silver { background: linear-gradient(180deg, var(--silver-50), var(--silver-100)); }
.section--dark {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-800));
  color: var(--silver-200);
}
.section__head { text-align: center; max-width: 720px; margin: 0 auto 3.5rem; }
.section__head h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 800; }
.section__head p { color: var(--gray-500); font-size: 1.05rem; }
.section__head--light h2 { color: #fff; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.card {
  position: relative; background: #fff; border-radius: var(--radius); padding: 2.2rem 2rem;
  border: 1px solid var(--silver-200); box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 4px; border-radius: var(--radius) var(--radius) 0 0;
  background: var(--grad-silver);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--silver-300); }
.card--featured { background: var(--grad-blue); border-color: transparent; color: var(--silver-200); }
.card--featured h3 { color: #fff; }
.card--featured .card__icon { background: rgba(255,255,255,.12); color: #fff; }
.card--featured .checklist li::before { background: rgba(127,178,255,.25); color: var(--blue-300); }
.card__icon {
  width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.4rem;
  background: linear-gradient(135deg, rgba(30,91,184,.12), rgba(195,201,209,.35)); color: var(--blue-600);
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.35rem; }

.checklist { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .6rem; }
.checklist li { display: flex; align-items: flex-start; gap: .65rem; font-size: .95rem; }
.checklist li::before {
  content: "✓"; flex: none; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 3px;
  border-radius: 50%; font-size: .7rem; font-weight: 700; background: rgba(30,91,184,.1); color: var(--blue-600);
}

/* Audience */
.audience { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.audience__item {
  background: #fff; border-radius: var(--radius); padding: 1.6rem; text-align: center;
  border: 1px solid var(--silver-200); box-shadow: var(--shadow-sm);
}
.audience__item b { display: block; font-family: var(--font-head); color: var(--navy-800); font-size: 1.1rem; margin-bottom: .3rem; }
.audience__item span { font-size: .9rem; color: var(--gray-500); }

/* Split / features */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: center; }
.split__text h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 800; }
.split__text p { font-size: 1.05rem; margin-bottom: 2rem; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.feature { padding: 1.6rem; border-radius: var(--radius); background: var(--silver-50); border: 1px solid var(--silver-200); transition: .3s; }
.feature:hover { background: #fff; box-shadow: var(--shadow); }
.feature__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 1rem;
  background: var(--grad-blue); color: #fff;
}
.feature__icon svg { width: 22px; height: 22px; }
.feature h4 { font-size: 1.08rem; margin-bottom: .35rem; }
.feature p { font-size: .93rem; margin: 0; color: var(--gray-500); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: s; }
.step {
  position: relative; padding: 2rem 1.6rem; border-radius: var(--radius);
  background: rgba(255,255,255,.04); border: 1px solid rgba(195,201,209,.18);
  transition: background .3s, border-color .3s;
}
.step:hover { background: rgba(255,255,255,.08); border-color: rgba(127,178,255,.5); }
.step__n {
  font-family: var(--font-head); font-size: 2.4rem; font-weight: 800; line-height: 1;
  background: var(--grad-silver); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h4 { color: #fff; margin: 1rem 0 .4rem; font-size: 1.15rem; }
.step p { margin: 0; font-size: .94rem; color: var(--silver-300); }

/* FAQ */
.faq { display: grid; gap: 1rem; }
.faq details { background: #fff; border: 1px solid var(--silver-200); border-radius: 14px; padding: 0 1.4rem; transition: box-shadow .3s; }
.faq details[open] { box-shadow: var(--shadow); border-color: var(--silver-300); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.2rem 0; font-family: var(--font-head); font-weight: 700;
  color: var(--navy-800); display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--silver-100); color: var(--blue-600); font-size: 1.2rem; transition: transform .3s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--blue-600); color: #fff; }
.faq details p { padding-bottom: 1.2rem; margin: 0; color: var(--gray-500); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact__info h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 800; }
.contact__info > p { font-size: 1.05rem; margin-bottom: 2rem; }
.contact__item {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; margin-bottom: 1rem;
  background: #fff; border-radius: 14px; border: 1px solid var(--silver-200); transition: .3s;
}
a.contact__item:hover { transform: translateX(6px); box-shadow: var(--shadow); border-color: var(--blue-300); }
.contact__icon {
  flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad-blue); color: #fff;
}
.contact__icon svg { width: 22px; height: 22px; fill: currentColor; }
.contact__icon--wa { background: linear-gradient(135deg, #25d366, #128c7e); }
.contact__item small { display: block; color: var(--gray-500); font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; }
.contact__item b { font-family: var(--font-head); color: var(--navy-800); font-size: 1.08rem; }

.form {
  background: #fff; border-radius: 20px; padding: 2.4rem; box-shadow: var(--shadow-lg);
  border-top: 5px solid var(--blue-600);
}
.form h3 { font-size: 1.5rem; margin-bottom: .2rem; }
.form__hint { font-size: .88rem; color: var(--gray-500); margin-bottom: 1.6rem; }
.form label { display: block; margin-bottom: 1.1rem; }
.form label span { display: block; font-weight: 600; font-size: .88rem; color: var(--gray-700); margin-bottom: .4rem; }
.form input, .form select, .form textarea {
  width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--silver-200); border-radius: 10px;
  font: inherit; color: var(--gray-900); background: var(--silver-50); transition: border-color .2s, box-shadow .2s, background .2s;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--blue-500); background: #fff; box-shadow: 0 0 0 4px rgba(47,116,216,.15);
}
.form textarea { resize: vertical; }
.form .is-invalid { border-color: #d64545; }
.form__error { color: #d64545; font-size: .88rem; margin: .8rem 0 0; min-height: 1.2em; }

/* Footer */
.footer { background: var(--navy-900); color: var(--silver-300); padding: 4rem 0 0; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; }
.footer__desc { margin-top: 1rem; max-width: 340px; font-size: .95rem; }
.footer h5 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; font-size: .95rem; }
.footer a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(195,201,209,.15); padding: 1.4rem 0; font-size: .85rem; text-align: center; }
.footer__bottom p { margin: 0; }

/* WhatsApp float */
.wa-float {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 60; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; box-shadow: 0 10px 25px rgba(37,211,102,.45);
  transition: transform .25s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .dash__chart span, .floating-card { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__grid, .split, .contact { grid-template-columns: 1fr; gap: 3rem; }
  .hero__visual { max-width: 520px; margin: 0 auto; width: 100%; }
  .cards { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .audience, .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; position: relative; z-index: 2; }
  .nav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 1.8rem;
    background: rgba(6, 26, 58, .98); font-size: 1.2rem;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .nav a:not(.btn) { font-size: 1.25rem; }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .section { padding: 4.5rem 0; }
  .hero { padding-bottom: 5rem; }
  .audience, .steps, .features { grid-template-columns: 1fr; }
  .dash { transform: none; padding: 1.1rem; }
  .floating-card { left: .5rem; bottom: -2rem; }
  .form { padding: 1.6rem; }
  .hero__actions .btn { width: 100%; }
}
