/* ==========================================================================
   Iridium Legal Solutions, S.C. — Hoja de estilos principal
   Paleta tomada del logotipo institucional (no agregar colores fuera de ella)
   ========================================================================== */

:root {
  /* Paleta institucional */
  --iridium-blue: #1C537B;       /* Azul del sello */
  --iridium-blue-deep: #123A57;  /* Azul profundo (misma tonalidad, más oscura) */
  --iridium-blue-ink: #0C2940;   /* Azul tinta para máximo contraste */
  --iridium-blue-soft: #E8EEF3;  /* Tinte claro del azul */
  --silver: #A6A6A6;             /* Plata de la pluma */
  --graphite: #878787;           /* Gris del capuchón de la pluma */
  --white: #FFFFFF;
  --paper: #F5F6F8;

  /* Texto */
  --text: #1E2A35;
  --text-muted: #5B6670;
  --line: #DDE2E7;

  /* Tipografía */
  --font-serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Escala y ritmo */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --radius: 4px;
  --shadow: 0 18px 40px -22px rgba(12, 41, 64, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--iridium-blue); text-decoration: none; }
a:hover { color: var(--iridium-blue-deep); }
:focus-visible { outline: 2px solid var(--iridium-blue); outline-offset: 3px; }
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--white); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.12;
  color: var(--iridium-blue-ink);
  margin: 0 0 .5em;
  letter-spacing: -.005em;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); }
h4 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--iridium-blue); color: var(--white);
  padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; color: var(--white); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--paper { background: var(--paper); }
.section--blue { background: var(--iridium-blue-deep); color: rgba(255,255,255,.82); }
.section--blue h2, .section--blue h3, .section--blue h4 { color: var(--white); }

/* Encabezado de sección */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .75rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--iridium-blue); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.on-dark .eyebrow, .section--blue .eyebrow { color: var(--silver); }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow::after { content: ""; width: 32px; height: 1px; background: currentColor; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-muted); }
.section--blue .lead { color: rgba(255,255,255,.75); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 28px;
  font: 600 .82rem/1 var(--font-sans); letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--iridium-blue); color: var(--white); }
.btn--primary:hover { background: var(--iridium-blue-deep); color: var(--white); }
.btn--light { background: var(--white); color: var(--iridium-blue-deep); }
.btn--light:hover { background: var(--iridium-blue-soft); color: var(--iridium-blue-ink); }
.btn--ghost { border-color: rgba(255,255,255,.45); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); color: var(--white); }
.btn--outline { border-color: var(--iridium-blue); color: var(--iridium-blue); }
.btn--outline:hover { background: var(--iridium-blue); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.link-arrow svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header.is-solid { background: rgba(255,255,255,.97); box-shadow: 0 1px 0 var(--line); -webkit-backdrop-filter: saturate(1.4) blur(8px); backdrop-filter: saturate(1.4) blur(8px); }

.brand { display: flex; align-items: center; gap: 12px; color: var(--white); }
.brand img { width: 46px; height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-serif); font-size: 1.45rem; font-weight: 600; letter-spacing: .2em; }
.brand-sub { font-size: .58rem; letter-spacing: .3em; text-transform: uppercase; margin-top: 5px; opacity: .8; white-space: nowrap; }
.is-solid .brand { color: var(--iridium-blue-deep); }
.brand:hover { color: inherit; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav-list { display: flex; gap: 30px; list-style: none; }
.nav-list a {
  position: relative; padding: 6px 0;
  font-size: .8rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.88); white-space: nowrap;
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--white); }
.is-solid .nav-list a { color: var(--text); }
.is-solid .nav-list a:hover, .is-solid .nav-list a[aria-current="page"] { color: var(--iridium-blue); }
.nav .btn { min-height: 44px; padding: 0 20px; }
.site-header:not(.is-solid) .nav .btn { background: var(--white); color: var(--iridium-blue-deep); }

.nav-toggle {
  display: none; width: 46px; height: 46px; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--white); position: relative; z-index: 120;
}
.is-solid .nav-toggle { color: var(--iridium-blue-deep); }
.nav-toggle span { position: absolute; left: 11px; width: 24px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease), opacity .2s; }
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22.5px; }
.nav-toggle span:nth-child(3) { top: 29px; }
.nav-open .nav-toggle { color: var(--white); }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Hero (inicio) ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 48px) 0 96px;
  background: radial-gradient(120% 90% at 85% 10%, var(--iridium-blue) 0%, var(--iridium-blue-deep) 48%, var(--iridium-blue-ink) 100%);
  color: rgba(255,255,255,.82);
  overflow: hidden;
}
.hero h1 { color: var(--white); max-width: 15ch; margin-bottom: 28px; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--silver); }
.hero .lead { color: rgba(255,255,255,.78); max-width: 560px; margin-bottom: 40px; }
.hero-motif {
  position: absolute; z-index: -1; right: -6%; top: 50%; transform: translateY(-50%);
  width: min(62vw, 760px); height: auto; opacity: .9; pointer-events: none;
}
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 12px 36px; margin-top: 64px; padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.14); max-width: 720px; list-style: none;
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.6);
}
.hero-meta li { display: flex; align-items: center; gap: 10px; }
.hero-meta li::before { content: ""; width: 6px; height: 6px; transform: rotate(45deg); background: var(--silver); }
.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: 1px; height: 48px; background: linear-gradient(rgba(255,255,255,.6), transparent);
}

/* Encabezado de páginas interiores */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--header-h) + clamp(64px, 9vw, 112px)) 0 clamp(64px, 8vw, 96px);
  background: linear-gradient(135deg, var(--iridium-blue-ink) 0%, var(--iridium-blue-deep) 55%, var(--iridium-blue) 100%);
  color: rgba(255,255,255,.8);
}
.page-hero h1 { color: var(--white); font-size: clamp(2.4rem, 5.4vw, 4.2rem); max-width: 18ch; }
.page-hero .lead { color: rgba(255,255,255,.75); max-width: 640px; margin: 0; }
.page-hero .hero-motif { width: min(52vw, 560px); right: -4%; opacity: .7; }
.page-hero.not-found { min-height: 78vh; display: flex; align-items: center; }
.not-found .btn-row { margin-top: 36px; }
.breadcrumb { display: flex; gap: 10px; list-style: none; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 22px; color: rgba(255,255,255,.55); }
.breadcrumb a { color: rgba(255,255,255,.75); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb li + li::before { content: "/"; margin-right: 10px; }

/* ---------- Pilares (franja de diferenciadores) ---------- */
.pillars {
  position: relative; z-index: 2; margin-top: -56px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--white); box-shadow: var(--shadow); border-radius: var(--radius);
}
.pillar { padding: 36px 30px; border-right: 1px solid var(--line); }
.pillar:last-child { border-right: 0; }
.pillar .icon { margin-bottom: 18px; }
.pillar h3 { font-size: 1.3rem; margin-bottom: 8px; }
.pillar p { font-size: .92rem; color: var(--text-muted); margin: 0; }

/* Ícono genérico */
.icon {
  width: 52px; height: 52px; display: grid; place-items: center; flex-shrink: 0;
  border: 1px solid var(--line); border-radius: 50%; color: var(--iridium-blue);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.icon svg { width: 24px; height: 24px; }

/* ---------- Grid y tarjetas ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative; display: flex; flex-direction: column;
  padding: 40px 34px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%;
  background: var(--iridium-blue); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card:hover .icon { background: var(--iridium-blue); border-color: var(--iridium-blue); color: var(--white); }
.card .icon { margin-bottom: 26px; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--text-muted); font-size: .96rem; }
.card .link-arrow { margin-top: auto; padding-top: 12px; }
.card .tag { align-self: flex-start; }
.card--compact { padding: 34px 30px; }
.card--compact h3 { font-size: clamp(1.3rem, 1.8vw, 1.5rem); }
.card--compact p { font-size: .93rem; }
.card-num { position: absolute; top: 30px; right: 32px; font-family: var(--font-serif); font-size: 1.1rem; color: var(--silver); letter-spacing: .1em; }

/* ---------- Comparativo ---------- */
.compare { border-top: 1px solid rgba(255,255,255,.14); }
.compare-row {
  display: grid; grid-template-columns: 1.1fr 1.4fr 1.6fr; gap: 32px; align-items: start;
  padding: 30px 0; border-bottom: 1px solid rgba(255,255,255,.14);
}
.compare-head { padding: 0 0 18px; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--silver); border-bottom-color: rgba(255,255,255,.3); }
.compare-row h3 { font-size: 1.45rem; margin: 0; }
.compare-old { color: rgba(255,255,255,.5); font-size: .95rem; display: flex; gap: 12px; }
.compare-new { color: var(--white); font-size: 1rem; display: flex; gap: 12px; }
.compare-old svg, .compare-new svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 4px; }
.compare-new svg { color: var(--white); }
.compare-label { display: none; }

/* ---------- Split (texto + visual) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.split--top { align-items: start; }
.seal-frame {
  position: relative; aspect-ratio: 1; max-width: min(460px, calc(100% - 48px)); margin: 0 auto; width: 100%;
  display: grid; place-items: center;
}
.seal-frame::before, .seal-frame::after {
  content: ""; position: absolute; inset: 0; border: 1px solid var(--line); border-radius: 50%;
}
.seal-frame::after { inset: -22px; border-style: dashed; border-color: var(--silver); opacity: .5; }
.seal-frame img { width: 78%; height: auto; filter: drop-shadow(0 30px 40px rgba(12,41,64,.25)); }

.stat-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); list-style: none; }
.stat-list strong { display: block; font-family: var(--font-serif); font-size: 2.2rem; font-weight: 600; color: var(--iridium-blue); line-height: 1; margin-bottom: 8px; }
.stat-list span { font-size: .85rem; color: var(--text-muted); line-height: 1.4; display: block; }

/* Misión / visión */
.statement { padding: 48px 44px; border-left: 2px solid var(--iridium-blue); background: var(--white); }
.statement h3 { display: flex; align-items: center; gap: 14px; }
.statement p { font-family: var(--font-serif); font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.5; color: var(--iridium-blue-ink); margin: 0; }

/* Lista con viñeta de rombo */
.check-list { list-style: none; display: grid; gap: 18px; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before {
  content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px;
  transform: rotate(45deg); border: 1px solid var(--iridium-blue);
}
.check-list strong { color: var(--iridium-blue-ink); display: block; font-weight: 600; }
.section--blue .check-list li::before { border-color: var(--silver); }
.section--blue .check-list strong { color: var(--white); }

/* ---------- Áreas: servicios destacados ---------- */
.service {
  display: grid; grid-template-columns: 340px 1fr; gap: clamp(32px, 6vw, 80px);
  padding: clamp(48px, 7vw, 80px) 0; border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.service:first-of-type { border-top: 0; padding-top: 0; }
.service-aside { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.service-aside .card-num { position: static; display: block; margin-bottom: 16px; font-size: 1rem; }
.service-aside h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.service-aside p { color: var(--text-muted); }
.service-aside .btn { margin-top: 12px; }
.service-items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.service-item { padding: 30px 28px; background: var(--paper); border-radius: var(--radius); }
.section--paper .service-item { background: var(--white); border: 1px solid var(--line); }
.section--paper .service { border-top-color: #D3D9DF; }
.service-item h4 { margin-bottom: 10px; color: var(--iridium-blue-deep); }
.service-item p { margin: 0; color: var(--text-muted); font-size: .94rem; }
.service-items--3 .service-item:last-child:nth-child(odd) { grid-column: 1 / -1; }

.timeline { list-style: none; counter-reset: step; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 36px 72px; counter-increment: step; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0; width: 48px; height: 48px; display: grid; place-items: center;
  border: 1px solid var(--iridium-blue); border-radius: 50%; background: var(--white);
  font-family: var(--font-serif); font-weight: 600; font-size: 1.05rem; color: var(--iridium-blue);
}
.timeline li::after { content: ""; position: absolute; left: 24px; top: 48px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline h4 { margin: 10px 0 6px; color: var(--iridium-blue-deep); }
.timeline p { margin: 0; color: var(--text-muted); font-size: .95rem; }

.tag { display: inline-block; padding: 5px 12px; border-radius: 40px; background: var(--iridium-blue-soft); color: var(--iridium-blue); font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }

.area-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; list-style: none; }
.area-nav a { display: inline-block; padding: 9px 18px; border: 1px solid rgba(255,255,255,.3); border-radius: 40px; color: var(--white); font-size: .8rem; letter-spacing: .06em; }
.area-nav a:hover { background: var(--white); color: var(--iridium-blue-deep); }

/* ---------- Equipo ---------- */
.team-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .4s var(--ease), transform .4s var(--ease); }
.team-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.team-photo {
  position: relative; aspect-ratio: 4 / 4.4; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(160deg, var(--iridium-blue) 0%, var(--iridium-blue-deep) 70%, var(--iridium-blue-ink) 100%);
}
.team-photo::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .5;
  background: url("../img/motif.svg") center / 135% no-repeat;
}
.team-portrait {
  position: relative; z-index: 1; width: 66%; aspect-ratio: 1; border-radius: 50%;
  padding: 6px; background: var(--white);
  box-shadow: 0 24px 40px -18px rgba(0,0,0,.55);
  transition: transform .5s var(--ease);
}
.team-portrait::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1px dashed var(--silver); opacity: .6; }
.team-portrait img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.team-card:hover .team-portrait { transform: scale(1.03); }
.team-photo .placeholder { width: 46%; opacity: .9; }
.team-body { padding: 30px 30px 34px; display: flex; flex-direction: column; flex: 1; }
.team-role { font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--iridium-blue); margin-bottom: 8px; }
.team-body h3 { margin-bottom: 14px; }
.team-body p { font-size: .94rem; color: var(--text-muted); }
.team-meta { list-style: none; display: grid; gap: 8px; margin: 4px 0 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .88rem; }
.team-meta li { display: flex; gap: 10px; }
.team-meta span { color: var(--graphite); min-width: 92px; }
.team-links { display: flex; gap: 10px; margin-top: auto; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--iridium-blue); transition: all .3s var(--ease); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { background: var(--iridium-blue); border-color: var(--iridium-blue); color: var(--white); }

/* ---------- Banda CTA ---------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; background: var(--iridium-blue); color: rgba(255,255,255,.85); padding: clamp(64px, 9vw, 104px) 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-band h2 { color: var(--white); max-width: 18ch; margin-bottom: 12px; }
.cta-band p { margin: 0; max-width: 520px; }
.cta-band .hero-motif { width: 420px; right: auto; left: -80px; opacity: .35; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.form-title { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.form-card { padding: clamp(28px, 4vw, 48px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--iridium-blue-ink); }
.field label .req { color: var(--iridium-blue); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--paper); border: 1px solid transparent; border-radius: var(--radius);
  transition: border-color .25s, background .25s, box-shadow .25s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%231C537B' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: var(--white); border-color: var(--iridium-blue); box-shadow: 0 0 0 3px rgba(28,83,123,.12); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #A33A3A; background: var(--white); }
.field-error { font-size: .8rem; color: #A33A3A; min-height: 0; }
.field label.checkbox { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--text-muted); cursor: pointer; }
.field .checkbox input[type="checkbox"] {
  -webkit-appearance: none; appearance: none; flex-shrink: 0; cursor: pointer;
  position: relative; width: 20px; height: 20px; margin: 2px 0 0; padding: 0;
  background: var(--white); border: 1.5px solid var(--graphite); border-radius: 3px;
  transition: background .2s, border-color .2s;
}
.field .checkbox input[type="checkbox"]:hover { border-color: var(--iridium-blue); }
.field .checkbox input[type="checkbox"]:checked { background: var(--iridium-blue); border-color: var(--iridium-blue); }
.field .checkbox input[type="checkbox"]:checked::after {
  content: ""; position: absolute; left: 5.5px; top: 1.5px; width: 5px; height: 10px;
  border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.field .checkbox input[type="checkbox"]:focus-visible { outline: 2px solid var(--iridium-blue); outline-offset: 2px; box-shadow: none; }
.field.has-error .checkbox input[type="checkbox"] { border-color: #A33A3A; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; }
.form-note { font-size: .8rem; color: var(--graphite); margin: 0; }
.form-status { display: none; margin-top: 20px; padding: 16px 18px; border-radius: var(--radius); font-size: .95rem; }
.form-status.is-success { display: block; background: var(--iridium-blue-soft); color: var(--iridium-blue-ink); border-left: 3px solid var(--iridium-blue); }
.form-status.is-error { display: block; background: #F8ECEC; color: #7A2A2A; border-left: 3px solid #A33A3A; }
.btn[disabled] { opacity: .65; cursor: progress; }

.contact-list { list-style: none; display: grid; gap: 14px; }
.contact-item {
  display: flex; gap: 18px; align-items: center; padding: 22px 24px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
a.contact-item:hover { border-color: var(--iridium-blue); box-shadow: var(--shadow); transform: translateX(4px); color: var(--text); }
a.contact-item:hover .icon { background: var(--iridium-blue); color: var(--white); border-color: var(--iridium-blue); }
.contact-item small { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--graphite); margin-bottom: 2px; }
.contact-item strong { font-weight: 500; color: var(--iridium-blue-ink); word-break: break-word; }
.map-frame { margin-top: 14px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--paper); }
.map-frame { position: relative; }
.map-frame:not(.is-loaded) { aspect-ratio: auto; min-height: 340px; border: 0; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-placeholder {
  position: relative; isolation: isolate; overflow: hidden; height: 100%; min-height: 340px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 36px 24px; color: rgba(255,255,255,.8);
  background: linear-gradient(150deg, var(--iridium-blue) 0%, var(--iridium-blue-deep) 60%, var(--iridium-blue-ink) 100%);
}
.map-motif { position: absolute; z-index: -1; width: 120%; max-width: none; left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: .45; pointer-events: none; }
.map-pin { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); color: var(--white); margin-bottom: 16px; }
.map-pin svg { width: 26px; height: 26px; }
.map-title { font-family: var(--font-serif); font-size: 1.45rem; font-weight: 600; color: var(--white); margin: 0 0 4px; line-height: 1.2; }
.map-sub { font-size: .9rem; margin: 0 0 22px; }
.map-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.map-actions .btn { min-height: 44px; padding: 0 18px; font-size: .74rem; }
.map-note { font-size: .76rem; color: rgba(255,255,255,.6); margin: 18px 0 0; max-width: 34ch; }
.map-note a { color: var(--white); text-decoration: underline; text-underline-offset: 2px; }
.map-open {
  position: absolute; right: 12px; bottom: 12px; padding: 9px 14px; border-radius: var(--radius);
  background: var(--iridium-blue); color: var(--white); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  box-shadow: 0 10px 24px -10px rgba(12,41,64,.6);
}
.map-open:hover { background: var(--iridium-blue-deep); color: var(--white); }

/* ---------- Texto legal ---------- */
.prose { max-width: 780px; overflow-wrap: break-word; }
.prose a { overflow-wrap: anywhere; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; margin-bottom: 1.1em; }
.prose li { margin-bottom: .4em; }
.prose h3 { font-size: 1.3rem; margin: 1.4em 0 .5em; color: var(--iridium-blue-deep); }
.prose h2 { scroll-margin-top: calc(var(--header-h) + 20px); }
.prose ol { padding-left: 1.4em; margin-bottom: 1.1em; }
.legal-meta { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--graphite); }
.toc { margin: 28px 0 8px; padding: 26px 30px; background: var(--paper); border-left: 2px solid var(--iridium-blue); border-radius: var(--radius); }
.toc ol { columns: 2; column-gap: 32px; margin: 0; font-size: .92rem; }
.toc li { break-inside: avoid; }
mark.pending { background: var(--iridium-blue-soft); color: var(--iridium-blue-ink); padding: 1px 6px; border-radius: 3px; font-size: .92em; }
@media (max-width: 640px) { .toc ol { columns: 1; } .toc { padding: 22px 22px; } }
.notice { padding: 18px 22px; background: var(--iridium-blue-soft); border-left: 3px solid var(--iridium-blue); border-radius: var(--radius); font-size: .92rem; color: var(--iridium-blue-ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--iridium-blue-ink); color: rgba(255,255,255,.65); padding: clamp(64px, 8vw, 96px) 0 0; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 56px; }
.site-footer h4 { font-family: var(--font-sans); font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--white); margin-bottom: 22px; }
.site-footer ul { list-style: none; display: grid; gap: 12px; }
.site-footer a { color: rgba(255,255,255,.7); overflow-wrap: anywhere; }
.footer-grid > * { min-width: 0; }
.site-footer a:hover { color: var(--white); }
.footer-brand .brand { margin-bottom: 22px; }
.footer-slogan { font-family: var(--font-serif); font-size: 1.35rem; font-style: italic; line-height: 1.4; color: var(--white); max-width: 26ch; }
[hidden] { display: none !important; }
.social { display: flex; gap: 10px; margin-top: 22px; }
.site-footer .icon-btn { color: var(--white); border-color: rgba(255,255,255,.25); }
.site-footer .icon-btn:hover { background: var(--white); border-color: var(--white); color: var(--iridium-blue-ink); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 24px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: .8rem; color: rgba(255,255,255,.45); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--iridium-blue); color: var(--white);
  box-shadow: 0 12px 28px -8px rgba(12,41,64,.55);
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.wa-float::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--iridium-blue); opacity: .45; }
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { transform: scale(1.06); background: var(--iridium-blue-deep); color: var(--white); }

/* ---------- Animación de aparición ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .nav-list { gap: 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .pillar:nth-child(2) { border-right: 0; }
  .pillar:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .service { grid-template-columns: 1fr; }
  .service-aside { position: static; }
}

@media (max-width: 1080px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: 110;
    flex-direction: column; justify-content: center; align-items: flex-start; gap: 40px;
    padding: 96px var(--gutter) 48px;
    background: var(--iridium-blue-ink);
    opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav-list { flex-direction: column; gap: 6px; width: 100%; }
  .nav-list a, .is-solid .nav-list a { display: block; padding: 10px 0; font-family: var(--font-serif); font-size: 2rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: rgba(255,255,255,.85); }
  .nav-list a::after { display: none; }
  .nav-list a[aria-current="page"], .is-solid .nav-list a[aria-current="page"] { color: var(--white); }
  .nav .btn, .site-header .nav .btn { background: var(--white); color: var(--iridium-blue-deep); }
  .nav-open { overflow: hidden; }
  .footer-bottom { padding-bottom: 92px; }
  .nav-open .site-header, .nav-open .site-header.is-solid { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav-open .site-header .brand { color: var(--white); position: relative; z-index: 120; }

  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .compare-row { grid-template-columns: 1fr 1fr; gap: 16px 24px; }
  .compare-row h3 { grid-column: 1 / -1; }
  .compare-head { display: none; }
  .compare-label { display: block; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--silver); margin-bottom: 6px; }
  .compare-old, .compare-new { flex-direction: column; gap: 0; }
  .compare-old svg, .compare-new svg { display: none; }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
  .hero-motif { opacity: .35; width: 90vw; right: -30%; }
  .page-hero .hero-motif { opacity: .3; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .grid-2, .grid-3, .grid-4, .service-items { grid-template-columns: 1fr; }
  .service-items--3 .service-item:last-child:nth-child(odd) { grid-column: auto; }
  .pillars { grid-template-columns: 1fr; margin-top: -40px; }
  .pillar { border-right: 0; border-bottom: 1px solid var(--line); padding: 28px 24px; }
  .pillar:last-child { border-bottom: 0; }
  .card { padding: 32px 26px; }
  .compare-row { grid-template-columns: 1fr; }
  .stat-list { grid-template-columns: 1fr; gap: 20px; }
  .statement { padding: 32px 26px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .btn-row .btn { width: 100%; }
  .brand-name { font-size: 1.25rem; }
  .brand img { width: 40px; height: 40px; }
  .hero { padding-bottom: 88px; }
  .hero-meta { margin-top: 44px; gap: 10px 24px; }
  .scroll-cue { display: none; }
  .timeline li { padding-left: 64px; }
  .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}
