/* Union Grafica del Sur - estilos del sitio publico */
:root {
  --ink: #14213d;
  --ink-2: #243458;
  --red: #c00a14;
  --red-d: #8e0a10;
  --blue: #049edd;
  --blue-d: #1f6aa8;
  --yellow: #dcdc1c;
  --yellow-d: #a9a81a;
  --paper: #f6f5f1;
  --card: #ffffff;
  --line: #e4e2da;
  --text: #1c2233;
  --muted: #5f6678;
  --ok: #1b7f4b;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 33, 61, .06), 0 8px 24px rgba(20, 33, 61, .06);
  --shadow-lg: 0 2px 4px rgba(20, 33, 61, .06), 0 18px 48px rgba(20, 33, 61, .12);
  --font-h: 'Outfit', system-ui, sans-serif;
  --font-b: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { overflow-x: clip; margin: 0; font-family: var(--font-b); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-d); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-h); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

/* ---------- botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 15px/1 var(--font-h); letter-spacing: .01em; padding: 14px 22px; border-radius: 999px; border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s, color .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(192, 10, 20, .25); }
.btn-primary:hover { background: var(--red-d); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-d); }
.btn-light { background: #fff; color: var(--ink); }
.btn-outline { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-outline-light { border-color: rgba(255,255,255,.5); color: #fff; background: transparent; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-ghost { background: rgba(20,33,61,.06); color: var(--ink); }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- barra superior */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand img { height: 42px; width: auto; }
.brand span { font: 700 13px/1.1 var(--font-h); color: var(--ink); text-transform: uppercase; letter-spacing: .06em; }
.nav { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav > ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; }
.nav > ul > li { position: relative; }
.nav > ul > li > a, .sub-toggle { display: flex; align-items: center; gap: 4px; padding: 10px 12px; border-radius: 8px; font: 500 15px/1 var(--font-h); color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; }
.nav > ul > li > a:hover, .sub-toggle:hover { background: rgba(20,33,61,.06); }
.nav li.active > a, .nav li.active > .sub-toggle { color: var(--red); }
.sub { list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 6px); left: 0; min-width: 270px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: .15s; }
.has-sub:hover .sub, .has-sub.open .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 15px; }
.sub a:hover { background: var(--paper); color: var(--red); }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1100px) {
  .topbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: 72px 0 0 0; background: #fff; flex-direction: column; align-items: stretch; padding: 16px 20px 32px; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .25s, visibility 0s .25s; margin: 0; }
  .nav.open { transform: none; visibility: visible; transition: transform .25s; }
  .nav > ul { flex-direction: column; gap: 0; }
  .nav > ul > li > a, .sub-toggle { width: 100%; padding: 16px 4px; font-size: 18px; border-bottom: 1px solid var(--line); border-radius: 0; justify-content: space-between; }
  .sub { position: static; box-shadow: none; border: 0; opacity: 1; visibility: visible; transform: none; display: none; padding: 4px 0 8px 12px; min-width: 0; }
  .has-sub.open .sub { display: block; }
  .nav-cta { margin-top: 16px; }
}

/* ---------- alertas */
.alert { margin: 20px 0 0; padding: 14px 18px; border-radius: var(--radius-sm); font-weight: 500; }
.alert-ok { background: #e7f5ec; color: #145a36; border: 1px solid #bfe3cd; }
.alert-error { background: #fdecec; color: #8e0a10; border: 1px solid #f5c2c2; }
.alert-info { background: #e6f4fb; color: #0d4f72; border: 1px solid #b9e0f3; }

/* ---------- hero */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.09) 1.4px, transparent 1.6px); background-size: 14px 14px; mask-image: linear-gradient(105deg, transparent 35%, #000 75%); -webkit-mask-image: linear-gradient(105deg, transparent 35%, #000 75%); }
.hero-blobs span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.hero-blobs span:nth-child(1) { width: 420px; height: 420px; background: var(--red); right: 18%; top: -160px; }
.hero-blobs span:nth-child(2) { width: 380px; height: 380px; background: var(--blue); right: -80px; top: 60px; }
.hero-blobs span:nth-child(3) { width: 300px; height: 300px; background: var(--yellow); right: 28%; bottom: -200px; opacity: .35; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: 88px 20px 96px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--yellow), #f5f58a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.15rem; color: rgba(255,255,255,.8); max-width: 34em; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 13px/1 var(--font-h); letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 28px; height: 3px; background: currentColor; border-radius: 2px; }
.hero-logo { background: #fff; border-radius: 28px; padding: 36px 32px 20px; box-shadow: 0 30px 80px rgba(0,0,0,.35); transform: rotate(2deg); }
.hero-logo img { width: 100%; }
@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; padding: 56px 20px 64px; gap: 36px; }
  .hero-logo { max-width: 280px; transform: none; padding: 20px 18px 10px; border-radius: 20px; }
}

.cmyk-bar { display: flex; height: 6px; }
.cmyk-bar i { flex: 1; }
.cmyk-bar i:nth-child(1) { background: var(--red); }
.cmyk-bar i:nth-child(2) { background: var(--blue); }
.cmyk-bar i:nth-child(3) { background: var(--yellow); }
.cmyk-bar i:nth-child(4) { background: var(--ink); }

/* ---------- secciones */
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); }
.kicker { font: 600 13px/1 var(--font-h); letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; display: block; }
.bg-white { background: #fff; }

.page-head { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1.4px, transparent 1.6px); background-size: 14px 14px; mask-image: linear-gradient(100deg, transparent 40%, #000); -webkit-mask-image: linear-gradient(100deg, transparent 40%, #000); }
.page-head .wrap { position: relative; padding-top: 52px; padding-bottom: 52px; }
.page-head h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0; }
.page-head p { color: rgba(255,255,255,.75); margin: 10px 0 0; max-width: 46em; }
.crumbs { font-size: 14px; color: rgba(255,255,255,.6); margin-bottom: 12px; }
.crumbs a { color: rgba(255,255,255,.8); text-decoration: none; }
.crumbs a:hover { color: #fff; }

/* ---------- tarjetas */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 6px; }
a.card { text-decoration: none; color: inherit; display: block; transition: transform .15s, box-shadow .15s, border-color .15s; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #d5d2c6; }

.quick { position: relative; overflow: hidden; padding-top: 28px; }
.quick .ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; color: #fff; }
.quick .ico svg { width: 24px; height: 24px; }
.quick p { color: var(--muted); font-size: 15px; margin: 0; }
.quick .go { margin-top: 16px; font: 600 14px var(--font-h); color: var(--ink); display: inline-flex; gap: 6px; align-items: center; }
.c-red .ico { background: var(--red); }
.c-blue .ico { background: var(--blue); }
.c-yellow .ico { background: var(--yellow-d); }
.c-ink .ico { background: var(--ink); }
.quick::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.c-red::after { background: var(--red); } .c-blue::after { background: var(--blue); } .c-yellow::after { background: var(--yellow); } .c-ink::after { background: var(--ink); }

/* escala vigente (tarjetas en inicio) */
.vig { display: flex; flex-direction: column; gap: 4px; }
.vig .tag { align-self: flex-start; }
.vig strong { font: 700 1.25rem/1.2 var(--font-h); color: var(--ink); }
.tag { display: inline-block; font: 600 12px/1 var(--font-h); letter-spacing: .06em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: #e7f5ec; color: var(--ok); }
.tag-gray { background: #eceae3; color: var(--muted); }
.tag-blue { background: #e1f2fb; color: var(--blue-d); }
.tag-red { background: #fde8e9; color: var(--red); }

/* ---------- noticias */
.news-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.news-card .thumb { aspect-ratio: 16/10; background: var(--paper) center/cover no-repeat; position: relative; }
.news-card .thumb.empty { background: linear-gradient(135deg, var(--ink), var(--ink-2)); display: grid; place-items: center; }
.news-card .thumb.empty img { width: 40%; opacity: .9; }
.news-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-card time { font-size: 13px; color: var(--muted); font-weight: 500; }
.news-card h3 { margin: 0; font-size: 1.2rem; }
.news-card p { color: var(--muted); font-size: 15px; margin: 0; }
.news-feature { display: grid; grid-template-columns: 1.2fr 1fr; }
.news-feature .thumb { aspect-ratio: auto; min-height: 300px; }
.news-feature .body { padding: 36px; justify-content: center; }
.news-feature h3 { font-size: 1.7rem; }
@media (max-width: 760px) { .news-feature { grid-template-columns: 1fr; } .news-feature .thumb { min-height: 220px; } .news-feature .body { padding: 22px; } }

.article { max-width: 760px; margin: 0 auto; }
.article .cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 32px; box-shadow: var(--shadow); }
.article .cover img { width: 100%; }
.prose { font-size: 1.08rem; line-height: 1.75; }
.prose p, .prose ul { margin: 0 0 1.2em; }
.prose a { word-break: break-word; }

/* ---------- tablas */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
table.t { width: 100%; border-collapse: collapse; font-size: 15px; }
.t th, .t td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.t th { background: #faf9f5; font: 600 13px var(--font-h); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); white-space: nowrap; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr:hover td { background: #fcfbf8; }
.t .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.t .monto { font-weight: 600; color: var(--ink); }

/* ---------- escalas */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 28px; }
.tabs a { padding: 10px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font: 600 15px var(--font-h); }
.tabs a.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.escala-vigente { border-top: 4px solid var(--red); }
.escala-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.escala-top h2 { margin: 6px 0 4px; font-size: 1.6rem; }
.dl { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: var(--text); background: #fff; transition: border-color .15s, background .15s; }
.dl:hover { border-color: var(--blue); background: #f7fbfe; }
.dl .fi { flex-shrink: 0; width: 42px; height: 48px; border-radius: 6px; background: var(--red); color: #fff; font: 700 11px var(--font-h); display: grid; place-items: center; letter-spacing: .03em; }
.dl .fi.doc, .dl .fi.docx { background: var(--blue-d); }
.dl .fi.xls, .dl .fi.xlsx { background: var(--ok); }
.dl .fi.jpg, .dl .fi.jpeg, .dl .fi.png { background: var(--yellow-d); }
.dl .meta { flex: 1; min-width: 0; }
.dl .meta b { display: block; font: 600 15px/1.3 var(--font-h); color: var(--ink); }
.dl .meta small { color: var(--muted); }
.dl .arrow { color: var(--muted); flex-shrink: 0; }
.dl.locked { opacity: .75; }
.dl-list { display: grid; gap: 10px; }

.hist { display: grid; gap: 10px; }
.hist details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.hist summary { list-style: none; cursor: pointer; padding: 14px 18px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hist summary::-webkit-details-marker { display: none; }
.hist summary b { font: 600 16px var(--font-h); color: var(--ink); flex: 1; min-width: 200px; }
.hist summary .chev { transition: transform .2s; color: var(--muted); }
.hist details[open] summary .chev { transform: rotate(180deg); }
.hist .inner { padding: 0 18px 18px; }
.year-sep { font: 700 14px var(--font-h); color: var(--muted); letter-spacing: .1em; margin: 18px 0 2px; }

/* ---------- personas */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.person { display: flex; gap: 14px; align-items: center; }
.avatar { width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font: 700 18px var(--font-h); color: #fff; background: var(--ink); }
.person:nth-child(4n+1) .avatar { background: var(--red); }
.person:nth-child(4n+2) .avatar { background: var(--blue); }
.person:nth-child(4n+3) .avatar { background: var(--yellow-d); }
.person b { display: block; font: 600 16px/1.25 var(--font-h); color: var(--ink); }
.person .cargo { font-size: 14px; color: var(--red); font-weight: 500; line-height: 1.35; }
.person small { color: var(--muted); }

/* ---------- formularios */
.form { display: grid; gap: 16px; }
.field label { display: block; font: 600 14px var(--font-h); color: var(--ink); margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; font: 400 16px var(--font-b); padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--text); transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(4,158,221,.15); }
.field small { color: var(--muted); font-size: 13px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; }

.auth-box { max-width: 460px; margin: 0 auto; }

/* ---------- contacto / info */
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--paper); display: grid; place-items: center; flex-shrink: 0; color: var(--red); }
.info-list b { display: block; font: 600 15px var(--font-h); color: var(--ink); }
.info-list span, .info-list a { color: var(--muted); }
.map { border: 0; width: 100%; height: 100%; min-height: 320px; border-radius: var(--radius); display: block; }

/* ---------- OSPIDA / beneficios */
.ospida-band { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 40px; display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center; box-shadow: var(--shadow); }
@media (max-width: 760px) { .ospida-band { grid-template-columns: 1fr; padding: 24px; gap: 20px; } }
.feature-list { display: grid; gap: 14px; }
.feature { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; }
.feature img { border-radius: var(--radius-sm); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
@media (max-width: 640px) { .feature { grid-template-columns: 1fr; } }
.benefit { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 40px 0; border-bottom: 1px solid var(--line); }
.benefit:last-child { border-bottom: 0; }
.benefit:nth-child(even) .benefit-media { order: 2; }
.benefit-media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.benefit-media.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.benefit-media.gallery img:first-child { grid-column: 1 / -1; }
.benefit-media.placeholder { aspect-ratio: 4/3; border-radius: var(--radius); background: linear-gradient(135deg, var(--ink), var(--ink-2)); display: grid; place-items: center; color: rgba(255,255,255,.85); }
.benefit-media.placeholder svg { width: 72px; height: 72px; }
@media (max-width: 760px) { .benefit { grid-template-columns: 1fr; gap: 20px; padding: 28px 0; } .benefit:nth-child(even) .benefit-media { order: 0; } }

.empty-state { text-align: center; padding: 48px 20px; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }

.cta-band { background: linear-gradient(120deg, var(--red), #e0303a); color: #fff; border-radius: 24px; padding: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; color: rgba(255,255,255,.85); }

.pager { display: flex; gap: 8px; justify-content: center; margin-top: 36px; }
.pager a, .pager span { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); font-weight: 600; padding: 0 12px; }
.pager .on { background: var(--ink); color: #fff; border-color: var(--ink); }

.search { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.search input { flex: 1; min-width: 220px; font: 16px var(--font-b); padding: 12px 16px; border: 1.5px solid var(--line); border-radius: 999px; }
.search input:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(4,158,221,.15); }
.check-ok { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-radius: var(--radius-sm); background: #e7f5ec; border: 1px solid #bfe3cd; color: #145a36; }
.check-no { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-radius: var(--radius-sm); background: #fff6e0; border: 1px solid #f1dca3; color: #6b5200; }

/* ---------- pie */
.footer { background: var(--ink); color: rgba(255,255,255,.75); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer h4 { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.footer-logo { background: #fff; padding: 10px 14px; border-radius: 12px; width: 150px; margin-bottom: 16px; }
.footer .muted { color: rgba(255,255,255,.55); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; }
.social a:hover { background: var(--blue); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px; padding-bottom: 24px; display: flex; justify-content: space-between; gap: 12px; font-size: 14px; flex-wrap: wrap; }
.footer-bottom a { color: rgba(255,255,255,.5); }

/* =====================================================================
   ANIMACIONES
   ===================================================================== */
:root { --elastic: cubic-bezier(.34, 1.56, .64, 1); --spring: cubic-bezier(.2, 1.4, .4, 1); }

/* Aparición al hacer scroll: se "estira" y rebota */
.reveal { opacity: 0; transform: translateY(28px) scaleY(.92); transform-origin: 50% 100%; transition: opacity .55s ease, transform .8s var(--elastic); }
.reveal.in { opacity: 1; transform: none; }
.reveal-left { opacity: 0; transform: translateX(-40px) scaleX(.94); transform-origin: 0 50%; transition: opacity .6s ease, transform .9s var(--elastic); }
.reveal-right { opacity: 0; transform: translateX(40px) scaleX(.94); transform-origin: 100% 50%; transition: opacity .6s ease, transform .9s var(--elastic); }
.reveal-left.in, .reveal-right.in { opacity: 1; transform: none; }

/* Barra de progreso de lectura (CMYK) */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 60; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--red) 0 25%, var(--blue) 25% 50%, var(--yellow) 50% 75%, var(--ink) 75%); pointer-events: none; }

/* Barras CMYK: se estiran desde la izquierda */
.cmyk-bar i { transform-origin: 0 50%; animation: stretchX 1s var(--elastic) backwards; }
.cmyk-bar i:nth-child(2) { animation-delay: .12s; }
.cmyk-bar i:nth-child(3) { animation-delay: .24s; }
.cmyk-bar i:nth-child(4) { animation-delay: .36s; }
@keyframes stretchX { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Hero: entrada escalonada del texto */
.hero-in > div:first-child > * { animation: riseIn .9s var(--elastic) backwards; }
.hero-in > div:first-child > *:nth-child(1) { animation-delay: .05s; }
.hero-in > div:first-child > *:nth-child(2) { animation-delay: .18s; }
.hero-in > div:first-child > *:nth-child(3) { animation-delay: .32s; }
.hero-in > div:first-child > *:nth-child(4) { animation-delay: .46s; }
@keyframes riseIn { from { opacity: 0; transform: translateY(36px) scaleY(.85); } to { opacity: 1; transform: none; } }
.hero h1 em { background-size: 200% 100%; animation: shimmer 4s ease-in-out infinite; background-image: linear-gradient(90deg, var(--yellow), #f7f7a8, var(--yellow)); }
@keyframes shimmer { 0%, 100% { background-position: 0 0; } 50% { background-position: 100% 0; } }

/* Hero: logo que flota y rebota */
.hero-logo { animation: popIn 1.1s var(--elastic) .3s backwards, floaty 6s ease-in-out 1.4s infinite; transition: transform .5s var(--elastic); }
.hero-logo:hover { animation-play-state: paused; transform: rotate(0) scale(1.04); }
@keyframes popIn { from { opacity: 0; transform: rotate(-8deg) scale(.6); } to { opacity: 1; transform: rotate(2deg) scale(1); } }
@keyframes floaty { 0%, 100% { transform: rotate(2deg) translateY(0); } 50% { transform: rotate(-1deg) translateY(-14px); } }
@media (max-width: 860px) { @keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } } }

/* Hero: manchas de tinta que se mueven y tramado que se desplaza */
.hero-blobs span { animation: blob 14s ease-in-out infinite alternate; }
.hero-blobs span:nth-child(2) { animation-duration: 18s; animation-delay: -4s; }
.hero-blobs span:nth-child(3) { animation-duration: 16s; animation-delay: -8s; }
@keyframes blob { 0% { transform: translate(0, 0) scale(1); border-radius: 50%; } 50% { transform: translate(-60px, 40px) scale(1.15, .9); border-radius: 40% 60% 55% 45%; } 100% { transform: translate(40px, -30px) scale(.9, 1.1); border-radius: 55% 45% 40% 60%; } }
.hero::before, .page-head::before { animation: dotsPan 30s linear infinite; }
@keyframes dotsPan { to { background-position: 140px 70px; } }

/* Hero: cintas de papel elásticas */
.ribbons { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 220px; pointer-events: none; }
.ribbons path { fill: none; stroke-linecap: round; }
.ribbons .rb-paper { stroke: rgba(255,255,255,.07); stroke-width: 46; }
.ribbons .rb-line { stroke-width: 3; stroke-dasharray: 26 18; animation: dashRun 2.8s linear infinite; }
.ribbons .rb-line.l2 { animation-duration: 3.6s; }
.ribbons .rb-line.l3 { animation-duration: 4.4s; }
@keyframes dashRun { to { stroke-dashoffset: -88; } }

/* Cinta de texto que corre (marquee) */
.ticker { background: var(--ink); color: #fff; overflow: hidden; white-space: nowrap; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.ticker-track { display: inline-flex; gap: 0; animation: ticker 32s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span { font: 700 15px var(--font-h); letter-spacing: .12em; text-transform: uppercase; padding: 0 22px; display: inline-flex; align-items: center; gap: 44px; }
.ticker span::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); }
.ticker span:nth-child(3n+1)::after { background: var(--red); }
.ticker span:nth-child(3n+2)::after { background: var(--blue); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Tarjetas: hover elástico, íconos que se mueven */
a.card, .card.quick, .person { transition: transform .5s var(--elastic), box-shadow .3s, border-color .3s, opacity .55s; }
a.card:hover { transform: translateY(-8px) scale(1.015); }
.quick .ico { transition: transform .6s var(--elastic); }
.quick:hover .ico { transform: rotate(-10deg) scale(1.15); }
.quick::after { transform-origin: 0 50%; transform: scaleX(.25); transition: transform .6s var(--elastic); }
.quick:hover::after { transform: scaleX(1); }
.quick .go svg { transition: transform .4s var(--elastic); }
.quick:hover .go svg { transform: translateX(6px); }
.news-card .thumb { transition: transform .8s var(--spring); }
.news-card:hover .thumb { transform: scale(1.06); }
.news-card { isolation: isolate; }
.person:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.person .avatar { transition: transform .6s var(--elastic), border-radius .6s var(--elastic); }
.person:hover .avatar { transform: scale(1.12) rotate(-6deg); border-radius: 38% 62% 55% 45%; }

/* Botones: brillo que cruza y rebote al presionar */
.btn { position: relative; overflow: hidden; transition: transform .45s var(--elastic), background .2s, box-shadow .2s, color .2s; }
.btn::before { content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); transition: left .7s ease; pointer-events: none; }
.btn:hover::before { left: 130%; }
.btn:hover { transform: translateY(-2px) scale(1.04); }
.btn:active { transform: scale(.94); transition-duration: .1s; }

/* Encabezados de página */
.page-head h1 { animation: riseIn .9s var(--elastic) .05s backwards; }
.page-head p, .page-head .crumbs { animation: riseIn .9s var(--elastic) .18s backwards; }

/* Tablas: filas que aparecen en cascada */
.escala-vigente .t tbody tr { animation: rowIn .6s var(--elastic) backwards; animation-delay: calc(var(--i, 0) * 60ms + .2s); }
@keyframes rowIn { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
.tag { animation: tagPop .7s var(--elastic) backwards; }
@keyframes tagPop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

/* Historial: despliegue elástico */
.hist details[open] .inner { animation: unfold .6s var(--elastic); transform-origin: 50% 0; }
@keyframes unfold { from { opacity: 0; transform: scaleY(.7); } to { opacity: 1; transform: none; } }
.hist details { transition: transform .4s var(--elastic), box-shadow .3s; }
.hist details:hover { transform: translateX(4px); box-shadow: var(--shadow); }

/* Pestañas */
.tabs a { transition: transform .4s var(--elastic), background .2s, color .2s; }
.tabs a:hover { transform: translateY(-3px); }

/* Sello flotante en CTA */
.cta-band { position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 28px solid rgba(255,255,255,.08); animation: spinSlow 18s linear infinite; border-top-color: rgba(255,255,255,.2); }
.cta-band > * { position: relative; z-index: 1; }
@keyframes spinSlow { to { transform: rotate(360deg); } }

/* =====================================================================
   IMPRENTA ANIMADA
   ===================================================================== */
.press-section { position: relative; overflow: hidden; }
.press-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .press-grid { grid-template-columns: 1fr; gap: 24px; } }
.press-card { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 18px; box-shadow: var(--shadow-lg); }
.press { width: 100%; height: auto; display: block; overflow: visible; }
.press-steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.press-steps li { display: flex; gap: 14px; align-items: flex-start; }
.press-steps b { display: block; font: 600 16px var(--font-h); color: var(--ink); }
.press-steps span { color: var(--muted); font-size: 15px; }
.press-steps .n { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 700 14px var(--font-h); }

.press-spin { animation: spin 2.4s linear infinite; }
.press-spin-rev { animation-direction: reverse; }
.press-spin-slow { animation-duration: 6s; }
.press-gear { animation-duration: 3s; }
.press-gear-rev { animation-duration: 2s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.press-drop { animation: drop 1.4s ease-in infinite; animation-delay: var(--d, 0s); }
@keyframes drop { 0% { transform: translateY(-6px) scale(.4); opacity: 0; } 30% { opacity: 1; transform: translateY(0) scale(1); } 100% { transform: translateY(14px) scale(.6, 1.4); opacity: 0; } }
.press-unit { animation: unitBob 2.4s ease-in-out infinite; animation-delay: var(--d, 0s); transform-box: fill-box; }
@keyframes unitBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
.press-ink { fill: none; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 8 24; animation: inkRun .8s linear infinite; }
.press-ink.c2 { stroke-dashoffset: 8; } .press-ink.c3 { stroke-dashoffset: 16; } .press-ink.c4 { stroke-dashoffset: 24; }
@keyframes inkRun { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -32; } }
.press-ink.c2 { animation-name: inkRun2; } .press-ink.c3 { animation-name: inkRun3; } .press-ink.c4 { animation-name: inkRun4; }
@keyframes inkRun2 { from { stroke-dashoffset: 8; } to { stroke-dashoffset: -24; } }
@keyframes inkRun3 { from { stroke-dashoffset: 16; } to { stroke-dashoffset: -16; } }
@keyframes inkRun4 { from { stroke-dashoffset: 24; } to { stroke-dashoffset: -8; } }
.press-sheet { animation: sheetFly 3.3s var(--spring) infinite; animation-delay: var(--d, 0s); opacity: 0; transform-box: view-box; transform-origin: 561px 222px; }
@keyframes sheetFly {
  0% { opacity: 0; transform: translate(0, -18px) scale(.3, .2); }
  15% { opacity: 1; transform: translate(4px, 0) scale(1.08, .9); }
  30% { transform: translate(6px, 8px) scale(.96, 1.06); }
  45% { transform: translate(8px, 12px) scale(1); }
  75% { opacity: 1; transform: translate(10px, 70px) rotate(4deg) scale(1, .3); }
  100% { opacity: 0; transform: translate(10px, 76px) scale(1, .1); }
}
.press-stack { animation: stackBump 1.1s var(--elastic) infinite; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes stackBump { 0%, 60% { transform: scaleY(1); } 70% { transform: scaleY(1.6); } 100% { transform: scaleY(1); } }
.press-led { animation: blink 1.6s steps(2, jump-none) infinite; }
.press-led.l2 { animation-delay: .4s; } .press-led.l3 { animation-delay: .9s; animation-duration: 2.3s; }
@keyframes blink { 50% { opacity: .25; } }
.sw { animation: bob 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.sw2 { animation-delay: -1s; } .sw3 { animation-delay: -2s; } .sw4 { animation-delay: -3s; }
@keyframes bob { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-12px) scale(1.15, .9); } }
.press-reg { animation: spin 10s linear infinite; transform-box: fill-box; transform-origin: center; }
.press-bg { animation: dotsPan 40s linear infinite; }

/* Barra de edición rápida (solo administradores) */
.admin-bar { position: fixed; left: 16px; bottom: 16px; z-index: 70; display: flex; gap: 2px; background: var(--ink); border-radius: 999px; padding: 4px; box-shadow: 0 10px 30px rgba(0,0,0,.3); animation: tagPop .7s var(--elastic) backwards; }
.admin-bar a { color: #fff; text-decoration: none; font: 600 14px var(--font-h); padding: 10px 16px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; }
.admin-bar .ab-main { background: var(--red); }
.admin-bar .ab-main:hover { background: var(--red-d); }
.admin-bar .ab-sec:hover { background: rgba(255,255,255,.12); }

/* Pausar animaciones que no se ven (lo maneja site.js) */
.paused, .paused * { animation-play-state: paused !important; }

/* Con "reducir movimiento" activado en el sistema: sin desplazamientos grandes,
   pero se mantienen las ilustraciones animadas (imprenta, cintas, marquesina). */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-left, .reveal-right { transform: none !important; transition: opacity .6s ease !important; }
  .hero-blobs span, .hero::before, .page-head::before, .hero-logo { animation: none; }
  .hero-logo { opacity: 1; }
  .hero-in > div:first-child > *, .page-head h1, .page-head p, .page-head .crumbs { animation: none; }
}


/* =====================================================================
   AJUSTE SOLO PARA CELULAR / TABLET (pantallas táctiles o angostas)
   Mismo aspecto, pero todo se mueve con la placa de video del teléfono
   en vez de redibujarse cuadro por cuadro. En compu no cambia nada.
   ===================================================================== */
@media (max-width: 860px), (hover: none) {
  /* Manchas de color: degradé en vez de desenfoque (el blur era lo más pesado) */
  .hero-blobs { position: absolute; inset: 0; will-change: transform; }
  .hero-blobs span { filter: none; animation-name: blobCel; will-change: transform; }
  .hero-blobs span:nth-child(1) { width: 560px; height: 560px; right: calc(18% - 70px); top: -230px; background: radial-gradient(closest-side, var(--red) 30%, transparent 100%); }
  .hero-blobs span:nth-child(2) { width: 520px; height: 520px; right: -150px; top: -10px; background: radial-gradient(closest-side, var(--blue) 30%, transparent 100%); }
  .hero-blobs span:nth-child(3) { width: 440px; height: 440px; right: calc(28% - 70px); bottom: -270px; background: radial-gradient(closest-side, var(--yellow) 30%, transparent 100%); }
  @keyframes blobCel { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-60px, 40px) scale(1.15, .9); } 100% { transform: translate(40px, -30px) scale(.9, 1.1); } }

  /* Puntillado del fondo: se desplaza con transform (antes repintaba todo el encabezado) */
  .hero::before, .page-head::before { inset: -80px 0 0 -150px; animation: dotsCel 30s linear infinite alternate; will-change: transform; }
  @keyframes dotsCel { to { transform: translate(140px, 70px); } }
  .press-bg { animation: none; }

  /* Banda que corre (Escalas salariales, Convenios, OSPIDA...) */
  .ticker-track { animation-name: tickerCel; will-change: transform; backface-visibility: hidden; }
  .ticker:hover .ticker-track { animation-play-state: running; } /* al tocarla ya no se queda trabada */
  @keyframes tickerCel { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

  /* Cintas de colores y sello del recuadro rojo: capa propia */
  .ribbons { will-change: transform; contain: strict; }
  .cta-band::after { will-change: transform; }
}

