/* ABEC Technologies — abectechnologies.com · v3 */
:root {
  /* Marca (manual) */
  --carbon: #0E1116;
  --white: #FFFFFF;
  --slate: #5B6472;
  --mist: #E9ECF1;
  --cobalt: #2F5BFF;
  --convocados: #1AFF6E;
  /* Derivados */
  --cobalt-hover: #1E48EE;
  --ink-2: #2A303A;
  --line: #DADFE7;
  --line-strong: #C3CAD5;
  --on-dark: #F4F6F9;
  --on-dark-2: #A7AFBC;
  --line-dark: rgba(255, 255, 255, 0.12);
  --error: #B42318;
  --ok: #157A3B;
  /* Escala tipográfica (razón ~1.25) */
  --t-sm: 0.875rem;   /* 14 */
  --t-base: 1.0625rem;/* 17 */
  --t-lg: 1.25rem;    /* 20 */
  --t-h3: 1.375rem;   /* 22 */
  --t-h2: clamp(2rem, 5.2vw, 3rem);       /* 32 → 48 */
  --t-h1: clamp(2.5rem, 8.6vw, 4.75rem);  /* 40 → 76 */
  /* Espacio */
  --gutter: 20px;
  --section: 96px;
  --max: 1200px;
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 68px;
  --font-title: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 768px) { :root { --gutter: 32px; --section: 120px; } }
@media (min-width: 1024px) { :root { --section: 144px; --header-h: 76px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0; font-family: var(--font-text); font-size: var(--t-base); line-height: 1.6;
  color: var(--carbon); background: var(--white);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--cobalt); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-title); font-weight: 600; margin: 0; letter-spacing: -0.025em; line-height: 1.1; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--cobalt); color: var(--white); }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--cobalt); color: var(--white); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: var(--radius-sm);
  font: 500 15px/1 var(--font-text); letter-spacing: -0.005em;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--cobalt); color: var(--white); }
.btn-primary:hover { background: var(--cobalt-hover); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost-light { color: var(--on-dark); border-color: rgba(255,255,255,0.26); }
.btn-ghost-light:hover { border-color: var(--white); color: var(--white); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Encabezado ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color .25s ease, border-color .25s ease;
}
.site-header.is-scrolled, .site-header.is-solid, .site-header.menu-open {
  background: rgba(14, 17, 22, 0.9);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line-dark);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; padding: 6px 0; margin-right: auto; }
.brand img { height: 28px; width: auto; }
.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a {
  display: block; padding: 8px 14px; border-radius: 8px;
  color: var(--on-dark-2); font-size: 15px; font-weight: 500;
  transition: color .18s ease, background-color .18s ease;
}
.nav a:hover { color: var(--white); text-decoration: none; background: rgba(255,255,255,0.06); }
.nav a[aria-current="true"] { color: var(--white); }
.btn.header-cta { display: none; }
.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-right: -10px; background: transparent; border: 0; color: var(--white); cursor: pointer; border-radius: 10px;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 20px; height: 1.5px; background: currentColor; position: relative; transition: transform .2s ease, background-color .2s ease; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-nav { position: fixed; inset: var(--header-h) 0 auto 0; background: var(--carbon); border-bottom: 1px solid var(--line-dark); padding: 8px var(--gutter) 28px; }
.mobile-nav[hidden] { display: none; }
.mobile-nav ul { list-style: none; margin: 0 0 24px; padding: 0; }
.mobile-nav li a { display: block; padding: 18px 0; color: var(--on-dark); font: 600 22px/1.2 var(--font-title); letter-spacing: -0.02em; border-bottom: 1px solid var(--line-dark); }
.mobile-nav li a:hover { text-decoration: none; color: var(--white); }
@media (min-width: 900px) {
  .nav { display: block; }
  .btn.header-cta { display: inline-flex; margin-left: 12px; }
  .menu-toggle { display: none; }
  .mobile-nav { display: none !important; }
  .brand img { height: 30px; }
}

/* ---------- Portada ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--carbon); color: var(--on-dark);
  padding: calc(var(--header-h) + 40px) 0 0;
}
/* Papel milimetrado: módulo mayor de 64 px y menor de 16 px */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px, 16px 16px, 16px 16px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 72% 38%, #000 25%, transparent 80%);
  mask-image: radial-gradient(ellipse 90% 80% at 72% 38%, #000 25%, transparent 80%);
}
.hero-inner { display: grid; gap: 8px; align-items: center; }
.hero-visual { order: -1; justify-self: start; width: 196px; margin-left: -18px; }
.hero h1 { font-size: var(--t-h1); font-weight: 600; letter-spacing: -0.04em; line-height: 1.02; max-width: 12.5ch; }
.hero-sub { margin-top: 24px; font-size: var(--t-base); line-height: 1.6; color: var(--on-dark-2); max-width: 46ch; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479px) { .hero-actions .btn { flex: 1 1 100%; } }

.hero-facts {
  margin: 56px 0 0; padding: 20px 0 28px; border-top: 1px solid var(--line-dark);
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px;
}
.hero-facts div:first-child { grid-column: 1 / -1; }
.hero-facts dt { font-size: 13px; color: var(--on-dark-2); }
.hero-facts dd { margin: 2px 0 0; font-size: 15px; font-weight: 500; color: var(--on-dark); font-variant-numeric: tabular-nums; }

@media (min-width: 900px) {
  .hero { padding-top: calc(var(--header-h) + 72px); min-height: min(100vh, 920px); display: flex; flex-direction: column; justify-content: space-between; }
  .hero-inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; flex: 1; }
  .hero-visual { order: 0; justify-self: end; width: min(100%, 480px); margin: 0 -24px 0 0; }
  .hero-sub { font-size: var(--t-lg); }
  .hero-actions { margin-top: 40px; }
  .hero-facts { grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin-top: 72px; padding: 24px 0 32px; }
  .hero-facts div:first-child { grid-column: auto; }
  .hero-facts div { padding-right: 48px; margin-right: 48px; border-right: 1px solid var(--line-dark); }
  .hero-facts div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
}

/* Plano técnico del isotipo */
.blueprint { width: 100%; height: auto; overflow: visible; }
.bp-guide { stroke: rgba(255,255,255,0.18); stroke-width: 0.5; }
.bp-zone { fill: none; stroke: rgba(255,255,255,0.32); stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.bp-dims line { stroke: var(--on-dark-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.bp-dims text { fill: var(--on-dark-2); font: italic 400 7px var(--font-text); }
.bp-cursor path { animation: abec-blink 1.1s steps(1, end) infinite; }
@keyframes abec-blink { 50% { opacity: 0; } }
@media (max-width: 899px) { .bp-dims { display: none; } }

@media (prefers-reduced-motion: no-preference) {
  .bp-guide { stroke-dasharray: 1; stroke-dashoffset: 1; animation: bp-draw .9s var(--ease) forwards; animation-delay: var(--d, 0ms); }
  .bp-zone, .bp-dims { opacity: 0; animation: bp-fade .5s ease-out .85s forwards; }
  .bp-mark { opacity: 0; animation: bp-fade .6s ease-out .55s forwards; }
  .bp-cursor { opacity: 0; animation: bp-fade .01s linear 1.25s forwards; }
  .bp-cursor path { animation-delay: 1.25s; }
}
@keyframes bp-draw { to { stroke-dashoffset: 0; } }
@keyframes bp-fade { to { opacity: 1; } }

/* ---------- Secciones ---------- */
.section { padding: var(--section) 0; }
.section-white { background: var(--white); }
.section-mist { background: var(--mist); }
.section h2 { font-size: var(--t-h2); letter-spacing: -0.035em; }
.section-title { margin-bottom: 40px; max-width: 18ch; }
.lead { font-size: var(--t-lg); line-height: 1.6; color: var(--slate); max-width: 52ch; }
@media (min-width: 1024px) { .section-title { margin-bottom: 56px; } }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }

/* Nosotros */
.about-head { display: grid; gap: 24px; margin-bottom: 48px; }
.principles { display: grid; gap: 12px; }
.principle { padding: 24px; display: grid; gap: 8px; align-content: start; }
.principle h3 { font-size: var(--t-h3); }
.principle p { color: var(--slate); }
@media (min-width: 768px) {
  .principles { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .principle { padding: 28px; }
}
@media (min-width: 1024px) {
  .about-head { grid-template-columns: 6fr 5fr; gap: 64px; align-items: end; margin-bottom: 72px; }
  .about-head .lead { justify-self: end; }
  .principle { padding: 32px; }
}

/* Productos */
.products { display: grid; gap: 16px; }
.product-card {
  position: relative; overflow: hidden; isolation: isolate;
  background: #000; border-color: #000; color: var(--on-dark);
  padding: 28px; min-height: 420px; display: flex;
}
.product-wave {
  position: absolute; z-index: -1; width: 172px; height: auto;
  right: -36px; top: -22px;
}
.product-body { display: flex; flex-direction: column; width: 100%; }
.product-name { display: flex; align-items: center; gap: 12px; font-size: var(--t-h3); font-weight: 700; color: var(--white); letter-spacing: -0.02em; }
.product-desc { margin-top: auto; padding-top: 140px; font: 600 clamp(1.5rem, 3.6vw, 2.25rem)/1.15 var(--font-title); letter-spacing: -0.03em; max-width: 17ch; color: var(--white); }
.product-foot { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.soon-tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: rgba(26, 255, 110, 0.1); border: 1px solid rgba(26, 255, 110, 0.35);
  color: var(--convocados); font-size: 13px; font-weight: 500; line-height: 1.2;
}
.soon-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--convocados); flex: 0 0 auto; }
.product-card .ig { display: inline-flex; align-items: center; gap: 8px; color: var(--on-dark-2); font-size: 14px; padding: 6px 0; }
.product-card .ig:hover { color: var(--white); text-decoration: none; }
.product-card .ig:hover span { text-decoration: underline; text-underline-offset: 3px; }

.next-card {
  background: transparent; border: 1.5px dashed var(--line-strong);
  padding: 28px; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
}
.next-cursor { width: 44px; height: 12px; border: 1.5px dashed var(--line-strong); border-radius: 2px; }
.next-card h3 { font-size: var(--t-h3); }
.next-card p { color: var(--slate); margin-top: 6px; }
@media (min-width: 768px) {
  .products { grid-template-columns: 2fr 1fr; gap: 16px; }
  .product-card { padding: 40px; min-height: 480px; }
  .product-wave { width: 58%; right: -12%; top: 50%; transform: translateY(-50%); }
  .product-body { max-width: 52%; }
  .product-desc { padding-top: 0; font-size: clamp(1.5rem, 2.6vw, 2.25rem); max-width: none; }
  .product-foot { flex-direction: column; align-items: flex-start; }
  .next-card { padding: 32px; min-height: 0; }
}

/* Equipo */
.team { display: grid; gap: 12px; }
.person {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 18px; align-items: center;
  padding: 16px; border: 1px solid var(--line); border-radius: var(--radius);
}
.avatar {
  width: 72px; height: 72px; border-radius: 12px; overflow: hidden;
  background: var(--mist); display: grid; place-items: center;
  font: 600 22px/1 var(--font-title); color: #8A93A1; letter-spacing: -0.02em;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { font-size: var(--t-lg); }
.person p { color: var(--slate); margin-top: 2px; font-size: 15px; }
.icon-link { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); color: var(--carbon); }
.icon-link:hover { border-color: var(--cobalt); color: var(--cobalt); }
@media (min-width: 768px) {
  .team { grid-template-columns: 1fr 1fr; gap: 16px; }
  .person { grid-template-columns: 96px 1fr auto; padding: 20px; gap: 24px; }
  .avatar { width: 96px; height: 96px; font-size: 26px; }
}
@media (min-width: 1024px) {
  .team-layout { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  .team-layout .section-title { margin-bottom: 0; }
  .team { grid-template-columns: 1fr; }
}

/* Contacto */
.contact-grid { display: grid; gap: 32px; }
.contact-side h2 { max-width: 14ch; }
.channels { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--line-strong); }
.channels li > a, .channels li > div {
  display: flex; align-items: center; gap: 16px; padding: 16px 0; min-height: 72px;
  border-bottom: 1px solid var(--line-strong); color: var(--carbon);
}
.channels li > a:hover { text-decoration: none; }
.channels li > a:hover b { color: var(--cobalt); }
.channels .ic { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 10px; background: var(--white); display: grid; place-items: center; }
.channels small { display: block; font-size: 13px; color: var(--slate); }
.channels b { font-weight: 500; overflow-wrap: break-word; transition: color .18s ease; }
.form-card { padding: 24px; }
@media (min-width: 768px) { .form-card { padding: 40px; } }
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  .contact-side { position: sticky; top: calc(var(--header-h) + 40px); }
}

/* Formulario */
.form-row { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; margin: 0 0 20px; min-width: 0; }
fieldset.field { border: 0; padding: 0; }
.field label, .field legend { font-size: 14px; font-weight: 500; padding: 0; }
.field legend { margin-bottom: 8px; }
.field .opt { color: var(--slate); font-weight: 400; }
.field input[type="text"], .field input[type="email"], .field textarea {
  font: inherit; font-size: 16px; color: var(--carbon); width: 100%;
  background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 12px 14px; min-height: 48px;
  transition: border-color .15s ease, box-shadow .15s ease;
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 136px; resize: vertical; line-height: 1.5; }
.field input:hover, .field textarea:hover { border-color: #A9B1BE; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(47, 91, 255, 0.16); }
.field [aria-invalid="true"] { border-color: var(--error); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--white); font-size: 15px; cursor: pointer; user-select: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.chip span:hover { border-color: #A9B1BE; }
.chip input:checked + span { background: var(--carbon); border-color: var(--carbon); color: var(--white); }
.chip input:focus-visible + span { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.chips[aria-invalid="true"] .chip span { border-color: var(--error); }
.error-msg { font-size: 13px; color: var(--error); }
.error-msg:empty { display: none; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--slate); margin: 4px 0 6px; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--cobalt); cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
@media (max-width: 479px) { .form-actions .btn { width: 100%; } }
.form-status { font-size: 14px; color: var(--slate); }
.form-status.err { color: var(--error); }
.form-success { display: none; padding: 24px 0; }
.form-success h3 { font-size: var(--t-h3); margin-top: 20px; }
.form-success p { color: var(--slate); margin-top: 8px; }
.success-mark { display: block; width: 40px; height: 40px; border-radius: 50%; background: var(--carbon); position: relative; }
.success-mark::after { content: ""; position: absolute; left: 14px; top: 11px; width: 8px; height: 14px; border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(45deg); }
form.sent .form-body { display: none; }
form.sent .form-success { display: block; }

/* ---------- Pie ---------- */
.site-footer { background: var(--carbon); color: var(--on-dark-2); padding: 64px 0 32px; font-size: 14px; }
.footer-top { display: grid; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid var(--line-dark); min-width: 0; }
.footer-brand img { width: 240px; height: auto; }
.footer-brand p { margin-top: 20px; line-height: 1.7; }
.footer-cols { display: grid; gap: 32px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-col h2 { font: 500 14px/1.4 var(--font-text); letter-spacing: 0; color: var(--on-dark); margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--on-dark-2); overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 24px; font-size: 13px; }
.footer-social { display: flex; gap: 8px; }
.footer-social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-dark); color: var(--on-dark); }
.footer-social a:hover { border-color: var(--white); }
@media (min-width: 900px) {
  .footer-top { grid-template-columns: 5fr 7fr; gap: 64px; }
  .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Páginas legales ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--carbon); color: var(--on-dark); padding: calc(var(--header-h) + 48px) 0 0; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center top;
  -webkit-mask-image: linear-gradient(to bottom, #000 10%, transparent 95%); mask-image: linear-gradient(to bottom, #000 10%, transparent 95%);
}
.page-hero .container { padding-bottom: 48px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--on-dark-2); margin-bottom: 20px; }
.breadcrumb a { color: var(--on-dark-2); }
.breadcrumb a:hover { color: var(--white); }
.page-hero h1 { font-size: clamp(2rem, 6vw, 3.25rem); letter-spacing: -0.035em; max-width: 20ch; }
.page-hero .updated { margin-top: 16px; font-size: 14px; color: var(--on-dark-2); }
.subnav { margin: 36px calc(var(--gutter) * -1) -48px; padding: 0 var(--gutter); overflow-x: auto; scrollbar-width: none; }
.subnav::-webkit-scrollbar { display: none; }
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; min-width: max-content; border-bottom: 1px solid var(--line-dark); }
.subnav a { display: block; padding: 14px 0 16px; color: var(--on-dark-2); font-size: 15px; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subnav a:hover { color: var(--white); text-decoration: none; }
.subnav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--white); }
@media (min-width: 1024px) { .subnav { margin-left: 0; margin-right: 0; padding: 0; } }

.legal-layout { display: grid; gap: 32px; padding-top: 48px; padding-bottom: var(--section); }
.toc { font-size: 14px; }
.toc-title { font-size: 14px; font-weight: 500; color: var(--carbon); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc li a { display: block; padding: 6px 0 6px 16px; color: var(--slate); margin-left: -1px; border-left: 1px solid transparent; line-height: 1.4; }
.toc li a:hover { color: var(--carbon); text-decoration: none; border-left-color: var(--carbon); }
.toc li a.active { color: var(--carbon); border-left-color: var(--cobalt); font-weight: 500; }
.toc-mobile { border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; }
.toc-mobile summary { cursor: pointer; padding: 14px 0; font-weight: 500; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile summary::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid var(--slate); border-bottom: 1.5px solid var(--slate); transform: rotate(45deg) translateY(-3px); transition: transform .2s ease; }
.toc-mobile[open] summary::after { transform: rotate(-135deg); }
.toc-mobile ol { margin-bottom: 14px; }
.toc-desktop { display: none; }
.prose { max-width: 70ch; font-size: var(--t-base); line-height: 1.75; min-width: 0; }
.prose h2 { font-size: 1.5rem; letter-spacing: -0.02em; margin: 56px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.1875rem; margin: 32px 0 10px; }
.prose p, .prose ul, .prose ol { margin: 0 0 18px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose .pending { color: var(--slate); background: var(--mist); border-radius: 6px; padding: 2px 8px; font-size: 15px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.callout { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 0 0 32px; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps li { counter-increment: s; position: relative; padding-left: 48px; margin-bottom: 20px; min-height: 32px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font: 600 14px/1 var(--font-title); }
.faq { border-top: 1px solid var(--line); margin-bottom: 40px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font: 600 1.0625rem/1.4 var(--font-title); letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; border-right: 1.5px solid var(--slate); border-bottom: 1.5px solid var(--slate); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:hover { color: var(--cobalt); }
.faq .answer { padding: 0 0 20px; color: var(--slate); }
@media (min-width: 1024px) {
  .legal-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 96px; padding-top: 72px; }
  .toc-mobile { display: none; }
  .toc-desktop { display: block; position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
}

/* 404 */
.notfound { min-height: 100vh; display: flex; align-items: center; padding-bottom: 80px; }
.notfound .code { font-size: 14px; color: var(--on-dark-2); margin-bottom: 16px; }
.notfound h1 { font-size: clamp(2.25rem, 7vw, 4rem); letter-spacing: -0.04em; max-width: 14ch; }
.notfound p:not(.code) { color: var(--on-dark-2); margin: 20px 0 32px; max-width: 46ch; }

/* ---------- Entradas al hacer scroll (16 px, 400 ms) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bp-cursor path { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

section[tabindex="-1"]:focus { outline: none; }

/* Tablas en textos legales */
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 15px; line-height: 1.5; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 500; color: var(--slate); font-size: 14px; border-bottom-color: var(--line-strong); }
.prose td:last-child { font-weight: 500; }
.prose > p:first-child { font-size: var(--t-lg); color: var(--slate); margin-bottom: 40px; }

/* ---------- Libro de Reclamaciones ---------- */
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.lr-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border: 1px solid var(--line-dark); border-radius: 10px; color: var(--on-dark); font-size: 13px; line-height: 1.2; }
.lr-badge:hover { border-color: var(--white); text-decoration: none; }
.lr-layout { display: grid; gap: 32px; padding-top: 40px; padding-bottom: var(--section); }
.lr-provider dl { margin: 0; display: grid; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.lr-provider dt { font-size: 13px; color: var(--slate); }
.lr-provider dd { margin: 2px 0 0; font-weight: 500; }
.lr-defs { margin-top: 16px; padding: 20px; background: var(--mist); border-radius: var(--radius); font-size: 15px; color: var(--ink-2); display: grid; gap: 10px; }
.lr-form { min-width: 0; }
.lr-step { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px 4px; margin: 0 0 16px; min-width: 0; }
.lr-step > legend { display: flex; align-items: center; gap: 12px; padding: 0 8px; margin-left: -8px; font: 600 1.125rem/1.3 var(--font-title); letter-spacing: -0.015em; }
.lr-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--carbon); color: var(--white); font-size: 13px; flex: 0 0 auto; }
.lr-final { padding-bottom: 24px; }
.field select {
  font: inherit; font-size: 16px; color: var(--carbon); width: 100%; min-height: 48px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235B6472' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 12px 40px 12px 14px; -webkit-appearance: none; appearance: none;
}
.field select:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(47, 91, 255, 0.16); }
.field input[type="tel"] { font: inherit; font-size: 16px; color: var(--carbon); width: 100%; background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 12px 14px; min-height: 48px; -webkit-appearance: none; appearance: none; }
.field input[type="tel"]:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(47, 91, 255, 0.16); }
.field .hint { font-size: 13px; color: var(--slate); }
.field ::placeholder { color: #9AA2AE; }
.field[hidden], .field [hidden] { display: none; }
.lr-form [aria-invalid="true"] { border-color: var(--error) !important; }
.lr-error { color: var(--error); font-size: 14px; margin: 12px 0 0; }
.lr-error:empty { display: none; }
.lr-note { margin-top: 16px; font-size: 13px; color: var(--slate); }
.lr-done { display: none; padding: 32px 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.lr-done h2 { font-size: 1.5rem; margin-top: 20px; }
.lr-code { margin-top: 8px; font-size: 1.125rem; }
.lr-code strong { font-family: var(--font-title); letter-spacing: 0.01em; }
.lr-done p { color: var(--slate); margin-top: 8px; }
.lr-done .lr-code { color: var(--carbon); }
.lr-done-warn { color: var(--error) !important; }
.lr-form.sent .lr-body { display: none; }
.lr-form.sent .lr-done { display: block; }
@media (min-width: 640px) { .form-row.doc { grid-template-columns: 1fr 1.4fr; } .lr-step { padding: 28px 28px 8px; } .lr-final { padding-bottom: 28px; } }
@media (min-width: 1024px) {
  .lr-layout { grid-template-columns: 300px minmax(0, 1fr); gap: 64px; padding-top: 64px; align-items: start; }
  .lr-provider { position: sticky; top: calc(var(--header-h) + 32px); }
}
@media print {
  .site-header, .site-footer, .page-hero, .skip-link, .lr-done .form-actions { display: none !important; }
  .lr-layout { display: block; padding: 0; }
  .lr-provider dl, .lr-done { border: 0; padding: 0; }
  body { font-size: 12pt; }
}
