/* ============================================================
   Lexmind · Estudio Psicojurídico
   Hoja de estilos única. Sin dependencias ni build.
   Paleta y tipografía tomadas del manual de marca.
   ============================================================ */

:root {
  /* Paleta de marca */
  --navy:        #243859;
  --navy-deep:   #1B2A42;
  --navy-soft:   #EEF1F6;
  --blue:        #9FB1CE;
  --rose:        #D4BDCB;
  --rose-soft:   #F7F1F4;
  --gray:        #E4E5E7;

  /* Derivados de interfaz */
  --bg:          #FFFFFF;
  --bg-alt:      #F5F6F8;
  --surface:     #FFFFFF;
  --ink:         #1A1F2B;
  --ink-soft:    #5A6479;
  --ink-onNavy:  #D9DEE8;
  --line:        #E4E5E7;

  /* Tipografía */
  --sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Métrica */
  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 1px 2px rgba(26, 31, 43, .04), 0 10px 30px rgba(26, 31, 43, .06);
  --shadow-lg: 0 2px 4px rgba(26, 31, 43, .05), 0 22px 50px rgba(26, 31, 43, .10);
  --max:       1120px;
  --header-h:  76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.2; letter-spacing: -.015em; margin: 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }
button { font: inherit; }

:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
.section-ink :focus-visible { outline-color: var(--blue); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 780px; }

.section { padding: 92px 0; }
.section-alt { background: var(--bg-alt); }
.section-ink {
  background: var(--navy);
  color: var(--ink-onNavy);
  background-image: url("assets/patron-light.png");
  background-size: 300px 260px;
}
.section-ink h2, .section-ink h3, .section-ink strong { color: #fff; }

.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-soft); margin: 0 0 14px;
}
.section-ink .eyebrow { color: var(--blue); }
.eyebrow::before {
  content: ""; display: inline-block; width: 22px; height: 2px;
  background: var(--rose); vertical-align: middle; margin-right: 10px; margin-bottom: 3px;
}

.section h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.section-intro { font-size: 1.04rem; color: var(--ink-soft); margin-top: 16px; }
.section-ink .section-intro { color: var(--ink-onNavy); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: .82rem 1.5rem; border: 1.5px solid transparent; border-radius: 999px;
  font-size: .93rem; font-weight: 600; letter-spacing: .01em; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 17px; height: 17px; flex: none; }

.btn-primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-deep); border-color: var(--navy-deep); }

.btn-wa { background: #1FA855; color: #fff; border-color: #1FA855; }
.btn-wa:hover { background: #179047; border-color: #179047; }

.btn-outline { background: transparent; color: var(--navy); border-color: var(--gray); }
.btn-outline:hover { border-color: var(--navy); background: var(--navy-soft); }

.section-ink .btn-outline,
.hero .btn-outline,
.cta .btn-outline { color: #fff; border-color: rgba(255,255,255,.35); }
.section-ink .btn-outline:hover,
.hero .btn-outline:hover,
.cta .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); }

.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--gray); border-color: var(--gray); }

.btn-block { width: 100%; }
.btn-sm { padding: .62rem 1.15rem; font-size: .86rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 40px; width: auto; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  color: var(--ink-soft); text-decoration: none; font-size: .92rem; font-weight: 500;
  transition: color .16s ease;
}
.nav a:hover { color: var(--navy); }
.header-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--line);
  border-radius: 10px; padding: 8px 10px; cursor: pointer; color: var(--navy);
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy);
  background-image: url("assets/patron-light.png");
  background-size: 300px 260px;
  color: var(--ink-onNavy);
  padding: 104px 0 96px;
  overflow: hidden;
}
/* Sin resplandor general: caía arriba a la derecha, justo sobre la foto, y al
   sumarse con el halo de las figuras el conjunto se veía descentrado. La única
   fuente de luz del hero es ahora el halo de .hero-figure. */
.hero .wrap { position: relative; z-index: 1; }
.hero-grid {
  display: grid; grid-template-columns: 1.14fr .86fr; gap: 48px; align-items: center;
}
.hero-inner { max-width: 620px; }
/* La foto va recortada sobre el azul, sin marco ni halo detrás. Lo único que la
   separa del fondo es la sombra proyectada, que sigue el contorno de las figuras
   porque `drop-shadow` respeta la transparencia del PNG. */
.hero-figure { margin: 0; }
.hero-figure img {
  width: 100%; height: auto;
  filter: drop-shadow(0 16px 34px rgba(8, 14, 26, .55));
  /* la base de los recortes es un corte recto: se desvanece para que no se note */
  -webkit-mask-image: linear-gradient(to bottom, #000 76%, rgba(0,0,0,.45) 91%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 76%, rgba(0,0,0,.45) 91%, transparent 100%);
}
.hero h1 {
  color: #fff;
  font-size: clamp(1.95rem, 3.7vw, 2.7rem);
  letter-spacing: -.025em;
  margin-bottom: 22px;
}
.hero h1 em { font-style: normal; color: var(--blue); }
.hero-lead { font-size: 1.1rem; max-width: 620px; margin-bottom: 34px; }
.hero .btn-row { margin-bottom: 30px; }
.hero-note { font-size: .87rem; color: var(--blue); margin: 0; }

/* Franja de confianza */
.trust {
  border-top: 1px solid rgba(255,255,255,.14);
  margin-top: 54px; padding-top: 30px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
.trust li { font-size: .9rem; line-height: 1.55; }
.trust strong { display: block; color: #fff; font-weight: 600; font-size: .95rem; margin-bottom: 3px; }

/* ---------- Grid de tarjetas ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.card-icon {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 20px;
  display: grid; place-items: center; background: var(--navy-soft); color: var(--navy);
}
.card-icon svg { width: 21px; height: 21px; }
.card h3 { font-size: 1.1rem; margin-bottom: 12px; }
.card p { color: var(--ink-soft); font-size: .95rem; margin-bottom: 16px; }
.card-list { margin-top: 2px; }
.card-list li {
  position: relative; padding-left: 20px; font-size: .89rem; color: var(--ink-soft);
  margin-bottom: 7px; line-height: 1.5;
}
.card-list li::before {
  content: ""; position: absolute; left: 0; top: .58em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--rose);
}

/* ---------- Proceso ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: step; }
.steps li { position: relative; padding-top: 26px; }
.steps li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; color: var(--blue);
}
.steps li::after {
  content: ""; position: absolute; top: 8px; left: 34px; right: -13px; height: 1px;
  background: rgba(255,255,255,.16);
}
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1rem; margin-bottom: 8px; }
.steps p { font-size: .9rem; margin: 0; }

/* ---------- Equipo ---------- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.member {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease;
}
.member:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.monogram {
  width: 60px; height: 60px; border-radius: 50%; margin-bottom: 20px;
  display: grid; place-items: center;
  font-size: 1.1rem; font-weight: 600; letter-spacing: .02em;
  background: var(--navy); color: #fff;
}
.member:nth-child(2) .monogram { background: var(--rose); color: var(--navy); }
.member:nth-child(3) .monogram { background: var(--blue); color: var(--navy); }
.member h3 { font-size: 1.12rem; margin-bottom: 4px; }
.member-role {
  font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 16px;
}
.member p { font-size: .93rem; color: var(--ink-soft); }
.member-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }
.member-tags li {
  font-size: .77rem; font-weight: 500; color: var(--navy);
  background: var(--navy-soft); border-radius: 999px; padding: .3rem .7rem;
}
.member-actions { margin-top: auto; display: grid; gap: 9px; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: start; }

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.field .hint { font-size: .78rem; font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: .78rem .95rem;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A6479' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 17px; padding-right: 42px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(36,56,89,.10);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.consent { display: flex; gap: 11px; align-items: flex-start; font-size: .84rem; color: var(--ink-soft); }
.consent input { width: 17px; height: 17px; margin-top: 3px; flex: none; accent-color: var(--navy); }

.form-status { font-size: .9rem; margin: 0; padding: .8rem 1rem; border-radius: var(--radius-sm); display: none; }
.form-status.is-visible { display: block; }
.form-status.ok { background: var(--navy-soft); color: var(--navy); }
.form-status.err { background: var(--rose-soft); color: #8A3B57; }

.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.contact-aside {
  background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px 28px;
}
.contact-aside h3 { font-size: 1.05rem; margin-bottom: 6px; }
.contact-aside > p { font-size: .92rem; color: var(--ink-soft); }
.contact-list { margin: 22px 0 24px; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 13px; align-items: flex-start; }
.contact-list svg { width: 18px; height: 18px; color: var(--navy); flex: none; margin-top: 3px; }
.contact-list .label {
  display: block; font-size: .74rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 1px;
}
.contact-list a, .contact-list span.value { font-size: .95rem; font-weight: 500; color: var(--ink); text-decoration: none; }
.contact-list a:hover { color: var(--navy); text-decoration: underline; }

/* ---------- CTA final ---------- */
.cta { background: var(--navy); color: var(--ink-onNavy); padding: 78px 0; text-align: center; }
.cta h2 { color: #fff; font-size: clamp(1.6rem, 3.2vw, 2.1rem); margin-bottom: 16px; }
.cta p { max-width: 560px; margin: 0 auto 30px; }
.cta .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(217,222,232,.75); padding: 54px 0 34px; font-size: .88rem; }
.footer-top { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; }
.footer-brand img { height: 46px; width: auto; margin-bottom: 14px; }
.footer-brand p { max-width: 330px; margin: 0; }
.footer-links { display: flex; gap: 46px; flex-wrap: wrap; }
.footer-links h4 { color: #fff; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: rgba(217,222,232,.75); text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 42px; padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  font-size: .8rem; color: rgba(217,222,232,.6);
}

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: #1FA855; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 6px 22px rgba(31,168,85,.38);
  transition: transform .18s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-inner { max-width: 100%; }
  .hero-figure { max-width: 560px; }
  .cards, .team { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 30px 26px; }
  .steps li::after { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 68px 0; }
  .hero { padding: 76px 0 68px; }

  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px; box-shadow: var(--shadow);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav a:last-child { border-bottom: 0; }
  .nav-toggle { display: block; }
  .header-cta .btn { display: none; }
  .brand img { height: 32px; }
  .hero h1 { font-size: clamp(1.8rem, 8vw, 2.3rem); }
  .hero-lead { font-size: 1.02rem; }

  .trust { grid-template-columns: 1fr; gap: 20px; margin-top: 42px; }
  .cards, .team, .cards-2 { grid-template-columns: 1fr; }
  .team { justify-items: center; }
  .member { width: 100%; max-width: 420px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-links { gap: 32px; }
  .wa-float { right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
