/* ===========================================================
   MORENO 1940 — Sistema de diseño
   Marca: navy #182147 · Títulos: Cormorant Garamond · Texto: Poppins
   =========================================================== */

:root {
  --navy: #182147;
  --navy-deep: #0e1430;
  --navy-soft: #283157;
  --white: #ffffff;
  --cream: #f6f5f1;
  --cream-2: #efece4;
  --gold: #c2a36b;
  --gold-soft: #d8c79f;
  --ink: #1d2230;
  --muted: #5b6172;
  --line: rgba(24, 33, 71, 0.12);
  --line-light: rgba(255, 255, 255, 0.18);

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  --header-h: 110px;
  --maxw: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  font-weight: 300;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.1; color: var(--navy); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 100px 0; }
.section--tight { padding: 64px 0; }
.eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.lead { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 500; font-size: 0.82rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 15px 30px; border-radius: 40px;
  transition: all 0.35s var(--ease);
  border: 1px solid transparent;
}
.btn .arrow { transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }
.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--gold); color: var(--navy); }
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--gold); color: var(--navy); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--white); }
.btn--ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn--ghost-light:hover { background: var(--white); color: var(--navy); }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: var(--navy); color: var(--white); }

/* ===========================================================
   HEADER / NAV
   =========================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header__inner {
  width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { height: 90px; width: auto; flex-shrink: 0; transition: filter 0.4s var(--ease); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav__link {
  font-size: 0.78rem; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--navy); position: relative; padding: 6px 0; transition: color 0.3s; white-space: nowrap;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--gold); transition: width 0.3s var(--ease);
}
.nav__link:hover::after, .nav__link.is-active::after { width: 100%; }
.nav__link:hover { color: var(--gold); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-actions .btn { padding: 11px 22px; font-size: 0.72rem; white-space: nowrap; }
.nav-contacto { padding: 11px 22px; font-size: 0.72rem; margin-left: 8px; }

.lang-toggle {
  display: flex; align-items: center; border: 1px solid var(--line); border-radius: 30px; overflow: hidden;
}
.lang-toggle button {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em;
  padding: 7px 12px; color: var(--muted); transition: all 0.3s;
}
.lang-toggle button.is-active { background: var(--navy); color: var(--white); }

/* Transparent header over hero */
.site-header.is-transparent { background: transparent; }
.site-header.is-transparent .nav__link,
.site-header.is-transparent .lang-toggle button { color: var(--white); }
.site-header.is-transparent .lang-toggle { border-color: var(--line-light); }
.site-header.is-transparent .lang-toggle button.is-active { background: var(--white); color: var(--navy); }
.site-header.is-transparent .brand img { filter: brightness(0) invert(1); }
.site-header.is-transparent .btn--ghost { color: var(--white); border-color: rgba(255,255,255,0.6); }

/* Scrolled header */
.site-header.is-scrolled { background: var(--white); box-shadow: 0 2px 30px rgba(24,33,71,0.08); }
.site-header.is-scrolled .nav__link,
.site-header.is-scrolled .lang-toggle button { color: var(--navy); }
.site-header.is-scrolled .lang-toggle button.is-active { color: var(--white); }
.site-header.is-scrolled .brand img { filter: none; }

/* CTA links that only appear inside the mobile menu */
.nav__cta-mobile { display: none; }

/* Mobile nav toggle */
.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 30px; }
.nav-toggle span { height: 2px; background: var(--navy); transition: all 0.3s; }
.site-header.is-transparent .nav-toggle span { background: var(--white); }
.site-header.is-scrolled .nav-toggle span { background: var(--navy); }

/* ===========================================================
   HERO (Inicio) — estilo Dentons
   =========================================================== */
.hero { position: relative; height: 100vh; min-height: 640px; overflow: hidden; }
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease);
  background-size: cover; background-position: center;
}
.hero__slide.is-active { opacity: 1; }
.hero__slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(14,20,48,0.86) 0%, rgba(14,20,48,0.55) 45%, rgba(14,20,48,0.25) 100%);
}
/* hero photo slides */
.hero__slide--ph1 { background-image: url("../../Imagenes/M%26A%20Y%20OPERACIONES%20TRANSFRONTERIZAS.jpg"); }
.hero__slide--ph2 { background-image: url("../../Imagenes/ASUNTOS%20PUBLICOS%20Y%20PROYECTOS%20ESTRATEGICOS.jpg"); }
.hero__slide--ph3 { background-image: url("../../Imagenes/PATRIMONIO%2C%20SUCESION%20Y%20PROTECCION%20DE%20ACTIVOS.jpg"); }

.hero__content { position: relative; z-index: 2; height: 100%; }
.hero__text {
  position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--maxw); padding: 0 28px; color: var(--white);
  display: flex; flex-direction: column; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity 1s var(--ease);
}
.hero__text.is-active { opacity: 1; visibility: visible; }
/* Slide 2: kicker en 2 líneas + título en 2 líneas */
.hero__text[data-slide="1"] .hero__kicker,
.hero__text[data-slide="2"] .hero__kicker,
.hero__text[data-slide="3"] .hero__kicker { letter-spacing: 0.14em; max-width: 70rem; line-height: 1.8; }
.hero__text[data-slide="1"] .hero__title,
.hero__text[data-slide="2"] .hero__title,
.hero__text[data-slide="3"] .hero__title { max-width: none; }
.hero__kicker {
  font-size: 0.98rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold-soft); margin-bottom: 22px; max-width: 60ch; line-height: 1.7;
}
.hero__title {
  font-family: var(--serif); color: var(--white); font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1.02; max-width: 16ch;
}
.hero__title strong { font-weight: 600; }
.hero__sub { margin: 26px 0 36px; font-size: 1.1rem; font-weight: 300; max-width: 46ch; color: rgba(255,255,255,0.88); }

/* Servicios: hero */
.hero--servicios { height: 92vh; min-height: 600px; }
.hero--servicios .hero__kicker { font-size: 0.95rem; }
.hero--servicios .hero__title { font-size: clamp(2.3rem, 4.4vw, 3.9rem); }
/* Títulos más largos: escala menor para conservar el quiebre en dos líneas */
.hero--servicios .hero__text[data-area="patrimonio-sucesion"] .hero__title,
.hero--servicios .hero__text[data-area="asuntos-publicos"] .hero__title,
.hero--servicios .hero__text[data-area="ma-internacional"] .hero__title,
.hero--servicios .hero__text[data-area="inmobiliario"] .hero__title,
.hero--servicios .hero__text[data-area="servicios-especializados"] .hero__title {
  font-size: clamp(1.9rem, 3.2vw, 3rem); max-width: none;
}
.hero--servicios .hero__sub { font-size: 1.05rem; line-height: 1.5; }
/* Servicios: hero con lista desplegable al lado (Conoce más) */
.hero--servicios .hero__text { flex-direction: row; align-items: center; justify-content: flex-start; gap: 56px; }
.hero--servicios .hero__text-main { flex: 0 0 auto; max-width: 46%; }
.hero--servicios .hero__list {
  list-style: none; margin: 0; padding: 0; flex: 1; min-width: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px 30px;
  background: rgba(16,23,54,0.86);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; padding: 26px 30px;
}
/* Mostrar solo la lista del idioma activo */
html:not([lang="en"]) .hero--servicios .hero__list[data-lang="en"] { display: none; }
html[lang="en"] .hero--servicios .hero__list[data-lang="es"] { display: none; }
.hero--servicios .hero__list li {
  position: relative; padding: 7px 0 7px 18px;
  color: rgba(255,255,255,0.92); font-size: 0.9rem; line-height: 1.4;
}
.hero--servicios .hero__list li::before {
  content: ""; position: absolute; left: 0; top: 14px; width: 6px; height: 6px; background: var(--gold);
}
@media (max-width: 860px) {
  .hero--servicios .hero__text { flex-direction: column; align-items: flex-start; gap: 28px; }
  .hero--servicios .hero__text-main { max-width: 100%; }
  .hero--servicios .hero__list { grid-template-columns: 1fr; width: 100%; }
}

.hero__controls { position: absolute; right: 28px; bottom: 48px; z-index: 3; display: flex; gap: 12px; }
.hero__controls button {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.45);
  color: var(--white); display: grid; place-items: center; transition: all 0.3s;
}
.hero__controls button:hover { background: var(--white); color: var(--navy); }
.hero__dots { position: absolute; left: 28px; bottom: 54px; z-index: 3; display: flex; gap: 10px; }
.hero__dots button { width: 34px; height: 3px; background: rgba(255,255,255,0.4); transition: background 0.3s; }
.hero__dots button.is-active { background: var(--gold); }

/* page hero (interior) */
.page-hero {
  background: var(--navy); color: var(--white);
  padding: calc(var(--header-h) + 70px) 0 70px;
}
.page-hero h1 { color: var(--white); font-size: clamp(2.6rem, 5vw, 4.4rem); }
.page-hero .lead { color: rgba(255,255,255,0.82); margin-top: 16px; }
.page-hero h1 + .lead, .page-hero .lead { max-width: 64ch; }

/* ===== Webinars (catálogo) ===== */
.webinar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.webinar-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--cream); border: 1px solid var(--line); border-radius: 6px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.webinar-card:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(24,33,71,0.14); }
.webinar-card__flyer {
  position: relative; aspect-ratio: 3/4; background-color: var(--navy);
  background-size: cover; background-position: center;
}
.webinar-card__flyer::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,20,48,0.10) 0%, rgba(14,20,48,0.05) 50%, rgba(14,20,48,0.45) 100%);
}
.webinar-card__date {
  position: absolute; top: 16px; left: 16px; z-index: 1;
  background: var(--gold); color: var(--navy); padding: 8px 12px 6px; border-radius: 3px;
  text-align: center; line-height: 1; font-size: 0.72rem; letter-spacing: 0.1em; font-weight: 500;
}
.webinar-card__date strong { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.5rem; letter-spacing: 0; }
.webinar-card__tag {
  position: absolute; top: 18px; right: 16px; z-index: 1;
  background: rgba(14,20,48,0.78); color: var(--white); font-size: 0.62rem; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 6px 10px; border-radius: 20px;
}
.webinar-card__body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.webinar-card__topic { color: var(--gold); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; }
.webinar-card__title { font-family: var(--serif); font-size: 1.3rem; line-height: 1.2; color: var(--navy); }
.webinar-card__meta { color: var(--navy); font-size: 0.82rem; font-weight: 500; }
.webinar-card__desc { color: var(--muted); font-size: 0.88rem; line-height: 1.55; }
.webinar-card__btn { margin-top: 14px; align-self: flex-start; }
@media (max-width: 1024px) { .webinar-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .webinar-grid { grid-template-columns: 1fr; } }

/* Variante con video de fondo y título centrado (La Firma) */
.page-hero--video { position: relative; overflow: hidden; text-align: center; padding: 110px 0; }
.page-hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; pointer-events: none;
}
.page-hero__overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(24,33,71,0.78) 0%, rgba(24,33,71,0.86) 100%);
}
.page-hero--video > .container { position: relative; z-index: 2; }

/* ===========================================================
   SECTION VARIANTS
   =========================================================== */
.bg-cream { background: var(--cream); }
.bg-navy { background: var(--navy); color: rgba(255,255,255,0.85); }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy .eyebrow { color: var(--gold-soft); }

.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.divider { height: 1px; background: var(--line); border: 0; }

/* ===========================================================
   LA FIRMA — tipográfico, sin imágenes
   =========================================================== */
.firma-intro h2 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); max-width: 18ch; }
.firma-lead {
  font-family: var(--serif); font-weight: 700; color: var(--navy);
  font-size: clamp(1.3rem, 2.1vw, 1.75rem); line-height: 1.32;
}
.firma-lead strong { font-weight: 700; }
.firma-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.firma-grid p + p { margin-top: 18px; }
/* Intro de La Firma: frase y párrafos a todo lo ancho, uno debajo de otro */
.firma-wide .firma-lead { max-width: none; margin-bottom: 44px; font-size: clamp(1.5rem, 2.5vw, 2.1rem); }
.firma-wide__cols p + p { margin-top: 18px; }

/* Raíces profundas + estadísticas */
.enfoque-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 80px; align-items: center; }
.enfoque-intro h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.12; }
.enfoque-intro h2 em { color: var(--gold); font-style: italic; font-family: var(--serif); }
.enfoque-intro p { color: var(--muted); margin-top: 26px; max-width: 46ch; }
.firma-opening__title { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.1; color: var(--navy); }
.enfoque-intro .firma-opening__sub { font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 2.2vw, 1.7rem); line-height: 1.3; color: var(--gold); margin-top: 14px; max-width: none; text-align: left; }
.firma-opening__text { color: var(--muted); margin-top: 24px; line-height: 1.8; }
.enfoque-stats { display: flex; flex-direction: column; }
.stat-row {
  display: grid; grid-template-columns: 168px 1fr; gap: 36px; align-items: center;
  padding: 32px 34px; border-radius: 12px;
  transition: background-color 0.55s var(--ease);
}
.stat-row + .stat-row { border-top: 1px solid var(--line); }
.stat-row.is-highlight { background: var(--navy); }
.stat-row.is-highlight, .stat-row.is-highlight + .stat-row { border-top-color: transparent; }
.stat-row__num { font-family: var(--serif); font-weight: 500; font-size: clamp(3.4rem, 5vw, 4.6rem); color: var(--gold); line-height: 1.2; transition: color 0.45s var(--ease); }
.stat-row__text h4 { font-family: var(--sans); font-weight: 500; font-size: 0.98rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy); margin-bottom: 10px; transition: color 0.45s var(--ease); }
.stat-row__text p { color: var(--muted); font-size: 0.82rem; line-height: 1.55; transition: color 0.45s var(--ease); }
/* Fila sin cifra: el texto conserva la columna de las demás filas */
.stat-row--textonly .stat-row__text { grid-column: 2; }
.stat-row.is-highlight .stat-row__num { color: var(--gold-soft); }
.stat-row.is-highlight .stat-row__text h4 { color: var(--white); }
.stat-row.is-highlight .stat-row__text p { color: rgba(255,255,255,0.82); }

.heritage { display: flex; flex-wrap: wrap; gap: 70px; justify-content: center; text-align: center; }
.heritage__num { font-family: var(--serif); font-size: clamp(3.4rem, 8vw, 6rem); color: var(--gold); line-height: 1; }
.heritage__label { font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.7); margin-top: 10px; }

/* ---------- Cronología (timeline) ---------- */
.cronologia .section-head h2 em { color: var(--gold); font-style: italic; font-family: var(--serif); }
/* Cronología: video de fondo + más altura */
.cronologia { position: relative; overflow: hidden; padding-top: 130px; padding-bottom: 150px; }
.cronologia__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; pointer-events: none;
}
.cronologia__overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(24,33,71,0.68) 0%, rgba(24,33,71,0.50) 50%, rgba(24,33,71,0.68) 100%),
    radial-gradient(120% 120% at 80% 20%, rgba(194,163,107,0.10), transparent 55%);
}
.cronologia > .container { position: relative; z-index: 2; }

.timeline { position: relative; display: flex; justify-content: space-between; gap: 14px; margin-bottom: 50px; }
.timeline::before {
  content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px;
  background: rgba(255,255,255,0.18);
}
.timeline__node {
  position: relative; z-index: 1; flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center; background: transparent; padding: 0;
}
.timeline__dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--navy); border: 2px solid rgba(255,255,255,0.4);
  transition: all 0.35s var(--ease);
}
.timeline__node:hover .timeline__dot { border-color: var(--gold); transform: scale(1.12); }
.timeline__node.is-active .timeline__dot {
  background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 5px rgba(194,163,107,0.18);
}
.timeline__year { font-family: var(--serif); font-size: 1.15rem; color: var(--gold-soft); letter-spacing: 0.04em; line-height: 1; }
.timeline__lbl {
  font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.55); line-height: 1.5; max-width: 16ch; transition: color 0.3s;
}
.timeline__node:hover .timeline__lbl,
.timeline__node.is-active .timeline__lbl { color: var(--white); }

.timeline__panels { position: relative; }
.timeline__panel { display: none; }
.timeline__panel.is-active {
  display: block; position: relative; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12); border-radius: 8px;
  background: rgba(20,28,62,0.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 44px 48px;
  animation: pop 0.45s var(--ease);
}
.timeline__panel-inner { position: relative; z-index: 1; }
.timeline__panel .eyebrow { color: var(--gold-soft); }
.timeline__panel h3 { color: var(--white); font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 16px; }
.timeline__panel p { color: rgba(255,255,255,0.8); max-width: 72ch; }
.timeline__watermark {
  position: absolute; right: 38px; top: 50%; transform: translateY(-50%); z-index: 0; pointer-events: none;
  font-family: var(--serif); font-weight: 600; line-height: 1;
  font-size: clamp(3.6rem, 8vw, 6.4rem); color: rgba(255,255,255,0.06);
}

.awards-list { columns: 2; column-gap: 60px; }
.awards-list li {
  break-inside: avoid; padding: 18px 0; border-bottom: 1px solid var(--line);
  display: flex; gap: 14px; align-items: baseline;
}
.awards-list li::before { content: "—"; color: var(--gold); }

.alianzas-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 30px; align-items: center;
}
.alianza {
  aspect-ratio: 3/2; display: grid; place-items: center; text-align: center;
  border: 1px solid var(--line); border-radius: 10px; padding: 16px;
  font-size: 0.8rem; color: var(--muted); font-weight: 500; letter-spacing: 0.04em;
  transition: all 0.3s var(--ease);
}
.alianza:hover { border-color: var(--gold); color: var(--navy); transform: translateY(-4px); }

/* ===========================================================
   SERVICIOS — estilo Ritch Mueller
   =========================================================== */
.servicios-layout { display: grid; grid-template-columns: 0.9fr 1.4fr; gap: 50px; }
.servicios-enfoque p { color: rgba(255,255,255,0.78); }
.servicios-col h3 {
  font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-soft); margin-bottom: 26px;
}
.servicios-list li { border-bottom: 1px solid var(--line-light); }
.servicios-list button {
  width: 100%; text-align: left; color: var(--white); padding: 16px 0;
  font-family: var(--serif); font-size: 1.5rem; display: flex; justify-content: space-between; align-items: center;
  transition: color 0.3s, padding 0.3s var(--ease);
}
.servicios-list button:hover { color: var(--gold); padding-left: 8px; }
.servicios-list button .plus { font-family: var(--sans); font-size: 1.2rem; font-weight: 200; opacity: 0.6; }
.servicios-detail {
  max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease);
}
.servicios-detail.is-open { max-height: 600px; }
.servicios-detail ul { padding: 6px 0 20px; }
.servicios-detail li {
  border: 0; padding: 7px 0; color: rgba(255,255,255,0.75); font-family: var(--sans);
  font-size: 0.95rem; display: flex; gap: 10px;
}
.servicios-detail li::before { content: "·"; color: var(--gold); }

/* ===========================================================
   PROFESIONALES — grid + modal (estilo Galicia)
   =========================================================== */
.pro-search { display: flex; max-width: 620px; margin: 0 auto 56px; border-bottom: 1px solid var(--line); }
.pro-search input {
  flex: 1; border: 0; padding: 16px 8px; font-family: var(--sans); font-size: 1rem; background: transparent; color: var(--ink);
}
.pro-search input:focus { outline: none; }
.pro-search button { color: var(--gold); padding: 0 12px; }

.pro-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.pro-card { cursor: pointer; text-align: center; min-width: 0; }
.pro-card__photo {
  position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--cream-2);
  max-width: 240px; margin: 0 auto;
}
.pro-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); filter: grayscale(8%); }
.pro-card__photo::after {
  content: ""; position: absolute; inset: 0; background: var(--navy);
  opacity: 0; transition: opacity 0.4s var(--ease); mix-blend-mode: multiply;
}
.pro-card:hover .pro-card__photo::after { opacity: 0.32; }
.pro-card:hover .pro-card__photo img { transform: scale(1.05); }
.pro-card__bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease);
}
.pro-card:hover .pro-card__bar { transform: scaleX(1); }
.pro-card__name { font-family: var(--serif); font-size: 1.1rem; line-height: 1.25; margin: 16px auto 0; max-width: 240px; text-align: left; color: var(--navy); }
.pro-card__role { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin: 6px auto 0; max-width: 240px; text-align: left; }

/* ===== Equipo: directorio (Socios / Asociados) ===== */
.team-section { margin-bottom: 60px; }
.team-section:last-child { margin-bottom: 0; }
.team-head { display: flex; align-items: center; gap: 24px; margin-bottom: 28px; }
.team-head__label { font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.team-head__line { flex: 1; height: 1px; background: var(--line); }
.team-head__count { font-size: 0.8rem; color: var(--muted); white-space: nowrap; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.member-card {
  background: var(--cream-2, #f3f1ea); border: 1px solid var(--line); border-radius: 10px; padding: 22px;
  display: flex; flex-direction: column; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.member-card:hover { transform: translateY(-5px); box-shadow: 0 18px 38px rgba(24,33,71,0.12); }
.member-card__top { display: flex; gap: 15px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.member-mono {
  flex: none; width: 76px; height: 76px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 1.85rem; letter-spacing: 0.04em; color: var(--gold);
  background: linear-gradient(150deg, #20305e, #0e1430); border: 1px solid rgba(194,163,107,0.4);
}
.member-card__name { font-family: var(--serif); font-weight: 700; font-size: 1.12rem; line-height: 1.2; color: var(--navy); }
.member-card__role { font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-top: 6px; }
.member-card__area { font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 3px; line-height: 1.3; }
.member-card__mail { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 0.8rem; margin-top: 16px; word-break: break-word; }
.member-card__mail svg { flex: none; margin-top: 2px; opacity: 0.7; }
.member-card__link { margin-top: 14px; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); display: inline-flex; align-items: center; gap: 8px; }
.member-card__link:hover { color: var(--navy); }
@media (max-width: 1024px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } }

/* ===== Perfil (página de detalle) ===== */
.perfil-hero { position: relative; overflow: visible; background: var(--navy); color: var(--white); padding: calc(var(--header-h) + 46px) 0 50px; }
.perfil-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 400px at 15% -10%, rgba(194,163,107,0.14), transparent 60%); pointer-events: none; }
.perfil-back { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; color: var(--gold-soft); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 30px; }
.perfil-back:hover { color: var(--gold); }
.perfil-head { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.perfil-head__text { min-width: 0; }
.perfil-mono {
  position: absolute; z-index: 3; bottom: 0;
  right: calc(max(28px, (100% - var(--maxw)) / 2 + 28px) + 320px / 2 - 168px / 2); transform: translateY(50%);
  width: 168px; height: 168px; border-radius: 22px; display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 3.2rem; letter-spacing: 0.04em; color: var(--gold);
  background: linear-gradient(150deg, #24356a, #0e1430); border: 1px solid rgba(194,163,107,0.45);
  box-shadow: 0 18px 40px rgba(14,20,48,0.35);
}
.perfil-head h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); color: var(--white); line-height: 1.05; }
.perfil-head__role { color: var(--gold); font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; margin-top: 12px; }

/* Layout dos columnas: semblanza + barra lateral */
.perfil-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 50px; align-items: start; }
.perfil-layout--single { grid-template-columns: 1fr; }
.perfil-bio { border-left: 3px solid var(--gold); padding-left: 28px; }
.perfil-bio p { color: var(--navy); line-height: 1.75; }
.perfil-bio p + p { margin-top: 18px; }
.perfil-bio strong { font-weight: 600; color: var(--navy); }

.perfil-side { background: var(--cream-2, #f3f1ea); border: 1px solid var(--line); border-radius: 12px; padding: 30px 26px; text-align: center; position: sticky; top: calc(var(--header-h) + 20px); }
.perfil-side__joined { color: var(--navy); font-weight: 600; font-size: 0.86rem; line-height: 1.6; text-align: justify; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.perfil-side__block { margin-top: 24px; }
.perfil-side__title { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; text-align: center; }
.perfil-side__areas { list-style: none; margin: 0; padding: 0; }
.perfil-side__areas li { color: var(--navy); font-size: 0.84rem; line-height: 1.4; padding: 6px 0; text-align: justify; }
.perfil-side__areas li::before { content: "\2022"; color: var(--gold); margin-right: 8px; }
.perfil-side__edu { list-style: none; margin: 0; padding: 0; }
.perfil-side__edu li { padding: 12px 0; border-bottom: 1px solid var(--line); text-align: justify; }
.perfil-side__edu li:last-child { border-bottom: 0; }
.perfil-side__edu .edu-t { display: block; font-weight: 600; color: var(--navy); font-size: 0.85rem; line-height: 1.35; }
.perfil-side__edu .edu-s { display: block; font-style: italic; color: var(--navy); font-size: 0.78rem; line-height: 1.4; margin-top: 4px; }
.perfil-side__edu .edu-d { display: block; font-style: italic; color: var(--muted); font-size: 0.74rem; line-height: 1.45; margin-top: 5px; text-align: justify; }
.perfil-side__note { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); font-style: italic; color: var(--muted); font-size: 0.77rem; line-height: 1.6; text-align: justify; }

@media (max-width: 860px) { .perfil-layout { grid-template-columns: 1fr; gap: 40px; } .perfil-side { position: static; } .perfil-mono { right: auto; left: 50%; transform: translate(-50%, 50%); } }
@media (max-width: 560px) { .perfil-mono { width: 120px; height: 120px; font-size: 2.3rem; border-radius: 16px; } }

/* Modal */
.modal {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(14,20,48,0.55); backdrop-filter: blur(4px);
}
.modal.is-open { display: grid; place-items: center; padding: 24px; }
.modal__box {
  background: var(--white); max-width: 920px; width: 100%; max-height: 88vh; overflow: hidden;
  display: grid; grid-template-columns: 38% 1fr; border-radius: 4px;
  animation: pop 0.4s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.modal__photo { background: var(--white); overflow: hidden; align-self: start; }
.modal__photo img { width: 100%; height: auto; object-fit: contain; display: block; }
.modal__body { padding: 48px 44px; position: relative; max-height: 88vh; overflow-y: auto; }
.modal__close { position: absolute; top: 18px; right: 20px; font-size: 1.6rem; color: var(--muted); line-height: 1; }
.modal__close:hover { color: var(--navy); }
.modal__name { font-size: 2.2rem; }
.modal__role { color: var(--gold); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; margin: 8px 0 20px; }
.modal__bio p + p { margin-top: 14px; }
.modal__bio p { color: var(--muted); }
.modal__bio .bio-eyebrow {
  font-family: var(--sans); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold); margin: 26px 0 14px;
}
.modal__bio .bio-eyebrow:first-child { margin-top: 0; }
.bio-edu { margin-bottom: 8px; }
.bio-edu li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.bio-edu li:last-child { border-bottom: 0; }
.bio-edu strong { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.05rem; color: var(--navy); line-height: 1.25; }
.bio-edu span { display: block; font-size: 0.85rem; font-style: italic; color: var(--muted); margin-top: 3px; }
.bio-edu em { display: block; font-size: 0.84rem; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.modal__contact { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.modal__contact a { color: var(--navy); font-weight: 500; }
.modal__contact a:hover { color: var(--gold); }

/* Blog: tarjetas clicables + modal de publicación */
.post-card--clickable { cursor: pointer; }
.post-card__full { display: none; }
.modal--post .modal__photo { align-self: stretch; }
.modal--post .modal__photo img { height: 100%; object-fit: cover; }
.modal--post .modal__role { margin: 0 0 10px; }
.modal--post .modal__name { font-size: 2.8rem; line-height: 1.1; color: var(--navy); margin-bottom: 20px; }
.modal__bio .modal-lead { font-family: var(--serif); font-size: 1.25rem; line-height: 1.4; color: var(--navy); font-weight: 700; margin-bottom: 18px; }
.modal--post .modal__bio .bio-eyebrow { font-size: 0.95rem; letter-spacing: 0.18em; }
.modal__bio .modal-list { list-style: none; margin: 14px 0; padding: 0; }
.modal__bio .modal-list li { position: relative; padding: 7px 0 7px 20px; color: var(--muted); line-height: 1.5; }
.modal__bio .modal-list li::before { content: ""; position: absolute; left: 0; top: 13px; width: 6px; height: 6px; background: var(--gold); }
.modal__bio .modal-list li strong { color: var(--navy); font-weight: 600; }
.modal__bio p strong { color: var(--navy); font-weight: 600; }
.modal__bio .modal-subhead { color: var(--navy); font-weight: 600; font-size: 1.05rem; margin: 20px 0 4px; }
.modal__bio .modal-subhead + p { margin-top: 0; }
.modal__bio .modal-cta-line { color: var(--navy); font-weight: 700; font-size: 1.3rem; line-height: 1.35; text-align: center; margin-top: 24px; }
.modal__bio .modal-cta { text-align: center; margin-top: 22px; }
.modal__bio .modal-statement { font-size: 1.2rem; font-weight: 700; color: var(--navy); line-height: 1.35; margin-top: 22px; text-align: left; }
.modal__bio .modal-source { font-size: 0.8rem; color: var(--muted); margin-top: 22px; word-break: break-word; text-align: left; }
.modal__bio .modal-source a { color: var(--gold); }

/* Modal de texto (Aviso de Privacidad) */
.modal__box--text { grid-template-columns: 1fr; max-width: 760px; }
.modal--text .modal__body { padding: 52px 52px; }
.modal__title-center {
  text-align: center; font-family: var(--serif); font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.8rem); color: var(--navy); margin-bottom: 28px;
}
/* Modal de artículo: imagen arriba (completa) + texto abajo */
.modal--top .modal__box { display: flex; flex-direction: column; position: relative; max-width: 760px; overflow: hidden; }
.modal--top .modal__photo { flex: none; align-self: stretch; background: var(--navy-deep, #0e1430); }
.modal--top .modal__photo img { width: 100%; height: auto; max-height: 56vh; object-fit: contain; display: block; }
.modal--top .modal__body { flex: 1; min-height: 0; overflow-y: auto; max-height: none; position: static; }
.modal--top .modal__close {
  position: absolute; top: 14px; right: 14px; z-index: 4;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(14,20,48,0.55); color: #fff;
}
.modal--top .modal__close:hover { background: rgba(14,20,48,0.8); color: #fff; }

.modal--text .modal__body p { color: var(--muted); line-height: 1.7; text-align: justify; }
.modal--text .modal__body p + p { margin-top: 18px; }
.modal--text .modal__body strong { color: var(--navy); font-weight: 600; }
.modal--text .modal__body a { color: var(--gold); }
.modal--text .modal__body a:hover { text-decoration: underline; }
@media (max-width: 760px) { .modal--text .modal__body { padding: 40px 26px; } }

/* ===== Texto de cuerpo justificado (estética general) ===== */
p, .firma-lead { text-align: justify; }
/* Excepciones: etiquetas, kickers y bloques centrados conservan su alineación natural */
.hero__kicker, .hero__sub, .eyebrow, .bio-eyebrow,
.center p, .heritage p, .site-footer--center .container p { text-align: inherit; }

/* ===========================================================
   PUBLICACIONES / BLOG — carrusel estilo Galicia
   =========================================================== */
.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line-light); margin-bottom: 40px; flex-wrap: wrap; }
.tab {
  padding: 0 0 16px; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.6); position: relative; transition: color 0.3s;
}
.tab.is-active, .tab:hover { color: var(--white); }
.tab.is-active::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--gold); }

.posts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.post-card {
  background: rgba(255,255,255,0.04); border: 1px solid var(--line-light); overflow: hidden;
  display: flex; flex-direction: column; transition: transform 0.4s var(--ease), border-color 0.4s;
}
.post-card:hover { transform: translateY(-6px); border-color: var(--gold); }
.post-card__media { aspect-ratio: 4/3; background: linear-gradient(135deg, #243056, #16608a); background-size: cover; background-position: center; }
.pub-areas .post-card__media { aspect-ratio: 1/1; }
a.post-card { text-decoration: none; color: inherit; }
.post-card__body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.post-card__cat { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.post-card__date { font-size: 0.78rem; color: rgba(255,255,255,0.6); margin: 6px 0 12px; }
.post-card__title { font-family: var(--serif); font-size: 1.3rem; color: var(--white); }
.post-card__pdf { margin-top: auto; padding-top: 16px; font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); display: inline-flex; gap: 8px; align-items: center; }

/* Membresías / Asociaciones */
.membresias .section-head h2 em { color: var(--gold); font-style: italic; font-family: var(--serif); }
.section-head h2.memb-title { font-size: clamp(2.2rem, 4.4vw, 3.7rem); white-space: nowrap; }
.memb-grid { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1040px; margin: 0 auto; }
.memb-col { padding: 6px 46px; border-left: 1px solid var(--line); }
.memb-col:first-child { border-left: 0; padding-left: 0; }
.memb-col__acr { font-family: var(--serif); font-weight: 600; font-size: clamp(2.4rem, 4vw, 3.4rem); color: var(--gold); line-height: 1; margin-bottom: 18px; letter-spacing: 0.02em; }
.memb-col h3 { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; color: var(--navy); line-height: 1.25; margin-bottom: 16px; }
.memb-col__cat { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.memb-note { text-align: center; margin-top: 54px; font-style: italic; color: var(--muted); font-size: 0.95rem; }

/* Logos de alianzas — fijos y centrados */
.logos { margin-top: 64px; }
.logos-track { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 90px; }
/* Todos los logos a la misma altura */
.logos-item { flex: none; display: grid; place-items: center; }
.logos-item img { height: 120px; width: auto; object-fit: contain; transition: transform 0.4s var(--ease); }
.logos-item--wide.logos-item--big img { height: 80px; }
.logos-item--ga img { height: 120px; }
.logos-item:hover img { transform: scale(1.06); }


/* Publicaciones con fondo claro */
.pub-light { background: var(--white); }
.pub-light .tabs { border-bottom-color: var(--line); }
.pub-light .tab { color: var(--muted); }
.pub-light .tab.is-active, .pub-light .tab:hover { color: var(--navy); }
.pub-light .post-card { background: var(--cream); border-color: var(--line); }
.pub-light .post-card:hover { border-color: var(--gold); }
.pub-light .post-card__date { color: var(--muted); }
.pub-light .post-card__title { color: var(--navy); }

/* ===== Áreas de práctica (Inicio): acordeón horizontal que se expande al hover ===== */
.pub-areas .posts {
  display: flex; gap: 14px; height: 460px;
}
.pub-areas .post-card {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden;
  background: var(--navy); border: 1px solid var(--navy); border-radius: 2px;
  transition: flex-grow 0.6s var(--ease);
}
/* La tarjeta con cursor (o foco) se expande; las demás se mantienen angostas */
.pub-areas .posts:hover .post-card { flex-grow: 0.6; }
.pub-areas .posts .post-card:hover,
.pub-areas .posts .post-card:focus-visible { flex-grow: 4; }

/* La imagen llena toda la tarjeta (anula el aspect-ratio cuadrado) */
.pub-areas .post-card__media {
  position: absolute; inset: 0; width: 100%; height: 100%;
  aspect-ratio: auto;
  transition: transform 0.7s var(--ease);
}
.pub-areas .post-card:hover .post-card__media,
.pub-areas .post-card:focus-visible .post-card__media { transform: scale(1.06); }

/* Panel de texto superpuesto al pie, con degradado navy */
.pub-areas .post-card__body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  background: linear-gradient(to top, var(--navy) 18%, rgba(24,33,71,0.82) 55%, rgba(24,33,71,0) 100%);
  padding: 26px 22px 22px;
}
.pub-areas .post-card__title {
  color: var(--white); white-space: normal; font-size: 1.15rem; line-height: 1.25;
}
/* "Ver Más" oculto por defecto; aparece al expandir */
.pub-areas .post-card__pdf {
  opacity: 0; transform: translateY(8px); max-height: 0; padding-top: 0; margin-top: 8px;
  transition: opacity 0.4s var(--ease) 0.1s, transform 0.4s var(--ease) 0.1s;
}
.pub-areas .post-card:hover .post-card__pdf,
.pub-areas .post-card:focus-visible .post-card__pdf {
  opacity: 1; transform: translateY(0); max-height: 40px;
}

/* En móvil/táctil el hover no aplica: vuelve a tarjetas apiladas legibles */
@media (max-width: 760px) {
  .pub-areas .posts { display: grid; grid-template-columns: 1fr; height: auto; gap: 20px; }
  .pub-areas .post-card { flex: none; }
  .pub-areas .post-card__media { position: relative; aspect-ratio: 16/9; }
  .pub-areas .post-card__title { white-space: normal; }
  .pub-areas .post-card__pdf { opacity: 1; transform: none; max-height: none; }
}

/* brochures banner */
.brochures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.brochure {
  position: relative; padding: 44px 32px; border-radius: 6px; color: var(--white); overflow: hidden;
  background: var(--navy); min-height: 220px; display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform 0.4s var(--ease);
}
.brochure:nth-child(2) { background: linear-gradient(135deg, #243056, #16608a); }
.brochure:nth-child(3) { background: linear-gradient(135deg, #2a2018, #6b4f2a); }
.brochure:hover { transform: translateY(-6px); }
.brochure h3 { color: var(--white); font-size: 1.6rem; }
.brochure span { font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-soft); margin-top: 10px; display: inline-flex; gap: 8px; align-items: center; }

/* ===========================================================
   RED DE FIRMAS ASOCIADAS (Inicio)
   =========================================================== */
.red-firmas { position: relative; overflow: hidden; }
.red-firmas__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; pointer-events: none;
}
.red-firmas__overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(115deg, rgba(14,20,48,0.94) 0%, rgba(14,20,48,0.86) 40%, rgba(14,20,48,0.78) 100%),
    radial-gradient(120% 120% at 80% 20%, rgba(194,163,107,0.08), transparent 55%);
}
.red-firmas > .container { position: relative; z-index: 2; }

.red-head { margin-bottom: 56px; }
.red-head h2 { font-size: clamp(2.2rem, 4.4vw, 4rem); line-height: 1.1; color: var(--white); white-space: nowrap; }
.red-head h2 em { color: var(--gold); font-style: italic; font-family: var(--serif); }
.red-head p { color: rgba(255,255,255,0.72); margin-top: 22px; max-width: none; }

.red-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-bottom: 64px; }
.red-stat { padding: 8px 40px; border-left: 1px solid var(--line-light); }
.red-stat:first-child { padding-left: 0; border-left: 0; }
.red-stat__num { font-family: var(--serif); font-weight: 500; font-size: clamp(3.4rem, 6vw, 5.4rem); color: var(--gold); line-height: 1.15; }
.red-stat__label { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.65); margin-top: 6px; }

.red-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.red-col__head {
  display: flex; align-items: baseline; gap: 14px;
  padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--line-light);
}
.red-col__head h3 { color: var(--white); font-size: 1.75rem; }
.red-col__count { margin-left: auto; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.5); white-space: nowrap; }
.red-col__list li {
  padding: 9px 0; color: rgba(255,255,255,0.8); font-size: 0.98rem;
  display: flex; align-items: center; gap: 12px;
}
.red-col__list li::before { content: ""; width: 6px; height: 6px; background: var(--gold); flex: none; }

/* Nuestro modelo */
.red-model__title {
  color: var(--white); font-family: var(--serif); font-size: 1.75rem;
  padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--line-light);
}
.red-model__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px 48px; }
.red-model__list li {
  padding: 9px 0; color: rgba(255,255,255,0.8); font-size: 0.98rem;
  display: flex; align-items: flex-start; gap: 12px; text-align: left;
}
.red-model__list li::before { content: ""; width: 6px; height: 6px; background: var(--gold); flex: none; margin-top: 9px; }

/* ===========================================================
   FORMS (Contacto + Únete)
   =========================================================== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 40px; }
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 1rem; font-weight: 300; color: var(--ink);
  border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 10px 2px;
  transition: border-color 0.3s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field textarea { resize: vertical; min-height: 90px; }
.checkbox { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9rem; color: var(--muted); }
.checkbox input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--navy); }

.notice {
  border-left: 3px solid var(--gold); background: var(--cream); padding: 20px 24px;
  font-size: 0.92rem; color: var(--muted); margin-bottom: 40px;
}
.notice strong { color: var(--navy); }

.q-section { margin-bottom: 48px; }
.q-section__title { display: flex; align-items: baseline; gap: 14px; margin-bottom: 26px; }
.q-section__num { font-family: var(--serif); font-size: 2rem; color: var(--gold); }
.q-section__title h3 { font-size: 1.5rem; }

/* contacto layout — centrado */
.contacto-head { max-width: 720px; margin: 0 auto 56px; }
.contacto-head h1 { font-size: clamp(2rem, 4vw, 3.4rem); }
.contacto-head .lead { margin: 20px auto 0; }
.contacto-form { max-width: 720px; margin: 0 auto; }
.contacto-form__submit { text-align: center; margin-top: 40px; }

/* maps */
.maps { display: grid; gap: 36px; }
.map-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0; border: 1px solid var(--line); overflow: hidden; border-radius: 6px; }
.map-row iframe { width: 100%; height: 100%; min-height: 280px; border: 0; display: block; }
.map-info { padding: 36px; background: var(--cream); display: flex; flex-direction: column; justify-content: center; }
.map-info__num { font-family: var(--serif); font-size: 1.5rem; color: var(--gold); line-height: 1; display: block; }
.map-info h3 { font-size: 1.7rem; margin-top: 6px; }
.map-info__sub { display: block; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-top: 8px; }
.map-info p { color: var(--muted); margin-top: 12px; }
.map-info__addr { margin-top: 16px !important; line-height: 1.75; }
.map-info .phone { color: var(--navy); font-weight: 500; margin-top: 14px; }

/* ===========================================================
   FOOTER
   =========================================================== */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.7); padding: 70px 0 50px; }
.site-footer img.flogo {
  height: 180px; filter: brightness(0) invert(1);
  transform-origin: center; will-change: transform;
}
.site-footer a { transition: color 0.3s; }
.site-footer a:hover { color: var(--gold); }

/* Footer centrado */
.site-footer--center .container { text-align: center; }
.footer-brand { display: inline-block; }
.site-footer--center img.flogo { margin: 0 auto; }
.footer-copy { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin: 22px 0 32px; }
.footer-links {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.12);
  max-width: 900px; margin: 0 auto;
}
.footer-links a {
  position: relative; padding: 6px 26px; font-size: 0.9rem; color: rgba(255,255,255,0.78);
  letter-spacing: 0.02em;
}
.footer-links a:not(:last-child)::after {
  content: ""; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 14px; background: rgba(255,255,255,0.25);
}
.footer-seal { display: inline-block; margin-top: 28px; opacity: 0.85; transition: opacity 0.3s var(--ease); }
.footer-seal:hover { opacity: 1; }
.footer-seal img { height: 64px; width: auto; display: block; margin: 0 auto; }

/* ===========================================================
   LOGIN ERP (CONEXVA)
   =========================================================== */
.login-body { overflow: hidden; }
.login { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }

/* Panel de marca (navy) */
.login__brand {
  position: relative; background: var(--navy-deep); color: var(--white);
  padding: 56px 60px; display: flex; flex-direction: column; justify-content: center; align-items: center;
  overflow: hidden;
}
.login__brand::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(1200px 500px at 20% -10%, rgba(194,163,107,0.16), transparent 60%);
  pointer-events: none;
}
.login__brand-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; pointer-events: none;
}
.login__brand-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(14,20,48,0.50) 0%, rgba(14,20,48,0.40) 50%, rgba(14,20,48,0.58) 100%);
}
.login__logo img { height: clamp(220px, 30vw, 360px); width: auto; filter: brightness(0) invert(1); position: relative; z-index: 2; }
.login__brand-foot { position: relative; z-index: 2; }
.login__brandtag { font-size: 0.95rem; color: rgba(255,255,255,0.7); letter-spacing: 0.04em; }
.login__erp { font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 3.6rem); color: var(--gold); letter-spacing: 0.06em; margin-top: 6px; }

/* Panel de formulario */
.login__panel { display: grid; place-items: center; padding: 48px 28px; background: var(--white); }
.login__box { width: 100%; max-width: 420px; position: relative; }
.login__lang { position: absolute; top: -8px; right: 0; }
.login__box .eyebrow { margin-bottom: 14px; }
.login__box h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 40px; }
.login__box .lead { font-size: 1rem; margin: 14px 0 34px; }
.login__box form .field { margin-bottom: 22px; }
.login__pass { position: relative; display: flex; align-items: center; }
.login__pass input { width: 100%; padding-right: 38px; }
.login__toggle { position: absolute; right: 2px; color: var(--muted); font-size: 1rem; line-height: 1; padding: 6px; }
.login__toggle:hover { color: var(--navy); }
.login__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 6px 0 30px; }
.login__row .checkbox { font-size: 0.84rem; }
.login__forgot { font-size: 0.84rem; color: var(--gold); }
.login__forgot:hover { color: var(--navy); }
.login__submit { width: 100%; justify-content: center; }
.login__msg { margin-top: 16px; font-size: 0.9rem; }
.login__msg.is-error { color: #b3401f; }
.login__note { margin-top: 28px; font-size: 0.82rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 20px; }
.login__back { display: inline-block; margin-top: 16px; font-size: 0.82rem; letter-spacing: 0.04em; color: var(--muted); }
.login__back:hover { color: var(--navy); }

@media (max-width: 860px) {
  .login-body { overflow: auto; }
  .login { grid-template-columns: 1fr; }
  .login__brand { padding: 34px 28px; flex-direction: row; align-items: center; justify-content: space-between; min-height: auto; }
  .login__logo img { height: 64px; }
  .login__brandtag { display: none; }
  .login__erp { font-size: 1.6rem; margin-top: 0; }
  .login__panel { padding: 48px 24px; }
}

/* ===========================================================
   INTRO / PRELOADER
   =========================================================== */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--navy);
  display: grid; place-items: center;
  transition: opacity 1.6s ease-in-out, visibility 1.6s ease-in-out;
}
.preloader__logo {
  height: clamp(120px, 16vw, 190px); width: auto;
  filter: brightness(0) invert(1);
  opacity: 0; transform: scale(0.8);
  animation: preloader-in 1.3s var(--ease) forwards;
}
@keyframes preloader-in {
  0%   { opacity: 0; transform: scale(0.8); }
  55%  { opacity: 1; transform: scale(1.04); }
  100% { opacity: 1; transform: scale(1); }
}
.preloader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

/* ===========================================================
   SCROLL REVEAL
   =========================================================== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 1024px) {
  .servicios-layout { grid-template-columns: 1fr 1fr; }
  .servicios-enfoque { grid-column: 1 / -1; }
  .pro-grid, .posts { grid-template-columns: repeat(2, 1fr); }
  .alianzas-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .header-actions .btn { padding: 10px 16px; font-size: 0.68rem; }
  .nav { gap: 20px; }
}

/* Tablet / mobile menu */
@media (max-width: 860px) {
  .nav, .header-actions .btn { display: none; }
  .nav-contacto { display: none; }
  .nav-toggle { display: flex; }
  .nav.is-open {
    display: flex; flex-direction: column; gap: 20px; position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--navy); padding: 30px 28px; z-index: 99;
    box-shadow: 0 20px 40px rgba(14,20,48,0.25); max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav.is-open .nav__link { color: var(--white); font-size: 1rem; }
  .nav.is-open .nav__cta-mobile {
    display: inline-block; color: var(--gold-soft); font-weight: 500;
    padding-top: 18px; margin-top: 4px; border-top: 1px solid rgba(255,255,255,0.14);
  }
}

@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .firma-grid, .form-grid, .map-row, .enfoque-grid { grid-template-columns: 1fr; }
  .enfoque-grid { gap: 44px; }
  .stat-row { grid-template-columns: 96px 1fr; gap: 22px; }
  .servicios-layout, .pro-grid, .posts, .brochures, .alianzas-grid { grid-template-columns: 1fr; }
  .awards-list { columns: 1; }
  .red-stats { grid-template-columns: 1fr; gap: 0; }
  .red-stat { padding: 18px 0; border-left: 0; border-top: 1px solid var(--line-light); }
  .red-stat:first-child { border-top: 0; padding-top: 0; }
  .red-grid { grid-template-columns: 1fr; gap: 36px; }
  .red-model__list { grid-template-columns: 1fr; }
  .red-head h2 { white-space: normal; }
  .memb-grid { grid-template-columns: 1fr; gap: 36px; }
  .memb-col { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .memb-col:first-child { border-top: 0; padding-top: 0; }
  .section-head h2.memb-title { white-space: normal; }
  .logos-track { gap: 48px; }
  .logos-item img { height: 86px; }
  .logos-item--wide.logos-item--big img { height: 58px; }
  .logos-item--ga img { height: 86px; }
  .modal__box { grid-template-columns: 1fr; overflow-y: auto; }
  .modal__photo { max-height: 320px; }
  .modal__body { max-height: none; overflow: visible; }
  .heritage { gap: 40px; }
  .hero__controls, .hero__dots { bottom: 30px; }

  /* Timeline → vertical on mobile */
  .timeline { flex-direction: column; gap: 0; margin-bottom: 36px; padding-left: 6px; }
  .timeline::before { left: 12px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .timeline__node {
    flex: none; flex-direction: row; align-items: center; gap: 16px;
    text-align: left; padding: 12px 0;
  }
  .timeline__lbl { max-width: none; }
  .timeline__panel.is-active { padding: 32px 26px; }
  .timeline__watermark { right: 20px; }
}

/* Small phones */
@media (max-width: 480px) {
  body { font-size: 15px; }
  .container, .site-header__inner, .hero__content { padding-left: 20px; padding-right: 20px; }
  .section { padding: 52px 0; }
  .brand img { height: 72px; }
  .hero { min-height: 560px; }
  .hero__controls { right: 16px; gap: 8px; }
  .hero__controls button { width: 40px; height: 40px; }
  .hero__dots { left: 20px; }
  .modal.is-open { padding: 12px; }
  .modal__body { padding: 32px 24px; }
  .modal__name { font-size: 1.8rem; }
  .map-info { padding: 26px 24px; }
  .q-section__title { flex-wrap: wrap; gap: 8px; }
  .form-grid { gap: 22px 0; }
  .footer-links { flex-direction: column; gap: 4px; }
  .footer-links a { padding: 8px 0; }
  .footer-links a:not(:last-child)::after { display: none; }
}
