/* ============================================================
   Centro de Conciliación y Arbitraje Constructores de Paz
   Hoja de estilos principal
   ============================================================ */

/*---------------------------------------------*/
/*  1. TOKENS DE DISEÑO                        */
/*---------------------------------------------*/
:root {
  /* Marca (tomada del logo institucional) */
  --azul:          #0160AF;
  --azul-oscuro:   #014890;
  --azul-profundo: #062E5C;
  --azul-claro:    #3C9AE3;
  --oro:           #F6CC04;
  --oro-oscuro:    #D9B203;

  /* Neutros */
  --tinta:    #0F2136;
  --texto:    #33465C;
  --apagado:  #64778D;
  --linea:    #DCE5EF;
  --superficie: #FFFFFF;
  --fondo:    #F4F7FB;
  --fondo-alt:#EDF3FA;

  /* Estados */
  --error: #C62828;
  --exito: #1B8F4C;
  --whatsapp: #25D366;
  --whatsapp-dark: #1EB955;

  /* Tipografía */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

  /* Espaciado / layout */
  --ancho-max: 1200px;
  --ancho-texto: 68ch;
  --gutter: clamp(20px, 4vw, 40px);
  --seccion-y: clamp(56px, 7vw, 104px);
  --radio-sm: 10px;
  --radio: 16px;
  --radio-lg: 24px;

  /* Sombras */
  --sombra-sm: 0 1px 2px rgba(15, 33, 54, .06), 0 2px 8px rgba(15, 33, 54, .05);
  --sombra:    0 4px 12px rgba(15, 33, 54, .07), 0 12px 32px rgba(15, 33, 54, .07);
  --sombra-lg: 0 12px 28px rgba(15, 33, 54, .12), 0 32px 64px rgba(15, 33, 54, .12);

  /* Movimiento */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --t-rapida: .18s var(--ease);
  --t-media: .32s var(--ease);
}

/*---------------------------------------------*/
/*  2. RESET / BASE                            */
/*---------------------------------------------*/
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
  /* Evita el scroll horizontal que provocaría el menú lateral fuera de pantalla.
     `clip` no crea un contenedor de scroll, por lo que el header sticky sigue funcionando. */
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--texto);
  background: var(--fondo);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--azul); }
button { font: inherit; }

h1, h2, h3, h4 {
  color: var(--tinta);
  margin: 0 0 .5em;
  line-height: 1.2;
  text-wrap: balance;
}
h1, h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; }
h3, h4 { font-family: var(--font-sans); font-weight: 700; letter-spacing: -.005em; }
p { margin: 0 0 1rem; }

:focus-visible {
  outline: 3px solid var(--azul-claro);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 4000;
  background: var(--azul-profundo);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--radio-sm) 0;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/*---------------------------------------------*/
/*  3. LAYOUT                                  */
/*---------------------------------------------*/
.container {
  width: 100%;
  max-width: var(--ancho-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--seccion-y); }

.section-head { margin-bottom: clamp(32px, 4vw, 52px); max-width: 74ch; }
.section-head--center { margin-inline: auto; text-align: center; }

.section-title {
  font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.9rem);
  margin-bottom: .35em;
}

.section-sub {
  font-size: clamp(1rem, .96rem + .25vw, 1.12rem);
  color: var(--apagado);
  margin: 0;
  max-width: var(--ancho-texto);
}
.section-head--center .section-sub { margin-inline: auto; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--azul);
  margin: 0 0 .7rem;
}
.eyebrow--light { color: var(--oro); }

/*---------------------------------------------*/
/*  4. BOTONES                                 */
/*---------------------------------------------*/
.btn {
  --btn-bg: var(--azul);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--t-rapida), box-shadow var(--t-rapida),
              background-color var(--t-rapida), color var(--t-rapida), border-color var(--t-rapida);
  box-shadow: var(--sombra-sm);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sombra); }
.btn:active { transform: translateY(0); }

.btn--lg { padding: 16px 34px; font-size: 1.06rem; }
.btn--sm { padding: 9px 18px; font-size: .92rem; }
.btn--block { width: 100%; }

.btn--gold  { --btn-bg: var(--oro); --btn-fg: var(--azul-profundo); }
.btn--gold:hover { --btn-bg: var(--oro-oscuro); }

.btn--whatsapp { --btn-bg: var(--whatsapp); --btn-fg: #fff; }
.btn--whatsapp:hover { --btn-bg: var(--whatsapp-dark); }

.btn--outline-light {
  --btn-bg: transparent; --btn-fg: #fff;
  border-color: rgba(255, 255, 255, .6);
  backdrop-filter: blur(4px);
  box-shadow: none;
}
.btn--outline-light:hover { --btn-bg: rgba(255,255,255,.14); border-color: #fff; }

.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--azul);
  border-color: var(--linea);
  box-shadow: none;
}
.btn--ghost:hover { --btn-bg: var(--fondo-alt); border-color: var(--azul-claro); }

.btn__wa-icon { width: 20px; height: 20px; flex: none; }
.btn__ext-icon { width: 18px; height: 18px; flex: none; }

/*---------------------------------------------*/
/*  5. BARRA SUPERIOR                          */
/*---------------------------------------------*/
.top-bar {
  background: var(--azul-profundo);
  color: #D9E6F5;
  font-size: .87rem;
  padding: 9px 0;
}
.top-bar__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 12px;
}
.top-bar__item { color: inherit; text-decoration: none; transition: color var(--t-rapida); }
a.top-bar__item:hover { color: var(--oro); }
.top-bar__item--muted { color: #A9C0DA; }
.top-bar__sep { color: rgba(255,255,255,.3); }

/*---------------------------------------------*/
/*  6. HEADER                                  */
/*---------------------------------------------*/
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--linea);
  transition: box-shadow var(--t-media), background-color var(--t-media);
}

/* El desenfoque solo se aplica en escritorio: `backdrop-filter` convierte al header
   en bloque contenedor de sus descendientes `position: fixed`, lo que desancla el
   panel del menú móvil del viewport. */
@media (min-width: 941px) {
  .site-header { backdrop-filter: saturate(180%) blur(12px); }
}
.site-header.is-stuck { box-shadow: 0 6px 24px rgba(15, 33, 54, .10); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 88px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex: 0 1 auto;
  min-width: 0;
}
.brand__logo {
  height: 62px;
  width: auto;
  object-fit: contain;
  transition: transform var(--t-media);
}
.brand:hover .brand__logo { transform: scale(1.05); }

.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__line1 {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--apagado);
}
.brand__line2 {
  font-family: var(--font-display);
  font-size: 1.34rem;
  font-weight: 700;
  color: var(--azul-oscuro);
  line-height: 1.15;
}

/*---------------------------------------------*/
/*  7. NAVEGACIÓN                              */
/*---------------------------------------------*/
.nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
}
.nav-link {
  position: relative;
  display: block;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--tinta);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--t-rapida), background-color var(--t-rapida);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: var(--oro);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-media);
}
.nav-link:hover { color: var(--azul); }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--azul); }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1300;
}
.hamburger span {
  display: block;
  height: 3px;
  width: 26px;
  margin-inline: auto;
  background: var(--azul-oscuro);
  border-radius: 3px;
  transition: transform var(--t-media), opacity var(--t-rapida);
}
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 46, 92, .45);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-media);
  z-index: 1150;
}
.nav-overlay.is-visible { opacity: 1; pointer-events: auto; }

/*---------------------------------------------*/
/*  8. HERO BANNER                             */
/*---------------------------------------------*/
.hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(56px, 8vw, 104px);
  color: #fff;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(6, 26, 48, .90) 0%, rgba(6, 26, 48, .78) 45%, rgba(6, 26, 48, .93) 100%),
    linear-gradient(100deg, rgba(1, 72, 144, .55) 0%, rgba(1, 72, 144, 0) 62%);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: clamp(16px, 2.4vw, 26px) clamp(22px, 3.2vw, 38px);
  border-radius: var(--radio-lg);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .38);
  margin-bottom: clamp(22px, 3vw, 34px);
  animation: heroBadgeIn .8s var(--ease) both;
}
.hero__logo {
  height: clamp(78px, 9vw, 128px);
  width: auto;
  object-fit: contain;
}

@keyframes heroBadgeIn {
  from { opacity: 0; transform: translateY(18px) scale(.94); }
  to   { opacity: 1; transform: none; }
}

.hero__eyebrow {
  display: inline-block;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--oro);
  background: rgba(246, 204, 4, .1);
  border: 1px solid rgba(246, 204, 4, .35);
  padding: 7px 16px;
  border-radius: 999px;
  margin: 0 0 clamp(18px, 2.4vw, 26px);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  font-size: clamp(1.55rem, .85rem + 3.1vw, 3.5rem);
  line-height: 1.14;
  letter-spacing: .005em;
  max-width: 20ch;
  margin: 0 0 clamp(14px, 1.8vw, 20px);
  text-shadow: 0 2px 20px rgba(0, 0, 0, .35);
}

.hero__lead {
  font-size: clamp(1.05rem, .95rem + .6vw, 1.4rem);
  font-weight: 600;
  color: var(--oro);
  max-width: 46ch;
  margin: 0 0 clamp(22px, 3vw, 30px);
}

.hero__copy {
  max-width: 78ch;
  color: #DCE7F3;
  font-size: clamp(.97rem, .93rem + .22vw, 1.06rem);
  line-height: 1.8;
  text-align: left;
}
.hero__copy p { margin-bottom: 1.05rem; }
.hero__copy p:last-child { margin-bottom: 0; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: clamp(28px, 3.6vw, 40px);
}

/*---------------------------------------------*/
/*  9. SERVICIOS                               */
/*---------------------------------------------*/
.section--services { background: var(--superficie); }
.section--services .section-head { margin-inline: auto; text-align: center; }
.section--services .section-sub { margin-inline: auto; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
  padding: 30px 26px 26px;
  background: var(--superficie);
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  box-shadow: var(--sombra-sm);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform var(--t-media), box-shadow var(--t-media), border-color var(--t-media);
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--azul), var(--oro));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-media);
}
.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--sombra-lg);
  border-color: transparent;
}
.service-card:hover::before,
.service-card:focus-visible::before { transform: scaleX(1); }

.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--fondo-alt);
  color: var(--azul);
  transition: background-color var(--t-media), color var(--t-media), transform var(--t-media);
}
.service-card__icon svg { width: 28px; height: 28px; }
.service-card:hover .service-card__icon {
  background: var(--azul);
  color: #fff;
  transform: rotate(-4deg) scale(1.06);
}

.service-card__title {
  font-size: 1.18rem;
  color: var(--tinta);
  margin: 0 0 4px;
}
.service-card__law {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--azul);
  margin: 0 0 12px;
}
.service-card__excerpt {
  color: var(--apagado);
  font-size: .96rem;
  line-height: 1.6;
  margin: 0 0 18px;
}
.service-card__more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  font-size: .92rem;
  font-weight: 600;
  color: var(--azul);
}
.service-card__more svg { width: 16px; height: 16px; transition: transform var(--t-media); }
.service-card:hover .service-card__more svg { transform: translateX(4px); }

.services-note {
  max-width: 80ch;
  margin: clamp(32px, 4vw, 48px) auto 0;
  text-align: center;
  font-size: 1.05rem;
  color: var(--texto);
  padding: 22px 26px;
  background: var(--fondo-alt);
  border-left: 4px solid var(--oro);
  border-radius: var(--radio-sm);
}

/* CTA WhatsApp dentro de la sección */
.wa-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(28px, 3.6vw, 40px);
  padding: clamp(26px, 3.4vw, 40px);
  border-radius: var(--radio-lg);
  background: linear-gradient(120deg, #0F3F2B 0%, #146B43 60%, #1B8F55 100%);
  color: #fff;
  box-shadow: var(--sombra);
}
.wa-cta__text { flex: 1 1 320px; }
.wa-cta__text h3 { color: #fff; font-size: clamp(1.2rem, 1.05rem + .5vw, 1.5rem); margin: 0 0 6px; }
.wa-cta__text p { margin: 0; color: #D6F0E1; font-size: 1rem; }
.wa-cta .btn { flex: 0 0 auto; background: #fff; color: #12693F; }
.wa-cta .btn:hover { background: var(--oro); color: var(--azul-profundo); }

/*---------------------------------------------*/
/*  10. INSOLVENTIC                            */
/*---------------------------------------------*/
.insolventic {
  position: relative;
  isolation: isolate;
  padding-block: var(--seccion-y);
  color: #fff;
  background:
    radial-gradient(1000px 520px at 12% -10%, rgba(60, 154, 227, .28), transparent 62%),
    radial-gradient(760px 420px at 92% 108%, rgba(246, 204, 4, .18), transparent 60%),
    linear-gradient(140deg, #041E3D 0%, #062E5C 48%, #01315F 100%);
  overflow: hidden;
}
.insolventic::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 70% at 50% 40%, #000 30%, transparent 100%);
}

.insolventic__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.insolventic__title {
  color: #fff;
  font-size: clamp(1.85rem, 1.25rem + 2.2vw, 2.85rem);
  margin-bottom: .45em;
}
.insolventic__title span { color: var(--oro); }

.insolventic__lead {
  color: #C9DCF0;
  font-size: clamp(1rem, .96rem + .28vw, 1.12rem);
  max-width: 56ch;
}

.insolventic__list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  display: grid;
  gap: 12px;
}
.insolventic__list li {
  position: relative;
  padding-left: 32px;
  color: #DCE7F3;
  font-size: 1rem;
}
.insolventic__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .42em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(246, 204, 4, .18);
  border: 1px solid rgba(246, 204, 4, .55);
}
.insolventic__list li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: .72em;
  width: 6px;
  height: 3px;
  border-left: 2px solid var(--oro);
  border-bottom: 2px solid var(--oro);
  transform: rotate(-45deg);
}

.insolventic__note {
  margin: 14px 0 0;
  font-size: .86rem;
  color: #9DB6D0;
}

/* Mockup de ventana de aplicación */
.insolventic__visual { display: flex; justify-content: center; }

.app-window {
  width: 100%;
  max-width: 430px;
  background: #F7FAFD;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-7deg) rotateX(2deg);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.app-window:hover {
  transform: perspective(1400px) rotateY(0deg) rotateX(0deg) translateY(-6px);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .5);
}
.app-window__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: #E7EDF5;
  border-bottom: 1px solid #D3DEEB;
}
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot--r { background: #FF5F57; }
.dot--y { background: #FEBC2E; }
.dot--g { background: #28C840; }
.app-window__url {
  margin-left: 10px;
  font-size: .76rem;
  color: #6B7F96;
  background: #fff;
  border-radius: 999px;
  padding: 4px 14px;
  border: 1px solid #D3DEEB;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-window__body {
  padding: 40px 28px 44px;
  text-align: center;
  background: radial-gradient(circle at 50% 22%, #FFFFFF 0%, #EDF3FA 100%);
}
.app-window__logo {
  width: clamp(120px, 26vw, 158px);
  height: auto;
  margin: 0 auto 20px;
  filter: drop-shadow(0 12px 26px rgba(6, 46, 92, .22));
}
.app-window__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--azul-profundo);
  margin: 0 0 6px;
}
.app-window__tag {
  margin: 0;
  font-size: .9rem;
  color: var(--apagado);
}

/*---------------------------------------------*/
/*  11. HISTORIA                               */
/*---------------------------------------------*/
.section--historia { background: var(--fondo); }

.historia {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.historia__text p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--texto);
  max-width: var(--ancho-texto);
}

.pillars {
  background: var(--superficie);
  border: 1px solid var(--linea);
  border-radius: var(--radio-lg);
  padding: clamp(26px, 3vw, 34px);
  box-shadow: var(--sombra-sm);
  position: sticky;
  top: 120px;
}
.pillars__stat {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--linea);
}
.pillars__num {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--azul);
}
.pillars__unit {
  font-size: .95rem;
  font-weight: 600;
  color: var(--apagado);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.pillars__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.pillars__list li { display: grid; gap: 3px; padding-left: 18px; position: relative; }
.pillars__list li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--oro);
}
.pillars__list strong { color: var(--tinta); font-size: 1rem; }
.pillars__list span { color: var(--apagado); font-size: .92rem; line-height: 1.55; }

/*---------------------------------------------*/
/*  12. EQUIPO                                 */
/*---------------------------------------------*/
.section--equipo { background: var(--superficie); }

.equipo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: clamp(20px, 2.4vw, 32px);
}

.equipo-card {
  background: var(--fondo);
  border: 1px solid var(--linea);
  border-radius: var(--radio-lg);
  padding: 32px 26px 28px;
  text-align: center;
  transition: transform var(--t-media), box-shadow var(--t-media);
}
.equipo-card:hover { transform: translateY(-6px); box-shadow: var(--sombra); }

.equipo-card__foto {
  width: 132px;
  height: 132px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--superficie);
  box-shadow: 0 10px 28px rgba(15, 33, 54, .16);
  background: var(--linea);
}
.equipo-card__foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transition: transform .5s var(--ease);
}
.equipo-card:hover .equipo-card__foto img { transform: scale(1.07); }

.equipo-card h3 { font-size: 1.1rem; margin: 0 0 4px; color: var(--tinta); }
/* Profesión */
.equipo-card__cargo {
  color: var(--azul);
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

/* Cargo institucional dentro del centro.
   Se resuelve con un filete superior en lugar de una píldora: así los títulos
   largos envuelven de forma equilibrada sin desbordar la tarjeta. */
.equipo-card__rol {
  display: block;
  margin: 0 0 16px;
  padding-top: 11px;
  border-top: 2px solid rgba(246, 204, 4, .65);
  color: var(--azul-profundo);
  font-size: .87rem;
  font-weight: 700;
  line-height: 1.4;
  text-wrap: balance;
  transition: border-color var(--t-rapida);
}
.equipo-card:hover .equipo-card__rol { border-top-color: var(--oro); }

.equipo-card p { color: var(--apagado); font-size: .96rem; line-height: 1.6; margin: 0; }

/*---------------------------------------------*/
/*  13. CONTACTO                               */
/*---------------------------------------------*/
.section--contacto { background: var(--fondo); }

.contacto {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
}

.contacto-form {
  background: var(--superficie);
  border: 1px solid var(--linea);
  border-radius: var(--radio-lg);
  box-shadow: var(--sombra-sm);
  padding: clamp(24px, 3vw, 36px);
  display: grid;
  gap: 6px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; }

.form-group { display: flex; flex-direction: column; margin-bottom: 6px; }

.contacto-form label {
  font-weight: 600;
  color: var(--tinta);
  font-size: .93rem;
  margin-bottom: 6px;
}

.contacto-form input,
.contacto-form select,
.contacto-form textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--tinta);
  background: var(--fondo);
  border: 1.5px solid var(--linea);
  border-radius: var(--radio-sm);
  padding: 12px 14px;
  outline: none;
  transition: border-color var(--t-rapida), box-shadow var(--t-rapida), background-color var(--t-rapida);
  width: 100%;
}
.contacto-form textarea { resize: vertical; min-height: 130px; }
.contacto-form input:focus,
.contacto-form select:focus,
.contacto-form textarea:focus {
  border-color: var(--azul);
  background: var(--superficie);
  box-shadow: 0 0 0 4px rgba(1, 96, 175, .12);
}
.contacto-form input.invalid,
.contacto-form select.invalid,
.contacto-form textarea.invalid { border-color: var(--error); }

.form-error {
  color: var(--error);
  font-size: .84rem;
  min-height: 18px;
  margin-top: 3px;
  display: block;
}

.form-group--check { margin-top: 6px; }
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 400 !important;
  font-size: .9rem !important;
  color: var(--apagado) !important;
  line-height: 1.55;
  cursor: pointer;
}
.checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 1px;
  accent-color: var(--azul);
  cursor: pointer;
}
.checkbox a { color: var(--azul); font-weight: 600; }

.form-legal {
  font-size: .82rem;
  line-height: 1.6;
  color: var(--apagado);
  background: var(--fondo-alt);
  border-radius: var(--radio-sm);
  padding: 14px 16px;
  margin: 10px 0 16px;
}

.form-success {
  color: var(--exito);
  font-weight: 600;
  font-size: .98rem;
  margin: 14px 0 0;
  text-align: center;
  display: none;
}
.form-success.is-visible { display: block; }

/* Panel de información */
.contacto__info {
  background: var(--azul-profundo);
  color: #DCE7F3;
  border-radius: var(--radio-lg);
  padding: clamp(24px, 3vw, 32px);
  box-shadow: var(--sombra);
  display: grid;
  gap: 4px;
  align-content: start;
}
.contacto__info h3 {
  color: #fff;
  font-size: 1.12rem;
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  color: #DCE7F3;
  text-decoration: none;
  border-radius: var(--radio-sm);
  transition: color var(--t-rapida);
}
a.info-item:hover { color: var(--oro); }
.info-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  flex: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  color: var(--oro);
}
.info-item__icon svg { width: 19px; height: 19px; }
.info-item > span:last-child { font-size: .95rem; line-height: 1.55; }
.info-item strong {
  display: block;
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.contacto__wa { margin-top: 18px; }

/*---------------------------------------------*/
/*  14. FRANJA VIGILADO                        */
/*---------------------------------------------*/
.vigilado {
  background: linear-gradient(90deg, var(--oro) 0%, #FFDA3D 50%, var(--oro) 100%);
  color: var(--azul-profundo);
  padding: clamp(20px, 2.6vw, 30px) 0;
}
.vigilado__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 24px);
  text-align: left;
  flex-wrap: wrap;
}
.vigilado__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  flex: none;
  border-radius: 50%;
  background: rgba(6, 46, 92, .1);
  color: var(--azul-profundo);
}
.vigilado__icon svg { width: 28px; height: 28px; }
.vigilado__text { margin: 0; display: grid; gap: 2px; }
.vigilado__text strong {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, .95rem + .8vw, 1.6rem);
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.25;
}
.vigilado__text span { font-size: clamp(.86rem, .82rem + .18vw, .98rem); color: #14406F; }

/*---------------------------------------------*/
/*  15. FOOTER                                 */
/*---------------------------------------------*/
.site-footer {
  background: var(--azul-profundo);
  color: #C4D7EC;
  font-size: .96rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.25fr 1fr;
  gap: clamp(28px, 3.4vw, 48px);
  align-items: start;
  padding-block: clamp(44px, 5vw, 68px) clamp(32px, 4vw, 48px);
}

.footer-col { min-width: 0; }
.footer-col h4 {
  color: #fff;
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--oro);
  display: inline-block;
}
.footer-col__desc {
  color: #A9C0DA;
  font-size: .92rem;
  line-height: 1.65;
  margin: 0;
  max-width: 42ch;
}
.footer-col__desc--tight { margin-top: 16px; font-size: .87rem; }

.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.footer-brand__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .3);
  flex: none;
}
.footer-brand__chip img { height: 46px; width: auto; object-fit: contain; }
.footer-brand__name {
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-list a {
  color: #C4D7EC;
  text-decoration: none;
  transition: color var(--t-rapida), transform var(--t-rapida);
  display: inline-block;
  font-size: .93rem;
}
.footer-list a:hover { color: var(--oro); transform: translateX(3px); }

.footer-list--contact li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  font-size: .93rem;
  line-height: 1.55;
}
.footer-list--contact svg { width: 17px; height: 17px; color: var(--oro); margin-top: 3px; }
.footer-list--contact a:hover { transform: none; }

.social-links { display: flex; gap: 10px; flex-wrap: wrap; }
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .09);
  color: #fff;
  transition: background-color var(--t-rapida), transform var(--t-rapida), color var(--t-rapida);
}
.social-links a:hover {
  background: var(--oro);
  color: var(--azul-profundo);
  transform: translateY(-3px);
}

.footer-bottom {
  background: rgba(0, 0, 0, .25);
  border-top: 1px solid rgba(255, 255, 255, .09);
  padding-block: 20px;
}
.footer-bottom__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
}
.footer-bottom p { margin: 0; font-size: .88rem; color: #A9C0DA; }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-legal-links a {
  color: #A9C0DA;
  text-decoration: none;
  font-size: .88rem;
  transition: color var(--t-rapida);
}
.footer-legal-links a:hover { color: var(--oro); text-decoration: underline; }

/*---------------------------------------------*/
/*  16. MODAL DE SERVICIOS                     */
/*---------------------------------------------*/
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 3vw, 32px);
}
.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 26, 48, .68);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity var(--t-media);
}
.modal.is-open .modal__backdrop { opacity: 1; }

.modal__dialog {
  position: relative;
  width: min(680px, 100%);
  max-height: min(88vh, 860px);
  overflow-y: auto;
  background: var(--superficie);
  border-radius: var(--radio-lg);
  box-shadow: var(--sombra-lg);
  padding: clamp(28px, 4vw, 44px);
  opacity: 0;
  transform: translateY(20px) scale(.97);
  transition: opacity var(--t-media), transform var(--t-media);
}
.modal.is-open .modal__dialog { opacity: 1; transform: none; }

.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 42px; height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--fondo-alt);
  color: var(--texto);
  cursor: pointer;
  transition: background-color var(--t-rapida), color var(--t-rapida), transform var(--t-rapida);
}
.modal__close svg { width: 20px; height: 20px; }
.modal__close:hover { background: var(--azul); color: #fff; transform: rotate(90deg); }

.modal__head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-right: 44px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--linea);
}
.modal__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px; height: 60px;
  flex: none;
  border-radius: 16px;
  background: var(--azul);
  color: #fff;
}
.modal__icon svg { width: 30px; height: 30px; }
.modal__law {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--azul);
  margin: 0 0 4px;
}
.modal__title {
  font-size: clamp(1.35rem, 1.15rem + .8vw, 1.85rem);
  margin: 0;
}
.modal__body p {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--texto);
  margin: 0;
}
.modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.modal__disclaimer {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--linea);
  font-size: .82rem;
  line-height: 1.6;
  color: var(--apagado);
}

body.modal-open { overflow: hidden; }

/*---------------------------------------------*/
/*  17. AVISO DE COOKIES                       */
/*---------------------------------------------*/
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translate(-50%, 130%);
  width: min(920px, calc(100% - 32px));
  z-index: 1900;
  background: var(--superficie);
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  box-shadow: var(--sombra-lg);
  transition: transform .45s var(--ease), opacity .45s var(--ease);
  opacity: 0;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner.is-visible { transform: translate(-50%, 0); opacity: 1; }

.cookie-banner__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px 24px;
}
.cookie-banner p {
  margin: 0;
  flex: 1 1 380px;
  font-size: .89rem;
  line-height: 1.6;
  color: var(--texto);
}
.cookie-banner__actions { display: flex; gap: 10px; flex: 0 0 auto; }

/*---------------------------------------------*/
/*  18. BOTONES FLOTANTES                      */
/*---------------------------------------------*/
.whatsapp-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1500;
  width: 58px; height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--whatsapp);
  box-shadow: 0 8px 26px rgba(37, 211, 102, .42);
  transition: transform var(--t-media), box-shadow var(--t-media), background-color var(--t-rapida);
}
.whatsapp-fab::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--whatsapp);
  animation: waPulse 2.6s ease-out infinite;
}
@keyframes waPulse {
  0%   { transform: scale(1);   opacity: .7; }
  70%  { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}
.whatsapp-fab:hover { background: var(--whatsapp-dark); transform: scale(1.08); }
.whatsapp-fab svg { width: 30px; height: 30px; position: relative; }

.scroll-top-btn {
  position: fixed;
  right: 24px;
  bottom: 94px;
  z-index: 1500;
  width: 46px; height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--azul-profundo);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  box-shadow: var(--sombra);
  transition: opacity var(--t-media), transform var(--t-media), visibility var(--t-media), background-color var(--t-rapida);
}
.scroll-top-btn.visible { opacity: 1; visibility: visible; transform: none; }
.scroll-top-btn:hover { background: var(--azul); transform: translateY(-3px); }

/*---------------------------------------------*/
/*  19. ANIMACIONES AL HACER SCROLL            */
/*---------------------------------------------*/
/* El estado oculto solo se aplica cuando hay JavaScript disponible para revelarlo.
   Sin JS (o si el script falla), el contenido se ve siempre. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/*---------------------------------------------*/
/*  20. RESPONSIVE                             */
/*---------------------------------------------*/
@media (max-width: 1080px) {
  .insolventic__inner { grid-template-columns: 1fr; }
  .insolventic__visual { order: -1; }
  .app-window { transform: none; max-width: 380px; }
  .app-window:hover { transform: translateY(-6px); }

  .historia { grid-template-columns: 1fr; }
  .pillars { position: static; }

  .contacto { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col--brand { grid-column: 1 / -1; }
}

@media (max-width: 940px) {
  html { scroll-padding-top: 80px; }

  .site-header__inner { min-height: 74px; }
  .brand__logo { height: 50px; }
  .brand__line2 { font-size: 1.12rem; }
  .brand__line1 { font-size: .66rem; }

  .hamburger { display: flex; }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 84vw);
    height: 100dvh;
    background: var(--superficie);
    box-shadow: -8px 0 40px rgba(6, 46, 92, .18);
    padding: 96px 20px 32px;
    transform: translateX(105%);
    transition: transform .35s var(--ease);
    z-index: 1200;
    overflow-y: auto;
  }
  .nav.open { transform: translateX(0); }
  .nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-link { padding: 14px 18px; border-radius: var(--radio-sm); font-size: 1.02rem; }
  .nav-link::after { display: none; }
  .nav-link:hover, .nav-link.active { background: var(--fondo-alt); }

  .hero__copy { text-align: left; }
  .form-row { grid-template-columns: 1fr; }
  .wa-cta { flex-direction: column; align-items: stretch; text-align: center; }
  .wa-cta .btn { width: 100%; }
}

@media (max-width: 680px) {
  .top-bar { font-size: .8rem; }
  .top-bar__inner { gap: 4px 10px; }

  .brand__text { display: none; }
  .brand__logo { height: 46px; }

  .hero__badge { padding: 14px 20px; border-radius: 18px; }
  .hero__title { max-width: 100%; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }

  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 26px 22px 24px; }

  .modal__head { flex-direction: column; align-items: flex-start; gap: 14px; padding-right: 0; }
  .modal__actions .btn { width: 100%; }

  .vigilado__inner { flex-direction: column; text-align: center; }
  .vigilado__text { justify-items: center; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom__inner { flex-direction: column; text-align: center; }
  .footer-legal-links { justify-content: center; }

  .cookie-banner__inner { padding: 18px 18px 20px; }
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__actions .btn { flex: 1; }

  .whatsapp-fab { width: 52px; height: 52px; right: 16px; bottom: 16px; }
  .whatsapp-fab svg { width: 26px; height: 26px; }
  .scroll-top-btn { right: 16px; bottom: 80px; width: 42px; height: 42px; }
}

/*---------------------------------------------*/
/*  21. PREFERENCIAS DE MOVIMIENTO / IMPRESIÓN */
/*---------------------------------------------*/
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .app-window { transform: none; }
}

@media print {
  .top-bar, .site-header, .whatsapp-fab, .scroll-top-btn,
  .cookie-banner, .wa-cta, .hero__media, .hero__scrim { display: none !important; }
  body { background: #fff; color: #000; }
  .hero { color: #000; }
}

/*---------------------------------------------*/
/*  22. PÁGINAS LEGALES                        */
/*---------------------------------------------*/
.legal-page { background: var(--fondo); padding-block: clamp(40px, 5vw, 72px); }

.legal-header {
  max-width: 900px;
  margin: 0 auto clamp(28px, 3.5vw, 44px);
  text-align: center;
}
.legal-header h1 {
  font-size: clamp(1.8rem, 1.3rem + 2vw, 2.7rem);
  color: var(--tinta);
  margin-bottom: .35em;
}
.legal-header__meta {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  font-size: .88rem;
  color: var(--apagado);
  margin: 0;
}
.legal-header__meta strong { color: var(--azul); }

.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(24px, 3vw, 44px);
  align-items: start;
  max-width: 1120px;
  margin-inline: auto;
}

.legal-toc {
  position: sticky;
  top: 110px;
  background: var(--superficie);
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  padding: 22px 20px;
  box-shadow: var(--sombra-sm);
  max-height: calc(100dvh - 140px);
  overflow-y: auto;
}
.legal-toc h2 {
  font-family: var(--font-sans);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--apagado);
  margin: 0 0 14px;
}
.legal-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; display: grid; gap: 7px; }
.legal-toc li { counter-increment: toc; }
.legal-toc a {
  display: block;
  font-size: .87rem;
  line-height: 1.4;
  color: var(--texto);
  text-decoration: none;
  padding: 5px 8px 5px 26px;
  border-radius: 7px;
  position: relative;
  transition: background-color var(--t-rapida), color var(--t-rapida);
}
.legal-toc a::before {
  content: counter(toc) ".";
  position: absolute;
  left: 6px;
  color: var(--azul);
  font-weight: 700;
  font-size: .78rem;
}
.legal-toc a:hover { background: var(--fondo-alt); color: var(--azul); }

.legal-content {
  background: var(--superficie);
  border: 1px solid var(--linea);
  border-radius: var(--radio-lg);
  padding: clamp(24px, 3.4vw, 48px);
  box-shadow: var(--sombra-sm);
}
.legal-content > *:first-child { margin-top: 0; }
.legal-content h2 {
  font-size: clamp(1.2rem, 1.05rem + .55vw, 1.5rem);
  color: var(--azul-oscuro);
  margin-top: 2.2em;
  margin-bottom: .6em;
  padding-top: 1em;
  border-top: 1px solid var(--linea);
  scroll-margin-top: 110px;
}
.legal-content h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.legal-content h3 {
  font-size: 1.05rem;
  color: var(--tinta);
  margin-top: 1.7em;
  margin-bottom: .5em;
}
.legal-content p,
.legal-content li { font-size: 1rem; line-height: 1.8; color: var(--texto); }
.legal-content ul, .legal-content ol { padding-left: 22px; margin-bottom: 1rem; }
.legal-content li { margin-bottom: .5rem; }
.legal-content strong { color: var(--tinta); font-weight: 700; }
.legal-content a { color: var(--azul); }

.legal-note {
  background: var(--fondo-alt);
  border-left: 4px solid var(--azul);
  border-radius: 0 var(--radio-sm) var(--radio-sm) 0;
  padding: 16px 20px;
  margin: 1.4rem 0;
}
.legal-note p:last-child { margin-bottom: 0; }
.legal-note--warn { border-left-color: var(--oro); background: #FFFAE5; }

.legal-data {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: grid;
  gap: 10px;
}
.legal-data li {
  display: grid;
  grid-template-columns: minmax(140px, auto) 1fr;
  gap: 4px 16px;
  padding: 10px 14px;
  background: var(--fondo);
  border-radius: var(--radio-sm);
  margin: 0;
}
.legal-data strong { color: var(--azul); }

.legal-table-wrap { overflow-x: auto; margin: 1.2rem 0; }
.legal-table { width: 100%; border-collapse: collapse; min-width: 520px; font-size: .94rem; }
.legal-table th, .legal-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--linea);
  vertical-align: top;
  line-height: 1.6;
}
.legal-table th { background: var(--fondo-alt); color: var(--tinta); font-weight: 700; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  color: var(--azul);
  text-decoration: none;
  font-weight: 600;
  transition: gap var(--t-rapida);
}
.back-link:hover { gap: 13px; text-decoration: underline; }

@media (max-width: 940px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; max-height: none; }
}
