/* Norus Legal — estilos */
@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-var.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/sourcesans3-var.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}

:root {
  --navy: #102A5C;
  --navy-2: #0B1F47;
  --ink: #16233F;
  --muted: #56647C;
  --teal: #0E8FB8;
  --teal-2: #14B8C4;
  --mint: #34E3A6;
  --paper: #F3F7FA;
  --line: #DCE5EC;
  --white: #FFFFFF;
  --grad: linear-gradient(90deg, #0E8FB8, #14B8C4 55%, #34E3A6);

  --f-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --f-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --r-sm: 6px;
  --r-md: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--teal-2); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--f-display); color: var(--navy); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 650; }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip:focus { top: 12px; }
.section-lead { color: var(--muted); max-width: 60ch; margin-top: 14px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--f-display); font-weight: 600; font-size: 1rem;
  padding: 15px 24px; border-radius: var(--r-sm);
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--teal); color: #fff; }
.btn--ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--sm { padding: 10px 18px; font-size: .95rem; }
.btn--block { width: 100%; }
.link { font-family: var(--f-display); font-weight: 600; color: var(--navy); text-decoration-color: var(--mint); text-decoration-thickness: 3px; }

/* Top bar */
.topbar { background: var(--navy-2); color: #C7D3E6; font-size: .9rem; padding-top: env(safe-area-inset-top, 0px); }
.topbar__in { display: flex; justify-content: space-between; gap: 16px; padding-block: 8px; }
.topbar__links { display: flex; gap: 22px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--mint); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-color: var(--line); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.brand img { height: 48px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem; }
.nav a:not(.btn):hover { color: var(--teal); }
.nav-toggle { display: none; }

/* Hero */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 104px); background: linear-gradient(180deg, var(--white) 0%, var(--paper) 100%); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { max-width: 17ch; }
.hero__lead { font-size: 1.25rem; color: var(--muted); max-width: 46ch; margin-top: 24px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero__fig { position: relative; margin: 0; aspect-ratio: 910 / 750; }
.netmark { width: 100%; height: 100%; overflow: visible; }
.chip {
  position: absolute; transform: translate(-50%, -50%);
  font-family: var(--f-display); font-weight: 600; font-size: clamp(.78rem, 1.3vw, .95rem);
  color: var(--navy); background: #fff; border: 1px solid var(--line);
  padding: 7px 14px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 6px 18px -8px rgba(16, 42, 92, .35);
}
/* posiciones en % del símbolo (910 x 750), cerca de los nodos */
.chip--1 { left: 13%;  top: 72%; }
.chip--2 { left: 40%;  top: 17%; }
.chip--3 { left: 70%;  top: 88%; }
.chip--4 { left: 80%;  top: 52%; }

/* Animación única de entrada: el símbolo se dibuja */
.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .9s cubic-bezier(.6,.1,.2,1) forwards; }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .25s; } .d3 { animation-delay: .35s; }
.d4 { animation-delay: .55s; animation-duration: 1.1s; } .d5 { animation-delay: .7s; } .d6 { animation-delay: 1.35s; animation-duration: .5s; }
.nodes, .chip { opacity: 0; animation: fade .5s ease-out forwards; }
.nodes { animation-delay: 1.1s; }
.chip--1 { animation-delay: 1.3s; } .chip--2 { animation-delay: 1.45s; }
.chip--3 { animation-delay: 1.6s; } .chip--4 { animation-delay: 1.75s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

/* Pillars */
.pillars { background: var(--navy); color: #D5DFEE; padding: clamp(56px, 7vw, 88px) 0; }
.pillars__row { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: clamp(16px, 3vw, 40px); align-items: start; }
.pillar h3 { color: #fff; font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 650; margin-bottom: 14px; }
.pillar p { font-size: 1.06rem; max-width: 34ch; }
.pillars__plus {
  font-family: var(--f-display); font-weight: 300; font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-top: 2px;
}

/* Areas */
.areas { padding: var(--section) 0; }
.areas__grid { display: grid; grid-template-columns: .8fr 1.6fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.areas__head { position: sticky; top: 110px; }
.areas__head p { color: var(--muted); margin: 18px 0 24px; max-width: 36ch; }
.areas__list { border-top: 2px solid var(--navy); }

.area { border-bottom: 1px solid var(--line); }
.area summary, .qa summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px;
  padding: 26px 0;
}
.area summary::-webkit-details-marker, .qa summary::-webkit-details-marker { display: none; }
.area__title { font-family: var(--f-display); font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 600; color: var(--navy); letter-spacing: -0.01em; flex: 1; }
.area summary:hover .area__title { color: var(--teal); }
.area__tag { font-size: .85rem; font-weight: 600; color: var(--teal); background: #E6F6F8; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.area__icon { position: relative; width: 22px; height: 22px; flex: none; }
.area__icon::before, .area__icon::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--navy); border-radius: 2px; transform: translate(-50%, -50%); transition: transform .2s; }
.area__icon::before { width: 18px; height: 2.5px; }
.area__icon::after { width: 2.5px; height: 18px; }
details[open] > summary .area__icon::after { transform: translate(-50%, -50%) scaleY(0); }
.area__body { padding: 0 0 32px; max-width: 68ch; }
.area__body > p { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px;
  border-left: 2.5px solid var(--teal-2); border-bottom: 2.5px solid var(--teal-2);
  transform: rotate(-45deg);
}

/* Process */
.process { padding: var(--section) 0; background: var(--paper); }
.steps { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 21px; left: 22px; right: calc((100% - 84px) / 4 - 22px); height: 3px; background: var(--grad); border-radius: 3px; }
.step { counter-increment: s; position: relative; }
.step::before {
  content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: #fff; border: 3px solid var(--teal-2); color: var(--navy);
  font-family: var(--f-display); font-weight: 700; margin-bottom: 22px; position: relative;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 1.05rem; }

/* FAQ */
.faq { padding: var(--section) 0; }
.faq__grid { display: grid; grid-template-columns: .8fr 1.6fr; gap: clamp(32px, 6vw, 88px); }
.faq__list { border-top: 2px solid var(--navy); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { font-family: var(--f-display); font-weight: 600; font-size: 1.12rem; color: var(--navy); justify-content: space-between; padding: 22px 0; }
.qa p { padding: 0 0 24px; color: var(--muted); max-width: 66ch; }

/* Contact */
.contact { padding: var(--section) 0; background: var(--navy); color: #D5DFEE; }
.contact h2 { color: #fff; }
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact__info > p { margin-top: 16px; font-size: 1.15rem; }
.contact__dl { margin: 36px 0 0; display: grid; gap: 18px; }
.contact__dl div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.12); }
.contact__dl dt { color: #8FA3C4; font-size: .95rem; }
.contact__dl dd { margin: 0; color: #fff; }
.contact__dl a { color: #fff; text-decoration-color: var(--mint); }
.contact__dl a:hover { color: var(--mint); }

.form { background: #fff; color: var(--ink); border-radius: var(--r-md); padding: clamp(24px, 4vw, 40px); display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field > span { font-weight: 600; font-size: .98rem; color: var(--navy); }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); width: 100%;
  padding: 12px 14px; border: 1.5px solid #C4D0DB; border-radius: var(--r-sm); background: #fff;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(20,184,196,.25); }
.field [aria-invalid="true"] { border-color: #C0392B; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--muted); }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--navy); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { font-size: .98rem; min-height: 1.4em; }
.form__status.is-ok { color: #0B7A55; font-weight: 600; }
.form__status.is-err { color: #B03A2E; font-weight: 600; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Contacto sin formulario */
.form--off { gap: 14px; }
.form--off h3 { font-size: 1.4rem; }
.form--off p { color: var(--muted); margin-bottom: 8px; }
.btn--wa { background: #1FAF5A; color: #fff; }
.btn--wa:hover { background: #17964C; color: #fff; }

/* Footer */
.site-footer { background: var(--navy-2); color: #A9B8D0; padding: 64px 0 calc(28px + env(safe-area-inset-bottom, 0px)); font-size: 1rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer__brand img { height: 44px; width: auto; margin-bottom: 18px; }
.site-footer__brand p { max-width: 38ch; }
.site-footer__h { font-size: 1rem; color: #fff; margin-bottom: 14px; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #D5DFEE; text-decoration: none; }
.site-footer a:hover { color: var(--mint); }
.site-footer__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: .9rem; }
.site-footer__legal span:last-child { display: flex; gap: 20px; }

/* WhatsApp */
.wa-float {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #1FAF5A; color: #fff; box-shadow: 0 10px 24px -8px rgba(0,0,0,.4);
}
.wa-float:hover { background: #17964C; color: #fff; }

/* Legal page */
.legal-page { padding: clamp(48px, 7vw, 88px) 0 var(--section); }
.legal-page .wrap { max-width: 820px; }
.legal-page h1 { font-size: clamp(2rem, 3.6vw, 2.8rem); margin-bottom: 12px; }
.legal-page h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.legal-page p, .legal-page li { color: #34415B; }
.legal-page p + p { margin-top: 12px; }
.legal-page ul { padding-left: 22px; display: grid; gap: 6px; }
.legal-page .note { background: #FFF6DA; border: 1px solid #F0D98A; padding: 14px 18px; border-radius: var(--r-sm); margin: 20px 0; }


/* Páginas internas: encabezado */
.page-hero { background: linear-gradient(180deg, var(--white) 0%, var(--paper) 100%); padding: clamp(40px, 6vw, 72px) 0 clamp(44px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); max-width: 22ch; }
.page-hero__lead { font-size: 1.2rem; color: var(--muted); max-width: 60ch; margin-top: 20px; }
.page-hero__tag { display: inline-block; margin-top: 18px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .95rem; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--teal); text-decoration: underline; }
.crumbs [aria-current] { color: var(--navy); font-weight: 600; }

/* Páginas de área */
.svc { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 6vw, 80px); padding-block: clamp(48px, 7vw, 88px); align-items: start; }
.svc__block + .svc__block { margin-top: clamp(44px, 6vw, 64px); }
.svc__block h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: 18px; }
.svc__block > p { color: var(--muted); max-width: 66ch; }
.bullets { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.bullets li { position: relative; padding: 16px 18px 16px 22px; background: var(--paper); border-left: 4px solid var(--teal-2); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.norms { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.norms li { padding: 14px 0; border-bottom: 1px solid var(--line); color: #34415B; }
.svc__aside { position: sticky; top: 110px; display: grid; gap: 28px; }
.aside-card { background: var(--navy); color: #D5DFEE; border-radius: var(--r-md); padding: 28px; display: grid; gap: 12px; }
.aside-card h2 { color: #fff; font-size: 1.35rem; }
.aside-card p { margin-bottom: 6px; font-size: 1.02rem; }
.aside-card .btn--primary { background: #fff; color: var(--navy); }
.aside-card .btn--primary:hover { background: var(--mint); color: var(--navy); }
.aside-card .btn--ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.aside-card .btn--ghost:hover { background: #fff; color: var(--navy); }
.aside-card__tel { color: #fff; text-align: center; font-family: var(--f-display); font-weight: 600; margin-top: 4px; text-decoration: none; }
.aside-card__tel:hover { color: var(--mint); }
.aside-other h2 { font-size: 1.05rem; margin-bottom: 10px; }
.aside-other ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.aside-other a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; line-height: 1.35; }
.aside-other a:hover { color: var(--teal); }
.area__more { display: inline-block; margin-top: 24px; }

/* Índice de áreas */
.svc-index { padding-block: clamp(40px, 6vw, 72px) var(--section); }
.svc-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: clamp(16px, 4vw, 48px); align-items: baseline; padding: 32px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.svc-row:first-child { border-top: 2px solid var(--navy); }
.svc-row__title { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.2rem, 2vw, 1.45rem); color: var(--navy); line-height: 1.25; }
.svc-row__text { color: var(--muted); }
.svc-row__more { font-family: var(--f-display); font-weight: 600; color: var(--navy); white-space: nowrap; text-decoration: underline; text-decoration-color: var(--mint); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.svc-row:hover .svc-row__title, .svc-row:hover .svc-row__more { color: var(--teal); }

/* Responsive */
@media (max-width: 980px) {
  .hero__grid, .areas__grid, .faq__grid, .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__fig { max-width: 520px; width: 100%; justify-self: center; }
  .areas__head { position: static; }
  .pillars__row { grid-template-columns: 1fr; }
  .pillars__plus { padding: 0; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps::before { display: none; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
  .svc { grid-template-columns: minmax(0, 1fr); }
  .svc__aside { position: static; }
  .svc-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}
@media (max-width: 860px) {
  .nav-toggle {
    display: grid; place-items: center; width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer;
  }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
    display: block; width: 24px; height: 2.5px; background: var(--navy); border-radius: 2px; position: relative; transition: transform .2s, background-color .2s;
  }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bars::before { top: -7px; } .nav-toggle__bars::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; }
  .topbar__in > span:first-child { display: none; }
  .topbar__links { width: 100%; justify-content: space-between; gap: 12px; }
}
@media (max-width: 560px) {
  body { font-size: 1.06rem; }
  .brand img { height: 40px; }
  .form__row { grid-template-columns: 1fr; }
  .area summary { flex-wrap: wrap; row-gap: 8px; }
  .area__title { flex: 1 1 calc(100% - 40px); }
  .area__tag { order: 3; white-space: normal; }
  .steps { grid-template-columns: 1fr; }
  .contact__dl div { grid-template-columns: 1fr; gap: 2px; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .hero__cta .btn { width: 100%; }
  .topbar { font-size: .82rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .draw { animation: none; stroke-dashoffset: 0; }
  .nodes, .chip { animation: none; opacity: 1; }
  * { transition: none !important; }
}
