/* Inversiones Dahmo · propuesta de rediseño (oct 2026)
   Mantiene la estructura del sitio actual (inicio, qué hacemos, quiénes somos, servicios, oficinas,
   galería, contacto) y suma la sección de Blog / Noticias.
   Paleta tomada del logo oficial: azul #003564 y gris #777271. El amarillo de obra es solo acento (acciones).
   Idea gráfica: la valla de identificación de obra, presente en la galería y en el cotizador. */

:root {
  --paper: #FFFFFF;
  --alt: #F2F4F7;
  --alt-2: #E7EBF0;
  --ink: #0E1B2A;
  --text: #2B3644;
  --muted: #4A5565;
  --line: #DCE1E8;
  --navy: #003564;          /* azul del logo */
  --navy-deep: #00213F;
  --navy-ink: #001428;
  --steel: #777271;         /* gris del logo */
  --steel-light: #A9A6A5;
  --yellow: #F2B705;        /* amarillo de obra: botones y acentos */
  --yellow-deep: #D99F00;

  --font: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Barlow Condensed", "Barlow", system-ui, sans-serif;
  --container: 1240px;
  --radius: 4px;
  --shadow-sm: 0 2px 6px rgba(0, 20, 40, 0.06), 0 1px 2px rgba(0, 20, 40, 0.05);
  --shadow: 0 14px 34px -14px rgba(0, 20, 40, 0.28), 0 4px 10px -4px rgba(0, 20, 40, 0.10);
  --shadow-lg: 0 30px 60px -24px rgba(0, 20, 40, 0.38);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, figure, ul, ol, dl, dd, blockquote { margin: 0; }
h1, h2, h3, h4 { color: var(--ink); font-family: var(--font-head); font-weight: 700; line-height: 1.08; letter-spacing: -0.005em; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
:target { scroll-margin-top: 96px; }
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 80; background: var(--navy); color: #fff; padding: 0.6rem 1rem; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; min-height: 50px; padding: 0 1.5rem; border-radius: var(--radius); border: 2px solid transparent; font-family: var(--font-head); font-weight: 600; font-size: 18px; letter-spacing: 0.02em; text-decoration: none; cursor: pointer; transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 160ms var(--ease), box-shadow 180ms ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { min-height: 42px; padding: 0 1.1rem; font-size: 16.5px; }
.btn-lg { min-height: 58px; padding: 0 1.9rem; font-size: 19.5px; }
.btn-yellow { background: var(--yellow); color: var(--navy-ink); }
.btn-yellow:hover { background: #FFC81F; box-shadow: 0 10px 24px -10px rgba(242, 183, 5, 0.7); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); box-shadow: 0 10px 24px -12px rgba(0, 53, 100, 0.7); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--navy); font-family: var(--font-head); font-weight: 600; font-size: 18px; text-decoration: none; }
.link-arrow .icon { transition: transform 200ms var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- barra superior ---------- */
.topbar { background: var(--navy-ink); color: #C9D3DF; font-size: 14.5px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 42px; }
.topbar ul { display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; list-style: none; padding: 0; }
.topbar a { display: inline-flex; align-items: center; gap: 0.45rem; text-decoration: none; transition: color 160ms ease; }
.topbar a:hover { color: #fff; }
.topbar .icon { color: var(--yellow); }
.topbar-social { display: flex; gap: 0.9rem; }
.topbar-social a { width: 30px; height: 30px; justify-content: center; border-radius: 50%; background: rgba(255,255,255,0.08); }
.topbar-social a:hover { background: var(--yellow); color: var(--navy-ink); }
.topbar-social a:hover .icon { color: var(--navy-ink); }

/* ---------- cabecera ---------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--paper); transition: box-shadow 220ms ease; }
.header.is-scrolled { box-shadow: 0 6px 24px -10px rgba(0, 20, 40, 0.25); }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 84px; }
.brand img { width: 196px; height: auto; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav ul { display: flex; gap: 1.55rem; list-style: none; padding: 0; }
.nav a:not(.btn) { position: relative; font-family: var(--font-head); font-weight: 600; font-size: 18px; color: var(--ink); text-decoration: none; padding: 0.4rem 0; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform 240ms var(--ease); }
.nav a:not(.btn):hover::after, .nav a[aria-current="true"]::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-new { display: inline-block; margin-left: 0.3rem; padding: 0 0.35rem; border-radius: 3px; background: var(--yellow); color: var(--navy-ink); font-size: 12px; line-height: 1.5; vertical-align: 2px; }
.menu-toggle { display: none; width: 48px; height: 48px; border: 0; border-radius: var(--radius); background: var(--navy); color: #fff; cursor: pointer; }
.menu-toggle .icon { width: 26px; height: 26px; margin: auto; }

/* ---------- hero (slider de 4 diapositivas, como el sitio actual) ---------- */
.hero { position: relative; isolation: isolate; min-height: min(86vh, 780px); background: var(--navy-ink); color: #fff; overflow: hidden; }
.slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 900ms ease, visibility 0s linear 900ms; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity 900ms ease; }
.slide picture, .slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide img { transform: scale(1.08); transition: transform 7.5s linear; }
.slide.is-active img { transform: scale(1); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(0, 20, 40, 0.92) 0%, rgba(0, 20, 40, 0.72) 42%, rgba(0, 20, 40, 0.18) 100%); pointer-events: none; }
.hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; min-height: min(86vh, 780px); padding-block: 5rem 8.5rem; }
.slide-copy { max-width: 860px; }
.slide-copy[hidden] { display: none; }
.hero-kicker { display: inline-flex; align-items: center; gap: 0.7rem; margin-bottom: 1.2rem; font-family: var(--font-head); font-weight: 600; font-size: 19px; color: var(--yellow); letter-spacing: 0.04em; }
.hero-kicker::before { content: ""; width: 42px; height: 3px; background: var(--yellow); }
.hero h1, .hero .slide-title { color: #fff; font-family: var(--font-head); font-weight: 700; font-size: clamp(2.7rem, 5.6vw, 5.1rem); line-height: 0.98; letter-spacing: -0.01em; text-wrap: balance; }
.hero-lead { margin-top: 1.4rem; max-width: 560px; font-size: clamp(1.06rem, 1.5vw, 1.25rem); color: #E3E9F0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; }
.slider-ui { position: absolute; z-index: 3; left: 0; right: 0; bottom: 7.4rem; }
.slider-ui .container { display: flex; align-items: center; justify-content: flex-end; gap: 1.2rem; }
.slider-arrows { display: flex; gap: 0.5rem; }
.slider-arrows button { width: 46px; height: 46px; display: grid; place-items: center; border: 2px solid rgba(255,255,255,0.5); border-radius: 50%; background: transparent; color: #fff; cursor: pointer; transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease; }
.slider-arrows button:hover { background: var(--yellow); border-color: var(--yellow); color: var(--navy-ink); }
.slider-dots { display: flex; gap: 0.5rem; }
.slider-dots button { width: 34px; height: 5px; padding: 0; border: 0; border-radius: 3px; background: rgba(255,255,255,0.35); cursor: pointer; overflow: hidden; position: relative; }
.slider-dots button[aria-current="true"] { background: rgba(255,255,255,0.35); }
.slider-dots button[aria-current="true"]::after { content: ""; position: absolute; inset: 0; background: var(--yellow); transform-origin: left; animation: dot-fill 6.5s linear forwards; }
.hero.is-paused .slider-dots button[aria-current="true"]::after { animation-play-state: paused; }
@keyframes dot-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.slider-count { font-family: var(--font-head); font-weight: 600; font-size: 17px; color: #C9D3DF; }
.slider-pause { display: inline-flex; align-items: center; gap: 0.4rem; border: 0; background: none; color: #C9D3DF; font-size: 14.5px; cursor: pointer; }
.slider-pause:hover { color: #fff; }

/* franja de cifras flotante */
.stats { position: relative; z-index: 5; margin-top: -5.2rem; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.stat { padding: 1.8rem 1.8rem 1.7rem; border-top: 5px solid var(--navy); }
.stat + .stat { box-shadow: inset 1px 0 0 var(--line); }
.stat:nth-child(2) { border-top-color: var(--yellow); }
.stat:nth-child(3) { border-top-color: var(--steel); }
.stat:nth-child(4) { border-top-color: var(--navy-deep); }
.stat strong { display: block; font-family: var(--font-head); font-weight: 700; font-size: clamp(2.4rem, 3.6vw, 3.2rem); line-height: 1; color: var(--navy); }
.stat > span { display: block; margin-top: 0.45rem; font-size: 16px; color: var(--muted); line-height: 1.4; }

/* ---------- secciones ---------- */
.section { padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.section-alt { background: var(--alt); }
.section-navy { background: var(--navy); color: #DCE4EE; }
.section-navy h2, .section-navy h3 { color: #fff; }
.sec-head { max-width: 760px; margin-bottom: clamp(2.4rem, 4vw, 3.4rem); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.split { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.sec-head.split > div { max-width: 720px; }
.kicker { display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 0.9rem; font-family: var(--font-head); font-weight: 600; font-size: 18px; color: var(--navy); letter-spacing: 0.03em; }
.kicker::before { content: ""; width: 32px; height: 3px; background: var(--yellow); }
.section-navy .kicker { color: var(--yellow); }
.sec-head h2, .h2 { font-size: clamp(2.2rem, 4.2vw, 3.5rem); text-wrap: balance; }
.sec-head p { margin-top: 1.1rem; font-size: 1.12rem; color: var(--muted); }
.section-navy .sec-head p { color: #C3CFDC; }

/* qué hacemos */
.what { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.what-media { position: relative; display: grid; grid-template-columns: 1fr 0.78fr; gap: 1rem; align-items: end; }
.what-media figure { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.what-media figure img { width: 100%; height: 100%; object-fit: cover; }
.what-media .m1 { aspect-ratio: 4 / 5; }
.what-media .m2 { aspect-ratio: 3 / 4; margin-bottom: 3.5rem; }
.what-badge { position: absolute; left: -1.4rem; bottom: 2rem; display: flex; align-items: center; gap: 0.9rem; padding: 1.1rem 1.4rem; background: var(--navy); color: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.what-badge strong { font-family: var(--font-head); font-size: 3rem; line-height: 1; color: var(--yellow); }
.what-badge span { font-family: var(--font-head); font-weight: 600; font-size: 18px; line-height: 1.15; }
.what-copy p + p, .about-copy p + p { margin-top: 1.1rem; }
.what-copy .h2, .about-copy .h2 { margin-bottom: 1.3rem; }
.what-copy .lead { font-size: 1.2rem; color: var(--ink); }
.spec-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.65rem 1.4rem; margin-top: 1.8rem; padding: 0; list-style: none; }
.spec-list li { display: flex; align-items: center; gap: 0.6rem; font-weight: 500; color: var(--ink); }
.spec-list .icon { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--yellow); color: var(--navy-ink); stroke-width: 2.6; }
.principle { margin-top: 2rem; padding: 1.3rem 1.5rem; border-left: 5px solid var(--yellow); background: var(--alt); font-family: var(--font-head); font-weight: 600; font-size: 1.45rem; line-height: 1.25; color: var(--navy); }

/* quiénes somos */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.about-media { position: relative; }
.about-media figure { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.about-media figcaption { position: absolute; right: 1rem; bottom: 1rem; padding: 0.4rem 0.8rem; background: rgba(0, 20, 40, 0.82); color: #fff; font-size: 14px; border-radius: 3px; }
.mission { margin-top: 1.8rem; display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding: 1.4rem 1.5rem; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.mission .icon { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--navy); color: var(--yellow); }
.mission h3 { font-size: 1.5rem; margin-bottom: 0.25rem; }
/* servicios */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.service { position: relative; display: flex; flex-direction: column; padding: 1.7rem 1.5rem 1.5rem; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform 260ms var(--ease), box-shadow 260ms ease; overflow: hidden; }
.service::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--navy); transform: scaleX(0.18); transform-origin: left; transition: transform 320ms var(--ease), background-color 200ms ease; }
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service:hover::before { transform: scaleX(1); background: var(--yellow); }
.service-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: var(--radius); background: var(--alt-2); color: var(--navy); transition: background-color 220ms ease, color 220ms ease; }
.service-icon .icon { width: 32px; height: 32px; stroke-width: 1.6; }
.service:hover .service-icon { background: var(--navy); color: var(--yellow); }
.service h3 { margin-top: 1.2rem; font-size: 1.55rem; }
.service p { margin-top: 0.5rem; font-size: 16px; color: var(--muted); line-height: 1.55; flex: 1; }
.service a { margin-top: 1.1rem; font-size: 16.5px; }
.services-note { margin-top: 2.4rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; padding: 1.5rem 1.8rem; background: var(--navy-ink); color: #DCE4EE; border-radius: var(--radius); }
.services-note p { font-size: 1.12rem; }
.services-note strong { color: #fff; }

/* banda de foto entre secciones */
.photo-band { position: relative; isolation: isolate; padding-block: clamp(5rem, 10vw, 8rem); color: #fff; overflow: hidden; }
.photo-band img { position: absolute; inset: -12% 0; z-index: -2; width: 100%; height: 124%; object-fit: cover; will-change: transform; }
.photo-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0, 20, 40, 0.74); }
.photo-band .container { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: center; }
.photo-band h2 { color: #fff; font-size: clamp(2.2rem, 4.4vw, 3.6rem); text-wrap: balance; }
.photo-band p { margin-top: 1rem; font-size: 1.15rem; color: #DCE4EE; max-width: 600px; }
.photo-band .actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: flex-end; }

/* oficinas */
.offices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.office { display: grid; grid-template-rows: auto 1fr; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.office-media { position: relative; aspect-ratio: 16 / 8; overflow: hidden; }
.office-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.office:hover .office-media img { transform: scale(1.05); }
.office-map { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.office-tag.on-map { left: auto; bottom: auto; top: 1rem; right: 1rem; pointer-events: none; }
.office-tag { position: absolute; left: 1.4rem; bottom: 1.2rem; padding: 0.45rem 1rem; background: var(--yellow); color: var(--navy-ink); font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; line-height: 1; border-radius: 3px; letter-spacing: 0.04em; }
.office-body { padding: 1.8rem; display: grid; gap: 1.1rem; }
.office-body h3 { font-size: 1.6rem; }
.office-row { display: grid; grid-template-columns: 40px 1fr; gap: 0.8rem; align-items: start; }
.office-row .icon { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--alt-2); color: var(--navy); }
.office-row a { color: var(--navy); font-weight: 600; text-decoration: none; }
.office-row a:hover { text-decoration: underline; }
.office-row small { display: block; color: var(--muted); font-size: 14.5px; }
.office-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 0.4rem; }
.office-zone { font-size: 15.5px; color: var(--muted); }

/* galería con placas tipo valla de obra */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filters button { min-height: 42px; padding: 0 1.1rem; border: 2px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font-family: var(--font-head); font-weight: 600; font-size: 16.5px; cursor: pointer; transition: all 180ms ease; }
.filters button:hover { border-color: var(--navy); }
.filters button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 270px; grid-auto-flow: dense; gap: 1rem; }
.work { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--navy-ink); cursor: zoom-in; transition: opacity 300ms ease, transform 300ms var(--ease); }
.work.is-wide { grid-column: span 2; }
.work.is-tall { grid-row: span 2; }
.work[hidden] { display: none; }
.work button { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease), opacity 300ms ease; }
.work:hover img { transform: scale(1.06); opacity: 0.85; }
.plate { display: block; position: absolute; left: 0.8rem; right: 0.8rem; bottom: 0.8rem; background: #fff; border-radius: 3px; overflow: hidden; box-shadow: var(--shadow); pointer-events: none; transform: translateY(6px); transition: transform 300ms var(--ease); }
.work:hover .plate { transform: translateY(0); }
.plate-top { display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 0.3rem 0.7rem; background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 14px; letter-spacing: 0.05em; }
.plate-top span:last-child { color: var(--yellow); }
.plate-body { display: block; padding: 0.55rem 0.7rem 0.6rem; border-left: 4px solid var(--yellow); }
.plate-body strong { display: block; font-family: var(--font-head); font-size: 1.15rem; line-height: 1.15; color: var(--ink); }
.plate-body span { display: block; font-size: 14px; color: var(--muted); }

/* visor */
.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 2rem; background: rgba(0, 12, 26, 0.94); opacity: 0; visibility: hidden; transition: opacity 240ms ease, visibility 0s linear 240ms; }
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity 240ms ease; }
.lightbox figure { max-width: min(1100px, 100%); }
.lightbox img { max-height: 78vh; width: auto; margin: auto; border-radius: var(--radius); }
.lightbox figcaption { margin-top: 0.9rem; color: #DCE4EE; text-align: center; }
.lightbox button { position: absolute; width: 50px; height: 50px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,0.12); color: #fff; cursor: pointer; }
.lightbox button:hover { background: var(--yellow); color: var(--navy-ink); }
.lb-close { top: 1.2rem; right: 1.2rem; }
.lb-prev { left: 1.2rem; top: 50%; translate: 0 -50%; }
.lb-next { right: 1.2rem; top: 50%; translate: 0 -50%; }

/* blog / noticias */
.posts { display: grid; grid-template-columns: 1.35fr 1fr; gap: 1.6rem; }
.post-list { display: grid; gap: 1.6rem; }
.post { display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform 260ms var(--ease), box-shadow 260ms ease; }
.post:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post-media { position: relative; overflow: hidden; aspect-ratio: 16 / 9; }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--ease); }
.post:hover .post-media img { transform: scale(1.05); }
.post-cat { position: absolute; left: 1rem; top: 1rem; padding: 0.3rem 0.75rem; border-radius: 3px; background: var(--yellow); color: var(--navy-ink); font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: 0.03em; }
.post-cat.is-news { background: var(--navy); color: #fff; }
.post-body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem 1.6rem 1.6rem; }
.post-meta { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; font-size: 14.5px; color: var(--muted); }
.post-meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.post h3, .post .h3 { margin-top: 0.6rem; font-size: 1.6rem; line-height: 1.12; }
.post :is(h2, h3) a { text-decoration: none; }
.post :is(h2, h3) a::after { content: ""; position: absolute; inset: 0; }
.post { position: relative; }
.post p { margin-top: 0.6rem; color: var(--muted); font-size: 16px; }
.post .link-arrow { margin-top: auto; padding-top: 1rem; font-size: 17px; }
.post.is-featured :is(h2, h3) { font-size: clamp(1.8rem, 2.6vw, 2.3rem); }
.post.is-featured .post-media { aspect-ratio: 16 / 10; }
.post.is-row { display: grid; grid-template-columns: 0.9fr 1.1fr; }
.post.is-row .post-media { aspect-ratio: auto; height: 100%; min-height: 200px; }
.post.is-row h3 { font-size: 1.4rem; }

/* cta */
.cta-band { background: var(--yellow); color: var(--navy-ink); }
.cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.4rem; padding-block: 2.6rem; }
.cta-band h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); color: var(--navy-ink); }
.cta-band p { margin-top: 0.3rem; font-size: 1.12rem; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.cta-band .btn-outline { border-color: var(--navy-ink); color: var(--navy-ink); }
.cta-band .btn-outline:hover { background: var(--navy-ink); color: #fff; }

/* contacto y cotizador */
.contact { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.form-card { padding: clamp(1.6rem, 3vw, 2.4rem); background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); }
.form-card h3 { font-size: 1.9rem; }
.form-card > p { margin-top: 0.4rem; color: var(--muted); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.1rem; margin-top: 1.6rem; }
.field { display: grid; gap: 0.35rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 15.5px; color: var(--ink); }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 0.7rem 0.9rem; border: 1.5px solid #C9D1DB; border-radius: var(--radius); background: #fff; color: var(--ink); transition: border-color 160ms ease, box-shadow 160ms ease; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(0, 53, 100, 0.14); }
.form .btn { grid-column: 1 / -1; justify-self: start; }
.form-legal { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }

.valla-wrap { position: sticky; top: 110px; }
.valla { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.valla-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.3rem; background: var(--navy); }
.valla-head img { width: 150px; }
.valla-head span { font-family: var(--font-head); font-weight: 600; font-size: 15px; letter-spacing: 0.06em; color: var(--yellow); text-align: right; line-height: 1.2; }
.valla-rows { display: grid; }
.valla-row { display: grid; grid-template-columns: 128px 1fr; border-bottom: 1px solid var(--line); }
.valla-row dt { padding: 0.75rem 1rem; background: var(--alt); font-family: var(--font-head); font-weight: 700; font-size: 15.5px; letter-spacing: 0.04em; color: var(--navy); }
.valla-row dd { padding: 0.75rem 1rem; font-weight: 600; color: var(--ink); transition: background-color 400ms ease; }
.valla-row dd.is-flash { background: #FFF4CC; }
.valla-row dd.is-empty { color: var(--steel-light); font-weight: 500; }
.valla-foot { padding: 0.9rem 1.3rem; background: var(--yellow); font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--navy-ink); }
.valla-legs { display: flex; justify-content: space-around; height: 34px; }
.valla-legs span { width: 12px; background: linear-gradient(90deg, #8E8A89, #B5B2B1 50%, #8E8A89); }
.route { margin-top: 1.4rem; padding: 1.3rem 1.4rem; background: var(--navy-ink); color: #DCE4EE; border-radius: var(--radius); }
.route h4 { font-family: var(--font-head); font-size: 1.35rem; color: #fff; }
.route p { margin-top: 0.3rem; font-size: 15.5px; }
.route-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.route-actions .btn { min-height: 44px; font-size: 16.5px; }
.contact-direct { margin-top: 1.4rem; display: grid; gap: 0.6rem; font-size: 15.5px; }
.contact-direct a { color: var(--navy); font-weight: 600; }

/* aviso de prototipo */
.toast { position: fixed; left: 50%; bottom: 1.5rem; z-index: 95; translate: -50% 1rem; max-width: min(560px, calc(100% - 2rem)); padding: 1rem 1.3rem; background: var(--navy-ink); color: #fff; border-left: 5px solid var(--yellow); border-radius: var(--radius); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: opacity 240ms ease, translate 240ms var(--ease), visibility 0s linear 240ms; }
.toast.is-on { opacity: 1; visibility: visible; translate: -50% 0; transition: opacity 240ms ease, translate 240ms var(--ease); }

/* pie */
.footer { background: var(--navy-ink); color: #AEBBCB; font-size: 15.5px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2.5rem; padding-block: 4.5rem 3rem; }
.footer-logo { width: 200px; }
.footer p { margin-top: 1rem; }
.footer h4 { margin-bottom: 1rem; font-size: 1.3rem; color: #fff; }
.footer ul { display: grid; gap: 0.5rem; padding: 0; list-style: none; }
.footer a { text-decoration: none; transition: color 160ms ease; }
.footer a:hover { color: var(--yellow); }
.footer-office + .footer-office { margin-top: 1.1rem; }
.footer-office strong { display: block; color: #fff; font-family: var(--font-head); font-size: 1.1rem; letter-spacing: 0.04em; }
.footer-social { display: flex; gap: 0.6rem; margin-top: 1.4rem; }
.footer-social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,0.08); color: #fff; }
.footer-social a:hover { background: var(--yellow); color: var(--navy-ink); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem 2rem; padding-block: 1.4rem; box-shadow: inset 0 1px 0 rgba(255,255,255,0.08); font-size: 14px; }
.footer-bottom a { text-decoration: underline; }
.credits { max-width: 760px; }

/* ---------- blog: páginas internas ---------- */
.page-hero { position: relative; isolation: isolate; padding-block: clamp(3.5rem, 7vw, 5.5rem); background: var(--navy); color: #DCE4EE; overflow: hidden; }
.page-hero > picture img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 20, 40, 0.94) 0%, rgba(0, 33, 63, 0.82) 60%, rgba(0, 33, 63, 0.55) 100%); }
.page-hero h1 { color: #fff; font-size: clamp(2.6rem, 5vw, 4.4rem); max-width: 900px; text-wrap: balance; }
.page-hero p { margin-top: 1rem; max-width: 640px; font-size: 1.15rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.2rem; padding: 0; list-style: none; font-size: 15px; }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--steel-light); }
.crumbs a { color: var(--yellow); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.blog-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2.4rem; }
.search { position: relative; min-width: 280px; }
.search input { width: 100%; min-height: 46px; padding: 0 1rem 0 2.6rem; border: 1.5px solid #C9D1DB; border-radius: 999px; background: #fff; }
.search input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(0, 53, 100, 0.14); }
.search .icon { position: absolute; left: 0.95rem; top: 50%; translate: 0 -50%; color: var(--muted); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.post-grid .post.is-featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.25fr 1fr; }
.post-grid .post.is-featured .post-media { aspect-ratio: auto; height: 100%; min-height: 360px; }
.post-grid .post.is-featured .post-body { padding: 2.2rem; justify-content: center; }
.empty-note { padding: 2rem; text-align: center; color: var(--muted); }

/* artículo */
.article-hero .post-meta { margin-top: 1.2rem; color: #C3CFDC; font-size: 15.5px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.article-figure { margin-bottom: 2.2rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.article-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article-figure figcaption { padding: 0.7rem 1rem; background: var(--alt); font-size: 14.5px; color: var(--muted); }
.prose { max-width: 720px; font-size: 18.5px; line-height: 1.72; color: var(--text); }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { margin-top: 2.6rem; font-size: clamp(1.8rem, 2.8vw, 2.3rem); }
.prose h3 { margin-top: 1.9rem; font-size: 1.5rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: 0.45rem; }
.prose li::marker { color: var(--navy); font-weight: 700; }
.prose strong { color: var(--ink); }
.prose a { color: var(--navy); font-weight: 600; }
.prose .lead { font-size: 1.3rem; line-height: 1.55; color: var(--ink); }
.callout { padding: 1.3rem 1.5rem; border-left: 5px solid var(--yellow); background: var(--alt); border-radius: 0 var(--radius) var(--radius) 0; }
.callout strong { display: block; font-family: var(--font-head); font-size: 1.3rem; color: var(--navy); }
.table-wrap { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--navy); color: #fff; font-family: var(--font-head); font-size: 17px; letter-spacing: 0.02em; }
.aside { position: sticky; top: 110px; display: grid; gap: 1.4rem; }
.aside-card { padding: 1.5rem; background: var(--alt); border-radius: var(--radius); }
.aside-card h3 { font-size: 1.35rem; margin-bottom: 0.8rem; }
.toc ol { display: grid; gap: 0.5rem; padding-left: 1.2rem; font-size: 16px; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover, .toc a.is-current { color: var(--navy); font-weight: 600; }
.aside-cta { background: var(--navy); color: #DCE4EE; }
.aside-cta h3 { color: #fff; }
.aside-cta p { font-size: 16px; margin-bottom: 1.1rem; }
.share { display: flex; gap: 0.5rem; }
.share a, .share button { width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #fff; color: var(--navy); cursor: pointer; box-shadow: var(--shadow-sm); transition: background-color 160ms ease, color 160ms ease; }
.share a:hover, .share button:hover { background: var(--navy); color: #fff; }
.author { display: flex; gap: 1rem; align-items: center; margin-top: 2.6rem; padding: 1.4rem; background: var(--alt); border-radius: var(--radius); max-width: 720px; }
.author-mark { width: 60px; height: 60px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: var(--yellow); font-family: var(--font-head); font-weight: 700; font-size: 1.8rem; }
.author strong { display: block; color: var(--ink); font-family: var(--font-head); font-size: 1.25rem; }
.author p { font-size: 15.5px; color: var(--muted); }
.progress { position: fixed; left: 0; top: 0; z-index: 70; height: 4px; width: 100%; background: var(--yellow); transform-origin: left; transform: scaleX(0); }


/* ---------- bloques del plan de mercadeo ---------- */
.topbar-right { display: flex; align-items: center; gap: 1.2rem; }
.lang { display: inline-flex; border-radius: 999px; background: rgba(255,255,255,0.08); padding: 3px; }
.lang a { min-width: 34px; padding: 0.15rem 0.5rem; border-radius: 999px; justify-content: center; font-weight: 600; font-size: 13.5px; }
.lang a[aria-current="true"] { background: var(--yellow); color: var(--navy-ink); }

/* comités de evaluación */
.committee { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.role { display: flex; flex-direction: column; padding: 1.8rem 1.6rem; background: var(--alt); border-radius: var(--radius); border-top: 5px solid var(--navy); transition: transform 260ms var(--ease), box-shadow 260ms ease, background-color 260ms ease; }
.role:nth-child(2) { border-top-color: var(--yellow); }
.role:nth-child(3) { border-top-color: var(--steel); }
.role:nth-child(4) { border-top-color: var(--navy-deep); }
.role:hover { transform: translateY(-6px); background: var(--paper); box-shadow: var(--shadow); }
.role-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: var(--yellow); }
.role-icon .icon { width: 26px; height: 26px; }
.role h3 { margin-top: 1.1rem; font-size: 1.55rem; }
.role-asks { margin-top: 0.4rem; color: var(--muted); font-size: 16px; line-height: 1.5; }
.role ul { display: grid; gap: 0.55rem; margin-top: 1.1rem; padding: 0; list-style: none; flex: 1; }
.role li { position: relative; padding-left: 1.5rem; font-size: 15.5px; line-height: 1.45; color: var(--ink); }
.role li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 10px; height: 10px; border-radius: 2px; background: var(--yellow); }
.role .link-arrow { margin-top: 1.2rem; font-size: 17px; }

/* visión */
.vision { margin-top: clamp(3rem, 6vw, 4.5rem); padding: clamp(2rem, 4vw, 3rem); background: var(--navy); border-radius: var(--radius); display: grid; grid-template-columns: 220px 1fr; gap: 2rem; align-items: center; }
.vision-label { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; color: var(--yellow); }
.vision-text { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.2; color: #fff; }

/* servicios agrupados */
.cluster-title { display: flex; align-items: center; gap: 1rem; margin: 0 0 1.4rem; font-size: 1.55rem; color: var(--navy); }
.cluster-title::after { content: ""; flex: 1; height: 3px; background: var(--alt-2); }
.section-alt .service { background: var(--paper); }
.clusters-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: clamp(2.8rem, 5vw, 4rem); }
.svc-rows { display: grid; gap: 0.8rem; padding: 0; list-style: none; }
.svc-rows li { display: grid; grid-template-columns: 58px 1fr 44px; gap: 1rem; align-items: center; padding: 1rem 1.1rem; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform 220ms var(--ease), box-shadow 220ms ease; }
.svc-rows li:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.svc-rows h4 { font-size: 1.35rem; }
.svc-rows p { font-size: 15.5px; color: var(--muted); line-height: 1.45; }
.svc-rows a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--alt); color: var(--navy); transition: background-color 180ms ease, color 180ms ease; }
.svc-rows a:hover { background: var(--yellow); color: var(--navy-ink); }
.service.is-gated { background: repeating-linear-gradient(135deg, #FFFBEA 0 14px, #FFF6D6 14px 28px); outline: 2px dashed var(--yellow-deep); outline-offset: -2px; }
.service.is-gated .link-arrow { color: var(--muted); }
.gated-flag { position: absolute; top: 0.8rem; right: 0.8rem; display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.2rem 0.55rem; border-radius: 3px; background: var(--navy-ink); color: var(--yellow); font-size: 12.5px; font-weight: 600; }
.gated-flag .icon { width: 13px; height: 13px; }

/* HSE */
.hse { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.hse-media figure { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.hse-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hse h2 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); text-wrap: balance; }
.hse-lead { margin-top: 1.1rem; font-size: 1.15rem; color: #DCE4EE; }
.hse-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; padding: 0; list-style: none; }
.hse-list li { display: grid; grid-template-columns: 46px 1fr; gap: 0.9rem; padding: 1.2rem; background: rgba(255,255,255,0.06); border-radius: var(--radius); transition: background-color 220ms ease; }
.hse-list li:hover { background: rgba(255,255,255,0.11); }
.hse-list .icon { width: 46px; height: 46px; padding: 11px; border-radius: 50%; background: var(--yellow); color: var(--navy-ink); }
.hse-list h3 { font-size: 1.3rem; }
.hse-list p { margin-top: 0.25rem; font-size: 15.5px; color: #C3CFDC; line-height: 1.45; }
.certs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem; margin-top: 1.8rem; }
.cert { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 116px; height: 116px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.25); text-align: center; line-height: 1.1; }
.cert strong { font-family: var(--font-head); font-size: 1.4rem; color: #fff; }
.cert span { font-size: 13px; color: #C3CFDC; }
.certs-status { margin-left: 0.6rem; font-weight: 600; color: var(--yellow); }

/* gente y comunidad */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.pillar { padding: 2rem 1.8rem; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform 260ms var(--ease), box-shadow 260ms ease; }
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pillar-icon { width: 60px; height: 60px; display: grid; place-items: center; border-radius: var(--radius); background: var(--yellow); color: var(--navy-ink); }
.pillar-icon .icon { width: 30px; height: 30px; }
.pillar h3 { margin-top: 1.2rem; font-size: 1.6rem; }
.pillar p { margin-top: 0.5rem; color: var(--muted); }
.careers { margin-top: clamp(2.8rem, 5vw, 4rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.4rem; padding: clamp(1.8rem, 4vw, 2.6rem); background: var(--navy-ink); color: #DCE4EE; border-radius: var(--radius); }
.careers h3 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.careers p { margin-top: 0.4rem; max-width: 640px; }
.careers .note-int { flex-basis: 100%; }

/* notas internas del prototipo */
.note-int { display: none; margin-top: 0.9rem; padding: 0.6rem 0.8rem; border: 2px dashed var(--yellow-deep); border-radius: var(--radius); background: #FFF8DB; color: #5A4500 !important; font-size: 14px !important; font-weight: 500; line-height: 1.45; }
.show-notes .note-int { display: block; }
body:not(.show-notes) [data-gated] { display: none; }
.notes-toggle { position: fixed; left: 1rem; bottom: 1rem; z-index: 85; display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0 1rem; border: 0; border-radius: 999px; background: var(--navy-ink); color: #fff; font-weight: 600; font-size: 14.5px; cursor: pointer; box-shadow: var(--shadow); }
.notes-toggle[aria-pressed="true"] { background: var(--yellow); color: var(--navy-ink); }

@media (max-width: 1180px) {
  .committee { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .committee, .pillars, .hse-list { grid-template-columns: 1fr; }
  .vision { grid-template-columns: 1fr; gap: 0.6rem; }
  .topbar-right .lang { margin-left: auto; }
  .hse-media { max-width: 360px; }
  .cert { width: 96px; height: 96px; }
  .cert strong { font-size: 1.2rem; }
  .vision-text { font-size: 1.3rem; }
  .notes-toggle { padding: 0; width: 44px; justify-content: center; }
  .notes-toggle span { display: none; }
}


/* liderazgo y perfil */
/* mención de dirección en Nosotros (como en Grupo, 16 nov 2026) */
.direction-text { max-width: 64ch; margin-top: clamp(2.4rem, 5vw, 3.2rem); font-size: 17px; line-height: 1.65; color: var(--muted); }
.direction-text a { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; transition: color 160ms ease, text-decoration-color 160ms ease; }
.direction-text a:hover { color: var(--navy); text-decoration-color: currentColor; }
.leaders { margin-top: clamp(3rem, 6vw, 4.5rem); }
.leaders-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.leader { display: block; padding: 1.7rem 1.8rem; border-top: 5px solid var(--navy); background: var(--alt); border-radius: var(--radius); transition: transform 260ms var(--ease), box-shadow 260ms ease, background-color 260ms ease; }
.leader:hover { transform: translateY(-4px); background: var(--paper); box-shadow: var(--shadow); }
.leader h4 { font-size: 1.6rem; }
.leader-role { margin-top: 0.15rem; font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; color: var(--navy); }
.leader-body > p:not(.leader-role):not(.note-int) { margin-top: 0.7rem; font-size: 16px; color: var(--muted); line-height: 1.55; }
.leader-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; margin-top: 0.9rem; }
.leader-links .link-arrow { font-size: 16.5px; }
.leader.is-pending { outline: 2px dashed var(--yellow-deep); outline-offset: -2px; background: #FFFBEA; }
body:not(.show-notes) .only-notes { display: none; }
.profile-hero { padding-block: clamp(4rem, 8vw, 6.5rem); }
.profile-hero .container { display: block; }
.profile-hero .profile-role { margin-top: 0.6rem; font-family: var(--font-head); font-weight: 600; font-size: clamp(1.3rem, 2vw, 1.6rem); color: var(--yellow); }
.reads { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1.4rem; padding: 0; list-style: none; }
.reads a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 100%; padding: 1.1rem 1.2rem; background: var(--alt); border-radius: var(--radius); color: var(--ink); font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; line-height: 1.2; text-decoration: none; transition: background-color 200ms ease, transform 200ms var(--ease); }
.reads a:hover { background: var(--navy); color: #fff; transform: translateY(-3px); }
.reads small { display: block; margin-top: 0.3rem; font-family: var(--font); font-weight: 500; font-size: 13.5px; color: var(--muted); }
.reads a:hover small { color: #C3CFDC; }
.opinion { margin-top: clamp(3rem, 6vw, 4.5rem); }
@media (max-width: 760px) {
  .leaders-grid, .reads { grid-template-columns: 1fr; }
  .leader { padding: 1.3rem 1.2rem; }
}


/* redes sociales con sus colores de marca */
:is(.topbar-social, .footer-social, .share) a[href*="linkedin.com"] { background: #0A66C2; color: #fff; }
:is(.topbar-social, .footer-social, .share) a[href*="instagram.com"] { background: radial-gradient(circle at 30% 107%, #FDF497 0%, #FDF497 5%, #FD5949 45%, #D6249F 60%, #285AEB 90%); color: #fff; }
:is(.topbar-social, .footer-social, .share) a[href*="wa.me"] { background: #25D366; color: #fff; }
:is(.topbar-social, .footer-social, .share) a:is([href*="linkedin.com"], [href*="instagram.com"], [href*="wa.me"]) .icon { color: #fff; }
:is(.topbar-social, .footer-social, .share) a:is([href*="linkedin.com"], [href*="instagram.com"], [href*="wa.me"]) { transition: transform 180ms var(--ease), filter 180ms ease, box-shadow 180ms ease; }
:is(.topbar-social, .footer-social, .share) a:is([href*="linkedin.com"], [href*="instagram.com"], [href*="wa.me"]):hover { color: #fff; filter: brightness(1.12); transform: translateY(-2px); box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.5); }

.btn-linkedin { background: #0A66C2; color: #fff; }
.btn-linkedin:hover { background: #004182; box-shadow: 0 10px 24px -12px rgba(10, 102, 194, 0.8); }
.link-li .icon { color: #0A66C2; }

/* ---------- movimiento ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); transition-delay: var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
.hero .slide-copy > * { animation: rise 900ms var(--ease) both; }
.hero .slide-copy > *:nth-child(2) { animation-delay: 90ms; }
.hero .slide-copy > *:nth-child(3) { animation-delay: 180ms; }
.hero .slide-copy > *:nth-child(4) { animation-delay: 270ms; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

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

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nav ul { gap: 1.1rem; }
  .nav a:not(.btn) { font-size: 17px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1020px) {
  .menu-toggle { display: grid; }
  .nav { position: fixed; inset: 126px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 1rem 20px 1.6rem; background: var(--paper); box-shadow: 0 20px 30px -20px rgba(0,20,40,0.4); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: transform 240ms var(--ease), opacity 200ms ease, visibility 0s linear 240ms; max-height: calc(100vh - 126px); overflow-y: auto; }
  .header.is-scrolled .nav { inset-block-start: 84px; max-height: calc(100vh - 84px); }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; transition: transform 240ms var(--ease), opacity 200ms ease; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li a:not(.btn) { display: block; padding: 0.85rem 0; font-size: 20px; box-shadow: inset 0 -1px 0 var(--line); }
  .nav li a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 1rem; }
  .what, .about, .contact, .hse, .clusters-pair, .photo-band .container, .article-layout { grid-template-columns: 1fr; }
  .what-media { max-width: 640px; }
  .photo-band .actions { justify-content: flex-start; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { box-shadow: inset 0 1px 0 var(--line); }
  .stat:nth-child(4) { box-shadow: inset 1px 0 0 var(--line), inset 0 1px 0 var(--line); }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 230px; }
  .posts { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .valla-wrap, .aside { position: static; }
}
@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .topbar .hide-sm { display: none; }
  .topbar-social { display: none; }
  .header .container { min-height: 72px; }
  .nav { inset-block-start: 114px; }
  .header.is-scrolled .nav { inset-block-start: 72px; }
  .brand img { width: 158px; }
  .hero, .hero-inner { min-height: 640px; }
  .hero-inner { padding-block: 3.5rem 10rem; justify-content: flex-end; }
  .hero::before { background: linear-gradient(180deg, rgba(0, 20, 40, 0.45) 0%, rgba(0, 20, 40, 0.9) 60%, rgba(0, 20, 40, 0.96) 100%); }
  .slider-ui { bottom: 6.6rem; }
  .slider-count { display: none; }
  .slider-ui .container { justify-content: flex-start; }
  .slider-pause span { display: none; }
  .slider-pause { margin-left: auto; }
  .stats { margin-top: -4.4rem; }
  .stat { padding: 1.3rem 1.1rem; }
  .stat > span { font-size: 14.5px; }
  .services, .offices, .post-grid { grid-template-columns: 1fr; }
  .post-grid .post.is-featured { grid-template-columns: 1fr; }
  .post-grid .post.is-featured .post-media { min-height: 0; aspect-ratio: 16 / 10; }
  .post.is-row { grid-template-columns: 1fr; }
  .post.is-row .post-media { aspect-ratio: 16 / 9; min-height: 0; }
  .spec-list { grid-template-columns: 1fr; }
  .what-badge { left: 0.8rem; bottom: 1rem; }
  .what-media .m2 { margin-bottom: 2rem; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .work.is-wide, .work.is-tall { grid-column: auto; grid-row: auto; }
  .form { grid-template-columns: 1fr; }
  .valla-row { grid-template-columns: 104px 1fr; }
  .footer-top { grid-template-columns: 1fr; padding-top: 3.5rem; }
  .lightbox { padding: 1rem; }
  .lb-prev, .lb-next { top: auto; bottom: 1.2rem; translate: none; }
}

/* sitio publicado (nov 2026): campo trampa del formulario, blog con una sola entrada y página 404 */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.posts.is-single { grid-template-columns: 1fr; }
.posts.is-single .post.is-featured { display: grid; grid-template-columns: 1.25fr 1fr; }
.posts.is-single .post.is-featured .post-media { aspect-ratio: auto; height: 100%; min-height: 340px; }
.posts.is-single .post.is-featured .post-body { padding: 2.2rem; justify-content: center; }
.notfound .container { max-width: 860px; }
.notfound h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 1rem; }
.notfound p + p { margin-top: 0.8rem; color: var(--muted); }
.notfound .hero-actions { margin-top: 2rem; }
@media (max-width: 760px) {
  .posts.is-single .post.is-featured { grid-template-columns: 1fr; }
  .posts.is-single .post.is-featured .post-media { min-height: 0; aspect-ratio: 16 / 10; }
  .posts.is-single .post.is-featured .post-body { padding: 1.5rem 1.6rem 1.6rem; }
}
