/* AD Global Consulting — hoja de estilos
   Tipografías autoalojadas (sin peticiones a terceros, sin cookies) */

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Albert Sans";
  src: url("../fonts/albert-sans.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Paleta clara */
  --paper: #ffffff;
  --surface: #ffffff;
  --field: #f5f7f8;
  --tint-med: #eef6fb;
  --tint-form: #f6f1f9;
  --tint-intl: #f1f7ea;
  --tint-contact: #f3f5f7;
  --ink: #111822;
  --ink-2: #4b5666;
  --ink-3: #6f7a89;
  --rule: #d8dee2;
  --accent: #0d6b75;
  --accent-soft: #e1eff0;
  --band: #132031;
  --band-ink: #e9eef3;
  --band-ink-2: #aab6c4;
  --band-rule: #2a3a4e;
  --band-accent: #74cbd2;
  --focus: #0d6b75;

  /* Colores de las franjas del logotipo (marca, iguales en ambos temas) */
  --s1: #f39a2b;
  --s2: #9b4db0;
  --s3: #2f7fd0;
  --s4: #82b92f;
  --s5: #1c9bd8;
  --s6: #e2342c;
  --s7: #9a3179;
  --s8: #2e9b4a;
  --s9: #f6c21c;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Albert Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem);
  --step-3: clamp(1.9rem, 1.5rem + 1.6vw, 2.6rem);
  --step-4: clamp(2.3rem, 1.6rem + 3vw, 3.9rem);

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;

  color-scheme: light only;
}




*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 450;
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
  font-optical-sizing: auto;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p { margin: 0; }
p + p { margin-top: 1em; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.lead { font-size: var(--step-1); color: var(--ink-2); max-width: 36em; }
.measure { max-width: 38em; }

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--ink); color: var(--paper);
  padding: 10px 14px; border-radius: var(--radius); z-index: 100;
}
.skip-link:focus { top: 12px; }

/* Franja espectral del logotipo */
.spectrum {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  height: 4px;
}
.spectrum span:nth-child(1) { background: var(--s1); }
.spectrum span:nth-child(2) { background: var(--s2); }
.spectrum span:nth-child(3) { background: var(--s3); }
.spectrum span:nth-child(4) { background: var(--s4); }
.spectrum span:nth-child(5) { background: var(--s5); }
.spectrum span:nth-child(6) { background: var(--s6); }
.spectrum span:nth-child(7) { background: var(--s7); }
.spectrum span:nth-child(8) { background: var(--s8); }
.spectrum span:nth-child(9) { background: var(--s9); }

/* Cabecera */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--ink); text-decoration: none;
}
.brand-mark {
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff; padding: 3px;
  box-shadow: 0 0 0 1px var(--rule);
}
.brand-name {
  display: flex; flex-direction: column; line-height: 1.1;
}
.brand-name strong {
  font-family: var(--serif); font-weight: 500; font-size: 1.2rem; letter-spacing: -0.01em;
}
.brand-name small {
  font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink-2); text-decoration: none; font-size: 0.93rem; font-weight: 500;
  padding: 8px 10px; border-radius: var(--radius);
}
.nav a:hover { color: var(--ink); background: var(--accent-soft); }
.nav a.nav-cta {
  color: #fff; background: var(--accent); margin-left: 8px; padding-inline: 16px;
}


.nav a.nav-cta:hover { background: var(--ink); color: var(--paper); }

.nav-toggle {
  display: none;
  align-items: center; gap: 8px;
  font: inherit; font-size: 0.9rem; font-weight: 600;
  color: var(--ink); background: transparent;
  border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 8px 12px; cursor: pointer;
}
.nav-toggle-bars { width: 16px; height: 10px; position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px;
}
.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars::after { bottom: 0; }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 8px var(--gutter) 16px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--rule); border-radius: 0; }
  .nav a:hover { background: transparent; }
  .nav a.nav-cta { margin: 12px 0 0; text-align: center; border-radius: var(--radius); border-bottom: 0; }
}

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 0.98rem;
  padding: 13px 20px; border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--ink); color: var(--paper); }


.btn-ghost { border-color: var(--rule); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Portada */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(32px, 5vw, 64px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero h1 { margin-top: 18px; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lead { margin-top: 22px; }
.hero .btn-row { margin-top: 30px; }

.sphere-figure { margin: 0; display: grid; justify-items: center; gap: 18px; }
.sphere {
  --d: min(360px, 78vw);
  width: var(--d);
  display: grid;
  gap: calc(var(--d) * 0.028);
  padding-block: calc(var(--d) * 0.02);
}
.sphere .row {
  display: flex; justify-content: center; gap: calc(var(--d) * 0.018);
  height: calc(var(--d) * 0.078);
}
.sphere .half {
  height: 100%;
  width: calc(var(--w) * var(--d) / 200);
  background: var(--c);
}
.sphere .half.l { border-radius: 999px 3px 3px 999px; }
.sphere .half.r { border-radius: 3px 999px 999px 3px; }
@media (prefers-reduced-motion: no-preference) {
  .sphere .half.l { animation: meet-l 1.1s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i) * 55ms); }
  .sphere .half.r { animation: meet-r 1.1s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i) * 55ms); }
}
@keyframes meet-l { from { transform: translateX(-38px); } to { transform: none; } }
@keyframes meet-r { from { transform: translateX(38px); } to { transform: none; } }

.sphere-caption { text-align: center; }
.sphere-caption strong {
  display: block; font-family: var(--serif); font-weight: 450; font-size: var(--step-1);
}
.sphere-caption span { font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); }

.credentials {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.credentials li {
  list-style: none;
  padding: 18px 20px 18px 0;
  font-size: 0.92rem; color: var(--ink-2); line-height: 1.45;
}
.credentials li + li { padding-left: 20px; border-left: 1px solid var(--rule); }
.credentials strong { display: block; color: var(--ink); font-weight: 600; }
.credentials ul { display: contents; }

/* Secciones */
.section { padding-block: clamp(56px, 8vw, 112px); }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: end;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-head h2 { margin-top: 10px; }
.section-head .lead { justify-self: start; }

/* Quién soy */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.portrait { margin: 0; position: sticky; top: 100px; }
.portrait img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.portrait figcaption { margin-top: 14px; font-size: 0.92rem; color: var(--ink-2); line-height: 1.45; }
.portrait figcaption strong { display: block; color: var(--ink); font-family: var(--serif); font-size: 1.2rem; font-weight: 500; }
.portrait .spectrum { margin-top: 12px; height: 3px; }

.about-text .lead { color: var(--ink); }
.about-text p { max-width: 38em; }

.facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0; margin: 32px 0 0; padding: 0;
  border-top: 1px solid var(--rule);
}
.facts li {
  list-style: none; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--rule);
  font-size: 0.95rem; color: var(--ink-2);
}
.facts li strong { color: var(--ink); font-weight: 600; }

.timeline { margin: 40px 0 0; padding: 0; }
.timeline h3 { margin-bottom: 18px; }
.timeline ol { margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--rule); }
.timeline li {
  position: relative;
  display: grid; grid-template-columns: 7.2em minmax(0, 1fr); gap: 16px;
  padding: 0 0 18px 22px;
}
.timeline li::before {
  content: ""; position: absolute; left: -6px; top: 0.55em;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--accent);
}
.timeline time {
  font-variant-numeric: tabular-nums; font-weight: 600; color: var(--accent); font-size: 0.95rem;
}
.timeline p { font-size: 0.97rem; color: var(--ink-2); }
.timeline p strong { color: var(--ink); font-weight: 600; }

.about-links { margin-top: 28px; }

/* Servicios */
.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}
.service {
  display: flex; flex-direction: column; gap: 14px;
  padding-top: 22px;
  border-top: 3px solid var(--c, var(--accent));
}
.service h3 { font-size: var(--step-2); }
.service p { color: var(--ink-2); }
.service ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.service li {
  font-size: 0.82rem; font-weight: 500; color: var(--ink-2);
  border: 1px solid var(--rule); border-radius: 999px; padding: 4px 10px;
}
.service .more { margin-top: auto; font-weight: 600; text-decoration: none; }
.service .more:hover { text-decoration: underline; }
.services-note {
  margin-top: clamp(28px, 4vw, 44px);
  padding: 18px 22px; border-radius: var(--radius);
  background: var(--accent-soft); color: var(--ink);
  font-size: 0.98rem;
}

/* Mediación: banda oscura */
.band {
  background: var(--band); color: var(--band-ink);
}
.band .eyebrow { color: var(--band-ink-2); }
.band a { color: var(--band-accent); }
.band .lead { color: var(--band-ink-2); }

.mediation-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.mediation-quote {
  margin: 24px 0 0;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: var(--step-2); line-height: 1.3;
  color: var(--band-ink);
  padding-left: 18px; border-left: 3px solid var(--band-accent);
}
.mediation-quote cite { display: block; margin-top: 12px; font-style: normal; font-family: var(--sans); font-size: 0.85rem; color: var(--band-ink-2); }

.lang-switch {
  display: inline-flex; border: 1px solid var(--band-rule); border-radius: 999px; padding: 3px; margin-bottom: 20px;
}
.lang-switch button {
  font: inherit; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em;
  background: transparent; color: var(--band-ink-2);
  border: 0; border-radius: 999px; padding: 6px 14px; cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { background: var(--band-ink); color: var(--band); }
.bio p { color: var(--band-ink-2); }
.bio p:first-child { color: var(--band-ink); font-size: var(--step-1); line-height: 1.5; }

.areas {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--band-rule);
}
.area {
  padding: 22px 22px 24px 0;
  border-bottom: 1px solid var(--band-rule);
}
.area:not(:nth-child(3n + 1)) { padding-left: 22px; border-left: 1px solid var(--band-rule); }
.area h3 { font-size: var(--step-1); font-weight: 500; }
.area p { margin-top: 8px; font-size: 0.95rem; color: var(--band-ink-2); }

.mediation-bottom {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
}
.masc {
  border: 1px solid var(--band-rule); border-radius: var(--radius);
  padding: 24px;
}
.masc h3 { font-size: var(--step-1); font-weight: 500; margin-top: 8px; }
.masc p { margin-top: 10px; color: var(--band-ink-2); font-size: 0.97rem; }
.masc .motto { color: var(--band-ink); font-family: var(--serif); font-style: italic; font-size: 1.1rem; }

.credits h3 { font-size: var(--step-1); font-weight: 500; }
.credits ul { margin: 14px 0 0; padding: 0; list-style: none; }
.credits li { padding: 10px 0; border-bottom: 1px solid var(--band-rule); color: var(--band-ink-2); font-size: 0.96rem; }
.credits li strong { color: var(--band-ink); font-weight: 600; }
.doc-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.doc-link {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--radius);
  border: 1px solid var(--band-rule); text-decoration: none; font-size: 0.9rem; font-weight: 600;
}
.doc-link:hover { border-color: var(--band-accent); }
.doc-link img { width: 26px; height: 26px; background: #fff; border-radius: 50%; padding: 2px; }

.family {
  margin-top: clamp(40px, 6vw, 64px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(24px, 5vw, 72px);
  padding-top: clamp(32px, 5vw, 48px);
  border-top: 1px solid var(--band-rule);
}
.family p { color: var(--band-ink-2); }

/* Formación */
.training {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}
.training-col h3 { font-size: var(--step-1); font-weight: 500; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.training-col ul { margin: 0; padding: 0; list-style: none; }
.training-col li { padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 0.95rem; color: var(--ink-2); line-height: 1.5; }
.training-col li strong { display: block; color: var(--ink); font-weight: 600; }

.feature {
  margin-top: clamp(36px, 5vw, 56px);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px; align-items: center;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 22px 24px;
}
.feature img { width: 64px; height: 64px; object-fit: contain; }
.feature h3 { font-size: var(--step-1); font-weight: 500; margin-top: 4px; }
.feature p { color: var(--ink-2); font-size: 0.95rem; margin-top: 4px; }
.feature .btn-row { justify-content: flex-end; }

.lang-note { margin-top: 20px; color: var(--ink-2); font-size: 0.95rem; }

/* Internacionalización */
.intl-grid {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
}
.intl-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.intl-list li {
  display: grid; grid-template-columns: minmax(0, 1fr); padding: 14px 0; border-bottom: 1px solid var(--rule);
}
.intl-list strong { font-weight: 600; }
.intl-list span { color: var(--ink-2); font-size: 0.95rem; }
.languages { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.languages span {
  font-size: 0.85rem; font-weight: 600; padding: 6px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--ink);
}

/* Colaboradores */
.partners {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1px; background: var(--rule);
  border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden;
}
.partner {
  background: var(--surface);
  display: grid; grid-template-rows: 88px auto; gap: 10px; align-items: center; justify-items: center;
  padding: 20px 16px; text-decoration: none; color: var(--ink-2);
  text-align: center; font-size: 0.82rem; line-height: 1.35;
  transition: background-color .2s ease;
}
.partner:hover { background: var(--accent-soft); color: var(--ink); }
.partner .logo-box {
  width: 100%; height: 88px; display: grid; place-items: center;
  background: #fff; border-radius: 4px; padding: 8px;
}
.partner img { max-height: 72px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .85; transition: filter .25s ease, opacity .25s ease; }
.partner:hover img, .partner:focus-visible img { filter: none; opacity: 1; }
.partner .logo-fallback {
  font-family: var(--serif); font-size: 1.05rem; color: #16202e; line-height: 1.2; padding: 4px;
}
.partner.is-featured .logo-box { box-shadow: inset 0 0 0 2px var(--accent); }

/* Opiniones */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(20px, 3vw, 32px); }
.review { margin: 0; padding-top: 18px; border-top: 2px solid var(--accent); }
.review blockquote { margin: 0; font-family: var(--serif); font-size: 1.15rem; line-height: 1.45; }
.review figcaption { margin-top: 12px; font-size: 0.9rem; color: var(--ink-2); }
.review figcaption strong { color: var(--ink); }

/* Blog */
.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(20px, 3vw, 32px); }
.post-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: var(--ink);
  transition: border-color .2s ease;
}
.post-card:hover { border-color: var(--accent); }
.post-cover { aspect-ratio: 16 / 9; width: 100%; overflow: hidden; background: var(--band); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.post-cover.stripes { display: grid; align-content: center; gap: 6%; padding: 8% 10%; }
.post-cover.stripes span { display: block; height: 7%; min-height: 6px; border-radius: 999px; background: var(--c); width: var(--w); justify-self: var(--j, start); }
.post-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.post-body time { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.post-body h3 { font-size: 1.35rem; }
.post-body p { color: var(--ink-2); font-size: 0.95rem; }
.section-foot { margin-top: 28px; }

/* Contacto */
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(28px, 5vw, 72px); align-items: start;
}
.contact-list { margin: 24px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.contact-list li {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  padding: 16px 0; border-bottom: 1px solid var(--rule);
}
.contact-list .label { display: block; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.contact-list .value { font-size: 1.15rem; font-weight: 500; color: var(--ink); text-decoration: none; user-select: all; }
a.value:hover { color: var(--accent); }
.copy-btn {
  font: inherit; font-size: 0.82rem; font-weight: 600; color: var(--ink-2);
  background: transparent; border: 1px solid var(--rule); border-radius: 999px;
  padding: 5px 12px; cursor: pointer;
}
.copy-btn:hover { color: var(--ink); border-color: var(--ink-3); }

.form {
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px);
  display: grid; gap: 16px;
}
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.88rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 11px 12px; width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: transparent; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; color: var(--ink-2); }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-legal { font-size: 0.8rem; color: var(--ink-3); line-height: 1.5; }
.form-status { font-size: 0.95rem; font-weight: 500; min-height: 1.4em; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: #b3261e; }



/* Pie */
.site-footer { background: var(--band); color: var(--band-ink-2); font-size: 0.92rem; }
.footer-grid {
  display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 32px; padding-block: 48px 32px;
}
.site-footer .brand { color: var(--band-ink); }
.site-footer .brand-name small { color: var(--band-ink-2); }
.site-footer .brand-mark { box-shadow: none; }
.site-footer h2 { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--band-ink); }
.site-footer ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.site-footer a { color: var(--band-ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--band-ink); text-decoration: underline; }
.footer-note { margin-top: 14px; max-width: 30em; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-block: 18px 28px; border-top: 1px solid var(--band-rule); font-size: 0.85rem;
}

/* Páginas interiores (blog y legales) */
.page-head { padding-block: clamp(40px, 6vw, 80px) clamp(24px, 4vw, 40px); }
.page-head h1 { font-size: var(--step-3); margin-top: 12px; max-width: 22em; }
.page-head .meta { margin-top: 16px; color: var(--ink-3); font-size: 0.92rem; }
.breadcrumbs { font-size: 0.88rem; color: var(--ink-3); }
.breadcrumbs a { color: var(--ink-2); }

.article { padding-bottom: clamp(56px, 8vw, 96px); }
.article-grid {
  display: grid; grid-template-columns: minmax(0, 42rem) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px); align-items: start;
}
.prose { font-size: 1.08rem; line-height: 1.7; }
.prose h2 { font-size: var(--step-2); margin: 1.8em 0 0.6em; }
.prose h3 { font-size: var(--step-1); margin: 1.6em 0 0.5em; }
.prose p + p { margin-top: 1em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 1em 0; }
.prose li + li { margin-top: 0.4em; }
.prose figure { margin: 1.8em 0; }
.prose figure img { border-radius: var(--radius); border: 1px solid var(--rule); }
.prose figcaption { font-size: 0.88rem; color: var(--ink-3); margin-top: 8px; }
.prose blockquote { margin: 1.5em 0; padding-left: 18px; border-left: 3px solid var(--accent); font-family: var(--serif); font-style: italic; font-size: 1.2rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose th { font-weight: 600; width: 34%; color: var(--ink); }
.table-wrap { overflow-x: auto; margin: 1.4em 0; }

.aside-card {
  position: sticky; top: 100px;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 22px;
  display: grid; gap: 12px; font-size: 0.95rem;
}
.aside-card h2 { font-size: 1.2rem; }
.aside-card p { color: var(--ink-2); }

.legal .prose { max-width: 44rem; }
.placeholder { background: #fff3c4; color: #5c4400; padding: 0 4px; border-radius: 3px; }



/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .about-grid, .mediation-top, .mediation-bottom, .family, .intl-grid, .contact-grid, .section-head, .article-grid { grid-template-columns: minmax(0, 1fr); }
  .portrait { position: static; max-width: 420px; }
  .aside-card { position: static; }
  .credentials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .credentials li:nth-child(3) { padding-left: 0; border-left: 0; }
  .credentials li:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .services, .training { grid-template-columns: minmax(0, 1fr); }
  .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .area:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .area:nth-child(2n) { padding-left: 22px; border-left: 1px solid var(--band-rule); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .feature { grid-template-columns: auto minmax(0, 1fr); }
  .feature .btn-row { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 620px) {
  .credentials { grid-template-columns: minmax(0, 1fr); }
  .credentials li, .credentials li + li { padding-left: 0; border-left: 0; }
  .credentials li + li { border-top: 1px solid var(--rule); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .areas { grid-template-columns: minmax(0, 1fr); }
  .area:nth-child(2n) { padding-left: 0; border-left: 0; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .brand-name small { display: none; }
  .feature { grid-template-columns: minmax(0, 1fr); }
}

/* Contacto sobre banda oscura */
.band .contact-list { border-top-color: var(--band-rule); }
.band .contact-list li { border-bottom-color: var(--band-rule); }
.band .contact-list .label { color: var(--band-ink-2); }
.band .contact-list .value { color: var(--band-ink); }
.band a.value:hover { color: var(--band-accent); }
.band .copy-btn { color: var(--band-ink-2); border-color: var(--band-rule); }
.band .copy-btn:hover { color: var(--band-ink); border-color: var(--band-ink-2); }
.band .form { color: var(--ink); }
.band .form a { color: var(--accent); }

/* Ajustes tras revisión */
.credentials { padding: 0; margin-bottom: 0; }
.mediation-bottom { align-items: start; }
.partners { background: var(--surface); gap: 0; }
.partner { box-shadow: 1px 0 0 var(--rule), 0 1px 0 var(--rule); }
.partner.is-featured .logo-box { box-shadow: none; }


/* Fondo blanco con tonos claros por especialidad */
.band {
  --band-ink: var(--ink);
  --band-ink-2: var(--ink-2);
  --band-rule: var(--rule);
  --band-accent: var(--accent);
  background: var(--tint, var(--paper));
  color: var(--ink);
}
.tint-med { --tint: var(--tint-med); }
.tint-form { --tint: var(--tint-form); }
.tint-intl { --tint: var(--tint-intl); }
.tint-contact { --tint: var(--tint-contact); }
.band .eyebrow { color: var(--ink-3); }
.band a { color: var(--accent); }
.band .btn-ghost { color: var(--ink); background: var(--surface); }
.lang-switch { background: var(--surface); }
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.masc { background: var(--surface); }
.field input, .field select, .field textarea { background: var(--field); }
.tint-med .service, .tint-form .feature { background: var(--surface); }

.section-photo { margin: 28px 0 0; }
.section-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

.partner img { filter: none; opacity: 1; }
.partners { grid-template-columns: repeat(7, minmax(0, 1fr)); }
@media (max-width: 980px) { .partners { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.post-cover { background: var(--tint-med); }

/* Colaboradores: fichas separadas con fondo suave */
.partners { gap: 12px; background: transparent; border: 0; border-radius: 0; overflow: visible; }
.partner {
  background: var(--tint-contact);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: none;
  padding: 12px 12px 16px;
  color: var(--ink-2);
  transition: border-color .2s ease, background-color .2s ease;
}
.partner .logo-box { background: #fff; border: 1px solid var(--rule); border-radius: 4px; }
a.partner:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); }

/* Ficha de curso (fecha, horario, lugar…) */
.course-motto { margin-top: 18px; max-width: 40em; font-family: var(--serif); font-style: italic; font-size: var(--step-1); color: var(--ink-2); line-height: 1.45; }
.event-facts {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  background: var(--tint-med); border: 1px solid var(--rule); border-radius: var(--radius);
}
.event-facts li { display: flex; gap: 12px; align-items: flex-start; padding: 18px 16px; font-size: 0.93rem; color: var(--ink-2); line-height: 1.4; }
.event-facts li + li { border-left: 1px solid var(--rule); }
.event-facts strong { display: block; color: var(--ink); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 3px; }
.event-facts svg, .btn svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.event-facts svg { color: var(--accent); margin-top: 2px; }
.btn svg { width: 18px; height: 18px; }
.event-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.teacher { display: flex; gap: 18px; align-items: flex-start; margin-top: 2em; padding: 20px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--tint-form); }
.teacher img { width: 96px; height: 120px; object-fit: cover; border-radius: 4px; border: 0; }
.teacher p + p { margin-top: 0.4em; }
@media (max-width: 980px) {
  .event-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event-facts li + li { border-left: 0; }
  .event-facts li { border-bottom: 1px solid var(--rule); }
}
@media (max-width: 620px) { .event-facts { grid-template-columns: minmax(0, 1fr); } }

/* Impresión / PDF */
@media print {
  @page { size: A4; margin: 14mm 14mm 16mm; }
  body { font-size: 10.5pt; }
  .skip-link, .nav, .nav-toggle, .site-footer, .breadcrumbs, .aside-card, .event-cta a[href="#programa"] { display: none !important; }
  .site-header { position: static; backdrop-filter: none; border-bottom: 1px solid var(--rule); }
  .page-head { padding-block: 16px 8px; }
  .article { padding-bottom: 0; }
  .article-grid { display: block; }
  .prose { font-size: 10.5pt; line-height: 1.55; }
  .prose h2 { break-after: avoid; margin-top: 1.2em; }
  .prose figure { margin: 0 0 1em; }
  .prose figure img { max-height: 70mm; width: 100%; object-fit: cover; }
  .event-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); break-inside: avoid; }
  .event-facts li, .event-facts li + li { border-left: 0; border-bottom: 1px solid var(--rule); padding: 12px; }
  .table-wrap, .teacher { break-inside: avoid; }
  a { text-decoration: none; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Botón principal dentro de secciones con fondo de color */
.band .btn-primary, .band .btn-primary:hover { color: #fff; }
