/* =========================================================
   Legal Strategic Solutions · Hoja de estilos
   Manual de marca: #638287 (verde azulado) · #2E4E79 (azul) · #C5C5BF (gris) · #FFFFFF
   Tipos: Bodoni Moda (sustituto web de Bodoni MT) · Montserrat · Nexa
   ========================================================= */

@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Nexa"; src: url("../fonts/nexa-light.woff2") format("woff2"); font-weight: 300 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Nexa"; src: url("../fonts/nexa-bold.woff2") format("woff2"); font-weight: 500 800; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  /* Marca */
  --brand-teal: #638287;
  --brand-navy: #2E4E79;
  --brand-gray: #C5C5BF;
  --brand-white: #FFFFFF;
  /* Derivados de la marca (tonos para profundidad y contraste) */
  --ink: #14253C;
  --navy-900: #1E3656;
  --navy-800: #2E4E79;
  --navy-700: #3A5E8C;
  --teal-deep: #4B686D;
  --graphite: #2F3A47;
  --slate: #5B6770;
  --paper: #EFEFEC;
  --white: #FFFFFF;
  --line: rgba(30, 54, 86, .14);
  --line-strong: rgba(30, 54, 86, .28);
  --brass: #638287;
  --brass-deep: #4B686D;
  --brass-light: #B5CBCE;
  --ivory: #FFFFFF;
  --on-dark: #E8ECEF;
  --on-dark-mute: #B9C5D1;
  --wa: #138043;
  --ok: #1E7A4C;
  --err: #A33A2B;

  /* Tokens semánticos: cambian con el modo claro / oscuro */
  --bg: #FFFFFF;
  --bg-alt: #EFEFEC;
  --surface: #FFFFFF;
  --text: #26303B;
  --text-soft: #46525C;
  --heading: #1E3656;
  --heading-2: #2E4E79;
  --label: #4B686D;
  --sel-bg: #2E4E79;
  --sel-fg: #FFFFFF;
  --sel-soft: #C5D0DC;
  --sel-accent: #C5C5BF;
  --done: #638287;
  --strong-bg: #2E4E79;
  --strong-hover: #1E3656;
  --strong-fg: #FFFFFF;
  --card-dark: #2E4E79;
  --urgent-bg: #F6ECE9;
  --ok-bg: #EAF3EE;
  --ok-text: #1E7A4C;
  --err-text: #A33A2B;
  --shadow: rgba(30, 54, 86, .30);
  --map-bg: #E7EAEA;
  --map-river: #C4D6DA;
  --map-street: #FFFFFF;
  --map-main: #D6D6D0;
  --map-lbl: #5B6770;
  --map-filter: grayscale(.25) contrast(1.05);

  --f-display: "Bodoni Moda", "Bodoni MT", "Didot", "Bodoni 72", Georgia, "Times New Roman", serif;
  --f-body: "Nexa", "Montserrat", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --f-ui: "Montserrat", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --f-mono: var(--f-ui);

  --step--1: .8125rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.9rem, 3.4vw, 2.75rem);
  --step-4: clamp(2.3rem, 5vw, 4.4rem);

  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1240px;
  --radius: 3px;
  --ease: cubic-bezier(.7, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-variation-settings: "opsz" 11;
  transition: background-color .3s, color .3s;
  font-size: var(--step-0);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.mono { font-family: var(--f-mono); font-size: .78em; letter-spacing: .02em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sel { user-select: all; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--brand-white); color: var(--navy-800); padding: 10px 14px; border-radius: var(--radius); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Tipografía base ---------- */
.eyebrow {
  margin: 0 0 14px;
  font-family: var(--f-mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brass-light);
}
.eyebrow--dark { color: var(--label); }
.display {
  margin: 0 0 20px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: var(--step-4);
  line-height: 1.02;
  letter-spacing: -.01em;
  color: var(--ivory);
  text-wrap: balance;
}
.display em { font-style: italic; font-weight: 500; color: var(--brass-light); }
.h2 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: var(--step-3);
  line-height: 1.08;
  color: var(--heading);
  text-wrap: balance;
}
.h2--light { color: var(--ivory); }
.h3 { margin: 0 0 12px; font-family: var(--f-display); font-weight: 600; font-size: var(--step-2); color: var(--heading); }
.lead { margin: 0 0 28px; font-size: var(--step-1); line-height: 1.55; color: var(--on-dark); max-width: 34em; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px;
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  text-decoration: none; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
@media (hover: hover) and (pointer: fine) { .btn:hover { transform: translateY(-1px); } }
.btn--brass { background: var(--brand-white); color: var(--navy-800); }
@media (hover: hover) and (pointer: fine) { .btn--brass:hover { background: var(--brand-gray); } }
.btn--ghost { border-color: rgba(230, 234, 240, .4); color: var(--on-dark); }
@media (hover: hover) and (pointer: fine) { .btn--ghost:hover { border-color: var(--brass-light); color: var(--brass-light); } }
.btn--navy { background: var(--strong-bg); color: var(--strong-fg); }
@media (hover: hover) and (pointer: fine) { .btn--navy:hover { background: var(--strong-hover); } }
.btn--line { border-color: var(--line-strong); color: var(--heading); background: transparent; }
@media (hover: hover) and (pointer: fine) { .btn--line:hover { border-color: var(--heading); } }
.btn--wa { background: var(--wa); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Barra superior y cabecera ---------- */
.topbar { background: var(--ink); color: var(--on-dark-mute); font-size: .8rem; }
.topbar__in { display: flex; align-items: center; gap: 24px; min-height: 38px; }
.topbar__item:nth-child(2) { margin-right: auto; }
.lang { display: flex; border: 1px solid rgba(159, 176, 196, .35); border-radius: 999px; overflow: hidden; }
.lang__btn { background: none; border: 0; padding: 3px 12px; font-family: var(--f-mono); font-size: .72rem; color: var(--on-dark-mute); }
.lang__btn.is-active { background: var(--brand-gray); color: var(--ink); }

.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(20, 37, 60, .95);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(99, 130, 135, .28);
}
.header__in { display: flex; align-items: center; gap: 24px; min-height: 74px; }
.brand { display: flex; flex-direction: column; line-height: 1; text-decoration: none; margin-right: auto; }
.brand__logo { display: block; height: 30px; width: auto; color: var(--brand-white); }
.brand__sub { margin-top: 6px; font-family: var(--f-ui); font-weight: 600; font-size: .6rem; letter-spacing: .24em; text-transform: uppercase; color: var(--brand-gray); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--on-dark); text-decoration: none; font-size: .92rem; font-weight: 500; position: relative; white-space: nowrap; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 1px; background: var(--brass-light); transition: right .25s; }
@media (hover: hover) and (pointer: fine) { .nav a:not(.btn):hover::after { right: 0; } }
.nav .btn { color: var(--ink); min-height: 40px; }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; }
.burger span { display: block; height: 1.5px; background: var(--ivory); margin: 6px 0; transition: transform .25s, opacity .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- HERO · prisma 3D ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(60% 70% at 78% 30%, rgba(99, 130, 135, .32), transparent 60%),
    radial-gradient(50% 60% at 10% 90%, rgba(46, 78, 121, .9), transparent 70%),
    var(--ink);
  padding-block: clamp(28px, 5vw, 56px) 36px;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(to right, rgba(169, 193, 196, .05) 1px, transparent 1px);
  background-size: 88px 100%;
}
.carousel { position: relative; }
.stage { perspective: 2000px; perspective-origin: 50% 45%; touch-action: pan-y; cursor: grab; transition: transform 520ms cubic-bezier(.23, 1, .32, 1); }
.stage.is-dragging { cursor: grabbing; }
.stage.is-moving { transform: scale(.965); }
.prism {
  --r: 360px;
  --h: clamp(540px, 68vh, 640px);
  position: relative;
  height: var(--h);
  transform-style: preserve-3d;
  transform: translateZ(calc(var(--r) * -1)) rotateY(0deg);
  /* La transición la fija main.js en cada giro: curva automática o curva de gesto */
}
.prism.no-anim { transition: none; }
.face {
  position: absolute; inset: 0;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border: 1px solid rgba(99, 130, 135, .3);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7);
}
.face--1 { transform: rotateY(0deg) translateZ(var(--r)); background: linear-gradient(115deg, #3E595E 0%, #4B686D 55%, #57767B 100%); }
.face--2 { transform: rotateY(120deg) translateZ(var(--r)); background: radial-gradient(80% 90% at 80% 50%, #2E4E79 0%, #1E3656 45%, #14253C 80%); }
.face--3 { transform: rotateY(240deg) translateZ(var(--r)); background: linear-gradient(135deg, #2A4568 0%, #14253C 100%); }
.face__grid { display: grid; grid-template-columns: 1.15fr .85fr; height: 100%; }
.face__copy { align-self: center; padding: clamp(28px, 5vw, 64px); position: relative; z-index: 2; }
.face__art { position: relative; min-height: 0; }

.face__art--portrait { display: flex; align-items: flex-end; justify-content: center; }
.face__art--portrait img { position: relative; z-index: 1; height: 96%; width: auto; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(20, 37, 60, .5)); }
.portrait-ring { position: absolute; width: min(78%, 400px); aspect-ratio: 1; left: 50%; top: 18%; transform: translateX(-50%); border: 1px solid rgba(255, 255, 255, .45); border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .08), transparent 70%); }
.portrait-ring::after { content: ""; position: absolute; inset: 18px; border-radius: 50%; border: 1px dashed rgba(169, 193, 196, .25); }
.caption { position: absolute; z-index: 2; right: 18px; bottom: 18px; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; margin: 0; padding: 10px 14px; background: rgba(20, 37, 60, .8); color: var(--on-dark); }
.caption span:first-child { color: var(--ivory); font-weight: 500; }

.face__art--route { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; }
.route { width: min(100%, 420px); height: auto; }
.route__ring { fill: none; stroke: rgba(169, 193, 196, .22); stroke-width: 1; }
.route__ring--2 { stroke-dasharray: 3 6; }
.route__arc { fill: none; stroke: var(--brass-light); stroke-width: 1.5; stroke-dasharray: 6 8; animation: dash 3.5s linear infinite; }
.route__arc--2 { animation-duration: 4.2s; }
.route__arc--3 { animation-duration: 5s; }
.route__home { fill: var(--brass); stroke: rgba(169, 193, 196, .35); stroke-width: 10; }
.route__pt { fill: var(--ivory); }
.route__lbl { font-family: var(--f-mono); font-size: 12px; fill: var(--on-dark-mute); letter-spacing: .1em; }
.coords { margin: 10px 0 0; color: var(--brass-light); letter-spacing: .18em; }
@keyframes dash { to { stroke-dashoffset: -56; } }

.face__art--photo { display: flex; align-items: center; justify-content: center; padding: 32px 36px 32px 0; }
.framed { position: relative; margin: 0; height: 88%; aspect-ratio: 9 / 14; max-width: 100%; }
.framed::before { content: ""; position: absolute; inset: -14px 14px 14px -14px; border: 1px solid var(--brass); }
.framed img { position: relative; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: saturate(.85) contrast(1.05); }
.stamp { position: absolute; right: 24px; top: 24px; margin: 0; padding: 6px 10px; border: 1px solid rgba(169, 193, 196, .5); color: var(--brass-light); transform: rotate(4deg); letter-spacing: .12em; }

.carousel__controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 26px; position: relative; }
.ctrl { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(230, 234, 240, .3); background: transparent; display: grid; place-items: center; transition: border-color .2s, background .2s; }
@media (hover: hover) and (pointer: fine) { .ctrl:hover { border-color: var(--brass-light); background: rgba(99, 130, 135, .12); } }
.ctrl svg { width: 18px; height: 18px; fill: none; stroke: var(--ivory); stroke-width: 1.6; }
.dots { display: flex; gap: 10px; }
.dot { width: 56px; height: 20px; padding: 0; border: 0; background: none; display: flex; align-items: center; }
.dot i { display: block; width: 100%; height: 2px; background: rgba(230, 234, 240, .25); position: relative; overflow: hidden; }
.dot i::after { content: ""; position: absolute; inset: 0; background: var(--brass-light); transform-origin: left; transform: scaleX(0); }
.dot.is-active i::after { transform: scaleX(1); }
.carousel.is-playing .dot.is-active i::after { animation: fill var(--dur, 7s) linear; }
.carousel.is-paused .dot.is-active i::after { animation-play-state: paused; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.carousel__hint { position: absolute; left: 0; color: var(--on-dark-mute); letter-spacing: .12em; text-transform: uppercase; }

/* ---------- Credenciales ---------- */
.creds { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.creds__in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cred { margin: 0; padding: 22px 22px; border-left: 1px solid var(--line); font-family: var(--f-ui); font-size: .9rem; line-height: 1.45; color: var(--text-soft); text-wrap: pretty; }
.cred:first-child { border-left: 0; padding-left: 0; }
.cred b { display: block; font-family: var(--f-display); font-weight: 500; font-size: 1.3rem; line-height: 1.15; color: var(--heading); margin-bottom: 2px; }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--paper { background: var(--bg-alt); }
.section--white { background: var(--bg); }
.section--navy { background: var(--navy-800); color: var(--on-dark); }
.section--ink { background: var(--ink); color: var(--on-dark); }
.section__head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section__head--split { max-width: none; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: end; }
.section__lead { margin: 16px 0 0; font-size: 1.05rem; color: var(--text-soft); max-width: 38em; }
.section__head--split .section__lead { margin: 0; }
.section__lead--light { color: var(--on-dark-mute); }

/* ---------- Su caso (asistente) ---------- */
.case__body { display: grid; grid-template-columns: 220px 1fr; gap: clamp(20px, 4vw, 48px); align-items: start; }
.case__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; position: sticky; top: 110px; }
.case__steps li { display: flex; gap: 12px; align-items: baseline; padding: 12px 0 12px 16px; border-left: 2px solid var(--line); color: var(--text-soft); font-weight: 500; transition: color .2s, border-color .2s; }
.case__steps li .mono { color: inherit; }
.case__steps li.is-active { border-color: var(--brass); color: var(--heading); }
.case__steps li.is-done { color: var(--done); border-color: var(--done); }

.case__panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 44px) clamp(22px, 4vw, 44px) clamp(24px, 4vw, 40px) clamp(34px, 5vw, 60px);
  box-shadow: 0 30px 60px -40px var(--shadow);
}
.case__panel::before { content: ""; position: absolute; left: clamp(18px, 2.6vw, 30px); top: 0; bottom: 0; width: 1px; background: rgba(99, 130, 135, .55); }
.q__label { margin: 0 0 6px; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--label); }
.q__title { margin: 0 0 22px; font-family: var(--f-display); font-size: var(--step-2); font-weight: 500; color: var(--heading); line-height: 1.2; }
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.opts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.opt {
  text-align: left; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 14px 16px; font-size: .95rem; color: var(--text); line-height: 1.35;
  display: flex; flex-direction: column; gap: 4px;
  transition: border-color .15s, background .15s, transform .15s;
}
.opt small { color: var(--text-soft); font-size: .8rem; }
@media (hover: hover) and (pointer: fine) { .opt:hover { border-color: var(--heading); transform: translateY(-1px); } }
.opt[aria-pressed="true"] { border-color: var(--sel-bg); background: var(--sel-bg); color: var(--sel-fg); }
.opt[aria-pressed="true"] small { color: var(--sel-soft); }
.q__nav { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; gap: 12px; }
.linkbtn { background: none; border: 0; padding: 6px 0; color: var(--text-soft); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }

.result__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; align-items: baseline; padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.result__ref { font-family: var(--f-mono); font-size: .82rem; color: var(--label); letter-spacing: .06em; }
.result__area { margin: 4px 0 0; font-family: var(--f-display); font-size: var(--step-3); font-weight: 500; color: var(--heading); line-height: 1.05; }
.result__basis { margin: 8px 0 0; font-family: var(--f-mono); font-size: .78rem; color: var(--text-soft); }
.result__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.result h4 { margin: 0 0 10px; font-size: .8rem; font-family: var(--f-mono); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--label); }
.result ol, .result ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.result li { padding-left: 4px; }
.result__note { margin: 20px 0 0; padding: 12px 16px; background: var(--bg-alt); font-size: .92rem; }
.result__note--urgent { background: var(--urgent-bg); border-color: var(--err); }
.result .actions { margin-top: 24px; }

/* ---------- Áreas de práctica ---------- */
.areas { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
.areas__index { display: grid; border-top: 1px solid var(--line); }
.area-tab {
  display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center;
  text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line);
  padding: 15px 14px 15px 0; color: var(--text); position: relative;
  transition: background .2s, color .2s, padding .25s var(--ease);
}
.area-tab__n { font-family: var(--f-mono); font-size: .74rem; color: var(--text-soft); }
.area-tab__name { font-weight: 600; font-size: 1rem; line-height: 1.3; }
.area-tab__arrow { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; opacity: 0; transition: opacity .2s, transform .2s; }
@media (hover: hover) and (pointer: fine) { .area-tab:hover { color: var(--heading); padding-left: 8px; } }
@media (hover: hover) and (pointer: fine) { .area-tab:hover .area-tab__arrow { opacity: .6; } }
.area-tab[aria-selected="true"] { background: var(--sel-bg); color: var(--sel-fg); padding-left: 14px; }
.area-tab[aria-selected="true"] .area-tab__n { color: var(--sel-accent); }
.area-tab[aria-selected="true"] .area-tab__arrow { opacity: 1; transform: translateX(-4px); }

.areas__sheet {
  position: sticky; top: 104px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(26px, 4vw, 48px);
  box-shadow: 18px 18px 0 -1px var(--bg-alt), 18px 18px 0 0 var(--line);
  min-height: 480px;
}
.sheet__folio { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: .74rem; color: var(--text-soft); letter-spacing: .08em; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.sheet__title { margin: 0 0 18px; font-family: var(--f-display); font-weight: 500; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.08; color: var(--heading); text-wrap: balance; }
.sheet__desc { margin: 0 0 26px; font-size: 1.04rem; color: var(--text); max-width: 60ch; }
.sheet__label { margin: 0 0 10px; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--label); }
.tags { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .86rem; color: var(--heading-2); }
.sheet__basis { margin: 0 0 28px; padding: 12px 14px; background: var(--bg-alt); font-family: var(--f-mono); font-size: .8rem; color: var(--heading-2); }
.sheet__pending { margin: -14px 0 24px; font-size: .8rem; color: var(--text-soft); font-style: italic; }
.sheet-enter { animation: sheetIn .45s var(--ease); }
@keyframes sheetIn { from { opacity: .2; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- La firma ---------- */
.firm { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
.firm__portrait { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 560px; }
.firm__plate { position: absolute; left: 8%; right: 8%; top: 8%; bottom: 0; background: linear-gradient(180deg, #638287, #4B686D); border: 1px solid rgba(255, 255, 255, .25); }
.firm__plate::after { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1px solid rgba(99, 130, 135, .25); pointer-events: none; }
.firm__portrait img { position: relative; height: 600px; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 30px 30px rgba(0, 0, 0, .4)); }
.firm__name { position: absolute; left: 0; bottom: 28px; display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; background: var(--ivory); color: var(--navy-900); max-width: 90%; box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .45); }
.firm__name b { font-family: var(--f-display); font-size: 1.2rem; font-weight: 600; }
.firm__name span { color: var(--slate); }
.firm__copy .h2 { margin-bottom: 28px; }
.tabs { display: flex; gap: 26px; border-bottom: 1px solid rgba(230, 234, 240, .18); margin-bottom: 20px; }
.tab { background: none; border: 0; padding: 10px 0; color: var(--on-dark-mute); font-weight: 600; position: relative; }
.tab[aria-selected="true"] { color: var(--ivory); }
.tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brass-light); }
.tabpanel p { margin: 0 0 14px; color: var(--on-dark); max-width: 60ch; }
.values { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0; }
.values li { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-light); padding: 0 16px; border-left: 1px solid rgba(169, 193, 196, .35); }
.values li:first-child { padding-left: 0; border-left: 0; }
.quote { margin: 36px 0 0; padding: 0; }
.quote p { margin: 0; font-family: var(--f-display); font-style: italic; font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 500; line-height: 1.25; color: var(--ivory); }

/* ---------- Método ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: s; }
.step { padding: 26px 26px 0 0; border-top: 1px solid var(--line-strong); position: relative; }
.step::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--brass); }
.step__n { display: block; margin-bottom: 14px; color: var(--label); }
.step h3 { margin: 0 0 10px; font-family: var(--f-display); font-weight: 600; font-size: 1.45rem; color: var(--heading); }
.step p { margin: 0; color: var(--text-soft); font-size: .96rem; }

/* ---------- Exterior + globo ---------- */
.abroad { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.abroad .section__lead { margin-bottom: 30px; }
.ablist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; }
.ablist li { display: flex; gap: 14px; }
.ablist b { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid rgba(169, 193, 196, .5); color: var(--brass-light); border-radius: 50%; font-size: .75rem; }
.ablist h3 { margin: 2px 0 4px; font-size: 1rem; color: var(--ivory); }
.ablist p { margin: 0; font-size: .9rem; color: var(--on-dark-mute); line-height: 1.5; }
.abroad__globe { position: relative; display: flex; flex-direction: column; align-items: center; }
#globe { width: 100%; max-width: 560px; height: auto; aspect-ratio: 1; cursor: grab; touch-action: pan-y; }
.globe__legend { margin: 8px 0 0; color: var(--on-dark-mute); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: center; }
.pip { width: 8px; height: 8px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 4px rgba(99, 130, 135, .25); }
.sep { color: var(--brass-light); }

/* ---------- Radar jurídico ---------- */
.radar { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.news__stamp { display: block; margin-top: 8px; color: var(--label); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 999px; padding: 6px 14px; font-size: .86rem; font-weight: 500; color: var(--heading-2); }
.chip[aria-selected="true"] { background: var(--sel-bg); border-color: var(--sel-bg); color: var(--sel-fg); }
.chip b { font-family: var(--f-mono); font-weight: 400; font-size: .72rem; opacity: .7; margin-left: 4px; }
.news { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news__item { display: grid; grid-template-columns: 132px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.news__meta { display: flex; flex-direction: column; gap: 4px; font-family: var(--f-mono); font-size: .72rem; color: var(--text-soft); }
.news__src { color: var(--heading-2); font-weight: 500; }
.news__cat { align-self: flex-start; margin-top: 4px; padding: 2px 8px; border: 1px solid rgba(99, 130, 135, .6); color: var(--label); border-radius: 999px; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }
.news__title { margin: 0; font-size: 1.06rem; font-weight: 600; line-height: 1.4; color: var(--heading); }
.news__title a { text-decoration: none; background-image: linear-gradient(var(--brass), var(--brass)); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .3s; }
@media (hover: hover) and (pointer: fine) { .news__title a:hover { background-size: 100% 1px; } }
.news__sum { margin: 6px 0 0; font-size: .9rem; color: var(--text-soft); }
.news__empty { padding: 26px 0; color: var(--text-soft); }
.radar__links { background: var(--bg-alt); padding: 26px; border-top: 3px solid var(--heading); }
.links { list-style: none; margin: 0; padding: 0; }
.links li { border-bottom: 1px solid var(--line); }
.links li:last-child { border-bottom: 0; }
.links a { display: flex; flex-direction: column; padding: 11px 22px 11px 0; text-decoration: none; position: relative; font-weight: 600; font-size: .94rem; color: var(--heading); }
.links a::after { content: "↗"; position: absolute; right: 0; top: 12px; color: var(--label); transition: transform .2s; }
@media (hover: hover) and (pointer: fine) { .links a:hover::after { transform: translate(2px, -2px); } }
.links small { font-family: var(--f-mono); font-weight: 400; font-size: .72rem; color: var(--text-soft); }

/* ---------- Agenda ---------- */
.booking { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.facts { margin: 32px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--label); padding-top: 2px; }
.facts dd { margin: 0; color: var(--heading); font-weight: 500; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; background: var(--surface); border: 1px solid var(--line); padding: clamp(22px, 4vw, 40px); box-shadow: 0 30px 60px -40px var(--shadow); }
.form__ref { grid-column: 1 / -1; margin: 0; padding: 10px 14px; background: var(--bg-alt); color: var(--label); }
.field { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--half { grid-column: span 1; }
.field label, .field legend { font-size: .84rem; font-weight: 600; color: var(--heading-2); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="date"], .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 12px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface); color: var(--text); font: inherit; font-size: 1rem;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(99, 130, 135, .22); }
.field .is-invalid { border-color: var(--err-text) !important; }
.seg { border: 0; padding: 0; margin: 0; }
.seg legend { padding: 0; margin-bottom: 6px; }
.seg__opts { display: flex; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.seg__opts input { position: absolute; opacity: 0; pointer-events: none; }
.seg__opts label { flex: 1; text-align: center; padding: 11px 8px; font-weight: 500; font-size: .92rem; cursor: pointer; color: var(--heading-2); }
.seg__opts input:checked + label { background: var(--sel-bg); color: var(--sel-fg); }
.seg__opts input:focus-visible + label { outline: 2px solid var(--brass); outline-offset: -2px; }
.check { flex-direction: row; align-items: flex-start; gap: 10px; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--sel-bg); flex: none; }
.check label { font-weight: 400; color: var(--text-soft); font-size: .86rem; line-height: 1.5; }
.hp { position: absolute; left: -9999px; }
.form__err { grid-column: 1 / -1; margin: 0; color: var(--err-text); font-size: .9rem; }
.form__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; }
.form__ok { grid-column: 1 / -1; padding: 18px 20px; background: var(--ok-bg); border: 1px solid color-mix(in srgb, var(--ok-text) 35%, transparent); color: var(--text); }
.form__ok b { display: block; color: var(--ok-text); margin-bottom: 4px; }
.form__ok .actions { margin-top: 12px; }

/* ---------- Contacto + mapa ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.contact .h2 { margin-bottom: 26px; }
.label { display: block; color: var(--label); letter-spacing: .1em; text-transform: uppercase; font-size: .7rem; margin-bottom: 2px; }
.card-addr { font-style: normal; display: flex; flex-direction: column; padding: 18px 20px; background: var(--card-dark); color: var(--on-dark); margin-bottom: 18px; }
.card-addr .label { color: var(--brass-light); }
.card-addr b { font-family: var(--f-display); font-size: 1.6rem; font-weight: 500; color: var(--ivory); }
.contact__list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; }
.contact__list li { padding: 11px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; color: var(--heading); font-weight: 500; }
.actions--dark { margin-bottom: 22px; }
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }
.social a { font-family: var(--f-mono); font-size: .8rem; color: var(--heading-2); text-underline-offset: 4px; }
.map { position: relative; aspect-ratio: 600 / 460; max-width: 100%; border: 1px solid var(--line); overflow: hidden; background: var(--map-bg); }
.map__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.m-bg { fill: var(--map-bg); }
.m-river { fill: none; stroke: var(--map-river); stroke-width: 34; }
.m-streets path { stroke: var(--map-street); stroke-width: 7; fill: none; }
.m-main { stroke: var(--map-main); stroke-width: 13; fill: none; }
.m-lbl { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; fill: var(--map-lbl); }
.map__pin { position: absolute; left: 56.3%; top: 47%; width: 0; height: 0; }
.map__pin span { position: absolute; left: -16px; top: -40px; width: 32px; height: 32px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--card-dark); box-shadow: 0 6px 14px rgba(0, 0, 0, .3); }
.map__pin span::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--brass-light); }
.map__pin::before { content: ""; position: absolute; left: -22px; top: -10px; width: 44px; height: 20px; border-radius: 50%; background: rgba(30, 54, 86, .18); animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: var(--map-filter); }
.map.has-embed .map__pin, .map.has-embed .map__art { display: none; }
.map__open { position: absolute; right: 14px; bottom: 14px; z-index: 2; background: var(--surface); color: var(--heading); padding: 9px 14px; font-weight: 600; font-size: .86rem; text-decoration: none; border: 1px solid var(--line-strong); border-radius: 999px; }

/* ---------- Pie ---------- */
.footer { background: var(--ink); color: var(--on-dark-mute); padding-block: 56px 36px; }
.footer__in { display: grid; grid-template-columns: auto 1fr auto; gap: 24px 48px; align-items: start; }
.footer__brand { display: flex; flex-direction: column; }
.footer__logo { display: block; width: 190px; height: auto; color: var(--brand-white); }
.footer__brand p { margin: 14px 0 0; }
.footer__tag { margin: 0; font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: 1.35rem; color: var(--on-dark); max-width: 22em; }
.footer__nav { display: flex; flex-direction: column; gap: 8px; }
.footer__nav a { color: var(--on-dark); text-decoration: none; font-size: .92rem; }
@media (hover: hover) and (pointer: fine) { .footer__nav a:hover { color: var(--brass-light); } }
.footer__legal { grid-column: 1 / -1; margin: 20px 0 0; padding-top: 20px; border-top: 1px solid rgba(159, 176, 196, .18); }

/* ---------- Flotantes ---------- */
.fab { position: fixed; right: 18px; z-index: 60; box-shadow: 0 12px 28px -8px rgba(0, 0, 0, .45); }
.fab--wa { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); width: 54px; height: 54px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; transition: transform .2s; }
@media (hover: hover) and (pointer: fine) { .fab--wa:hover { transform: scale(1.06); } }
.fab--wa svg { width: 30px; height: 30px; fill: #fff; }
.fab--bot { bottom: calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 10px; border: 1px solid rgba(169, 193, 196, .5); border-radius: 999px; background: var(--card-dark); color: var(--ivory); padding: 13px 20px 13px 16px; font-weight: 600; font-size: .92rem; }
.fab__dot { width: 9px; height: 9px; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 0 3px rgba(61, 220, 132, .25); }
.bot {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 70;
  width: min(380px, calc(100vw - 32px)); height: min(600px, calc(100vh - 120px));
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 10px; overflow: hidden; box-shadow: 0 30px 80px -20px rgba(7, 19, 31, .55);
  animation: botIn .3s var(--ease);
}
@keyframes botIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.bot__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: var(--card-dark); color: var(--ivory); border-bottom: 2px solid var(--brass); }
.bot__head b { display: block; font-family: var(--f-display); font-size: 1.15rem; font-weight: 600; }
.bot__head span { color: var(--on-dark-mute); font-size: .7rem; }
.bot__x { background: none; border: 0; color: var(--ivory); font-size: 1.6rem; line-height: 1; width: 36px; height: 36px; }
.bot__log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-alt); }
.msg { max-width: 86%; padding: 10px 13px; border-radius: 10px; font-size: .9rem; line-height: 1.45; }
.msg--bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-top-left-radius: 2px; color: var(--text); }
.msg--me { align-self: flex-end; background: var(--sel-bg); color: var(--sel-fg); border-top-right-radius: 2px; }
.msg a { color: var(--label); font-weight: 600; }
.msg--typing { color: var(--text-soft); font-style: italic; }
.bot__quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px 0; background: var(--surface); }
.bot__quick button { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 999px; padding: 6px 11px; font-size: .8rem; color: var(--heading-2); }
@media (hover: hover) and (pointer: fine) { .bot__quick button:hover { border-color: var(--heading); } }
.bot__form { display: flex; gap: 8px; padding: 10px 12px; background: var(--surface); }
.bot__form input { flex: 1; min-width: 0; min-height: 42px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 999px; font: inherit; font-size: .9rem; background: var(--bg); color: var(--text); }
.bot__form input:focus { outline: none; border-color: var(--brass); }
.bot__form button { border: 0; border-radius: 999px; background: var(--strong-bg); color: var(--strong-fg); padding: 0 16px; font-weight: 600; font-size: .86rem; }
.bot__note { margin: 0; padding: 0 12px 10px; background: var(--surface); font-size: .7rem; color: var(--text-soft); }

/* ---------- Casos reales (video) ---------- */
.cases { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
.cases__copy .h2 { margin-bottom: 20px; }
.cases__copy p { margin: 0 0 16px; color: var(--text); max-width: 56ch; }
.cases__result { margin: 26px 0; padding: 18px 0; border-block: 1px solid var(--line); }
.cases__result .label { margin-bottom: 6px; }
.cases__result p { margin: 0; font-family: var(--f-display); font-size: 1.35rem; line-height: 1.3; color: var(--heading); }
.cases .tags { margin-bottom: 26px; }
.case-video { position: relative; margin: 0; justify-self: center; width: min(100%, 340px); }
.case-video__frame { position: relative; aspect-ratio: 9 / 16; max-width: 100%; border-radius: 26px; overflow: hidden; background: var(--ink); border: 8px solid var(--ink); box-shadow: 0 40px 70px -35px var(--shadow), 0 0 0 1px var(--line); }
.case-video video { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--ink); }
.case-video figcaption { margin-top: 14px; font-family: var(--f-ui); font-size: .78rem; color: var(--text-soft); text-align: center; }
.case-video::before { content: ""; position: absolute; inset: 10% -14% 10% 14%; border: 1px solid var(--brand-teal); border-radius: 30px; opacity: .45; z-index: -1; }
@media (max-width: 960px) { .cases { grid-template-columns: 1fr; } .case-video::before { display: none; } }

/* ---------- Hora de Colombia vs. hora del visitante ---------- */
.live { display: inline-flex; align-items: center; gap: 8px; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: #8E99A3; flex: none; }
.live.is-open i { background: #3CC486; box-shadow: 0 0 0 3px rgba(60, 196, 134, .22); }
.tzw { margin-top: 28px; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--brand-teal); display: grid; gap: 14px; }
.tzw__clocks { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tzw__clock { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tzw__clock--home { padding-left: 16px; border-left: 1px solid var(--line); }
.tzw__lbl { font-family: var(--f-ui); font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--label); }
.tzw__time { font-family: var(--f-ui); font-weight: 600; font-size: clamp(1.25rem, 2.3vw, 1.9rem); line-height: 1.15; color: var(--heading); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tzw__day { font-size: .86rem; color: var(--text-soft); }
.tzw__status { margin: 0; display: flex; gap: 10px; align-items: baseline; font-family: var(--f-ui); font-weight: 600; font-size: .9rem; line-height: 1.45; color: var(--heading); }
.tzw__status i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #8E99A3; transform: translateY(-1px); }
.tzw__status.is-open i { background: #2FA86B; box-shadow: 0 0 0 4px rgba(47, 168, 107, .18); }
.tzw__hours { margin: 0; font-size: .92rem; line-height: 1.5; color: var(--text); }
.tzw__hours b { font-family: var(--f-ui); font-weight: 600; color: var(--heading); }
.tzw__pick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-family: var(--f-ui); font-size: .78rem; color: var(--text-soft); }
.field__hint { margin: 2px 0 0; font-family: var(--f-ui); font-size: .78rem; color: var(--label); }
.field__hint:empty { display: none; }
.tzw__pick select { min-height: 38px; max-width: 100%; padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); color: var(--text); font: inherit; font-size: .85rem; }
.tzw--dark { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .14); border-top-color: var(--brass-light); color-scheme: dark; }
.tzw--dark .tzw__clock--home { border-left-color: rgba(255, 255, 255, .14); }
.tzw--dark .tzw__lbl { color: var(--brass-light); }
.tzw--dark .tzw__time, .tzw--dark .tzw__status, .tzw--dark .tzw__hours b { color: #FFFFFF; }
.tzw--dark .tzw__day, .tzw--dark .tzw__pick { color: var(--on-dark-mute); }
.tzw--dark .tzw__hours { color: var(--on-dark); }
.tzw--dark .tzw__pick select { background: #1E3656; color: var(--on-dark); border-color: rgba(255, 255, 255, .25); }
@media (max-width: 420px) { .tzw__clocks { grid-template-columns: 1fr; } .tzw__clock--home { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 12px; } }

/* ---------- Indicadores económicos ---------- */
.ind-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.ind { background: var(--surface); padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ind--fx { background: var(--surface); box-shadow: inset 0 3px 0 var(--brand-teal); }
.ind__lbl { margin: 0; font-family: var(--f-ui); font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--label); display: flex; align-items: center; gap: 8px; }
.ind__live { width: 7px; height: 7px; border-radius: 50%; background: #2FA86B; box-shadow: 0 0 0 3px rgba(47, 168, 107, .2); }
.ind__val { margin: 0; font-family: var(--f-ui); font-weight: 600; font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1.15; color: var(--heading); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ind__note { margin: 0; font-size: .82rem; line-height: 1.4; color: var(--text-soft); }
.calc { margin-top: clamp(28px, 4vw, 44px); background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--heading-2); padding: clamp(22px, 3.5vw, 36px); }
.calc__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 24px; margin-bottom: 22px; }
.calc__head .h3 { margin: 0; }
.calc__tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.calc__body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
.calc__in { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.calc__in > label { font-family: var(--f-ui); font-size: .84rem; font-weight: 600; color: var(--heading-2); }
.calc__money { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg); padding: 0 14px; }
.calc__money span { font-family: var(--f-ui); font-weight: 600; font-size: 1.3rem; color: var(--text-soft); }
.calc__money input { flex: 1; min-width: 0; width: 100%; border: 0; background: transparent; padding: 12px 8px; font-family: var(--f-ui); font-weight: 600; font-size: 1.5rem; color: var(--heading); font-variant-numeric: tabular-nums; }
.calc__money:focus-within { border-color: var(--brand-teal); box-shadow: 0 0 0 3px rgba(99, 130, 135, .22); }
.calc__money input:focus { outline: none; }
.calc__mode .seg__opts label { font-size: .82rem; padding: 10px 8px; }
.calc__out { padding-left: clamp(0px, 3vw, 32px); border-left: 1px solid var(--line); }
.calc__lbl { margin: 0; font-family: var(--f-ui); font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--label); }
.calc__val { margin: 4px 0 2px; font-family: var(--f-display); font-size: clamp(2.2rem, 4.5vw, 3.2rem); line-height: 1.05; color: var(--heading); font-variant-numeric: lining-nums tabular-nums; }
.calc__up { margin: 0 0 14px; font-family: var(--f-ui); font-weight: 600; font-size: .92rem; color: var(--done); }
.calc__rule { margin: 0 0 18px; font-size: .95rem; line-height: 1.5; color: var(--text); max-width: 60ch; }
.calc__rule b { font-family: var(--f-ui); font-weight: 600; color: var(--heading); }
.calc__note { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--text-soft); }

/* ---------- Foro jurídico ---------- */
.forum { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.forum__list { display: grid; gap: 16px; }
.thread { background: var(--surface); border: 1px solid var(--line); padding: clamp(18px, 3vw, 26px); }
.thread__meta { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; font-family: var(--f-ui); font-size: .76rem; color: var(--text-soft); margin-bottom: 10px; }
.thread__meta .news__cat { margin-top: 0; }
.thread__title { margin: 0 0 8px; font-family: var(--f-display); font-weight: 500; font-size: 1.4rem; line-height: 1.2; color: var(--heading); }
.thread__msg { margin: 0 0 10px; color: var(--text); }
.thread .linkbtn { font-family: var(--f-ui); font-size: .85rem; color: var(--heading-2); }
.thread__replies { margin-top: 12px; display: grid; gap: 10px; }
.reply { padding: 12px 16px; background: var(--bg-alt); }
.reply p { margin: 0; }
.reply p + p { margin-top: 6px; }
.reply--team { background: color-mix(in srgb, var(--brand-teal) 12%, var(--bg-alt)); }
.reply--pending { opacity: .75; border-left-style: dashed; }
.reply__meta { font-family: var(--f-ui); font-size: .78rem; color: var(--text-soft); }
.reply__meta b { color: var(--heading); font-weight: 600; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-family: var(--f-ui); font-size: .66rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; background: var(--heading-2); color: #FFFFFF; vertical-align: 1px; }
.badge--ex { background: var(--brand-gray); color: #1E3656; }
.badge--pending { background: #F2E3CF; color: #6D4413; }
.reply-form { display: grid; gap: 8px; margin-top: 4px; }
.reply-form input[type="text"], .reply-form textarea { width: 100%; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg); color: var(--text); font: inherit; font-size: .92rem; }
.reply-form input:focus, .reply-form textarea:focus { outline: none; border-color: var(--brand-teal); }
.reply-form__ok { display: flex; gap: 8px; align-items: center; font-family: var(--f-ui); font-size: .78rem; color: var(--text-soft); }
.reply-form .btn { justify-self: start; min-height: 40px; }
.forum__side { position: sticky; top: 104px; display: grid; gap: 18px; }
.forum__form { display: grid; gap: 14px; background: var(--bg-alt); border-top: 3px solid var(--heading-2); padding: 24px; }
.forum__form .h3 { margin: 0; font-size: 1.35rem; }
.forum__form .field input, .forum__form .field select, .forum__form .field textarea { min-height: 42px; }
.forum__rules { padding: 0 4px; }
.forum__rules ul { margin: 6px 0 0; padding-left: 1.1em; display: grid; gap: 4px; font-size: .86rem; color: var(--text-soft); }
@media (max-width: 1080px) { .ind-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) { .forum, .calc__body { grid-template-columns: minmax(0, 1fr); } .forum__side { position: static; } .calc__out { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 18px; } }
@media (max-width: 420px) { .ind-grid { grid-template-columns: 1fr; } }

/* ---------- Tipografía de interfaz (Montserrat) ---------- */
.btn, .nav a, .skip, .case__steps li, .opt, .linkbtn, .area-tab__name, .tab, .ablist h3,
.news__title, .links a, .facts dd, .field label, .field legend, .seg__opts label, .contact__list li,
.map__open, .fab--bot, .bot__form button, .bot__quick button, .bot__quick a.bot__wa, .chip, .caption span,
.tags li, .form__ok b, .firm__name span, .cred span {
  font-family: var(--f-ui);
}
.mono { font-size: .74em; letter-spacing: .06em; }
.face--1 .eyebrow { color: #EEF2F3; }
.eyebrow { font-weight: 600; letter-spacing: .2em; }
body { font-size: 1.06rem; }
.section__lead, .sheet__desc, .tabpanel p, .step p, .news__sum { letter-spacing: .005em; }
b, strong { font-weight: 700; }

/* ---------- Modo oscuro ---------- */
:root[data-mode="dark"] {
  color-scheme: dark;
  --bg: #101C2C;
  --bg-alt: #132235;
  --surface: #182A42;
  --text: #DDE3E9;
  --text-soft: #B8C3CE;
  --heading: #FFFFFF;
  --heading-2: #E3E8EF;
  --label: #A9C1C4;
  --line: rgba(230, 234, 240, .12);
  --line-strong: rgba(230, 234, 240, .26);
  --sel-bg: #A9C1C4;
  --sel-fg: #14253C;
  --sel-soft: #33485A;
  --sel-accent: #2E4E79;
  --done: #A9C1C4;
  --strong-bg: #FFFFFF;
  --strong-hover: #E3E8EB;
  --strong-fg: #1E3656;
  --card-dark: #1E3656;
  --urgent-bg: rgba(214, 99, 79, .16);
  --ok-bg: rgba(64, 178, 120, .15);
  --ok-text: #74D3A2;
  --err-text: #F2937F;
  --shadow: rgba(0, 0, 0, .55);
  --map-bg: #152435;
  --map-river: #26455F;
  --map-street: #22364C;
  --map-main: #3F5E63;
  --map-lbl: #9BAAB8;
  --map-filter: invert(.9) hue-rotate(180deg) grayscale(.3) brightness(.95) contrast(.95);
}
:root[data-mode="dark"] .section--white + .section--paper,
:root[data-mode="dark"] .section--paper + .section--white { border-top: 1px solid var(--line); }

/* ---------- Selector de modo ---------- */
.toggles { display: flex; gap: 8px; }
.mode__btn { display: grid; place-items: center; padding: 3px 10px; }
.mode__btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { gap: 18px; }
  .nav a { font-size: .86rem; }
  .creds__in { grid-template-columns: repeat(2, 1fr); }
  .cred:nth-child(3) { border-left: 0; padding-left: 0; }
  .cred:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
}
@media (max-width: 1180px) {
  .burger { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; max-height: calc(100vh - 80px); overflow-y: auto; align-items: stretch; gap: 0;
    background: var(--navy-900); padding: 8px var(--gutter) 22px; border-bottom: 1px solid rgba(99, 130, 135, .3);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav a { padding: 14px 0; border-bottom: 1px solid rgba(230, 234, 240, .1); font-size: 1rem; }
  .nav a::after { display: none; }
  .nav .btn { margin-top: 14px; border-bottom: 0; }
}
@media (max-width: 960px) {
  .section__head--split { grid-template-columns: 1fr; gap: 12px; }
  .areas, .firm, .abroad, .radar, .booking, .contact { grid-template-columns: 1fr; }
  .areas__sheet { position: static; min-height: 0; }
  .case__body { grid-template-columns: 1fr; }
  .case__steps { position: static; grid-template-columns: repeat(4, 1fr); }
  .case__steps li { border-left: 0; border-top: 2px solid var(--line); padding: 10px 0 0; flex-direction: column; gap: 2px; font-size: .82rem; }
  .firm__portrait { min-height: 460px; }
  .firm__portrait img { height: 500px; }
  .abroad__globe { order: -1; }
  .carousel__hint { display: none; }
}
@media (max-width: 760px) {
  .topbar__item:first-child { display: none; }
  .prism { --h: 760px; }
  .face__grid { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .face__copy { align-self: start; padding: 26px 22px 10px; }
  .display { font-size: clamp(2.1rem, 9vw, 2.8rem); }
  .lead { font-size: 1rem; margin-bottom: 20px; }
  .btn { min-height: 44px; padding: 0 18px; font-size: .9rem; }
  .face__art--portrait img { height: 100%; }
  .portrait-ring { top: 6%; width: 64%; }
  .caption { right: 10px; bottom: 10px; }
  .face__art--photo { padding: 18px 22px 26px 36px; }
  .framed { height: 100%; aspect-ratio: auto; width: 100%; }
  .face__art--route { padding: 8px 20px 20px; }
  .route { width: min(100%, 300px); }
  .stamp { display: none; }
  .opts, .opts--3 { grid-template-columns: 1fr; }
  .result__cols { grid-template-columns: 1fr; gap: 18px; }
  .ablist { grid-template-columns: 1fr; }
  .news__item { grid-template-columns: 1fr; gap: 8px; }
  .news__meta { flex-direction: row; flex-wrap: wrap; gap: 10px; align-items: center; }
  .news__cat { margin-top: 0; }
  .form { grid-template-columns: 1fr; }
  .field--half { grid-column: 1 / -1; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .footer__in { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .cred { padding: 20px 14px; }
  .cred__n { font-size: 1.8rem; }
  .fab--bot span:not(.fab__dot) { display: none; }
  .fab--bot { padding: 16px; }
}
@media (max-width: 420px) {
  .creds__in { grid-template-columns: 1fr; }
  .cred, .cred:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .cred:first-child { border-top: 0; }
  .case__steps li span:not(.mono) { display: none; }
  .dot { width: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  /* Sin desplazamientos ni animaciones en bucle; se conservan los cambios suaves de color y opacidad */
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .prism, .stage, .btn, .opt, .area-tab, .fab, .vplayer__cover img, .vplayer__play, .links a::after, .toast { transition-property: color, background-color, border-color, opacity, box-shadow !important; }
}
.bot__quick a.bot__wa { border: 1px solid var(--wa); background: var(--wa); color: #fff; border-radius: 999px; padding: 6px 11px; font-size: .8rem; text-decoration: none; font-weight: 600; }

/* =========================================================
   Ajustes de septiembre 2026
   ========================================================= */

/* ---------- Textos justificados ---------- */
.section__lead, .sheet__desc, .tabpanel p, .step p, .ablist p, .cases__copy p, .news__sum,
.thread__msg, .reply p, .calc__rule, .ind__note, .result p, .case__panel p, .forum__rules li, .callnow__s {
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
  hyphenate-limit-chars: 7 3 3;
  text-wrap: pretty;
}

/* ---------- Bandas laterales en pantallas anchas ---------- */
:root { --side-bg: #E3E8EC; --side-stripe: rgba(46, 78, 121, .05); --side-line: rgba(99, 130, 135, .55); }
:root[data-mode="dark"] { --side-bg: #0B1522; --side-stripe: rgba(169, 193, 196, .05); --side-line: rgba(169, 193, 196, .35); }
@media (min-width: 1320px) {
  .section--white, .section--paper, .creds {
    --side: calc((100% - var(--maxw)) / 2 + 8px);
    background-image:
      linear-gradient(to right,
        transparent calc(var(--side) - 1px), var(--side-line) calc(var(--side) - 1px), var(--side-line) var(--side), transparent var(--side),
        transparent calc(100% - var(--side)), var(--side-line) calc(100% - var(--side)), var(--side-line) calc(100% - var(--side) + 1px), transparent calc(100% - var(--side) + 1px)),
      linear-gradient(to right, transparent var(--side), var(--sect-bg) var(--side), var(--sect-bg) calc(100% - var(--side)), transparent calc(100% - var(--side))),
      repeating-linear-gradient(135deg, var(--side-stripe) 0 1px, transparent 1px 14px);
    background-color: var(--side-bg);
  }
  .section--white { --sect-bg: var(--bg); }
  .section--paper, .creds { --sect-bg: var(--bg-alt); }
}

/* ---------- Botón "Agende una consulta" con opciones ---------- */
.cta-menu { position: relative; display: inline-flex; }
.cta-menu__btn { gap: 10px; }
.cta-menu__chev { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.cta-menu__btn[aria-expanded="true"] .cta-menu__chev { transform: rotate(180deg); }
.cta-menu__panel {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 60; min-width: 320px;
  display: grid; gap: 2px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 24px 50px -18px rgba(10, 20, 35, .55);
}
.nav__cta .cta-menu__panel { left: auto; right: 0; }
.cta-opt {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px;
  color: var(--heading) !important; text-decoration: none; font-family: var(--f-ui); text-align: left; white-space: normal;
}
.cta-opt::after { display: none !important; }
.cta-opt:focus-visible { background: var(--bg-alt); }
@media (hover: hover) and (pointer: fine) { .cta-opt:hover { background: var(--bg-alt); } }
.cta-opt > svg { flex: none; width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: var(--bg-alt); fill: var(--heading-2); }
.cta-opt--call > svg { background: var(--brand-navy); fill: #fff; }
.cta-opt--wa > svg { background: var(--wa); fill: #fff; }
.cta-opt span { display: flex; flex-direction: column; line-height: 1.25; }
.cta-opt b { font-size: .95rem; font-weight: 700; }
.cta-opt small { font-size: .78rem; color: var(--text-soft); font-weight: 500; }
.cta-opt small.is-open { color: var(--ok-text); }
.nav .cta-menu__btn { color: var(--ink); min-height: 40px; }
.btn > svg { width: 18px; height: 18px; fill: currentColor; flex: none; }

/* Tarjeta "¿Prefiere hablar ya?" */
.callnow { margin-top: 26px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); }
.callnow__t { margin: 0 0 4px; display: flex; align-items: center; gap: 10px; font-family: var(--f-ui); font-weight: 700; color: var(--heading); }
.callnow__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--slate); flex: none; }
.callnow.is-open .callnow__dot { background: #2FB36B; box-shadow: 0 0 0 4px rgba(47, 179, 107, .18); }
.callnow__s { margin: 0 0 14px; color: var(--text-soft); font-size: .92rem; }
.callnow__n { margin: 12px 0 0; color: var(--label); }

/* Teléfono con indicativo */
.tel { display: flex; gap: 8px; }
.tel__code { position: relative; flex: none; width: 104px; }
.tel__show {
  display: flex; align-items: center; justify-content: space-between; height: 100%; min-height: 48px; padding: 0 12px;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface);
  font-family: var(--f-ui); font-weight: 600; color: var(--heading); font-variant-numeric: tabular-nums;
}
.tel__show::after { content: ""; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .6; }
.field .tel__code select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.tel__code:focus-within .tel__show { border-color: var(--brass); box-shadow: 0 0 0 3px rgba(99, 130, 135, .22); }
.tel input { flex: 1; min-width: 0; }
.field .is-invalid + .tel__show, .tel__code.is-invalid .tel__show { border-color: var(--err-text); }

/* Notificaciones en pantalla */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; display: grid; gap: 10px; width: min(440px, calc(100vw - 32px)); pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px;
  background: var(--navy-900); color: #fff; border-radius: 10px;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .55); font-family: var(--f-ui); font-size: .9rem; line-height: 1.45;
  animation: toastIn .35s var(--ease);
}
.toast--ok { border-left-color: #2FB36B; }
.toast--err { border-left-color: #E0735F; }
.toast p { margin: 0; flex: 1; }
.toast button { background: none; border: 0; color: #fff; opacity: .7; font-size: 1.2rem; line-height: 1; padding: 0 2px; }
.toast.is-out { opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (max-width: 1180px) {
  .nav .cta-menu { display: block; margin-top: 14px; }
  .nav .cta-menu__btn { display: none; }
  .nav .cta-menu__panel { display: grid !important; position: static; min-width: 0; padding: 6px; box-shadow: none; }
  .nav .cta-opt { padding: 10px; border-bottom: 0; font-size: 1rem; }
}
@media (max-width: 760px) {
  .cta-menu__panel { min-width: 260px; }
  .toasts { bottom: 90px; }
}
@media (max-width: 560px) {
  /* En pantallas angostas el justificado abre huecos entre palabras: se alinea a la izquierda */
  .section__lead, .sheet__desc, .tabpanel p, .step p, .ablist p, .cases__copy p, .news__sum,
  .thread__msg, .reply p, .calc__rule, .ind__note, .result p, .case__panel p, .forum__rules li, .callnow__s { text-align: left; }
}
.face .cta-menu__panel { top: auto; bottom: calc(100% + 10px); }
.nav .cta-opt { white-space: normal; font-size: .95rem; }
#dateHint { color: var(--err-text); }

/* ---------- Retrato de medio cuerpo y ajuste del prisma ---------- */
.stage { -webkit-user-select: none; user-select: none; }
@media (min-width: 761px) { .display { font-size: clamp(2.3rem, min(5vw, 8.4vh), 4.4rem); } }
.face__art--portrait img { height: 100%; max-width: 100%; object-fit: contain; object-position: 50% 100%; }
.portrait-ring { top: 3%; width: min(84%, 430px); }
.firm__portrait img { height: 580px; }
.firm__plate { top: 12%; }
@media (max-width: 960px) { .firm__portrait img { height: 480px; } }
@media (max-width: 760px) { .face__art--portrait img { height: 100%; } .portrait-ring { top: 2%; width: 70%; } }

/* ---------- Video institucional (Google Drive / YouTube bajo demanda) ---------- */
.vfirm { margin-top: clamp(56px, 8vw, 96px); }
.vfirm__head { margin-bottom: 24px; }
.vplayer { position: relative; aspect-ratio: 16 / 9; width: 100%; background: var(--ink); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 40px 70px -40px var(--shadow); }
.vplayer iframe, .vplayer video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vplayer video { background: #000; object-fit: contain; }
.vplayer__cover { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: var(--ink); cursor: pointer; display: block; color: #fff; text-align: left; }
.vplayer__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: saturate(.8); transition: transform .6s var(--ease); }
.vplayer__cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 37, 60, .92) 0%, rgba(20, 37, 60, .55) 45%, rgba(20, 37, 60, .15) 100%); }
@media (hover: hover) and (pointer: fine) { .vplayer__cover:hover img { transform: scale(1.03); } }
.vplayer__play { position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 88px; height: 88px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 12px rgba(255, 255, 255, .18); transition: transform .25s, box-shadow .25s; }
.vplayer__play svg { width: 34px; height: 34px; fill: var(--navy-800); margin-left: 5px; }
.vplayer__cover:focus-visible .vplayer__play { transform: translate(-50%, -50%) scale(1.07); box-shadow: 0 0 0 18px rgba(255, 255, 255, .2); }
@media (hover: hover) and (pointer: fine) { .vplayer__cover:hover .vplayer__play { transform: translate(-50%, -50%) scale(1.07); box-shadow: 0 0 0 18px rgba(255, 255, 255, .2); } }
.vplayer__txt { position: absolute; z-index: 1; left: clamp(20px, 4vw, 48px); bottom: clamp(18px, 4vw, 40px); display: flex; flex-direction: column; gap: 4px; font-family: var(--f-ui); }
.vplayer__txt b { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.4rem, 3vw, 2.2rem); line-height: 1.1; }
.vplayer__txt small { font-size: .82rem; color: var(--on-dark-mute); letter-spacing: .04em; }
@media (max-width: 760px) { .vplayer__play { width: 64px; height: 64px; } .vplayer__play svg { width: 26px; height: 26px; } }

/* =========================================================
   Pulido (revisión de diseño, 28 sep 2026)
   ========================================================= */
:root { --ease-out: cubic-bezier(.23, 1, .32, 1); }

/* Superficies del navegador con la marca */
::selection { background: var(--brand-teal); color: #fff; }
html { scrollbar-color: var(--brand-teal) var(--bg-alt); -webkit-tap-highlight-color: transparent; }
input, textarea, select { caret-color: var(--heading-2); accent-color: var(--brand-navy); }
a { text-underline-offset: .18em; text-decoration-thickness: 1px; }
.ind__val, .calc__val, .tzw__time, .facts dd, .cred b { font-variant-numeric: tabular-nums lining-nums; }
.topbar :focus-visible, .header :focus-visible, .hero :focus-visible, .section--navy :focus-visible, .section--ink :focus-visible, .footer :focus-visible, .page-cta :focus-visible { outline-color: var(--brass-light); }

/* Celular: sin zoom al escribir, toque inmediato y respuesta al presionar */
@media (pointer: coarse) { input, textarea, select { font-size: 16px !important; } }
button, a, [role="button"], .chip, .opt, .area-tab, .dot { touch-action: manipulation; }
button, .btn, .chip, .opt, .area-tab, .tab, .lang__btn, .dot { -webkit-user-select: none; user-select: none; }
.btn { transition: background .2s, color .2s, border-color .2s, transform 160ms var(--ease-out); }
.btn:active, .opt:active, .chip:active, .ctrl:active, .fab:active { transform: scale(.97); }
.nav { max-height: none; }
@media (max-width: 1180px) { .nav { max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px); } }

/* Áreas táctiles de 44 px sin cambiar cómo se ven */
.lang { overflow: visible; }
.lang__btn:first-child { border-radius: 999px 0 0 999px; }
.lang__btn:last-child { border-radius: 0 999px 999px 0; }
.lang__btn, .mode__btn { position: relative; }
.lang__btn::after, .mode__btn::after { content: ""; position: absolute; inset: -11px -2px; }
.dot { height: 44px; }
.footer__nav a, .social a, .contact__list a { display: inline-block; padding-block: 8px; }

/* Justificado solo en columnas anchas */
.step p, .ablist p, .news__sum, .ind__note, .forum__rules li, .callnow__s, .calc__rule, .cred { text-align: left; }

/* Contraste del texto del inicio sobre el verde claro */
.face--1 .lead { color: #fff; }

/* Franja de credenciales (celular) */
@media (max-width: 760px) { .cred { padding: 16px 14px; } .cred b { font-size: 1.15rem; } }

/* Resumen "Para estar al día" */
.res { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.res__item { display: flex; flex-direction: column; gap: 12px; padding: 26px 28px 30px; border-left: 1px solid var(--line); color: inherit; text-decoration: none; transition: background .25s; }
.res__item:first-child { border-left: 0; padding-left: 0; }
@media (hover: hover) and (pointer: fine) { .res__item:hover { background: var(--bg-alt); } .res__item:hover .res__go { color: var(--heading); } }
.res__t { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: 1.45rem; line-height: 1.15; color: var(--heading); }
.res__data { margin: 0; display: grid; gap: 10px; }
.res__data div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; border-bottom: 1px dotted var(--line-strong); padding-bottom: 6px; }
.res__data dt { font-family: var(--f-ui); font-size: .8rem; color: var(--text-soft); }
.res__data dd { margin: 0; font-family: var(--f-ui); font-weight: 600; color: var(--heading); font-variant-numeric: tabular-nums; }
.res__quote { margin: 0; font-family: var(--f-ui); font-weight: 600; font-size: .98rem; line-height: 1.4; color: var(--text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.res__meta { margin: -6px 0 0; font-family: var(--f-ui); font-size: .76rem; color: var(--text-soft); }
.res__meta:empty { display: none; }
.res__go { margin-top: auto; font-family: var(--f-ui); font-weight: 600; font-size: .85rem; color: var(--heading-2); display: inline-flex; gap: 8px; align-items: center; }
.res__go::after { content: ""; width: 14px; height: 1px; background: currentColor; transition: width .25s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .res__item:hover .res__go::after { width: 26px; } }
@media (max-width: 860px) { .res { grid-template-columns: minmax(0, 1fr); } .res__item, .res__item:first-child { border-left: 0; padding: 22px 0; border-top: 1px solid var(--line); } .res__item:first-child { border-top: 0; } }

/* Páginas internas */
.section--first { padding-top: clamp(40px, 6vw, 72px); }
h1.h2 { font-size: var(--step-3); }
.page-cta { padding-block: clamp(48px, 7vw, 80px); }
.page-cta__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.page-cta .h2 { color: #fff; margin: 0 0 6px; }
.page-cta p { margin: 0; color: var(--on-dark-mute); max-width: 44ch; }

/* Video: retrato en su tamaño real; al reproducir se abre a lo ancho */
.vfirm { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: clamp(28px, 5vw, 64px); align-items: center; }
.vfirm__copy p { color: var(--text-soft); max-width: 42ch; margin: 14px 0 0; }
.vfirm .vplayer { aspect-ratio: 4 / 5; }
.vfirm .vplayer__cover img { object-position: 50% 35%; }
.vfirm .vplayer__cover::after { background: linear-gradient(180deg, rgba(20, 37, 60, .05) 35%, rgba(20, 37, 60, .85) 100%); }
.vfirm.is-playing { grid-template-columns: minmax(0, 1fr); }
.vfirm.is-playing .vplayer { aspect-ratio: 16 / 9; }
@media (max-width: 760px) { .vfirm { grid-template-columns: minmax(0, 1fr); } .vfirm .vplayer { max-width: 420px; } }

/* Avisos: indicador de estado en lugar de franja lateral */
.toast::before { content: ""; flex: none; width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; background: var(--brand-teal); }
.toast--ok::before { background: #2FB36B; }
.toast--err::before { background: #E0735F; }
.bot { height: min(600px, calc(100vh - 120px)); height: min(600px, calc(100dvh - 120px)); }
.area-tab { grid-template-columns: minmax(0, 1fr) auto; }
.cases__result p { text-align: left; }

/* =========================================================
   Movimiento del prisma (Emil Kowalski) · modo oscuro · inglés
   ========================================================= */
.tilt { transform-style: preserve-3d; transition: none; will-change: transform; }
.face::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(90deg, rgba(8, 16, 28, .55), rgba(8, 16, 28, .15));
  opacity: 0; transition: opacity 700ms cubic-bezier(.23, 1, .32, 1);
}
.face[aria-hidden="true"]::after { opacity: 1; }
.face__copy > * { transition: opacity 520ms cubic-bezier(.23, 1, .32, 1), transform 520ms cubic-bezier(.23, 1, .32, 1); }
.face[aria-hidden="true"] .face__copy > * { opacity: 0; transform: translateY(10px); transition-duration: 200ms; transition-delay: 0ms; }
.face:not([aria-hidden="true"]) .face__copy > :nth-child(1) { transition-delay: 260ms; }
.face:not([aria-hidden="true"]) .face__copy > :nth-child(2) { transition-delay: 320ms; }
.face:not([aria-hidden="true"]) .face__copy > :nth-child(3) { transition-delay: 380ms; }
.face:not([aria-hidden="true"]) .face__copy > :nth-child(4) { transition-delay: 440ms; }
.face:not([aria-hidden="true"]) .face__copy > :nth-child(n+5) { transition-delay: 500ms; }
.face__art > * { transition: transform 900ms cubic-bezier(.23, 1, .32, 1); }
.face[aria-hidden="true"] .face__art > * { transform: scale(.97); transition-duration: 300ms; }
@media (prefers-reduced-motion: reduce) {
  .face[aria-hidden="true"] .face__copy > *, .face[aria-hidden="true"] .face__art > * { transform: none; }
  .face__copy > *, .face:not([aria-hidden="true"]) .face__copy > * { transition: opacity 240ms ease !important; }
  .tilt { transform: none !important; }
}

/* Contraste en oscuro: la etiqueta «Equipo» del foro */
:root[data-mode="dark"] .badge { background: #A9C1C4; color: #101C2C; }
:root[data-mode="dark"] .badge--ex { background: #C5C5BF; color: #1E3656; }

/* Aviso en inglés: los titulares y el foro se publican en español */
.lang-note { display: none; margin: 10px 0 0; font-family: var(--f-ui); font-size: .82rem; color: var(--text-soft); }
html[lang="en"] .lang-note { display: block; }

/* Credenciales en móvil: mismo relleno en todas */
@media (max-width: 760px) {
  .cred, .cred:first-child, .cred:nth-child(3) { padding: 16px 14px; }
  .cred:nth-child(odd) { border-left: 0; }
  .cred:nth-child(even) { border-left: 1px solid var(--line); }
}
@media (max-width: 420px) {
  .cred, .cred:first-child, .cred:nth-child(3), .cred:nth-child(even) { padding: 14px 0; border-left: 0; }
}
.section__head--split .lang-note { grid-column: 2; margin-top: -20px; }
@media (max-width: 960px) { .section__head--split .lang-note { grid-column: auto; margin-top: 0; } }

.vplayer__msg { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; padding: 24px; text-align: center; background: var(--ink); color: #DDE3E9; font-family: var(--f-ui); }
.vplayer__msg p { margin: 0; }

/* ============ EQUIPO (14 oct 2026) ============ */
.team__grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: stretch; }
.team__group { margin: 0; align-self: end; }
.team__photo { position: relative; }
.team__photo::before { content: ""; position: absolute; inset: -14px 14px 14px -14px; border: 1px solid var(--brass); pointer-events: none; }
.team__photo img { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 1600 / 1155; object-fit: cover; background: var(--bg-alt); }
.team__group figcaption { display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: baseline; margin-top: 26px; font-size: .88rem; color: var(--text-soft); }
.team__group figcaption b { font-family: var(--f-display); font-weight: 500; font-size: 1.15rem; color: var(--heading); }
.team__side { display: flex; flex-direction: column; }
.team__side .h2 { margin: 0 0 18px; }
.team__side .section__lead { margin: 0 0 28px; }
.team__people { list-style: none; margin: auto 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.person { margin: 0; }
.person img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 20%; background: var(--bg-alt); }
.person__name { margin: 10px 0 0; display: grid; gap: 2px; }
.person__name b { font-family: var(--f-display); font-weight: 500; font-size: 1.05rem; color: var(--heading); line-height: 1.2; }
.person__name span { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--label); }
@media (max-width: 960px) {
  .team__grid { grid-template-columns: 1fr; gap: 0; }
  .team__side { display: contents; }
  .team__side .h2 { order: 1; }
  .team__side .section__lead { order: 2; margin-bottom: 40px; }
  .team__group { order: 3; padding-left: 14px; }
  .team__people { order: 4; margin-top: 32px; max-width: 560px; }
}
@media (max-width: 560px) { .team__photo::before { inset: -8px 8px 8px -8px; } .team__people { gap: 12px; } }

/* ============ SERVICIOS EN DETALLE (áreas) ============ */
.svc { display: grid; gap: 22px; margin: 0 0 28px; }
.svc__t { margin: 0 0 6px; font-family: var(--f-display); font-weight: 500; font-size: 1.12rem; color: var(--heading); }
.svc__item { border-top: 1px solid var(--line); }
.svc__item:last-child { border-bottom: 1px solid var(--line); }
.svc__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 44px; padding: 10px 0; font-weight: 600; font-size: .95rem; color: var(--heading-2); }
.svc__item summary::-webkit-details-marker { display: none; }
.svc__item summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 1.5px solid var(--label); border-bottom: 1.5px solid var(--label); transform: rotate(45deg) translateY(-3px); transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
.svc__item[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.svc__item summary:focus-visible { outline: 2px solid var(--sel-bg); outline-offset: 2px; }
.svc__item p { margin: 0 0 14px; max-width: 62ch; color: var(--text); font-size: .95rem; line-height: 1.6; }
@media (hover: hover) { .svc__item summary:hover { color: var(--heading); } }
@media (prefers-reduced-motion: reduce) { .svc__item summary::after { transition: none; } }

/* Casilla de autorización (texto de la política del 1 oct 2026) */
.check label b { color: var(--heading-2); font-weight: 600; }
.check label { font-size: .82rem; }
