/* ==========================================================
   La Consultoría de la Pyme — estilos
   ========================================================== */
:root {
  --navy: #022166;
  --navy-900: #011443;
  --navy-700: #0b3590;
  --sky: #e8eefb;
  --accent: #4f8cff;
  --ink: #0f172a;
  --muted: #5b6477;
  --line: #dbe2f0;
  --white: #ffffff;
  --bg: #f7f9fd;

  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(2, 33, 102, 0.25);
  --container: 1180px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; line-height: 1.15; margin: 0; color: var(--navy-900); text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); letter-spacing: -0.015em; }
h3 { font-size: 1.2rem; }
p { margin: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--navy-700);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }

.section { padding: 96px 0; }
.section--alt { background: var(--bg); }
.section-head { max-width: 680px; margin-bottom: 48px; display: grid; gap: 14px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
  font-family: inherit; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 3px;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--navy-700); }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--sky); }
.btn--ghost-light { border-color: rgba(255,255,255,.5); color: var(--white); }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.btn--sm { padding: 9px 16px; font-size: 0.88rem; }

/* ---------- Topbar ---------- */
.topbar { background: var(--navy-900); color: #c9d6f5; font-size: 0.85rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { text-decoration: none; color: var(--white); font-weight: 500; }
.topbar a:hover { text-decoration: underline; }
.topbar__info { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar__contact { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(2,33,102,.5); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 46px; height: 46px; border-radius: 10px; }
.brand__text { display: grid; line-height: 1.1; }
.brand__name { font-family: var(--font-serif); font-weight: 600; font-size: 1.1rem; color: var(--navy-900); }
.brand__tag { font-size: 0.75rem; color: var(--muted); }

.nav { display: flex; align-items: center; justify-content: flex-end; gap: 28px; flex: 1; min-width: 0; }
.nav__list { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav__list a { text-decoration: none; font-weight: 500; font-size: 0.95rem; color: var(--ink); position: relative; padding: 6px 0; white-space: nowrap; }
.brand__name { white-space: nowrap; }
.nav__list a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--navy); transition: width .2s; }
.nav__list a:hover::after { width: 100%; }
.nav__actions { display: flex; gap: 10px; }

.header__right { display: flex; align-items: center; gap: 10px; flex: none; }
.btn--access { white-space: nowrap; flex: none; }
.brand { min-width: 0; }
.brand__text { min-width: 0; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--white); cursor: pointer; align-items: center; justify-content: center; color: var(--navy);
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 400px at 90% -10%, rgba(79,140,255,.18), transparent 60%),
    linear-gradient(180deg, var(--white), var(--bg));
  padding: 80px 0 96px;
}
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero__copy { display: grid; gap: 24px; }
.hero__lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__checks { display: flex; gap: 22px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; font-weight: 500; }
.hero__checks li { display: inline-flex; align-items: center; gap: 8px; }
.hero__checks svg { width: 20px; height: 20px; color: var(--navy-700); flex: none; }

.hero__card {
  background: var(--navy); color: var(--white); border-radius: 24px; padding: 36px;
  box-shadow: 0 30px 60px -25px rgba(2,33,102,.6); position: relative; overflow: hidden;
}
.hero__card::after {
  content: "LC"; position: absolute; right: -10px; bottom: -60px; font-family: var(--font-serif);
  font-style: italic; font-size: 14rem; line-height: 1; color: rgba(255,255,255,.06); pointer-events: none;
}
.hero__card h2 { color: var(--white); font-size: 1.6rem; margin-bottom: 8px; }
.hero__card > p { color: #c9d6f5; margin-bottom: 24px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; position: relative; z-index: 1; }
.stat { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 18px; }
.stat strong { display: block; font-family: var(--font-serif); font-size: 2rem; line-height: 1; margin-bottom: 6px; }
.stat span { font-size: 0.88rem; color: #c9d6f5; }
.hero__card .btn { margin-top: 22px; width: 100%; position: relative; z-index: 1; }

/* ---------- Servicios ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  display: grid; gap: 10px; align-content: start; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.service:hover { border-color: var(--navy); box-shadow: var(--shadow); transform: translateY(-3px); }
.icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--sky); color: var(--navy);
  display: grid; place-items: center; margin-bottom: 6px;
}
.icon svg { width: 24px; height: 24px; }
.service p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Ventajas ---------- */
.why { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.why__copy { display: grid; gap: 18px; }
.why__copy p { color: var(--muted); font-size: 1.05rem; }
.why__list { display: grid; gap: 16px; }
.why__item { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 24px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.why__item p { color: var(--muted); margin-top: 4px; }

/* ---------- Acceso clientes (hero) ---------- */
.client-strip {
  display: flex; align-items: center; gap: 14px; max-width: 520px;
  padding: 14px 18px; border-radius: 14px; text-decoration: none;
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: border-color .2s, transform .2s;
}
.client-strip:hover { border-color: var(--navy); transform: translateY(-1px); }
.client-strip__icon { width: 40px; height: 40px; border-radius: 10px; background: var(--navy); color: var(--white); display: grid; place-items: center; flex: none; }
.client-strip__icon svg { width: 20px; height: 20px; }
.client-strip__text { flex: 1; color: var(--muted); font-size: 0.95rem; }
.client-strip__text strong { color: var(--navy-900); margin-right: 4px; }
.client-strip__arrow { width: 20px; height: 20px; color: var(--navy); flex: none; }

/* ---------- Área de clientes ---------- */
.section--tight { padding: 0 0 96px; }
.client-area {
  background: var(--navy); color: var(--white); border-radius: 24px; padding: 40px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.client-area__copy { display: grid; gap: 10px; max-width: 620px; }
.client-area h2 { color: var(--white); font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.client-area .eyebrow { color: #9fbdff; }
.client-area p { color: #c9d6f5; font-size: 1.05rem; }
.btn--lg { padding: 16px 30px; font-size: 1.05rem; }

/* ---------- Contacto (lista) ---------- */
.cta__contact { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; }
.cta__contact li { display: flex; align-items: center; gap: 12px; }
.cta__contact svg { width: 20px; height: 20px; color: #9fbdff; flex: none; }
.cta__contact a { color: var(--white); text-decoration: none; font-weight: 500; overflow-wrap: anywhere; }
.cta__contact a:hover { text-decoration: underline; }

/* ---------- Dónde estamos ---------- */
.location { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: stretch; }
.location__info { display: grid; gap: 22px; align-content: start; }
.location__list { font-style: normal; display: grid; gap: 14px; }
.location__item { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.location__item .icon { margin-bottom: 0; }
.location__item h3 { font-family: var(--font-sans); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 4px; }
.location__item p { color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.location__item a { color: var(--navy); text-decoration: none; }
.location__item a:hover { text-decoration: underline; }
.location__map { align-self: center; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: 380px; background: var(--sky); box-shadow: var(--shadow); }
.location__map iframe { width: 100%; height: 100%; border: 0; display: block; }
.faq details p a { color: var(--navy); }

/* ---------- Pasos ---------- */
.steps-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.steps-wrap .section-head { position: sticky; top: 110px; margin-bottom: 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 20px; padding: 24px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.step__num { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 600; color: var(--navy); width: 56px; height: 56px; border-radius: 50%; background: var(--sky); display: grid; place-items: center; }
.step p { color: var(--muted); margin-top: 4px; }
.phone-link { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; color: var(--navy); text-decoration: none; }
.phone-link svg { width: 24px; height: 24px; }
.phone-link:hover { text-decoration: underline; }

/* ---------- Testimonios ---------- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.testimonial { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.stars { display: flex; gap: 2px; color: #f5b301; }
.stars svg { width: 18px; height: 18px; }
.testimonial blockquote { margin: 0; font-size: 1.02rem; color: var(--ink); flex: 1; }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: var(--white); display: grid; place-items: center; font-weight: 600; font-family: var(--font-serif); }
.testimonial figcaption strong { display: block; }
.testimonial figcaption span { font-size: 0.85rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.faq-wrap .section-head { margin-bottom: 0; }
.faq { display: grid; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .2s; }
.faq details[open] { border-color: var(--navy); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 22px; font-weight: 600; display: flex;
  justify-content: space-between; align-items: center; gap: 16px; color: var(--navy-900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.5rem; line-height: 1; color: var(--navy); transition: transform .2s; flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--muted); }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(135deg, var(--navy-900), var(--navy) 55%, var(--navy-700)); color: var(--white); padding: 88px 0; }
.cta__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.cta h2 { color: var(--white); }
.cta__copy { display: grid; gap: 16px; }
.cta__copy p { color: #c9d6f5; font-size: 1.05rem; }
.cta__pill { display: inline-flex; align-items: center; gap: 8px; width: fit-content; background: rgba(255,255,255,.12); padding: 6px 14px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; }
.cta__pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4ade80; }

.form { background: var(--white); color: var(--ink); border-radius: 20px; padding: 28px; display: grid; gap: 14px; box-shadow: 0 30px 60px -25px rgba(0,0,0,.5); }
.form h3 { color: var(--navy-900); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.85rem; font-weight: 600; }
.field input, .field select, .field textarea {
  font: inherit; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--navy); outline-offset: 1px; background: var(--white); }
.field textarea { resize: vertical; min-height: 90px; }
.form__note { font-size: 0.8rem; color: var(--muted); }
.form__note a { color: var(--navy); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: #c9d6f5; padding: 64px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer .brand__name { color: var(--white); }
.footer .brand__tag { color: #9fb0d6; }
.footer__about p { margin-top: 16px; max-width: 320px; font-size: 0.93rem; }
.footer h3 { font-family: var(--font-sans); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--white); margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.93rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: 0.85rem; }
.footer__legal { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Animaciones ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .service { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .nav__list { gap: 18px; }
}

@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; background: var(--white); flex-direction: column; align-items: stretch;
    gap: 16px; padding: 20px; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(2,33,102,.35);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; gap: 4px; }
  .nav__list a { display: block; padding: 12px 4px; font-size: 1.05rem; }
  .nav__list a::after { display: none; }
  .nav__actions { flex-direction: column; }
  .nav__actions .btn { width: 100%; }

  .hero__grid, .why, .steps-wrap, .faq-wrap, .cta__grid, .location { grid-template-columns: 1fr; gap: 40px; }
  .steps-wrap .section-head { position: static; }
  .testimonials { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .client-area { padding: 32px 28px; }
}

@media (max-width: 600px) {
  .section { padding: 72px 0; }
  .hero { padding: 48px 0 72px; }
  .services { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .section--tight { padding: 0 0 72px; }
  .topbar__info, .topbar__contact a[href^="mailto"] { display: none; }
  .topbar .container { justify-content: center; }
  .brand__tag { display: none; }
  .hero__ctas .btn { flex: 1; }
  .client-area .btn { width: 100%; }
  .location__map { height: 300px; }
  .header__inner { gap: 10px; height: 68px; }
  .nav { inset: 68px 0 auto 0; }
  .brand { gap: 8px; }
  .brand img { width: 38px; height: 38px; }
  .brand__name { font-size: 0.95rem; white-space: normal; line-height: 1.1; }
  .btn--access { padding: 9px 12px; font-size: 0.82rem; gap: 6px; }
  .nav-toggle { width: 40px; height: 40px; }
}

@media (max-width: 400px) {
  .brand__text { display: none; }
}

/* Desktop header: keep brand, menu and buttons from ever overlapping */
@media (min-width: 1181px) {
  .header__inner { gap: 32px; }
  .brand { flex: none; }
  .nav__list { gap: 22px; }
  .nav__actions { display: none; }
}
