/* =========================================================
   LexMarcorp · hoja de estilos única
   Sin dependencias externas, sin fuentes descargadas.
   ========================================================= */

:root {
  --navy: #0c2340;
  --navy-soft: #14304f;
  --ink: #16232f;
  --muted: #5c6b78;
  --gold: #b08d4f;
  --gold-soft: #f3ecdd;
  --paper: #ffffff;
  --sand: #f7f4ee;
  --line: #e4dfd4;
  --wa: #1fa855;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(12, 35, 64, .08);
  --wrap: 1120px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); margin-top: 0; }
h3 { font-size: 1.16rem; }

p { margin: 0 0 1em; }
a { color: var(--navy); text-decoration-color: rgba(12, 35, 64, .3); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--gold); }
img, svg { max-width: 100%; height: auto; }
hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.wrap.narrow { max-width: 780px; }
.center { text-align: center; }
.small { font-size: .9rem; }
.muted { color: var(--muted); }
.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 {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; min-height: 74px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--navy); }
.brand-mark { display: inline-flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: Georgia, serif; font-size: 1.18rem; letter-spacing: .01em; }
.brand-text small { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }

.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav ul { display: flex; align-items: center; gap: 20px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  text-decoration: none; color: var(--ink);
  font-size: .95rem; font-weight: 500; padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--gold); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--gold); color: var(--navy); font-weight: 600; }

.nav-toggle { display: none; }

/* ------------------------------------------------------- botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: 10px; border: 1px solid transparent;
  font-size: .97rem; font-weight: 600; font-family: inherit; cursor: pointer;
  text-decoration: none; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(12, 35, 64, .14); }
.btn-sm { padding: 9px 15px; font-size: .88rem; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-soft); }
.btn-gold { background: var(--gold); color: #1c1305; }
.btn-gold:hover { background: #a07f45; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #178f47; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .1); }

/* ------------------------------------------------------- hero */
.hero {
  position: relative;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(176, 141, 79, .28), transparent 65%),
    linear-gradient(180deg, #0c2340 0%, #0a1d35 100%);
  color: #fff;
  padding: 86px 0 0;
  overflow: hidden;
}
.hero h1 { color: #fff; max-width: 20ch; }
.hero-lead { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: #d8e1ea; max-width: 62ch; margin-bottom: 28px; }
.kicker {
  text-transform: uppercase; letter-spacing: .16em; font-size: .74rem;
  font-weight: 700; color: var(--gold); margin: 0 0 12px;
}
.kicker-light { color: #d9b877; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.trust {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0; list-style: none; margin: 0; padding: 0;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.trust li {
  padding: 18px 18px 22px; font-size: .88rem; color: #cfdae5;
  border-left: 1px solid rgba(255, 255, 255, .16);
}
.trust li:first-child { border-left: 0; padding-left: 0; }
.trust li::before { content: ""; display: block; width: 26px; height: 2px; background: var(--gold); margin-bottom: 10px; }

/* ------------------------------------------------------- banner de página */
.banner {
  background:
    radial-gradient(700px 320px at 90% 0%, rgba(176, 141, 79, .22), transparent 65%),
    linear-gradient(180deg, #0c2340 0%, #0a1d35 100%);
  color: #fff; padding: 62px 0 56px;
}
.banner h1 { color: #fff; max-width: 24ch; }
.banner .hero-cta { margin-top: 26px; margin-bottom: 0; }
.crumbs { font-size: .8rem; color: #93a7ba; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.crumbs a { color: #c3d1de; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span[aria-current] { color: var(--gold); }
.related-title { margin-top: 42px; font-size: 1.2rem; }
.related { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.related a { font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(176, 141, 79, .5); padding-bottom: 2px; }
.related a:hover { border-bottom-color: var(--gold); }
.banner-lead { color: #d3dde8; max-width: 66ch; margin: 6px 0 0; font-size: 1.05rem; }

/* ------------------------------------------------------- secciones */
.section { padding: 76px 0; }
.section.band { background: var(--sand); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lead { font-size: 1.05rem; color: #33424f; max-width: 68ch; margin-bottom: 30px; }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-2col { display: grid; grid-template-columns: 1.35fr .85fr; gap: 44px; align-items: start; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; display: flex; flex-direction: column;
  transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.card:hover { box-shadow: var(--shadow); border-color: #d8d1c2; }
.card h2, .card h3 { margin-bottom: .35em; }
.card p:last-of-type { margin-bottom: 16px; }
.card-service { scroll-margin-top: 100px; }
.card-service h2 { font-size: 1.3rem; }
.link-more {
  margin-top: auto; font-weight: 600; font-size: .9rem; text-decoration: none;
  color: var(--navy); border-bottom: 1px solid rgba(176, 141, 79, .5);
  align-self: flex-start; padding-bottom: 2px;
}
.link-more:hover { border-bottom-color: var(--gold); }

.tool-tag {
  display: inline-block; font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: #7a5f2c; background: var(--gold-soft);
  padding: 4px 9px; border-radius: 999px; margin-bottom: 12px; align-self: flex-start;
}
.tools-grid { margin-top: 6px; }
.card-tool { text-decoration: none; color: inherit; }
.card-tool h3 { color: var(--navy); }
.card-tool p { font-size: .93rem; color: #3c4a56; }
.card-tool-lg { background: #fff; }
.card-tool-lg h2 { font-size: 1.35rem; }
.tools-list { margin-top: 8px; }

.ticks { list-style: none; margin: 0 0 18px; padding: 0; }
.ticks li { position: relative; padding-left: 24px; margin-bottom: 8px; font-size: .95rem; color: #33424f; }
.ticks li::before {
  content: ""; position: absolute; left: 3px; top: .55em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
}

.steps { counter-reset: none; }
.step { padding: 4px 0; }
.step-num {
  display: block; font-family: Georgia, serif; font-size: 1.6rem;
  color: var(--gold); margin-bottom: 6px;
}
.step h3 { font-size: 1.05rem; margin-bottom: .2em; }
.step p { font-size: .93rem; color: #44525e; margin: 0; }

.quote {
  margin: 0; background: #fff; border: 1px solid var(--line);
  border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 26px;
}
.quote p { font-family: Georgia, serif; font-size: 1.08rem; font-style: italic; color: #22313d; }
.quote footer { font-size: .86rem; color: var(--muted); }

.team { margin-top: 10px; }
.team-single { margin-top: 10px; }
.team-single .person { max-width: 720px; }
.person { display: flex; gap: 18px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.avatar {
  flex: 0 0 62px; width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: var(--gold);
  font-family: Georgia, serif; font-size: 1.25rem; letter-spacing: .02em;
}
.person h3 { font-size: 1.08rem; margin-bottom: .1em; }
.person .role { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); font-weight: 700; margin-bottom: .5em; }
.person p { font-size: .93rem; margin: 0; color: #44525e; }

.mini { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.mini h3 { font-size: 1rem; margin-bottom: .2em; }
.mini p { margin: 0; font-size: .93rem; color: #44525e; }

.faq { display: grid; gap: 12px; margin-top: 22px; max-width: 820px; }
details {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 4px 20px;
}
details summary {
  cursor: pointer; padding: 14px 0; font-weight: 600; color: var(--navy);
  list-style: none; display: flex; justify-content: space-between; gap: 16px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--gold); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { font-size: .96rem; color: #3c4a56; margin-top: 0; }

/* ------------------------------------------------------- honorarios */
.uma-box {
  background: var(--navy); color: #fff; border-radius: var(--radius);
  padding: 26px 24px; position: sticky; top: 96px;
}
.uma-box h2, .uma-box h3 { color: #fff; }
.uma-box .kicker { color: #d9b877; margin-bottom: 4px; }
.uma-value { font-family: Georgia, serif; font-size: 2.6rem; line-height: 1; margin: 0 0 6px; color: #fff; }
.uma-value span { display: block; font-family: system-ui, sans-serif; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: #c9d5e1; margin-top: 8px; }
.uma-box .muted { color: #b9c7d5; }
.uma-box hr { border-top-color: rgba(255, 255, 255, .18); }
.uma-label { display: block; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: #c9d5e1; margin-bottom: 8px; }
.uma-input { display: flex; align-items: center; gap: 10px; }
.uma-input input {
  flex: 1; padding: 11px 12px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .08); color: #fff; font-size: 1rem; font-family: inherit;
}
.uma-input span { font-size: .85rem; color: #c9d5e1; }
.uma-result { font-size: 1.15rem; font-weight: 600; color: var(--gold); margin: 12px 0 16px; min-height: 1.4em; }

.tarifas { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: .95rem; }
.tarifas caption { caption-side: bottom; text-align: left; font-size: .85rem; color: var(--muted); padding-top: 10px; }
.tarifas th, .tarifas td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.tarifas thead th { background: var(--navy); color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.tarifas tbody th { font-weight: 600; color: var(--navy); width: 42%; }
.tarifas tr:last-child th, .tarifas tr:last-child td { border-bottom: 0; }

.numbered { counter-reset: n; list-style: none; padding: 0; margin: 0 0 24px; }
.numbered li { counter-increment: n; position: relative; padding-left: 44px; margin-bottom: 14px; }
.numbered li::before {
  content: counter(n); position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold-soft); color: #6f5526; font-weight: 700; font-size: .85rem;
}
.notice {
  background: #fffaf0; border: 1px solid #eadfc6; border-left: 4px solid var(--gold);
  border-radius: 8px; padding: 14px 18px; font-size: .92rem; color: #4a3f2a;
}

.embed summary { font-weight: 600; }
.embed-frame { position: relative; width: 100%; height: 1400px; margin: 14px 0 6px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.embed-frame iframe { width: 100%; height: 100%; border: 0; }

/* ------------------------------------------------------- contacto */
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 10px; font-size: 1rem; }
.contact-list svg { color: var(--gold); flex: 0 0 18px; }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; }
.form h2 { font-size: 1.4rem; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: #2b3945; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid #cfc9bc; border-radius: 9px;
  font-family: inherit; font-size: 1rem; color: var(--ink); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); outline: 2px solid rgba(176, 141, 79, .35); outline-offset: 0; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #b3261e; }
.consent { font-size: .85rem; color: var(--muted); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.form-status { margin: 12px 0 0; color: var(--navy); font-weight: 600; min-height: 1.2em; }

/* ------------------------------------------------------- CTA final */
.cta-final {
  background:
    radial-gradient(700px 300px at 15% 110%, rgba(176, 141, 79, .22), transparent 65%),
    linear-gradient(180deg, #0c2340 0%, #091a30 100%);
  color: #fff; padding: 70px 0;
}
.cta-final h2 { color: #fff; }
.cta-final p { color: #cdd9e4; max-width: 54ch; }
.cta-inner { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; }
.cta-data { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: .95rem; color: #dbe4ec; }
.cta-data li { display: flex; gap: 10px; align-items: flex-start; }
.cta-data svg { color: var(--gold); flex: 0 0 16px; margin-top: 3px; }
.cta-data a { color: #fff; }

/* ------------------------------------------------------- footer */
.site-footer { background: #071528; color: #b9c7d5; padding: 56px 0 26px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr 1fr .8fr; gap: 32px; }
.site-footer h3 { color: #fff; font-family: system-ui, sans-serif; font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer li { display: flex; gap: 9px; align-items: flex-start; }
.site-footer li svg { color: var(--gold); flex: 0 0 16px; margin-top: 3px; }
.site-footer a { color: #d5dee6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--gold); }
.brand-light { color: #fff; }
.brand-light .brand-text small { color: #8fa1b3; }
.footer-note { margin-top: 14px; color: #93a4b5; font-size: .88rem; max-width: 34ch; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 40px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .82rem; color: #8295a7; }
.footer-bottom p { margin: 0; }

/* ------------------------------------------------------- flotante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--wa); color: #fff;
  box-shadow: 0 10px 24px rgba(12, 35, 64, .28);
  transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.06); }

/* ------------------------------------------------------- legal */
.legal h2 { font-size: 1.12rem; margin-top: 30px; margin-bottom: .3em; }
.legal p { font-size: .96rem; color: #33424f; }

/* ------------------------------------------------------- responsive */
@media (max-width: 1020px) {
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust li:nth-child(3) { border-left: 0; padding-left: 0; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2col { grid-template-columns: 1fr; gap: 34px; }
  .cta-inner { grid-template-columns: 1fr; gap: 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .uma-box { position: static; }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 10px;
    border: 1px solid var(--line); background: #fff; cursor: pointer;
  }
  .nav-toggle-bars { position: relative; width: 20px; height: 2px; background: var(--navy); display: block; }
  .nav-toggle-bars::before, .nav-toggle-bars::after {
    content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--navy);
  }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }

  .site-nav {
    position: absolute; left: 0; right: 0; top: 74px;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 22px 22px; box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav a { display: block; padding: 13px 0; border-bottom: 0; }
  .site-nav .btn { margin-top: 14px; }

  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .steps.grid-4, .grid.grid-4 { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero { padding-top: 56px; }
  .trust { grid-template-columns: 1fr; }
  .trust li { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
  .trust li:first-child { border-top: 0; }
  .person { flex-direction: row; }
  .footer-grid { grid-template-columns: 1fr; }
  .embed-frame { height: 1000px; }
  .tarifas tbody th { width: auto; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .form-actions .btn { width: 100%; }
  .hero-cta .btn { width: 100%; }
  .wa-float { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .wa-float, .hero-cta, .form-actions { display: none !important; }
  .hero, .banner, .cta-final { background: #fff !important; color: #000 !important; }
  .hero h1, .banner h1, .cta-final h2 { color: #000 !important; }
}
