/* =========================================================
   Olinsa S.A.S. — Opción Logística Integral
   Hoja de estilos principal
   ========================================================= */

:root {
  --navy-950: #061421;
  --navy-900: #092233;
  --navy-850: #0b2a40;
  --navy-800: #0f2e47;
  --navy-700: #16293a;
  --cyan: #00a6dc;
  --cyan-hover: #0fb8ef;
  --cyan-soft: #2fbdf0;
  --cyan-bg: #e6f6fc;
  --bg-soft: #f3f7fa;
  --white: #ffffff;
  --text: #0d2236;
  --muted: #5b6b7a;
  --muted-light: #9fb3c4;
  --border: #e3ebf1;
  --radius: 14px;
  --container: 1200px;
  --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--cyan); color: var(--navy-950); padding: 8px 14px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--cyan-soft); outline-offset: 2px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-950); color: var(--muted-light); font-size: 12.5px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 36px; flex-wrap: wrap; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 22px; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: 8px; }
.topbar a:hover { color: var(--white); }
.topbar .icon { width: 13px; height: 13px; }

/* ---------- Header / nav ---------- */
.site-header { background: var(--white); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--border); }
.site-header .container { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; min-height: 76px; }
.header-cta { justify-self: end; padding: 10px 22px; }
.nav .nav-cta-mobile { display: none; }
.brand img { height: 52px; width: auto; }

.nav { display: flex; align-items: center; gap: 40px; }
.nav a { font-size: 14.5px; font-weight: 500; color: var(--muted); transition: color .15s; }
.nav a:hover { color: var(--text); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: var(--navy-950); font-weight: 600; }
.nav a[aria-current="page"] { color: var(--text); font-weight: 600; }

.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 10px; width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--text); cursor: pointer; }
.nav-toggle .icon { width: 22px; height: 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 14.5px; letter-spacing: .01em;
  padding: 12px 24px; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s, color .15s;
  white-space: nowrap; line-height: 1.2;
}
.btn .icon { width: 16px; height: 16px; }
.btn-primary { background: var(--cyan); color: var(--navy-950); }
.btn-primary:hover { background: var(--cyan-hover); transform: translateY(-1px); }
.btn-outline { border-color: rgba(255,255,255,.35); color: var(--white); background: transparent; }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.06); }
.btn-block { width: 100%; border-radius: 10px; padding: 14px 24px; letter-spacing: .08em; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy-900); color: var(--white); overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; z-index: -1; right: -140px; top: -170px; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(0,166,220,.30), rgba(0,166,220,.10) 55%, rgba(0,166,220,0) 72%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; right: 8%; bottom: -230px; width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,166,220,.14), rgba(0,166,220,0) 68%);
}
.hero--home { padding: 96px 0 84px; }
.hero--page { padding: 72px 0 80px; }
.hero h1 { font-weight: 700; font-size: clamp(2.1rem, 4.2vw, 3.35rem); margin-top: 26px; max-width: 24ch; }
.hero--page h1 { max-width: 22ch; font-size: clamp(2rem, 3.6vw, 2.9rem); }
.hero h1 .accent { color: var(--cyan-soft); }
.hero-lead { margin-top: 24px; max-width: 54ch; font-size: 16px; color: #b5c6d4; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.pill {
  display: inline-block; padding: 6px 15px; border: 1px solid rgba(47,189,240,.45); border-radius: 999px;
  color: var(--cyan-soft); font-family: var(--font-head); font-weight: 600; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
}

.hero-stats { display: flex; gap: 0; margin-top: 54px; flex-wrap: wrap; }
.hero-stats .stat { padding: 0 34px; border-left: 1px solid rgba(255,255,255,.16); }
.hero-stats .stat:first-child { padding-left: 0; border-left: 0; }
.stat-num { font-family: var(--font-head); font-weight: 700; font-size: 1.55rem; color: var(--white); line-height: 1.1; }
.stat-label { font-size: 12.5px; color: #8fa6b8; margin-top: 4px; }

.stat-cards { display: flex; gap: 16px; margin-top: 46px; flex-wrap: wrap; }
.stat-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10); border-radius: 12px; padding: 18px 26px; min-width: 150px; }
.stat-card .stat-num { font-size: 1.7rem; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); }
.section-head { max-width: 640px; }
.eyebrow { display: block; font-family: var(--font-head); font-weight: 700; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px; }
.section-title { font-weight: 700; font-size: clamp(1.6rem, 2.7vw, 2.15rem); }
.section-title--center, .center { text-align: center; }
.center { margin-left: auto; margin-right: auto; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 10px 30px rgba(9,34,51,.07); transform: translateY(-2px); }
.card h3 { font-weight: 700; font-size: 1.02rem; margin: 18px 0 10px; }
.card p { font-size: 13.8px; color: var(--muted); line-height: 1.65; }
.card--dark { background: var(--navy-800); border-color: var(--navy-800); }
.card--dark h3 { color: var(--white); }
.card--dark p { color: #a9bccb; }

.icon-box { width: 54px; height: 54px; border-radius: 13px; background: var(--cyan-bg); color: var(--cyan); display: grid; place-items: center; }
.icon-box .icon { width: 28px; height: 28px; }
.card--dark .icon-box { background: rgba(255,255,255,.10); color: var(--cyan-soft); }

.cards-promesa { margin-top: 44px; }
.cards-servicios { margin-top: 40px; }
.cards-servicios .card { padding: 24px; }
.cards-servicios .icon-box { width: auto; height: auto; display: flex; justify-content: flex-start; align-items: flex-start; background: transparent; color: var(--cyan); }
.cards-servicios .icon-box .icon { width: 32px; height: 32px; }
.cards-servicios .card h3 { margin-top: 10px; font-size: 1rem; }

/* ---------- Brands bar ---------- */
.brands-bar { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 34px 0 38px; text-align: center; }
.brands-bar .label { font-family: var(--font-head); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; font-weight: 600; }
.brands-list { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 20px 56px; }
.brands-logos { --h: clamp(52px, 5vw, 72px); display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 28px clamp(24px, 4.5vw, 64px); }
.brands-logos li { display: flex; align-items: center; }
.brands-logos img { height: var(--h); width: auto; max-width: 240px; object-fit: contain; }
.brands-logos li:nth-child(1) img, .brands-logos li:nth-child(5) img { height: calc(var(--h) * .61); }
.brands-list li { font-family: var(--font-head); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: #5a6978; }

/* ---------- Cobertura ---------- */
.coverage { position: relative; background: var(--navy-950); color: var(--white); padding: 92px 0; overflow: hidden; isolation: isolate; }
.coverage::before { content: ""; position: absolute; z-index: -1; left: -160px; bottom: -220px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(0,166,220,.18), rgba(0,166,220,0) 70%); }
.coverage-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.coverage .eyebrow { color: var(--cyan-soft); }
.coverage p.lead { color: #a9bccb; font-size: 15px; margin-top: 18px; max-width: 46ch; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; max-width: 420px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); font-size: 12.5px; color: #d4e0ea; }
.chip .icon { width: 15px; height: 15px; color: var(--cyan-soft); }
.checks { margin-top: 28px; display: grid; gap: 12px; }
.checks li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: #d4e0ea; }
.checks .icon { color: var(--cyan-soft); width: 22px; height: 22px; }

.coverage-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.coverage-stats .stat-card { padding: 22px 26px; border-radius: 14px; background: var(--navy-700); border: 1px solid rgba(255,255,255,.07); }
.coverage-stats .stat-card:first-child { grid-column: 1 / -1; }
.coverage-stats .stat-num { font-size: 2.1rem; }
.coverage-stats .stat-label { font-size: 13px; }

/* ---------- Contact (home + page) ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
.contact-info p.lead { color: var(--muted); font-size: 15px; margin-top: 16px; max-width: 46ch; }
.contact-list { display: grid; gap: 22px; margin-top: 30px; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; font-size: 14px; color: var(--muted); }
.contact-item .icon-box { width: 46px; height: 46px; border-radius: 12px; flex: none; }
.contact-item .icon-box .icon { width: 24px; height: 24px; }
.contact-item strong { display: block; color: var(--text); font-family: var(--font-head); font-size: 13.5px; margin-bottom: 2px; }
.contact-item a:hover { color: var(--cyan); }
.contact-item--inline { align-items: center; }

.map-wrap { margin-top: 30px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: #e8edf1; aspect-ratio: 16 / 9; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

.form-card { background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 32px; box-shadow: 0 8px 28px rgba(9,34,51,.05); }
.form-card h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 14.5px; color: var(--text); background: var(--bg-soft);
  border: 1px solid var(--border); border-radius: 8px; padding: 11px 13px; transition: border-color .15s, box-shadow .15s, background .15s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; background: var(--white); border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,166,220,.15); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #d64545; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; color: var(--muted); margin: 4px 0 20px; line-height: 1.5; }
.check input { margin-top: 3px; accent-color: var(--cyan); width: 16px; height: 16px; flex: none; }
.check a { color: var(--cyan); text-decoration: underline; text-underline-offset: 2px; }
.form-status { margin-top: 14px; font-size: 14px; min-height: 1.4em; }
.form-status.is-ok { color: #0a7a4b; }
.form-status.is-error { color: #c23636; }

/* ---------- Two-column intro (Nosotros) ---------- */
.intro-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 56px; align-items: start; }
.intro-grid p { color: var(--muted); font-size: 15px; line-height: 1.75; }
.intro-grid p + p { margin-top: 18px; }
.divider { border: 0; border-top: 1px solid var(--border); margin: 52px 0; }

/* ---------- Brand logos ---------- */
.logos-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 36px; }
.logo-tile { background: var(--white); border: 1px solid var(--border); border-radius: 12px; height: 110px; display: grid; place-items: center; padding: 18px 24px; }
.logo-tile img { max-height: 64px; max-width: 100%; width: auto; height: auto; object-fit: contain; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy-800); color: var(--white); padding: 46px 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h3 { font-size: 1.2rem; font-weight: 700; }
.cta-band p { color: #a9bccb; font-size: 14px; margin-top: 2px; }

/* ---------- Legal page ---------- */
.legal { max-width: 780px; }
.legal h2 { font-size: 1.25rem; margin: 36px 0 12px; }
.legal p, .legal li { color: var(--muted); font-size: 15px; line-height: 1.75; }
.legal p + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; }
.legal a { color: var(--cyan); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--muted-light); padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.logo-chip { display: flex; width: fit-content; background: var(--white); border-radius: 10px; padding: 8px 14px; line-height: 0; }
.logo-chip img { height: 40px; width: auto; }
.footer-brand p { margin-top: 18px; font-size: 13px; line-height: 1.7; max-width: 30ch; color: #8fa6b8; }
.site-footer h4 { color: var(--white); font-size: 13px; font-weight: 600; margin-bottom: 16px; }
.site-footer li + li { margin-top: 10px; }
.site-footer li a { font-size: 13px; color: #8fa6b8; transition: color .15s; }
.site-footer li a:hover { color: var(--white); }
.cert-logo { width: 120px; height: auto; opacity: .95; }
.cert-badge { display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: 11.5px; color: var(--white); border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.04); border-radius: 8px; padding: 10px 14px; line-height: 1.35; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 24px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: #7f95a7; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .coverage-grid, .contact-grid, .intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .logos-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .site-header .container { display: flex; justify-content: space-between; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; display: none;
    box-shadow: 0 14px 24px rgba(9,34,51,.08);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav .nav-cta-mobile { display: inline-flex; margin-top: 16px; border-bottom: 0; }
  .site-header .container { position: relative; }
  .site-header { position: relative; }
  .header-cta { display: none; }
}

@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .hero--home { padding: 64px 0 56px; }
  .hero--page { padding: 52px 0 56px; }
  .grid-3, .grid-2, .form-row { grid-template-columns: 1fr; }
  .hero-stats .stat { padding: 0 20px; }
  .topbar-right > span { display: none; }
  .topbar-left { gap: 16px; flex-wrap: wrap; }
  .coverage { padding: 64px 0; }
  .form-card { padding: 24px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .cta-band .btn { width: 100%; }
}

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

/* ---------- Texto justificado (inicio y nosotros) ---------- */
.page-inicio .hero-lead,
.page-inicio .card p,
.page-inicio .coverage p.lead,
.page-inicio .contact-info p.lead,
.page-inicio .footer-brand p,
.page-nosotros .hero-lead,
.page-nosotros .intro-grid p,
.page-nosotros .card p,
.page-nosotros .footer-brand p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: none;
  -webkit-hyphens: none;
}

/* ---------- Slider de clientes (Nosotros) ---------- */
.marquee {
  position: relative; overflow: hidden; margin-top: 40px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 55s linear infinite; will-change: transform; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; flex: none; }
.marquee-group li { flex: none; width: 220px; height: 88px; display: flex; align-items: center; justify-content: center; }
.marquee-group img { max-width: 176px; max-height: 64px; width: auto; height: auto; object-fit: contain; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width: 640px) {
  .marquee-group li { width: 168px; height: 72px; }
  .marquee-group img { max-width: 136px; max-height: 52px; }
  .marquee-track { animation-duration: 45s; }
}

/* Sin animación para quienes la tienen desactivada: rejilla estática centrada */
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none !important; width: auto; justify-content: center; }
  .marquee-group { flex: 1 1 100%; flex-wrap: wrap; justify-content: center; }
  .marquee-group[aria-hidden="true"] { display: none; }
}

/* ---------- Políticas ---------- */
.section[id] { scroll-margin-top: 96px; }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--white); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--navy-900); }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }
.section-sub { margin-top: 12px; color: var(--muted); font-size: 15px; }
.cards-docs { margin-top: 40px; }
.doc-card { display: flex; flex-direction: column; }
.doc-card .icon-box { width: auto; height: auto; display: flex; justify-content: flex-start; background: transparent; }
.doc-card .icon-box .icon { width: 32px; height: 32px; }
.doc-card h3 { margin-top: 10px; }
.doc-card .doc-meta { font-size: 12.5px; color: var(--cyan); font-weight: 600; margin: -2px 0 10px; }
.doc-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 20px; }
.resp-box { margin-top: 36px; background: var(--navy-900); color: #c4d3de; border-radius: var(--radius); padding: 28px 32px; }
.resp-box h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 8px; }
.resp-box strong { color: var(--white); }
.subhead { font-weight: 700; font-size: 1.25rem; margin: 48px 0 18px; }
.cards-finalidades .card h3, .cards-derechos .card h3, .page-politicas .grid-2 .card h3 { margin-top: 0; }
.cards-derechos { margin-top: 22px; }
.bullets { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.bullets li { position: relative; padding-left: 20px; font-size: 13.8px; color: var(--muted); line-height: 1.6; }
.bullets li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }
.bullets--cols { grid-template-columns: repeat(2, 1fr); gap: 10px 32px; }
.page-politicas .card p + p.mt, .page-politicas .mt { margin-top: 12px; }
.page-politicas .card a:not(.btn) { color: var(--cyan); text-decoration: underline; text-underline-offset: 2px; }
.doc-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 44px; }

.page-politicas .section-sub, .page-politicas .card p, .page-politicas .bullets li, .page-politicas .resp-box p, .page-politicas .hero-lead { text-align: justify; hyphens: none; }

/* Visor PDF */
.pdf-modal[hidden] { display: none; }
.pdf-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; }
.pdf-modal__backdrop { position: absolute; inset: 0; background: rgba(6,20,33,.72); }
.pdf-modal__panel { position: relative; width: min(1100px, 100%); height: min(92vh, 100%); background: var(--white); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.pdf-modal__bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.pdf-modal__title { flex: 1; font-size: 1rem; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdf-modal__close { width: 40px; height: 40px; border: 1px solid var(--border); background: var(--white); border-radius: 10px; display: grid; place-items: center; cursor: pointer; color: var(--text); }
.pdf-modal__close:hover { border-color: var(--cyan); }
.pdf-modal__close .icon { width: 20px; height: 20px; }
.pdf-modal__frame { flex: 1; width: 100%; border: 0; background: #e9eef2; }
body.modal-open { overflow: hidden; }

@media (max-width: 900px) {
  .bullets--cols { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .pdf-modal { padding: 0; }
  .pdf-modal__panel { height: 100%; border-radius: 0; }
  .pdf-modal__bar .btn { display: none; }
}

/* ---------- Proyectos: galería + visor ---------- */
.gallery { list-style: none; padding: 0; margin: 40px 0 0; columns: 3; column-gap: 18px; }
.gallery li { break-inside: avoid; margin: 0 0 18px; }
.shot { position: relative; display: block; border-radius: 14px; overflow: hidden; background: var(--navy-900); box-shadow: 0 2px 10px rgba(9,34,51,.08); cursor: zoom-in; }
.shot img { display: block; width: 100%; height: auto; transition: transform .45s ease, opacity .2s; }
.shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(6,20,33,.55)); opacity: 0; transition: opacity .25s; }
.shot-zoom { position: absolute; right: 12px; bottom: 12px; z-index: 1; width: 40px; height: 40px; border-radius: 50%; background: var(--cyan); color: var(--navy-950); display: grid; place-items: center; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
.shot-zoom .icon { width: 20px; height: 20px; }
.shot:hover img, .shot:focus-visible img { transform: scale(1.05); }
.shot:hover::after, .shot:focus-visible::after, .shot:hover .shot-zoom, .shot:focus-visible .shot-zoom { opacity: 1; }
.shot:hover .shot-zoom, .shot:focus-visible .shot-zoom { transform: none; }
.page-proyectos .section-sub, .page-proyectos .hero-lead { text-align: justify; hyphens: none; }
.page-proyectos .cta-band { margin: 0; }

.lightbox[hidden] { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 56px 72px; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(4,14,24,.92); }
.lightbox__fig { position: relative; margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox__fig img { max-width: 100%; max-height: calc(100vh - 150px); width: auto; height: auto; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); background: var(--navy-900); }
.lightbox__fig figcaption { color: #b5c6d4; font-size: 13.5px; text-align: center; }
.lightbox__btn { position: absolute; z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: var(--white); display: grid; place-items: center; cursor: pointer; transition: background .15s, border-color .15s; }
.lightbox__btn:hover { background: var(--cyan); border-color: var(--cyan); color: var(--navy-950); }
.lightbox__btn .icon { width: 22px; height: 22px; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }
body.lb-open { overflow: hidden; }

@media (max-width: 900px) { .gallery { columns: 2; column-gap: 14px; } .gallery li { margin-bottom: 14px; } }
@media (max-width: 700px) {
  .lightbox { padding: 64px 12px 72px; }
  .lightbox__nav { top: auto; bottom: 14px; transform: none; }
  .lightbox__prev { left: calc(50% - 56px); }
  .lightbox__next { right: calc(50% - 56px); }
  .lightbox__fig img { max-height: calc(100vh - 170px); }
}
@media (prefers-reduced-motion: reduce) { .shot img, .shot-zoom, .shot::after { transition: none; } }

/* ---------- Redes, BASC, selector y sedes ---------- */
.topbar-right { gap: 20px; }
.social { list-style: none; display: flex; align-items: center; gap: 12px; margin: 0; padding: 0; }
.social a { display: inline-flex; align-items: center; gap: 8px; line-height: 0; border-radius: 8px; transition: transform .15s, opacity .15s; }
.social a:hover { transform: translateY(-1px); opacity: .85; }
.social img { width: 24px; height: 24px; display: block; }
.social-eco { padding-left: 12px; border-left: 1px solid rgba(255,255,255,.18); }
.social-eco span { font-size: 12.5px; line-height: 1; color: var(--muted-light); }
.social-eco:hover span { color: var(--white); }
@media (max-width: 700px) { .social-eco span { display: none; } .social-eco { padding-left: 0; border-left: 0; } }

.cert-badge { display: inline-block; background: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 8px 22px rgba(0,0,0,.28); line-height: 0; }
.cert-badge .cert-logo { width: 128px; height: auto; opacity: 1; display: block; }

.field select {
  width: 100%; font: inherit; font-size: 14.5px; color: var(--text); background: var(--bg-soft);
  border: 1px solid var(--border); border-radius: 8px; padding: 11px 13px; cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field select:invalid { color: var(--muted); }
.field select option { color: var(--text); }
.field select:focus { outline: none; background: var(--white); border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,166,220,.15); }
.field select:user-invalid { border-color: #d64545; }

.sedes { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin-top: 40px; }
.sede-card { flex: 0 1 calc(33.333% - 15px); min-width: 270px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: box-shadow .2s, transform .2s; }
.sede-card:hover { box-shadow: 0 10px 30px rgba(9,34,51,.07); transform: translateY(-2px); }
.sede-card .icon-box { width: auto; height: auto; display: flex; justify-content: flex-start; background: transparent; }
.sede-card .icon-box .icon { width: 30px; height: 30px; }
.sede-card h3 { font-weight: 700; font-size: 1.12rem; margin: 8px 0 2px; }
.sede-dep { font-size: 13px; color: var(--cyan); font-weight: 600; margin-bottom: 14px; }
.sede-data { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sede-data li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.8px; color: var(--muted); line-height: 1.45; overflow-wrap: anywhere; }
.sede-data .icon { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--cyan); }
.sede-data a:hover { color: var(--cyan); }

.footer-social { margin-top: 22px; }
.footer-social h4 { margin-bottom: 12px; }
.footer-social .social img { width: 28px; height: 28px; }
.footer-social .social-eco { border-left-color: rgba(255,255,255,.18); }

.social li { display: flex; align-items: center; margin: 0; padding: 0; }
.social li a { display: flex; align-items: center; }
.site-footer .social li + li { margin-top: 0; }
.site-footer .social li a { font-size: inherit; }

/* ---------- Texto justificado en todo el sitio, sin cortes con guion ---------- */
main p:not(.center *):not(.center):not(.doc-meta):not(.sede-dep):not(.form-status):not(.eyebrow):not(.pill),
main .bullets li,
.footer-brand p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: none;
  -webkit-hyphens: none;
  text-wrap: pretty;
}
.nb { white-space: nowrap; }

/* Tarjeta con enlace (Transformación → Ecotransformación) */
.card-linked { position: relative; cursor: pointer; transition: box-shadow .2s, transform .2s, border-color .2s; }
.card-linked:hover { box-shadow: 0 10px 30px rgba(9,34,51,.09); transform: translateY(-2px); border-color: var(--cyan); }
.card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 600; font-size: 13.5px; color: var(--cyan); }
.card-link img { width: 20px; height: 20px; display: block; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card-link:focus-visible { outline: none; }
.card-linked:focus-within { box-shadow: 0 0 0 3px rgba(0,166,220,.35); }

/* Enlace invisible: toda la tarjeta es clicable */
.card-link { display: block; width: 0; height: 0; margin: 0; padding: 0; overflow: hidden; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

/* ---------- Ajustes modo teléfono ---------- */
@media (max-width: 700px) {
  .topbar .social { display: none; }
  .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 40px; }
  .hero-stats .stat { padding: 0 12px; min-width: 0; }
  .hero-stats .stat:first-child { padding-left: 0; }
  .hero-stats .stat-num { font-size: 1.3rem; }
  .hero-stats .stat-label { font-size: 12px; line-height: 1.35; }
}
