/* ==========================================================
   Despacho Jurídico Virtual — Landing
   ========================================================== */

:root {
  --navy-900: #06203f;
  --navy-800: #0a2a52;
  --gold: #f0b429;
  --gold-hover: #ffc642;
  --gold-dark: #b98a12;
  --gold-ink: #8a6a10;
  --paper: #f7f4ee;
  --rule: #e2dccf;
  --ink: #16233a;
  --text-muted: #4b5563;
  --nav-text: #3c4757;

  --font-sans: Barlow, Helvetica, Arial, sans-serif;
  --font-serif: 'Libre Caslon Display', Georgia, serif;

  --container: 1240px;
  --gutter: 28px;
}

* { box-sizing: border-box; }

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

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

img { max-width: 100%; }

a {
  color: var(--navy-800);
  text-decoration: none;
  transition: color .2s, background-color .2s, border-color .2s;
}

a:hover { color: var(--gold-dark); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Tipografía compartida ---------- */

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.eyebrow--light { color: var(--gold); }

.display {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.08;
  color: var(--navy-800);
  text-wrap: balance;
}

.diamond {
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
  flex: none;
}

.diamond--outline {
  background: transparent;
  border: 1.5px solid var(--gold);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: .06em;
  border-radius: 8px;
  cursor: pointer;
}

.btn-outline-navy {
  font-size: 15px;
  color: var(--navy-800);
  padding: 11px 18px;
  border: 1.5px solid var(--navy-800);
}

.btn-outline-navy:hover { background: var(--navy-800); color: #fff; }

.btn-navy {
  font-size: 15px;
  color: #fff;
  background: var(--navy-800);
  padding: 12px 20px;
}

.btn-navy:hover { background: var(--navy-900); color: var(--gold); }

.btn-gold {
  background: var(--gold);
  color: var(--navy-900);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 17px 28px;
}

.btn-gold:hover { background: var(--gold-hover); color: var(--navy-900); }

.btn-ghost-light {
  color: #fff;
  font-size: 16px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 16px 26px;
  border: 1.5px solid rgba(255, 255, 255, .45);
}

.btn-ghost-light:hover { border-color: var(--gold); color: var(--gold); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 244, 238, .94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}

.site-nav {
  padding-top: 16px;
  padding-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.site-nav__logo { display: flex; align-items: center; }

.site-nav__logo img { display: block; height: 46px; width: auto; }

.site-nav__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 30px;
  font-size: 16px;
  font-weight: 500;
}

.site-nav__links a { color: var(--nav-text); }

.site-nav__links a:hover { color: var(--navy-800); }

.site-nav__actions { display: flex; align-items: center; gap: 12px; }

.site-nav__icon { display: block; flex: none; }

.site-nav__toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--navy-800);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--navy-800);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.site-nav__toggle svg { display: block; }

@media (max-width: 920px) {
  .site-nav__toggle { display: inline-flex; }

  .site-nav__links,
  .site-nav__actions { display: none; width: 100%; }

  .site-nav.is-open .site-nav__links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding-top: 8px;
  }

  .site-nav.is-open .site-nav__links a { padding: 10px 0; font-size: 18px; }

  .site-nav.is-open .site-nav__actions {
    display: flex;
    flex-wrap: wrap;
    padding-bottom: 8px;
  }

  .site-nav__logo img { height: 40px; }
}

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

.hero {
  background: var(--navy-900);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  top: -280px;
  right: -200px;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 180, 41, .16) 0%, rgba(240, 180, 41, 0) 70%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  padding-top: clamp(56px, 9vw, 112px);
  padding-bottom: clamp(56px, 9vw, 112px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 56px;
  align-items: center;
}

.hero__copy { display: flex; flex-direction: column; gap: 28px; }

.hero__kicker { display: flex; align-items: center; gap: 16px; }

.hero__kicker-line { width: 44px; height: 1.5px; background: var(--gold); }

.hero__title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 86px);
  line-height: 1.02;
  text-wrap: balance;
}

.hero__lead {
  margin: 0;
  max-width: 520px;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
  color: rgba(255, 255, 255, .78);
  text-wrap: pretty;
}

.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

/* Mockup laptop + teléfono */

.devices { position: relative; padding: 0 9% 7% 0; }

.laptop { position: relative; width: 100%; }

.laptop__lid {
  background: #15181d;
  border-radius: 18px 18px 0 0;
  padding: 2.4% 2.4% 3%;
  border: 1.5px solid #2a2f37;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
}

.laptop__cam { display: flex; justify-content: center; margin-bottom: 1.4%; }

.laptop__cam span { width: 7px; height: 7px; border-radius: 50%; background: #2f343c; }

.laptop__screen {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 4px;
  overflow: hidden;
  background: #0d1520;
}

.laptop__screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.laptop__base {
  position: relative;
  margin: 0 -7%;
  height: 16px;
  background: linear-gradient(#d9dce1, #a9aeb6);
  border-radius: 0 0 14px 14px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, .35);
}

.laptop__base::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 16%;
  height: 6px;
  background: #b9bdc4;
  border-radius: 0 0 8px 8px;
}

.phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 25%;
  background: #0b0d10;
  border-radius: 34px;
  padding: 2.2%;
  border: 1.5px solid #3a3f47;
  box-shadow: 0 24px 50px rgba(0, 0, 0, .45);
}

.phone__screen {
  position: relative;
  aspect-ratio: 9 / 19.5;
  border-radius: 26px;
  overflow: hidden;
  background: #0d1520;
}

.phone__screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone__notch {
  position: absolute;
  top: 3%;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 3.6%;
  background: #000;
  border-radius: 999px;
  pointer-events: none;
}

@media (max-width: 520px) {
  .phone { border-radius: 22px; }
  .phone__screen { border-radius: 16px; }
}

/* ---------- Funciones / Servicios ---------- */

.features {
  padding-top: clamp(64px, 9vw, 112px);
  padding-bottom: clamp(64px, 9vw, 112px);
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 680px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  border-top: 1.5px solid var(--navy-800);
}

.service {
  padding: 32px 28px 32px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-bottom: 1px solid var(--rule);
}

.service__num { font-family: var(--font-serif); font-size: 30px; color: var(--gold-dark); }

.service h3 { margin: 0; font-size: 21px; font-weight: 700; color: var(--navy-800); }

.service p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--text-muted); }

.included {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 40px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: clamp(28px, 4vw, 48px);
}

.included h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.12;
  color: var(--navy-800);
}

.included ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 12px 28px;
}

.included li { display: flex; align-items: center; gap: 12px; font-size: 16px; color: var(--ink); }

/* ---------- Planes ---------- */

.pricing { background: var(--navy-800); color: #fff; }

.pricing__inner {
  padding-top: clamp(64px, 9vw, 112px);
  padding-bottom: clamp(64px, 9vw, 112px);
  display: flex;
  flex-direction: column;
  gap: 52px;
}

.pricing__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.pricing__head .display { color: #fff; }

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 20px;
  align-items: stretch;
}

@media (min-width: 640px) and (max-width: 1180px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
}

.plan {
  --plan-ink: #fff;
  --plan-muted: rgba(255, 255, 255, .66);
  --plan-accent: var(--gold);
  --plan-rule: rgba(255, 255, 255, .18);

  position: relative;
  overflow: hidden;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 36px 28px 28px;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, .22);
}

.plan--featured {
  --plan-ink: var(--navy-900);
  --plan-muted: var(--text-muted);
  --plan-accent: var(--gold-ink);
  --plan-rule: var(--rule);

  padding-top: 64px;
  background: var(--paper);
  border-color: var(--gold);
}

.plan__ribbon {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--gold);
  color: var(--navy-900);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  padding: 9px;
}

.plan__top { display: flex; flex-direction: column; gap: 6px; }

.plan__name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--plan-accent);
}

.plan__price { display: flex; align-items: baseline; gap: 8px; }

.plan__amount { font-family: var(--font-serif); font-size: 64px; line-height: 1; color: var(--plan-ink); }

.plan__period { font-size: 17px; color: var(--plan-muted); }

.plan__note { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: var(--plan-muted); }

.plan__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--plan-rule);
  border-bottom: 1px solid var(--plan-rule);
}

.plan__stat { padding: 16px 0; }

.plan__stat + .plan__stat { padding-left: 18px; border-left: 1px solid var(--plan-rule); }

.plan__stat strong { display: block; font-size: 26px; font-weight: 700; color: var(--plan-ink); }

.plan__stat span { font-size: 14px; color: var(--plan-muted); }

.plan__stat--text strong { font-size: 17px; line-height: 1.55; }

.plan__perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
}

.plan__perk {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15.5px;
  line-height: 1.4;
  color: var(--plan-ink);
}

.plan__perk .diamond { margin-top: 6px; }

.plan__perk--strong { font-weight: 600; }

.plan__perk--no { color: var(--plan-muted); opacity: .75; }

.plan__perk--no span:last-child { text-decoration: line-through; text-decoration-thickness: 1px; }

.plan__x {
  position: relative;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  flex: none;
}

.plan__x::before,
.plan__x::after {
  content: "";
  position: absolute;
  left: -1px;
  top: 3px;
  width: 10px;
  height: 1.5px;
  background: currentColor;
  transform: rotate(45deg);
}

.plan__x::after { transform: rotate(-45deg); }

.plan__btn {
  display: block;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 17px;
  border-radius: 8px;
  color: #fff;
  border: 1.5px solid var(--gold);
}

.plan__btn:hover { background: var(--gold); color: var(--navy-900); }

.plan--featured .plan__btn { background: var(--navy-800); border-color: var(--navy-800); }

.plan--featured .plan__btn:hover { background: var(--navy-900); border-color: var(--navy-900); color: var(--gold); }

.pricing__help { margin: 0; text-align: center; font-size: 16px; color: rgba(255, 255, 255, .65); }

.pricing__help a { color: var(--gold); border-bottom: 1px solid var(--gold); }

.pricing__help a:hover { color: #fff; border-color: #fff; }

/* ---------- Preguntas frecuentes ---------- */

.faq {
  max-width: 920px;
  padding-top: clamp(64px, 9vw, 112px);
  padding-bottom: clamp(64px, 9vw, 112px);
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.faq .section-head { max-width: none; }

.faq .display { font-size: clamp(34px, 4.2vw, 50px); line-height: 1.1; }

.faq__list { border-top: 1.5px solid var(--navy-800); }

.faq__item { border-bottom: 1px solid var(--rule); }

.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 19px;
  font-weight: 600;
  color: var(--navy-800);
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
  content: "+";
  font-family: var(--font-serif);
  font-size: 30px;
  line-height: 1;
  color: var(--gold-dark);
  flex: none;
}

.faq__item[open] summary::after { content: "–"; }

.faq__item p { margin: 0; padding: 0 48px 26px 0; font-size: 17px; line-height: 1.6; color: var(--text-muted); }

/* ---------- Contacto / Demo ---------- */

.contact { background: var(--gold); }

.contact__inner {
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(56px, 8vw, 96px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 48px;
  align-items: start;
}

.contact__copy { display: flex; flex-direction: column; gap: 20px; }

.contact__copy h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: 1.04;
  color: var(--navy-900);
  text-wrap: balance;
}

.contact__copy > p { margin: 0; max-width: 460px; font-size: 19px; line-height: 1.55; color: var(--navy-800); }

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
  font-size: 17px;
  color: var(--navy-900);
}

.contact__details a { color: var(--navy-900); }

.contact__details a:hover { color: var(--navy-800); text-decoration: underline; }

.demo-card {
  background: var(--navy-900);
  border-radius: 14px;
  padding: clamp(28px, 4vw, 40px);
}

.demo-form { display: flex; flex-direction: column; gap: 16px; }

.demo-form[hidden] { display: none; }

.demo-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
}

.demo-form input,
.demo-form select {
  font: inherit;
  font-size: 17px;
  letter-spacing: 0;
  text-transform: none;
  color: #fff;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(255, 255, 255, .3);
  border-radius: 0;
  padding: 10px 0;
  outline: none;
}

.demo-form select { background: var(--navy-900); }

.demo-form input::placeholder { color: rgba(255, 255, 255, .35); }

.demo-form input:focus,
.demo-form select:focus { border-bottom-color: var(--gold); }

.demo-form button {
  margin-top: 12px;
  cursor: pointer;
  border: none;
  background: var(--gold);
  color: var(--navy-900);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 18px;
  border-radius: 8px;
  transition: background-color .2s;
}

.demo-form button:hover { background: var(--gold-hover); }

.demo-thanks { display: flex; flex-direction: column; gap: 12px; color: #fff; }

.demo-thanks[hidden] { display: none; }

.demo-thanks h3 { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: 34px; color: var(--gold); }

.demo-thanks p { margin: 0; font-size: 17px; line-height: 1.55; color: rgba(255, 255, 255, .8); }

.demo-thanks a { color: var(--gold); border-bottom: 1px solid var(--gold); }

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

.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .65); }

.site-footer__inner {
  padding-top: 44px;
  padding-bottom: 44px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.site-footer__logo { justify-self: start; display: block; }

.site-footer__logo img { display: block; height: 46px; width: auto; }

.site-footer__center { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }

.site-footer__copy { margin: 0; font-size: 15px; line-height: 1.6; }

.site-footer__copy strong { color: #fff; font-weight: 600; }

.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; font-size: 14px; }

.site-footer__legal a { color: rgba(255, 255, 255, .65); border-bottom: 1px solid rgba(255, 255, 255, .25); }

.site-footer__legal a:hover { color: var(--gold); border-color: var(--gold); }

.site-footer__social { justify-self: end; display: flex; align-items: center; gap: 12px; }

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, .3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.social-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-900); }

@media (max-width: 860px) {
  .site-footer__inner { grid-template-columns: 1fr; justify-items: center; }
  .site-footer__logo,
  .site-footer__social { justify-self: center; }
}

/* Anclas de la versión anterior del sitio (#pricing, #contact…) para no romper enlaces viejos */
.legacy-anchor { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Botón flotante de soporte ---------- */

.support-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--navy-800);
  color: #fff;
  padding: 14px 20px 14px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--gold);
  box-shadow: 0 12px 30px rgba(6, 32, 63, .35);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
}

.support-fab:hover { background: var(--navy-900); color: var(--gold); }

.support-fab__icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 520px) {
  .support-fab { right: 16px; bottom: 16px; padding: 12px 16px 12px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Página legal ---------- */

.legal-hero {
  background: var(--navy-900);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.legal-hero__glow {
  position: absolute;
  top: -320px;
  right: -240px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 180, 41, .14) 0%, rgba(240, 180, 41, 0) 70%);
  pointer-events: none;
}

.legal-hero__inner {
  position: relative;
  max-width: 920px;
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: clamp(48px, 7vw, 80px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.legal-hero__title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.06;
  text-wrap: balance;
}

.legal-hero__date { margin: 0; font-size: 16px; color: rgba(255, 255, 255, .7); }

.legal-hero__date[hidden] { display: none; }

.legal-hero__toc { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 6px; }

.legal-hero__toc a {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 10px 16px;
  border: 1.5px solid rgba(255, 255, 255, .35);
  border-radius: 8px;
}

.legal-hero__toc a:hover { border-color: var(--gold); color: var(--gold); }

.legal {
  max-width: 920px;
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(64px, 9vw, 112px);
}

.legal__doc {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: clamp(28px, 5vw, 56px);
  font-size: 17px;
  line-height: 1.7;
  color: #2b3445;
  overflow-wrap: anywhere;
}

.legal__status { margin: 0; color: var(--text-muted); }

.legal__status a { color: var(--navy-800); border-bottom: 1px solid currentColor; }

.legal__doc .doc-intro { font-size: 16px; }

.legal__doc h2 {
  margin: 48px 0 12px;
  padding-top: 28px;
  border-top: 1.5px solid var(--navy-800);
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.12;
  color: var(--navy-800);
}

.legal__doc h2:first-child { margin-top: 0; }

.legal__doc h3 { margin: 32px 0 8px; font-size: 20px; font-weight: 700; color: var(--navy-800); }

.legal__doc h4 { margin: 22px 0 6px; font-size: 17px; font-weight: 700; color: var(--ink); }

.legal__doc p { margin: 10px 0; }

.legal__doc ul,
.legal__doc ol { margin: 10px 0; padding-left: 24px; }

.legal__doc li { margin: 6px 0; }

.legal__doc ul li::marker { color: var(--gold-dark); }

.legal__doc strong { color: var(--ink); }

.legal__doc a { color: var(--navy-800); border-bottom: 1px solid var(--gold); }

.legal__doc a:hover { color: var(--gold-dark); }

.legal__doc blockquote {
  margin: 18px 0;
  padding: 14px 18px;
  background: #fdf6e3;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  color: #4a4234;
}

.legal__doc hr { border: none; border-top: 1px solid var(--rule); margin: 32px 0; }

.legal__doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; display: block; overflow-x: auto; }

.legal__doc th,
.legal__doc td { border: 1px solid var(--rule); padding: 8px 12px; text-align: left; vertical-align: top; }

.legal__doc th { background: var(--paper); color: var(--navy-800); }

/* ---------- Inscripción a eventos ---------- */

.evento-hero__datos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-size: 17px;
  color: rgba(255, 255, 255, .82);
}

.evento-hero__datos[hidden] { display: none; }

.evento-hero__datos li { display: flex; align-items: center; gap: 12px; }

.evento {
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(64px, 9vw, 112px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 48px;
  align-items: start;
}

.evento__info { display: flex; flex-direction: column; gap: 20px; }

.evento__info[hidden] { display: none; }

.evento__descripcion { margin: 0; font-size: 18px; line-height: 1.65; color: #2b3445; white-space: pre-line; }

.evento__descripcion[hidden] { display: none; }

.evento__personas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  border-top: 1.5px solid var(--navy-800);
}

.evento__persona { padding: 20px 20px 20px 0; border-bottom: 1px solid var(--rule); }

.evento__persona-rol { font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); }

.evento__persona-nombre { margin-top: 6px; font-family: var(--font-serif); font-size: 24px; line-height: 1.2; color: var(--navy-800); }

.evento__persona-cargo { margin-top: 4px; font-size: 15px; color: var(--text-muted); }

.evento__nota {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 12px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink);
}

.evento__nota .diamond { margin-top: 7px; }

.evento__tarjeta { position: sticky; top: 100px; }

.evento__estado { color: rgba(255, 255, 255, .8); font-size: 17px; line-height: 1.55; }

.evento__estado[hidden] { display: none; }

.evento__form-titulo { margin: 0 0 4px; font-family: var(--font-serif); font-weight: 400; font-size: 32px; color: #fff; }

.evento__trampa { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.evento__error {
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(244, 63, 94, .14);
  color: #fecdd3;
  font-size: 15px;
}

.evento__error[hidden] { display: none; }

.evento__qr {
  display: block;
  width: 220px;
  height: 220px;
  margin: 8px auto 0;
  padding: 10px;
  background: #fff;
  border-radius: 12px;
}

.evento__qr[hidden],
.evento__qr-nota[hidden] { display: none; }

.evento__qr-nota { text-align: center; font-size: 14px; }

@media (max-width: 860px) {
  .evento__tarjeta { position: static; }
}

.evento-hero .legal-hero__inner { max-width: var(--container); }

.evento-hero .legal-hero__title { max-width: 900px; }

/* ---------- Verificación de diplomas ---------- */

.verif-hero__lead { margin: 0; max-width: 640px; font-size: 18px; line-height: 1.6; color: rgba(255, 255, 255, .78); }

.verif {
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(64px, 9vw, 112px);
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(min(100%, 320px), 1fr);
  gap: 40px;
  align-items: start;
}

@media (max-width: 860px) {
  .verif { grid-template-columns: 1fr; }
}

.verif__resultado .legal__status { font-size: 18px; }

.verif__resultado .legal__status[hidden] { display: none; }

.verif__tarjeta {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: clamp(28px, 4vw, 44px);
}

.verif__tarjeta[hidden] { display: none; }

.verif__tarjeta--ok { border-top: 4px solid #1f8f5f; }

.verif__tarjeta--error { border-top: 4px solid #c2413b; }

.verif__sello {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 10px;
  border-radius: 999px;
  background: #e5f4ec;
  color: #1f7a52;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.verif__sello--error { background: #fbe9e8; color: #a8342f; }

.verif__intro { margin: 22px 0 6px; font-size: 16px; color: var(--text-muted); }

.verif__nombre {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  color: var(--navy-900);
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--navy-800);
  overflow-wrap: anywhere;
}

.verif__charla { font-family: var(--font-serif); font-size: clamp(22px, 2.6vw, 28px); line-height: 1.25; color: var(--navy-800); }

.verif__datos {
  margin: 26px 0 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 20px;
  font-size: 16px;
}

.verif__datos dt { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); padding-top: 2px; }

.verif__datos dd { margin: 0; color: var(--ink); }

.verif__codigo {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--text-muted);
}

.verif__codigo strong { margin-left: 6px; font-size: 16px; letter-spacing: .08em; color: var(--navy-900); }

.verif__buscar { position: sticky; top: 100px; }

.verif__buscar input { text-transform: uppercase; letter-spacing: .08em; }

.verif__ayuda { margin: 18px 0 0; font-size: 14px; line-height: 1.55; color: rgba(255, 255, 255, .65); }

.verif__ayuda a { color: var(--gold); }

@media (max-width: 860px) {
  .verif__buscar { position: static; }
}
