/* ============================================================================
   ABOGADODIVORCIO.BARCELONA — Hoja de estilos principal
   Diseño: navy jurídico + acento dorado, tipografía Fraunces/Inter.
   Incluye estilos de accesibilidad (alto contraste, modo lectura, texto +/-).
   ============================================================================ */

:root {
  --navy: #0e2a47;
  --navy-700: #163a5f;
  --navy-900: #081a2e;
  --gold: #c9a24b;
  --gold-600: #b08d39;
  --ink: #1d2733;
  --muted: #5b6b7b;
  --line: #e4e9ef;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --bg-soft: #eef2f7;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(14, 42, 71, .08);
  --shadow-lg: 0 20px 50px rgba(14, 42, 71, .15);
  --container: 1180px;
  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --fs-scale: 1;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: calc(1rem * var(--fs-scale));
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold-600); }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.18; font-weight: 600; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.3rem); margin: 0 0 .6em; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1.1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 760px; margin-inline: auto; }
.center { text-align: center; }

/* ---- Accesibilidad: skip link ---- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 2000;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---- Botones ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5em; justify-content: center;
  background: var(--gold); color: var(--navy-900); font-weight: 600;
  padding: .85em 1.5em; border-radius: 999px; border: 2px solid var(--gold);
  cursor: pointer; font-size: .98rem; transition: .2s; text-align: center;
}
.btn:hover { background: var(--gold-600); border-color: var(--gold-600); color: #fff; transform: translateY(-2px); }
.btn--lg { padding: 1.05em 2em; font-size: 1.05rem; }
.btn--small, .btn--sm { padding: .55em 1.1em; font-size: .9rem; }
.btn--block { display: flex; width: 100%; }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--ghost-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost-light:hover { background: #fff; color: var(--navy); }

/* ---- Topbar + Header / Nav ---- */
.site-header { position: sticky; top: 0; z-index: 900; background: #fff; box-shadow: 0 2px 16px rgba(14,42,71,.06); }
.topbar { background: var(--navy-900); color: #cfdcea; font-size: .82rem; }
.topbar__inner { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; padding: .45rem 22px; }
.topbar__item { color: #cfdcea; }
.topbar__phone { color: var(--gold); font-weight: 600; }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 22px; }
.brand { display: flex; align-items: center; gap: .55rem; font-family: var(--font-head); }
.brand__mark { font-size: 1.7rem; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__text strong { color: var(--navy); font-size: 1.25rem; font-weight: 700; }
.brand__text em { color: var(--gold-600); font-style: normal; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; }
.brand--light strong { color: #fff; }
.brand--light em { color: var(--gold); }

.nav__list { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.nav__link { display: inline-flex; align-items: center; gap: .25rem; padding: .6rem .8rem; font-weight: 500; font-size: .95rem; border-radius: 8px; color: var(--ink); }
.nav__link:hover, .nav__link.is-active { color: var(--navy); background: var(--bg-soft); }
.caret { font-size: .7rem; color: var(--gold-600); }
.nav__item { position: relative; }
.nav__cta { margin-left: .4rem; }

.nav__lang { margin-left: .2rem; }
.nav__lang-link {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .85rem; font-weight: 600; color: var(--navy);
  padding: .35rem .7rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line); transition: background .2s, border-color .2s;
}
.nav__lang-link:hover { background: var(--bg-alt); border-color: var(--gold); color: var(--gold-600); }
.lang-flag {
  display: inline-block; width: 20px; height: 14px; border-radius: 2px;
  border: 1px solid rgba(0,0,0,.15); background-size: cover; background-position: center;
  vertical-align: -2px;
}
/* Bandera de España (rojo-amarillo-rojo) */
.flag-es {
  background: linear-gradient(to bottom,
    #c60b1e 0 25%, #ffc400 25% 75%, #c60b1e 75% 100%);
}
/* Senyera catalana (4 franjas rojas sobre fondo gualda) */
.flag-ca {
  background: repeating-linear-gradient(to bottom,
    #fcdd09 0, #fcdd09 11.11%, #da121a 11.11%, #da121a 22.22%);
}

.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 290px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  padding: .5rem; list-style: none; margin: .4rem 0 0; opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: .18s; z-index: 950;
}
.has-dropdown:hover > .dropdown, .has-dropdown:focus-within > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li a { display: block; padding: .55rem .7rem; border-radius: 7px; font-size: .92rem; color: var(--ink); }
.dropdown li a:hover, .dropdown li a.is-active { background: var(--bg-soft); color: var(--navy); }
.dropdown__head { border-bottom: 1px solid var(--line); margin-bottom: .3rem; }
.dropdown__head a { font-weight: 600; color: var(--gold-600); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 26px; height: 3px; background: var(--navy); border-radius: 2px; transition: .25s; }

/* ---- Hero ---- */
.hero {
  position: relative; color: #fff; isolation: isolate;
  background-color: var(--navy-900);
  background-size: cover; background-position: center center; background-repeat: no-repeat;
}
/* Capa de degradado oscuro sobre la fotografía para legibilidad del texto */
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, rgba(8,26,46,.93) 0%, rgba(11,33,56,.82) 45%, rgba(14,42,71,.58) 100%);
}
.hero--home {
  min-height: 82vh; display: flex; align-items: center;
}
.hero--home .hero__overlay {
  background: linear-gradient(115deg, rgba(8,26,46,.92) 0%, rgba(11,33,56,.78) 50%, rgba(14,42,71,.5) 100%),
    radial-gradient(circle at 82% 22%, rgba(201,162,75,.28), transparent 55%);
}
.hero--inner {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}
.hero--short {
  background: var(--navy);
  min-height: auto;
  padding: 0;
}
.hero--short .hero__overlay { display: none; }
.hero--short .hero__inner { padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.hero__inner { position: relative; max-width: 880px; }
.hero__eyebrow { color: var(--gold); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .82rem; margin-bottom: .8rem; }
.hero__back { color: var(--gold); }
.hero__title { color: #fff; margin: 0 0 .5em; }
.hero__subtitle { color: #dbe6f1; font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 400; max-width: 640px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 1.3rem; list-style: none; padding: 0; margin: 2rem 0 0; color: #cfdcea; font-size: .92rem; }

/* ---- Breadcrumbs ---- */
.breadcrumbs { background: var(--bg-alt); border-bottom: 1px solid var(--line); font-size: .85rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; list-style: none; margin: 0; padding: .7rem 0; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--gold-600); }
.breadcrumbs__sep { color: var(--line); }
.breadcrumbs [aria-current] { color: var(--navy); font-weight: 600; }

/* ---- Secciones ---- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--alt { background: var(--bg-alt); }
.section--intro { padding-bottom: 0; }
.section__head { max-width: 720px; margin: 0 auto 2.8rem; }
.section__head.center { margin-inline: auto; }
.kicker { color: var(--gold-600); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; margin: 0 0 .6rem; }
.lead { font-size: 1.12rem; color: #38485a; }

/* ---- Grids / Cards ---- */
.grid { display: grid; gap: 1.4rem; }
.grid--cards { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; box-shadow: var(--shadow); transition: .22s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #d7e0ea; }
.card h3 { margin: .2rem 0 .5rem; color: var(--navy); }
.card p { color: var(--muted); font-size: .96rem; flex: 1; }
.card__icon { font-size: 2.2rem; }
.card__more { color: var(--gold-600); font-weight: 600; margin-top: 1rem; font-size: .92rem; }
.card--hub { border-top: 4px solid var(--gold); }
.card--service:hover h3 { color: var(--gold-600); }

/* ---- Features / Steps ---- */
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.feature__ic { font-size: 1.8rem; display: block; margin-bottom: .6rem; }
.feature h3 { margin: 0 0 .4rem; }
.feature p { color: var(--muted); margin: 0; font-size: .96rem; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.4rem; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.step { background: #fff; border-radius: var(--radius); padding: 1.6rem; border: 1px solid var(--line); position: relative; }
.step__n { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: var(--gold); font-family: var(--font-head); font-weight: 700; margin-bottom: .7rem; }
.step h3 { margin: 0 0 .35rem; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---- Quotes ---- */
.quote { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 1.6rem; margin: 0; }
.quote p { font-style: italic; color: var(--ink); }
.quote cite { color: var(--gold-600); font-weight: 600; font-style: normal; font-size: .9rem; }

/* ---- CTA band ---- */
.cta-band { background: linear-gradient(120deg, var(--navy-900), var(--navy-700)); color: #fff; padding: clamp(2.5rem, 6vw, 4rem) 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 .4rem; }
.cta-band p { color: #cfdcea; margin: 0; }
.cta-band__actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ---- Layout 2 columnas (landing) ---- */
.layout-2col { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 3rem; padding-top: 3.5rem; padding-bottom: 3.5rem; }
.article { min-width: 0; }
.article h2 { margin-top: 1.8rem; }
.article h3 { margin-top: 1.4rem; color: var(--navy-700); }
.article h4 { margin-top: 1.1rem; color: var(--gold-600); }
.article p { color: #36475a; }
.article__figure { margin: 0 0 1.8rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.article__figure img { width: 100%; object-fit: cover; }
.article__figure figcaption { font-size: .82rem; color: var(--muted); padding: .6rem .9rem; background: var(--bg-alt); }
.article__figure--placeholder { min-height: 240px; background: linear-gradient(120deg, var(--navy-700), var(--navy)); position: relative; }
.article__figure--placeholder::before { content: "⚖️"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 3rem; opacity: .5; }
.article__figure--placeholder figcaption { background: transparent; color: #cfdcea; text-align: center; }

/* ---- FAQ ---- */
.faq { margin-top: 2.5rem; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: .8rem; background: #fff; overflow: hidden; }
.faq__item summary { cursor: pointer; padding: 1.1rem 1.3rem; font-weight: 600; color: var(--navy); list-style: none; position: relative; padding-right: 3rem; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--gold-600); }
.faq__item[open] summary::after { content: "–"; }
.faq__answer { padding: 0 1.3rem 1.2rem; color: var(--muted); }

/* ---- Trust bar (conversión) ---- */
.trust-bar { background: var(--navy-900); color: #cfdcea; }
.trust-bar__inner { display: flex; flex-wrap: wrap; gap: 1.6rem; justify-content: center; padding: .85rem 22px; font-size: .88rem; font-weight: 500; }
.trust-bar span { white-space: nowrap; }

/* ---- Inline CTA (mitad del artículo) ---- */
.inline-cta { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; background: linear-gradient(120deg, var(--navy), var(--navy-700)); color: #fff; border-radius: var(--radius); padding: 1.7rem 1.9rem; margin: 2.4rem 0; }
.inline-cta h2 { color: #fff; margin: 0 0 .3rem; font-size: 1.3rem; border: 0; padding: 0; }
.inline-cta p { color: #d4e0ec; margin: 0; font-size: .95rem; }
.inline-cta .btn { flex-shrink: 0; }

/* Asegura el contraste de los CTA cuando se renderizan DENTRO de .article/.rich
   (en las landings y el blog), donde .article p los sobrescribiría. */
.article .cta-band p, .rich .cta-band p,
.article .inline-cta p, .rich .inline-cta p { color: #dbe7f3; }
.article .cta-band h2, .rich .cta-band h2,
.article .inline-cta h2, .rich .inline-cta h2 { color: #fff; border-top: 0; padding-top: 0; margin-top: 0; }
.article .cta-band a:not(.btn), .rich .cta-band a:not(.btn) { color: var(--gold); }

/* ---- Servicios relacionados (enlazado interno) ---- */
.related { margin-top: 2.6rem; }
.related__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.related__card { display: flex; flex-direction: column; gap: .35rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.1rem 1.2rem; transition: .2s; }
.related__card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow); }
.related__card strong { color: var(--navy); font-family: var(--font-head); font-size: 1.02rem; }
.related__card span { color: var(--muted); font-size: .85rem; line-height: 1.45; }
.related__card em { color: var(--gold-600); font-weight: 600; font-style: normal; font-size: .85rem; margin-top: .2rem; }

/* ---- Sidebar checks / why ---- */
.sidebar__checks { list-style: none; padding: 0; margin: 0; }
.sidebar__checks li { position: relative; padding: .4rem 0 .4rem 1.7rem; font-size: .9rem; color: var(--ink); border-bottom: 1px solid var(--line); }
.sidebar__checks li:last-child { border-bottom: 0; }
.sidebar__checks li::before { content: "✔"; position: absolute; left: 0; color: var(--gold-600); font-weight: 700; }

/* ---- Return hub block ---- */
.return-hub { margin-top: 2.2rem; padding: 1.2rem 1.4rem; background: var(--bg-soft); border-radius: var(--radius-sm); border-left: 4px solid var(--gold); font-size: .95rem; }
.return-hub p { margin: 0; }

/* ---- Sidebar ---- */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar__box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); position: sticky; top: 110px; }
.sidebar__cta { position: static; background: var(--navy); color: #fff; }
.sidebar__cta .sidebar__title, .sidebar__cta p { color: #fff; }
.sidebar__title { font-size: 1.1rem; margin: 0 0 .9rem; padding-bottom: .6rem; border-bottom: 2px solid var(--gold); }
.sidebar__nav { list-style: none; margin: 0 0 1rem; padding: 0; }
.sidebar__nav li a { display: block; padding: .55rem .7rem; border-radius: 7px; color: var(--ink); font-size: .93rem; }
.sidebar__nav li a:hover { background: var(--bg-soft); }
.sidebar__nav li a.is-active { background: var(--navy); color: #fff; font-weight: 600; }
.sidebar__hub { font-weight: 600; color: var(--gold-600); font-size: .92rem; }
.sidebar__phone, .sidebar__wa { display: block; text-align: center; margin-top: .7rem; color: var(--gold); font-weight: 600; }

/* ---- Silo nav (categoría) ---- */
.silo-nav { background: var(--bg-soft); border-radius: var(--radius); padding: 2rem; }
.silo-nav__title { margin: 0 0 1.2rem; }
.silo-nav ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .6rem; list-style: none; padding: 0; margin: 0; }
.silo-nav ul li a { display: block; padding: .7rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: 8px; font-weight: 500; }
.silo-nav ul li a:hover { border-color: var(--gold); color: var(--gold-600); }

/* ---- Team ---- */
.team { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; text-align: center; }
.team__photo { width: 90px; height: 90px; border-radius: 50%; background: var(--bg-soft); display: grid; place-items: center; font-size: 2.5rem; margin: 0 auto 1rem; }
.team__role { color: var(--gold-600); font-size: .85rem; font-weight: 600; margin: 0 0 .6rem; }
.team p { color: var(--muted); font-size: .93rem; }

/* ---- Contacto ---- */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.field { margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: 9px;
  font-family: inherit; font-size: .98rem; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); outline: none; }
.field--check label { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; font-size: .88rem; color: var(--muted); }
.field--check input { width: auto; margin-top: .2rem; }
.form-note { font-size: .8rem; color: var(--muted); margin-top: .8rem; }
.alert { padding: 1rem 1.2rem; border-radius: 9px; margin-bottom: 1.2rem; }
.alert--ok { background: #e7f6ec; color: #1b6b3a; border: 1px solid #bce3c9; }

.contact-info h2 { margin-bottom: 1.2rem; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.6rem; }
.contact-list li { display: flex; gap: .9rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.contact-list li span { font-size: 1.3rem; }
.map__link { display: inline-block; margin-top: .6rem; color: var(--gold-600); font-weight: 600; font-size: .9rem; }

/* ---- Blog ---- */
.card--post { padding: 0; overflow: hidden; }
.card__media { display: block; aspect-ratio: 16/9; background: var(--bg-soft); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media--ph, .card--post .card__media:empty { display: grid; place-items: center; background: linear-gradient(120deg, var(--navy-700), var(--navy)); }
.card__media--ph-ic { font-size: 2.5rem; }
.card__body { padding: 1.5rem; }
.card__body time { color: var(--gold-600); font-size: .82rem; font-weight: 600; }
.card__body h2 { font-size: 1.25rem; margin: .4rem 0 .6rem; }
.card__body h2 a { color: var(--navy); }
.card__body p { color: var(--muted); font-size: .94rem; }

.post { padding-top: 3rem; padding-bottom: 1rem; }
.post__header h1 { margin: .3rem 0; }
.post__meta { color: var(--muted); font-size: .9rem; }
.post__figure { margin: 1.5rem 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.rich h2 { margin-top: 1.8rem; }
.rich h3 { margin-top: 1.3rem; }
.rich ul, .rich ol { padding-left: 1.4rem; margin-bottom: 1.1rem; }
.rich li { margin-bottom: .4rem; }
.rich h2 { padding-top: .3rem; border-top: 1px solid var(--line); margin-top: 2.2rem; }
.rich h2:first-child { border-top: 0; padding-top: 0; margin-top: 1rem; }
.rich .key-takeaway { background: var(--bg-soft); border-left: 4px solid var(--gold); border-radius: var(--radius-sm); padding: 1.1rem 1.3rem; margin: 1.4rem 0; }
.rich .key-takeaway strong { color: var(--navy); }
.rich .table-wrap { overflow-x: auto; margin: 1.4rem 0; }
.rich table { border-collapse: collapse; width: 100%; font-size: .94rem; }
.rich th, .rich td { border: 1px solid var(--line); padding: .7rem .85rem; text-align: left; vertical-align: top; }
.rich thead th { background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 600; }
.rich tbody tr:nth-child(even) { background: var(--bg-alt); }
.rich td:first-child { font-weight: 600; color: var(--navy); }

/* ---- Footer ---- */
.site-footer { background: var(--navy-900); color: #b9c8d8; padding-top: 3.5rem; font-size: .9rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(5, 1fr); gap: 2rem; padding-bottom: 2.5rem; }
.footer__brand p { color: #93a7ba; }
.footer__nap { font-style: normal; line-height: 1.7; }
.footer__nap a { color: var(--gold); }
.footer__col h3 { font-size: .95rem; margin: 0 0 .9rem; }
.footer__col h3 a { color: #fff; }
.footer__title a:hover { color: var(--gold); }
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col ul li { margin-bottom: .5rem; }
.footer__col ul li a { color: #9fb2c4; font-size: .86rem; }
.footer__col ul li a:hover { color: var(--gold); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer__bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding: 1.3rem 0; }
.footer__bottom p { margin: 0; color: #7e93a7; font-size: .82rem; }
.footer__legal { display: flex; gap: 1.2rem; list-style: none; margin: 0; padding: 0; }
.footer__legal a { color: #9fb2c4; font-size: .82rem; }
.footer__legal a:hover { color: var(--gold); }

/* ---- Widget accesibilidad ---- */
.a11y { position: fixed; left: 18px; bottom: 18px; z-index: 1000; }
.a11y__toggle { width: 54px; height: 54px; border-radius: 50%; background: var(--navy); color: #fff; border: 0; font-size: 1.5rem; cursor: pointer; box-shadow: var(--shadow-lg); transition: .2s; }
.a11y__toggle:hover { background: var(--gold); color: var(--navy-900); transform: scale(1.05); }
.a11y__panel { position: absolute; left: 0; bottom: 66px; width: 240px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 1rem; display: none; }
.a11y__panel.is-open { display: block; }
.a11y__title { font-size: 1rem; margin: 0 0 .8rem; }
.a11y__btn { display: block; width: 100%; text-align: left; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; margin-bottom: .45rem; cursor: pointer; font-size: .9rem; font-family: inherit; color: var(--ink); transition: .15s; }
.a11y__btn:hover { background: var(--bg-soft); border-color: var(--gold); }
.a11y__btn.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.a11y__reset { color: #b03b3b; }

/* ---- WhatsApp flotante ---- */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 1000; width: 54px; height: 54px; border-radius: 50%; background: #25d366; display: grid; place-items: center; font-size: 1.5rem; box-shadow: var(--shadow-lg); transition: .2s; }
.wa-float:hover { transform: scale(1.08); }

/* ---- Cookie banner ---- */
.cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100; background: #fff; border-top: 3px solid var(--gold); box-shadow: 0 -10px 40px rgba(0,0,0,.18); }
.cookie__inner { display: flex; align-items: center; gap: 2rem; padding: 1.3rem 22px; flex-wrap: wrap; }
.cookie__title { font-size: 1.1rem; margin: 0 0 .3rem; }
.cookie__text { flex: 1; min-width: 280px; }
.cookie__text p { margin: 0; font-size: .9rem; color: var(--muted); }
.cookie__actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.cookie__config { border-top: 1px solid var(--line); background: var(--bg-alt); }
.cookie__config .container { padding-top: 1rem; padding-bottom: 1rem; }
.cookie__row { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.cookie__row span { color: var(--muted); }
.cookie__row strong { color: var(--navy); }
.cookie__config-actions { padding-top: 1rem; text-align: right; }

/* ============================================================================
   MODOS DE ACCESIBILIDAD (clases en <html>/<body>)
   ============================================================================ */
body.a11y-contrast { --bg: #000; --bg-alt: #0a0a0a; --bg-soft: #111; --ink: #fff; --muted: #ffe; --navy: #ffff00; --navy-700: #ffd400; --navy-900: #000; --gold: #ffff00; --gold-600: #ffe600; --line: #ffff00; --white:#000; background:#000; color:#fff; }
body.a11y-contrast .hero, body.a11y-contrast .cta-band, body.a11y-contrast .site-footer, body.a11y-contrast .sidebar__cta { background: #000 !important; }
body.a11y-contrast .card, body.a11y-contrast .feature, body.a11y-contrast .btn { border: 2px solid #ff0 !important; background:#000 !important; color:#ff0 !important; }
body.a11y-contrast a, body.a11y-contrast h1, body.a11y-contrast h2, body.a11y-contrast h3, body.a11y-contrast h4, body.a11y-contrast p { color: #ff0 !important; }

body.a11y-reading .hero__overlay { background: rgba(0,0,0,.35); }
body.a11y-reading * { font-family: Georgia, 'Times New Roman', serif !important; }
body.a11y-reading .article, body.a11y-reading .post { max-width: 680px; }
body.a11y-reading p, body.a11y-reading li { line-height: 2 !important; letter-spacing: .01em; }

body.a11y-links a { text-decoration: underline !important; text-underline-offset: 3px; box-shadow: inset 0 -2px 0 var(--gold); }

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .layout-2col { grid-template-columns: 1fr; }
  .sidebar__box { position: static; }
}
@media (max-width: 860px) {
  .nav__toggle { display: flex; }
  .nav__menu { position: fixed; inset: 0 0 0 auto; width: min(360px, 86vw); background: #fff; box-shadow: var(--shadow-lg); padding: 5rem 1.2rem 2rem; transform: translateX(100%); transition: .28s; overflow-y: auto; }
  .nav__menu.is-open { transform: translateX(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: .1rem; }
  .nav__item { width: 100%; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-left: 2px solid var(--line); margin: 0 0 .5rem .6rem; padding-left: .4rem; display: none; }
  .has-dropdown.is-expanded > .dropdown { display: block; }
  .nav__cta { margin: .6rem 0 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-band__inner { flex-direction: column; text-align: center; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .topbar__inner { gap: .6rem; font-size: .76rem; }
  .hero--home { min-height: 76vh; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto; } }
