/* NBT Transportes y Servicios Logísticos — estilos del sitio institucional.
   Paleta tomada del logo: rojo, gris carbón y blanco; azul marino solo como apoyo. */
:root {
  --red: #e5405a;
  --red-dark: #c9243c;
  --red-soft: #fdeef0;
  --ink: #1f242c;
  --ink-2: #353b46;
  --charcoal: #3a4150;
  --charcoal-2: #4b5365;
  --charcoal-3: #2f3541;
  --muted: #5d6573;
  --line: #e5e7ec;
  --soft: #f5f6f9;
  --white: #fff;
  --navy: #1d3d63;
  --ok: #157347;
  --warn: #8a5a00;
  --radius: 10px;
  --shadow: 0 1px 2px rgb(31 36 44 / 5%), 0 6px 18px rgb(31 36 44 / 6%);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 93.75%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.55; font-size: 1rem; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-dark); text-underline-offset: 3px; }
a:hover { color: var(--red); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 3.6vw, 2.45rem); }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.65rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .85rem; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; border-radius: 4px; }

.container { width: min(1040px, 100% - 2rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--charcoal); color: #fff; padding: .5rem .9rem; z-index: 100; }
.skip:focus { left: 0; }

/* Aviso de borrador */
.draft-banner { background: #fff4d6; color: #5c4200; font-size: .8rem; text-align: center; padding: .35rem 1rem; border-bottom: 1px solid #f0dca0; }
.is-example { background: linear-gradient(transparent 62%, #ffe28a 62%); border-radius: 2px; }
.is-example::after { content: " (ejemplo)"; font-size: .72em; color: var(--warn); font-weight: 600; }

/* Encabezado */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / 96%); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); }
.brand img { width: 68px; height: auto; }
.brand span { font-weight: 700; font-size: .92rem; line-height: 1.2; max-width: 10.5rem; }
[id] { scroll-margin-top: 96px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: .15rem; }
.nav a { color: var(--ink-2); text-decoration: none; padding: .4rem .7rem; border-radius: 7px; font-weight: 600; font-size: .86rem; }
.nav a:hover { background: var(--soft); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--red-dark); background: var(--red-soft); }
.nav .btn { margin-left: .4rem; padding: .42rem .95rem; color: #fff; }
.nav .btn:hover { background: var(--red-dark); color: #fff; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 7px; padding: .35rem .7rem; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .52rem 1.1rem; border-radius: 8px; border: 1.5px solid var(--red); background: var(--red); color: #fff; font: inherit; font-size: .88rem; font-weight: 600; line-height: 1.3; text-decoration: none; cursor: pointer; box-shadow: 0 1px 2px rgb(31 36 44 / 12%); transition: background .15s, border-color .15s, box-shadow .15s, transform .15s; }
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; box-shadow: 0 4px 10px rgb(201 36 60 / 25%); transform: translateY(-1px); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-outline { background: transparent; color: var(--red-dark); box-shadow: none; }
.btn-outline:hover { background: var(--red); color: #fff; }
.btn-light { background: #fff; border-color: #fff; color: var(--ink); }
.btn-light:hover { background: var(--soft); border-color: var(--soft); color: var(--ink); box-shadow: 0 4px 10px rgb(0 0 0 / 18%); }
.btn-ghost { background: rgb(255 255 255 / 8%); backdrop-filter: blur(6px); border-color: rgb(255 255 255 / 50%); color: #fff; box-shadow: none; }
.btn-ghost:hover { background: rgb(255 255 255 / 12%); border-color: #fff; color: #fff; box-shadow: none; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* Hero */
.hero { background: radial-gradient(800px 340px at 88% -10%, rgb(229 64 90 / 38%), transparent 62%), linear-gradient(160deg, var(--charcoal-2) 0%, var(--charcoal) 100%); color: #fff; padding: clamp(2.2rem, 5.5vw, 3.8rem) 0 clamp(2.2rem, 5vw, 3.4rem); }
.hero .eyebrow { color: #ffa3b1; }
.hero p.lead { color: #dfe2e9; max-width: 36rem; font-size: 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.road { height: 12px; background: var(--charcoal-3); position: relative; }
.road::after { content: ""; position: absolute; inset: 5px 0 auto; height: 2px; background: repeating-linear-gradient(90deg, #fff 0 26px, transparent 26px 52px); opacity: .8; }
.page-hero { background: linear-gradient(160deg, var(--charcoal-2), var(--charcoal)); color: #fff; padding: 1.8rem 0 1.5rem; }
.page-hero p { color: #dfe2e9; max-width: 40rem; margin: 0; font-size: .95rem; }
.page-hero h1 { font-size: clamp(1.5rem, 3.2vw, 2.05rem); }

/* Secciones */
.section { padding: clamp(1.8rem, 4.5vw, 3rem) 0; }
.section.alt { background: var(--soft); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 700; color: var(--red-dark); margin-bottom: .45rem; }
.section-head { max-width: 40rem; margin-bottom: 1.4rem; }
.section-head p { color: var(--muted); }
.grid { display: grid; gap: 1rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow); }
.card h3 { margin-top: .3rem; }
.card p:last-child { margin-bottom: 0; }
.icon { width: 40px; height: 40px; border-radius: 10px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; }
.icon svg { width: 22px; height: 22px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .8rem; margin-top: -1.6rem; position: relative; }
.stat { background: rgb(255 255 255 / 82%); backdrop-filter: blur(10px); border: 1px solid rgb(255 255 255 / 70%); border-radius: var(--radius); box-shadow: var(--shadow); padding: .9rem 1.1rem; border-top: 3px solid var(--red); }
.stat strong { display: block; font-size: 1.1rem; }
.stat span { color: var(--muted); font-size: .85rem; }
.check-list { list-style: none; padding: 0; margin: 0 0 .85rem; }
.check-list li { position: relative; padding-left: 1.5rem; margin-bottom: .4rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: .8rem; height: .45rem; border-left: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red); transform: rotate(-45deg) translateY(-30%); }
.tag { display: inline-block; font-size: .74rem; font-weight: 600; padding: .12rem .55rem; border-radius: 99px; background: var(--soft); color: var(--ink-2); margin: 0 .1rem .3rem 0; }
.cta-band { align-self: center; background: linear-gradient(135deg, rgb(29 61 99 / 94%), rgb(52 88 132 / 88%)); color: #fff; border-radius: 12px; padding: clamp(1.2rem, 3vw, 1.9rem); display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.cta-band p { margin: 0; color: #d3dbe6; max-width: 34rem; font-size: .92rem; }
.cta-band h2 { margin-bottom: .25rem; font-size: 1.3rem; }

/* Tabla de transparencia */
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { margin-bottom: .2rem; }

/* Formularios */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1rem, 2.6vw, 1.5rem); }
.field { margin-bottom: .9rem; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: .28rem; font-size: .88rem; }
.field .hint { color: var(--muted); font-size: .8rem; margin-top: .2rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="date"], .field select, .field textarea { width: 100%; font: inherit; font-size: .92rem; padding: .5rem .7rem; border: 1.5px solid #cdd2db; border-radius: 8px; background: #fff; color: var(--ink); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgb(29 61 99 / 25%); border-color: var(--navy); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--red); }
.field-error { color: var(--red-dark); font-size: .8rem; font-weight: 600; margin: .2rem 0 0; }
.check { display: flex; gap: .6rem; align-items: flex-start; }
.check input { margin-top: .3rem; width: 1rem; height: 1rem; accent-color: var(--red); }
.check label { margin: 0; font-weight: 500; font-size: .9rem; }
.switch-box { background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: .8rem .95rem; margin-bottom: 1rem; }
fieldset { border: 0; padding: 0; margin: 0; }
.grid-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0 .9rem; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: 8px; padding: .8rem 1rem; margin-bottom: 1rem; border: 1px solid; font-size: .92rem; }
.alert-error { background: var(--red-soft); border-color: #f2b9c2; color: #7a0c20; }
.alert-ok { background: #e7f5ee; border-color: #a9d8bf; color: #0e4a2c; }
.alert[hidden] { display: none; }
.radicado { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 1.25rem; font-weight: 700; letter-spacing: .04em; display: block; margin: .3rem 0; }
.side-note { font-size: .85rem; color: var(--muted); }
.layout-2 { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
.layout-2 aside .card + .card { margin-top: 1rem; }
.page-hero .eyebrow { color: #ffa3b1; }
.container.card { padding: clamp(1.1rem, 3.5vw, 2rem); }
.container.card h2 { font-size: 1.1rem; margin-top: 1.2rem; }
.container.card h2:first-child { margin-top: 0; }
.table-simple { width: 100%; border-collapse: collapse; font-size: .86rem; }
.table-simple th, .table-simple td { padding: .45rem .5rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table-simple th { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }

/* Pie de página */
.site-footer { background: var(--charcoal-3); color: #cdd1da; padding: 2.2rem 0 1.1rem; font-size: .9rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #ffa3b1; }
.footer-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.site-footer h3 { color: #fff; font-size: .95rem; }
.site-footer .brand { color: #fff; }
.site-footer .brand img { background: #fff; border-radius: 7px; padding: 3px; }
.footer-bottom { border-top: 1px solid #3d4452; margin-top: 1.5rem; padding-top: 1rem; font-size: .8rem; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .25rem; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); padding: .6rem 1rem .8rem; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav .btn { margin: .35rem 0 0; }
  .layout-2 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .draft-banner, .nav-toggle { display: none; } }

/* Tarjetas de servicio: misma altura y botón siempre abajo */
.grid.equal { align-items: stretch; }
.grid.equal > .card { display: flex; flex-direction: column; }
.service-card h2 { font-size: 1.2rem; margin-top: .8rem; }
.service-card .btn { margin-top: auto; align-self: flex-start; }
.service-card .check-list { margin-bottom: 1.2rem; }
.cta-spaced { margin-top: 1.5rem; }

/* Banner de convocatorias de empleo */
.section.tight { padding: 1rem 0 0; }
.job-banner { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center; justify-content: space-between; padding: 1rem 1.3rem; border-radius: 12px; text-decoration: none; color: #fff; background: linear-gradient(120deg, rgb(229 64 90 / 92%), rgb(201 36 60 / 86%)); box-shadow: var(--shadow); font-size: .92rem; }
.job-banner:hover { color: #fff; box-shadow: 0 8px 22px rgb(201 36 60 / 28%); }
.job-banner strong { font-size: 1.05rem; }
.job-banner-empty { background: var(--soft); color: var(--ink-2); border: 2px dashed #c4c9d3; box-shadow: none; }
.job-banner-empty:hover { color: var(--ink-2); box-shadow: none; }

/* Crédito del desarrollador */
.footer-bottom .credit { opacity: .65; }

.service-photo{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:8px;margin-bottom:.9rem;display:block}

/* Transparencia */
.transp-layout { margin-bottom: 2.5rem; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 2.2rem; align-items: start; }
.transp-loading { grid-column: 1 / -1; color: var(--muted); }
.transp-index { position: sticky; top: 5.2rem; font-size: .85rem; border-left: 2px solid var(--line); padding-left: 1rem; }
.transp-index-title { margin: 0 0 .7rem; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.transp-index > div + div { margin-top: 1rem; }
.transp-index ul { list-style: none; margin: .35rem 0 0; padding: 0; }
.transp-index li a { display: block; padding: .22rem 0; color: var(--ink-2); text-decoration: none; }
.transp-index li a:hover { color: var(--red-dark); }
.transp-index .idx-group { font-weight: 700; color: var(--ink); text-decoration: none; display: block; line-height: 1.3; }
.transp-group { margin-bottom: 2.8rem; scroll-margin-top: 5.2rem; }
.transp-group > h2 { display: flex; align-items: center; gap: .7rem; margin: 0 0 1.2rem; padding-bottom: .7rem; border-bottom: 2px solid var(--charcoal); font-size: 1.35rem; }
.transp-group .num { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--charcoal); color: #fff; font-size: .9rem; display: grid; place-items: center; }
.transp-block { margin-bottom: 1.8rem; scroll-margin-top: 5.2rem; }
.transp-block > h3 { margin: 0 0 .7rem; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--red-dark); }
.transp-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.transp-card { display: flex; flex-direction: column; gap: .8rem; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--charcoal-2); border-radius: var(--radius); padding: 1.05rem 1.15rem 1.2rem; box-shadow: var(--shadow); }
.transp-grid.canal .transp-card { border-top-color: var(--red); }
.transp-label { display: flex; gap: .6rem; align-items: flex-start; margin: 0; font-size: .8rem; line-height: 1.4; font-weight: 700; color: var(--ink-2); min-height: 2.8em; }
.transp-letter { flex: none; width: 22px; height: 22px; border-radius: 6px; background: var(--soft); border: 1px solid var(--line); color: var(--charcoal); font-size: .7rem; font-weight: 800; display: grid; place-items: center; }
.transp-body { display: flex; flex-direction: column; gap: .55rem; flex: 1; font-size: .93rem; color: var(--ink); overflow-wrap: anywhere; }
.transp-body p { margin: 0; }
.transp-body .btn { align-self: flex-start; }
/* Ficha de datos */
.ficha { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.ficha-row { display: grid; grid-template-columns: minmax(200px, 38%) 1fr; gap: 1rem; padding: .95rem 1.2rem; border-top: 1px solid var(--line); }
.ficha-row:first-child { border-top: 0; }
.ficha-row:nth-child(even) { background: #fafbfc; }
.ficha dt { display: flex; gap: .6rem; align-items: flex-start; font-size: .8rem; line-height: 1.4; font-weight: 700; color: var(--muted); }
.ficha dd { margin: 0; display: flex; flex-direction: column; gap: .35rem; align-items: flex-start; font-size: .95rem; overflow-wrap: anywhere; }
.ficha dd p { margin: 0; }
/* Lista de documentos */
.doc-list { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.doc-item { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; padding: .85rem 1.2rem; border-top: 1px solid var(--line); }
.doc-item:first-child { border-top: 0; }
.doc-name { display: flex; gap: .6rem; align-items: center; font-weight: 600; font-size: .93rem; color: var(--ink); }
.doc-ico { width: 38px; height: 38px; border-radius: 8px; background: var(--red-soft); color: var(--red-dark); font-size: .66rem; font-weight: 800; display: grid; place-items: center; }
.fila { display: flex; flex-wrap: wrap; gap: .1rem .6rem; align-items: baseline; }
.fila-tag { flex: none; min-width: 4.6rem; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.btn-sm { padding: .4rem .9rem; font-size: .82rem; }
.doc-ico { flex: none; width: 34px; height: 34px; border-radius: 7px; background: var(--red-soft); color: var(--red-dark); font-size: .66rem; font-weight: 800; display: grid; place-items: center; }
.badge { flex: none; padding: .12rem .55rem; border-radius: 999px; background: #fff3d6; color: var(--warn); font-size: .7rem; font-weight: 700; }
.badge.ok { background: #e2f3ea; color: var(--ok); }
@media (max-width: 1100px) { .transp-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); } }
@media (max-width: 900px) {
  .transp-layout { grid-template-columns: 1fr; gap: 1.2rem; }
  .transp-index { position: static; border-left: 0; padding: .9rem 1rem; background: var(--soft); border-radius: var(--radius); }
  .transp-index ul { display: none; }
  .ficha-row { grid-template-columns: 1fr; gap: .4rem; }
  .doc-item { grid-template-columns: auto 1fr; }
  .doc-item > :last-child:not(.doc-name) { grid-column: 2; justify-self: start; }
}
.doc-ico { flex: none; width: 34px; height: 34px; border-radius: 7px; background: var(--red-soft); color: var(--red-dark); font-size: .68rem; font-weight: 800; display: grid; place-items: center; }
.badge { flex: none; padding: .12rem .55rem; border-radius: 999px; background: #fff3d6; color: var(--warn); font-size: .7rem; font-weight: 700; }
.badge.ok { background: #e2f3ea; color: var(--ok); }

.captcha { margin: 0 0 1rem; min-height: 0; }

/* Redes sociales */
.social { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .6rem; }
.social a { position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); display: grid; place-items: center; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.social a:hover { background: var(--red); border-color: var(--red); color: #fff; transform: translateY(-2px); }
.social svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.social a.is-example::after { content: ""; position: absolute; top: -2px; right: -2px; width: 10px; height: 10px; border-radius: 50%; background: #f2c200; border: 2px solid #fff; font-size: 0; }
.site-footer .social a { background: transparent; border-color: #566074; color: #fff; }
.site-footer .social a:hover { background: var(--red); border-color: var(--red); color: #fff; }
/* Contacto */
.contact-layout { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: stretch; }
.contact-tiles { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.contact-tile { display: flex; gap: .9rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem 1.15rem; }
.contact-tile .icon { flex: none; }
.contact-tile h2 { margin: .1rem 0 .4rem; font-size: 1rem; }
.contact-tile p { margin: 0 0 .3rem; font-size: .92rem; overflow-wrap: anywhere; }
.tile-tag { display: block; font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tile-link { font-weight: 600; font-size: .88rem; }
.contact-photo { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 320px; }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.grid.equal > .card .icon { margin-bottom: .6rem; }
.grid.equal > .card .btn { align-self: flex-start; margin-top: auto; }
@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-tiles { grid-template-columns: 1fr; }
  .contact-photo { min-height: 220px; max-height: 280px; }
}

/* Contacto: panel único */
.contact-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border-top: 3px solid var(--red); }
.contact-row { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 1.1rem; padding: 1.15rem 1.4rem; border-top: 1px solid var(--line); }
.contact-row:first-child { border-top: 0; }
.contact-row h2 { margin: .1rem 0 .45rem; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-row p { margin: 0 0 .25rem; overflow-wrap: anywhere; }
.contact-row .big, .contact-row .big a { font-size: 1.08rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.contact-row a { color: var(--ink); text-decoration-color: var(--red); }
.contact-row a:hover { color: var(--red-dark); }
.contact-row .line { display: grid; grid-template-columns: 6.2rem 1fr; align-items: baseline; font-weight: 600; }
.contact-row .tile-link { color: var(--red-dark); }
.contact-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
@media (max-width: 900px) { .contact-row .line { grid-template-columns: 1fr; } }
/* Banda de contacto comercial */
.cta-actions { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.cta-actions .btn { white-space: nowrap; }
.cta-band a:not(.btn) { color: #fff; }

/* Pie de página: contacto con íconos */
.footer-contact { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .65rem; }
.footer-contact li { display: grid; grid-template-columns: 20px 1fr; gap: .65rem; align-items: start; line-height: 1.45; overflow-wrap: anywhere; }
.footer-contact svg { width: 18px; height: 18px; margin-top: 2px; fill: none; stroke: #ffa3b1; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.footer-contact a { text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }

/* Transparencia: acciones alineadas al pie de cada tarjeta */
.transp-card .transp-body > .btn, .transp-card .transp-body > div > .btn { margin-top: auto; }
.transp-card .social { margin-top: auto; }
.transp-card .transp-body > div:has(> .btn) { margin-top: auto; }

/* Responsive: estas reglas van al final para que prevalezcan sobre las de escritorio */
@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-photo { order: -1; min-height: 200px; max-height: 240px; }
  .contact-row { grid-template-columns: 40px minmax(0, 1fr); gap: .9rem; padding: 1rem 1.1rem; }
  .contact-row .big, .contact-row .big a { font-size: 1rem; }
}

/* Transparencia solo documentos */
.transp-layout { display: block; }
.link-card { display: flex; flex-direction: column; gap: .3rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.05rem 1.2rem; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.link-card:hover { border-color: var(--red); transform: translateY(-2px); color: var(--ink); }
.link-card strong { font-size: 1rem; }
.link-card span { font-size: .88rem; color: var(--muted); }
.link-card strong::after { content: " →"; color: var(--red); }
.contact-row .actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.contact-row .actions .btn { color: #fff; }
.contact-row .actions .btn-outline { color: var(--red-dark); }
.contact-row .actions .btn-outline:hover { color: #fff; }
@media (max-width: 900px) { .contact-row .line { grid-template-columns: 1fr; } }

/* Contacto: filas compactas (ícono · título · valor en la misma línea) */
.contact-panel .cp-row { display: grid; grid-template-columns: 38px 6.5rem minmax(0, 1fr); gap: .9rem; align-items: center; padding: .9rem 1.3rem; border-top: 1px solid var(--line); }
.contact-panel .cp-row:first-child { border-top: 0; }
.contact-panel .cp-row .icon { width: 38px; height: 38px; }
.contact-panel .cp-row h2 { margin: 0; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cp-val { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; font-size: .98rem; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.cp-val a { color: var(--ink); text-decoration-color: var(--red); }
.cp-val a:hover { color: var(--red-dark); }
.cp-val a.btn { color: #fff; text-decoration: none; }
.cp-val a.btn-outline { color: var(--red-dark); }
.cp-val a.btn-outline:hover { color: #fff; }
.cp-val .tile-link { color: var(--red-dark); font-size: .9rem; }
.cp-val .sep { color: var(--muted); font-weight: 400; }
.cp-val .social { margin: 0; }
.cp-list { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; gap: .3rem; }
.cp-list li { display: grid; grid-template-columns: minmax(8.5rem, 15rem) 1fr; gap: .2rem .8rem; align-items: baseline; }
.cp-list li span { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 900px) {
  .contact-panel .cp-row { grid-template-columns: 38px minmax(0, 1fr); gap: .15rem .8rem; padding: .85rem 1.1rem; }
  .contact-panel .cp-row .icon { grid-row: span 2; align-self: start; }
  .cp-list li { grid-template-columns: 1fr; gap: 0; margin-bottom: .25rem; }
}

/* Contacto: correos sin partirse y dirección en un solo bloque */
.cp-list li { grid-template-columns: auto 1fr; gap: .1rem .9rem; }
.cp-list li a { white-space: nowrap; }
.cp-text { flex: 1 1 14rem; font-weight: 600; }
@media (max-width: 900px) { .cp-list li { grid-template-columns: 1fr; } .cp-list li a { white-space: normal; overflow-wrap: anywhere; } }

/* Servicios: 3 tarjetas arriba y 2 más anchas abajo (sin huecos) */
@media (min-width: 900px) {
  .grid.svc { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .grid.svc > * { grid-column: span 2; }
  .grid.svc > :nth-child(4), .grid.svc > :nth-child(5) { grid-column: span 3; }
}

/* Redes con los colores de cada marca */
.social a[data-red] { border-color: transparent; color: #fff; }
.social a[data-red="instagram"] { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.social a[data-red="facebook"] { background: #1877f2; }
.social a[data-red="linkedin"] { background: #0a66c2; }
.social a[data-red]:hover, .site-footer .social a[data-red]:hover { color: #fff; border-color: transparent; filter: brightness(1.1); transform: translateY(-2px); }
.site-footer .social a[data-red] { border-color: transparent; color: #fff; }
.site-footer .social a[data-red="instagram"] { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.site-footer .social a[data-red="facebook"] { background: #1877f2; }
.site-footer .social a[data-red="linkedin"] { background: #0a66c2; }
.footer-social { justify-self: end; text-align: right; }
.footer-social .social { justify-content: flex-end; }
@media (max-width: 700px) { .footer-social { justify-self: start; text-align: left; } .footer-social .social { justify-content: flex-start; } }
/* Mapa */
.map-wrap { margin-top: 1.2rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--soft); }
.map-wrap iframe { display: block; width: 100%; height: 360px; border: 0; }
@media (max-width: 700px) { .map-wrap iframe { height: 280px; } }

/* Vacantes */
.vacante-meta { color: var(--muted); font-size: .88rem; font-weight: 600; margin: 0 0 .5rem; }
.vacante .actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.vacante .actions .btn { color: #fff; }
.vacante .actions .btn-outline { color: var(--red-dark); }
.vacante .actions .btn-outline:hover { color: #fff; }
.vacantes-vacio { padding: 1.2rem 1.4rem; background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink-2); margin: 0; }

.footer-bottom .credit a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom .credit a:hover { color: #fff; }

/* Banner de empleo (inicio) */
.job-cta-section { padding-top: 1rem; padding-bottom: 4rem; }
.job-cta { display: flex; align-items: center; gap: 1.2rem; padding: 1.5rem 1.8rem; border-radius: 14px; text-decoration: none; color: #fff; background: linear-gradient(120deg, var(--charcoal-3), var(--charcoal)); border-left: 6px solid var(--red); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.job-cta:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 26px rgb(31 36 44 / 22%); }
.job-cta-icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--red); color: #fff; }
.job-cta-icon svg { width: 26px; height: 26px; }
.job-cta-text { flex: 1 1 auto; display: grid; gap: .15rem; }
.job-cta-text strong { font-size: 1.2rem; }
.job-cta-text span { color: #d5d9e1; font-size: .94rem; }
.job-cta .btn { flex: none; }
@media (max-width: 700px) {
  .job-cta { flex-direction: column; align-items: flex-start; padding: 1.3rem 1.2rem; gap: .9rem; }
  .job-cta .btn { align-self: stretch; text-align: center; }
}
