:root {
  /* Colores oficiales del manual de marca ProBarrancabermeja */
  --red: #cd3533;
  --lime: #a2c74c;
  --green: #50aa55;
  --yellow: #f2c931;
  --cyan: #44b3cf;
  --navy: #2c2d6e;

  --ink: #14162c;
  --muted: #5b6478;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --border: #e4e8f0;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(20,22,44,.06), 0 4px 12px rgba(20,22,44,.05);
  --shadow-md: 0 10px 24px rgba(20,22,44,.09);
  --shadow-lg: 0 24px 48px rgba(20,22,44,.14);
  --brand-gradient: linear-gradient(120deg, var(--red), var(--lime) 25%, var(--yellow) 50%, var(--cyan) 75%, var(--navy));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: "Poppins", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.2; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 0 0 10px 0;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section-sm { padding: 56px 0; }
.bg-soft { background: var(--bg-soft); }

.section-title { max-width: 660px; margin: 0 0 44px; }
.section-title.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--navy); margin-bottom: 12px; position: relative; padding-left: 30px;
}
.eyebrow::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 22px; height: 3px; border-radius: 2px; background: var(--yellow);
}
.section-title h2 { font-size: clamp(26px, 3.4vw, 34px); margin: 0 0 12px; letter-spacing: -.02em; }
.section-title p { color: var(--muted); margin: 0; font-size: 16px; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 24px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; font-size: 15px; letter-spacing: -.01em; flex-shrink: 0; }
.navbar .brand img { width: 34px; height: auto; }
.navbar nav { display: flex; gap: 4px; }
.navbar nav a {
  text-decoration: none; font-size: 14px; font-weight: 500; color: var(--ink);
  padding: 8px 12px; border-radius: 8px; transition: background .18s ease, color .18s ease;
}
.navbar nav a:hover { background: var(--bg-soft); color: var(--navy); }
.navbar nav a.active { color: var(--navy); font-weight: 700; background: var(--bg-soft); }
.navbar .cta {
  background: var(--yellow); color: var(--navy); padding: 10px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease;
}
.navbar .cta:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(242,201,49,.45); }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--navy); padding: 4px 8px; }

/* ---------- Botones ---------- */
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary, .btn-ghost, .btn-navy {
  padding: 14px 28px; border-radius: 999px; font-weight: 700; font-size: 15px;
  text-decoration: none; display: inline-block; border: 2px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn-primary { background: var(--yellow); color: var(--navy); box-shadow: 0 12px 26px rgba(242,201,49,.42); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(242,201,49,.5); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { border-color: var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-sm { padding: 10px 20px; font-size: 14px; }

/* ---------- Hero carrusel ---------- */
.hero-carousel { position: relative; }
.hero-carousel .carousel-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.hero-carousel .carousel-track::-webkit-scrollbar { display: none; }
.hero-slide {
  flex: 0 0 100%; scroll-snap-align: start; position: relative;
  min-height: 680px;
  background-size: cover; background-position: center; background-color: var(--navy);
}
.hero-slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,21,60,0) 0%, rgba(20,21,60,0) 72%, rgba(20,21,60,.03) 100%);
}
.hero-slide-content {
  position: absolute; inset: 0; z-index: 1; color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 40px 24px 72px;
}
.hero-slide-content .eyebrow { color: var(--yellow); }
.hero-slide-content .btn-row { justify-content: flex-end; }
.hero-carousel .carousel-dots { position: absolute; left: 0; right: 0; bottom: 22px; z-index: 4; margin-top: 0; }
.hero-carousel .carousel-dots button { background: rgba(255,255,255,.4); }
.hero-carousel .carousel-dots button[aria-selected="true"] { background: var(--yellow); }
.hero-slide-content .btn-ghost { border-color: #fff; color: #fff; }
.hero-slide-content .btn-ghost:hover { background: #fff; color: var(--navy); }

/* ---------- Frase destacada ---------- */
.quote-section { padding: 72px 0 64px; text-align: center; position: relative; }
.quote-section blockquote::before {
  content: "\201C"; display: block; font-family: Georgia, serif;
  font-size: 64px; line-height: 1; color: var(--yellow); font-weight: 800; margin-bottom: 4px;
}
.quote-section blockquote {
  font-family: Georgia, serif; font-style: italic; font-weight: 500; color: var(--navy);
  font-size: clamp(19px, 2.4vw, 26px); max-width: 780px; margin: 0 auto 32px; line-height: 1.5;
}
.quote-section .btn-row { justify-content: center; }

/* ---------- Pilares (tarjetas giratorias) ---------- */
.pilares { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pilar-card { perspective: 1200px; height: 220px; scroll-margin-top: 110px; }
.pilar-card-inner {
  position: relative; width: 100%; height: 100%;
  transition: transform .6s cubic-bezier(.4,.2,.2,1); transform-style: preserve-3d;
}
.pilar-card:hover .pilar-card-inner, .pilar-card:target .pilar-card-inner { transform: rotateY(180deg); }
.pilar-card:target .pilar-back { box-shadow: 0 0 0 3px var(--yellow), var(--shadow-md); }
.pilar-front, .pilar-back {
  position: absolute; inset: 0; backface-visibility: hidden;
  border-radius: var(--radius); padding: 30px 26px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; box-shadow: var(--shadow-sm); border: 1px solid var(--border);
}
.pilar-front { background: #fff; }
.pilar-front .icon {
  width: 52px; height: 52px; border-radius: 14px; background: rgba(44,45,110,.12); color: var(--navy);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.pilar-front h3 { font-size: 17px; margin: 0; }
.pilar-back { background: var(--navy); color: #fff; transform: rotateY(180deg); }
.pilar-back p { font-size: 14px; margin: 0; line-height: 1.55; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: -52px; position: relative; z-index: 3; }
.stat-card {
  background: #fff; border-radius: var(--radius); padding: 24px 20px; text-align: center;
  box-shadow: var(--shadow-md); border: 1px solid var(--border);
  border-top: 4px solid var(--navy);
}
.stat-card:nth-child(1) { border-top-color: var(--red); }
.stat-card:nth-child(2) { border-top-color: var(--yellow); }
.stat-card:nth-child(3) { border-top-color: var(--cyan); }
.stat-card:nth-child(4) { border-top-color: var(--green); }
.stat-card .n { font-size: 32px; font-weight: 800; color: var(--navy); line-height: 1.1; letter-spacing: -.02em; }
.stat-card .l { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ---------- Carrusel de campañas (banners diseñados, sin recorte) ---------- */
.carousel { position: relative; }
.carousel-track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; border-radius: var(--radius);
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track .slide {
  flex: 0 0 100%; scroll-snap-align: center; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-md); display: block; text-decoration: none;
  background: var(--bg-soft);
}
.carousel-track .slide img { width: 100%; height: auto; }
.carousel-dots { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.carousel-dots button {
  width: 9px; height: 9px; border-radius: 999px; border: none; cursor: pointer;
  background: #cbd2e0; padding: 0; transition: width .25s ease, background .25s ease;
}
.carousel-dots button[aria-selected="true"] { width: 28px; background: var(--navy); }

/* ---------- Nosotros ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.pill-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.pill {
  border: none; background: var(--bg-soft); color: var(--muted); cursor: pointer;
  padding: 9px 18px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 600;
  transition: background .18s ease, color .18s ease;
}
.pill:hover { background: #e8ecf5; }
.pill[aria-selected="true"] { background: var(--navy); color: #fff; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade .3s ease; }
.tab-panel h3 { margin: 0 0 10px; font-size: 20px; }
.tab-panel p { margin: 0; color: var(--muted); white-space: pre-line; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Servicios ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service {
  padding: 30px 26px; border-radius: var(--radius); background: #fff;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service .icon {
  width: 48px; height: 48px; border-radius: 14px; background: var(--navy); color: var(--navy);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.service:nth-child(6n+1) .icon { background: rgba(205,53,51,.12); }
.service:nth-child(6n+2) .icon { background: rgba(44,45,110,.12); }
.service:nth-child(6n+3) .icon { background: rgba(80,170,85,.14); }
.service:nth-child(6n+4) .icon { background: rgba(68,179,207,.16); }
.service:nth-child(6n+5) .icon { background: rgba(242,201,49,.22); }
.service:nth-child(6n+6) .icon { background: rgba(162,199,76,.18); }
.service h3 { font-size: 17px; margin: 0 0 8px; }
.service p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ---------- Tarjetas de noticias ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.news-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; text-decoration: none;
  box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease;
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.news-card .thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-soft); }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.news-card:hover .thumb img { transform: scale(1.05); }
.news-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.news-card h3 { font-size: 17.5px; margin: 10px 0 8px; letter-spacing: -.01em; }
.news-card p { font-size: 14.5px; color: var(--muted); margin: 0 0 16px; }
.news-card .meta { font-size: 12.5px; color: var(--muted); margin-top: auto; display: flex; gap: 8px; align-items: center; }
.tag {
  display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; padding: 5px 11px; border-radius: 999px;
  background: rgba(44,45,110,.09); color: var(--navy); align-self: flex-start;
}
.tag.red { background: rgba(205,53,51,.11); color: var(--red); }
.tag.cyan { background: rgba(68,179,207,.16); color: #1b7f99; }
.tag.green { background: rgba(80,170,85,.14); color: #2e7d32; }
.tag.navy { background: rgba(44,45,110,.09); color: var(--navy); }

/* ---------- Tarjetas de documentos (sin portada) ---------- */
.doc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.doc-card {
  display: flex; flex-direction: column; gap: 14px; text-decoration: none;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.doc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cfd6e4; }
.doc-card .doc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.doc-icon {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: #fff; letter-spacing: .04em;
}
.doc-icon.navy { background: var(--navy); }
.doc-icon.cyan { background: var(--cyan); }
.doc-icon.green { background: var(--green); }
.doc-icon.red { background: var(--red); }
.doc-card h3 { font-size: 15.5px; margin: 0; line-height: 1.4; }
.doc-card .doc-meta { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; margin-top: auto; }
.doc-card .doc-open { font-size: 13px; font-weight: 700; color: var(--navy); }
.doc-card .thumb-mini { aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: var(--bg-soft); }
.doc-card .thumb-mini img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Junta directiva ----------
   flex + justify-content:center en vez de grid: con grid, una fila incompleta
   (ej. 13 personas en columnas de 3 deja 1 sola pegada a la izquierda en la
   última fila); con flex-wrap, cada fila se centra sola sin importar cuántos
   integrantes falten para completarla. */
.board-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.board-item {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-sm);
  flex: 0 1 calc(33.333% - 11px); min-width: 230px;
}
.board-item .badge {
  width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: #fff; background: var(--navy);
}
.board-item:nth-child(5n+1) .badge { background: var(--red); }
.board-item:nth-child(5n+2) .badge { background: var(--navy); }
.board-item:nth-child(5n+3) .badge { background: var(--green); }
.board-item:nth-child(5n+4) .badge { background: var(--cyan); }
.board-item:nth-child(5n+5) .badge { background: #b9962a; }
.board-item .role { font-size: 12px; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: .05em; }
.board-item .org { font-size: 13.5px; color: var(--muted); line-height: 1.35; }

/* ---------- Equipo ---------- */
.people { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.person { text-align: center; flex: 0 1 calc(25% - 18px); min-width: 160px; max-width: 220px; }
.person .avatar {
  width: 100%; aspect-ratio: 1/1; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-soft); margin-bottom: 14px; box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
}
.person .avatar img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.person:hover .avatar img { transform: scale(1.04); }
.person .avatar .initial { font-size: 30px; font-weight: 800; color: var(--navy); }
.person h4 { margin: 0 0 3px; font-size: 15.5px; }
.person .role { font-size: 13.5px; color: var(--muted); display: block; }
.person a.mail { font-size: 12.5px; color: var(--navy); text-decoration: none; word-break: break-all; display: inline-block; margin-top: 6px; }
.person a.mail:hover { text-decoration: underline; }

/* ---------- Carrusel miembros ---------- */
.marquee { overflow: hidden; position: relative; padding: 10px 0; }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg-soft), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--bg-soft), transparent); }
.marquee-track { display: flex; gap: 30px; width: max-content; animation: scroll 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track .logo-item {
  height: 140px; width: 250px; padding: 20px 26px; background: #fff;
  border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 13.5px; color: var(--muted); text-align: center;
}
.marquee-track .logo-item img { max-height: 100px; max-width: 100%; width: auto; object-fit: contain; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- RTE / documentos ---------- */
.doc-list { display: grid; gap: 12px; }
.doc-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 18px 22px;
  text-decoration: none; box-shadow: var(--shadow-sm); transition: border-color .2s ease, transform .2s ease;
}
.doc-row:hover { border-color: var(--navy); transform: translateX(4px); }
.doc-row .name { font-weight: 600; font-size: 14.5px; }
.doc-row .dl { font-size: 13px; font-weight: 700; color: var(--navy); white-space: nowrap; }

/* ---------- Estados vacíos ---------- */
.empty-state {
  text-align: center; padding: 54px 30px; border: 2px dashed var(--border);
  border-radius: var(--radius); background: var(--bg-soft); color: var(--muted);
}
.empty-state .big { display: flex; justify-content: center; margin-bottom: 12px; }
.empty-state h3 { margin: 0 0 8px; color: var(--ink); font-size: 18px; }
.empty-state p { margin: 0; font-size: 14.5px; }

/* ---------- Contacto ---------- */
.contact-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.contact-info h2 { font-size: clamp(26px, 3.4vw, 32px); margin: 0 0 12px; }
.contact-info > p { color: var(--muted); margin: 0 0 28px; }
.contact-info .item { display: flex; gap: 14px; margin-top: 20px; font-size: 14.5px; align-items: flex-start; }
.contact-info .item .ico {
  width: 40px; height: 40px; border-radius: 11px; background: var(--bg-soft); color: var(--navy);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-info .item b { display: block; margin-bottom: 2px; }
.contact-info .item a { color: var(--muted); text-decoration: none; word-break: break-all; }
.contact-info .item a:hover { color: var(--navy); }
form.contact-form {
  display: grid; gap: 16px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-md);
}
form.contact-form label { font-size: 13px; font-weight: 600; margin-bottom: -8px; }
form.contact-form input, form.contact-form textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--border); border-radius: 10px;
  font-family: inherit; font-size: 14.5px; transition: border-color .18s ease, box-shadow .18s ease;
}
form.contact-form input:focus, form.contact-form textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(44,45,110,.12);
}
form.contact-form textarea { min-height: 130px; resize: vertical; }
form.contact-form button { justify-self: start; cursor: pointer; }
form.contact-form button[disabled] { opacity: .6; cursor: progress; }
.form-msg { font-size: 14px; margin: 0; }
.form-msg.ok { color: #17703c; }
.form-msg.err { color: #b3261e; }

/* ---------- Artículo (detalle de noticia) ---------- */
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--navy); text-decoration: none; font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }
.article { max-width: 760px; margin: 0 auto; }
.article h1 { font-size: clamp(28px, 4vw, 40px); margin: 14px 0 16px; letter-spacing: -.025em; }
.article .art-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; margin-bottom: 28px; align-items: center; }
.article .cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 32px; box-shadow: var(--shadow-md); }
.article .cover img { width: 100%; max-height: 460px; object-fit: cover; }
.article .content { font-size: 16.5px; color: #2b3145; }
.article .content p { margin: 0 0 18px; }
.page-head { padding: 56px 0 20px; background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.page-head h1 { font-size: clamp(28px, 4vw, 40px); margin: 10px 0 10px; letter-spacing: -.025em; }
.page-head p { color: var(--muted); margin: 0; max-width: 640px; }

/* ---------- Footer ---------- */
footer { background: var(--navy); color: #c9cee6; padding: 60px 0 26px; }
footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
footer .brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; margin-bottom: 14px; }
footer .brand img { width: 34px; background: #fff; border-radius: 8px; padding: 3px; }
footer p { color: #a8b0d0; font-size: 14px; margin: 0; max-width: 360px; }
footer h5 { color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 14px; }
footer a { color: #c9cee6; text-decoration: none; font-size: 14px; display: block; margin-bottom: 10px; }
footer a:hover { color: var(--yellow); }
footer .bottom {
  text-align: center; color: #8890b8; font-size: 12.5px; margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px;
}

.social-icons { display: flex; gap: 12px; margin-top: 16px; }
.social-icons a {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center; color: #c9cee6;
  transition: background .2s ease, color .2s ease;
}
.social-icons a:hover { background: var(--yellow); color: var(--navy); }

/* ---------- Testimonios ---------- */
.testimonio-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.testimonio-card .quote-mark {
  font-size: 42px; line-height: 1; color: var(--yellow); font-weight: 800;
  font-family: Georgia, serif; margin-bottom: 4px;
}
.testimonio-card .testimonio-texto { font-size: 14.5px; color: #374151; font-style: italic; flex: 1; margin: 0 0 20px; }
.testimonio-autor { display: flex; align-items: center; gap: 12px; }
.avatar-sm {
  width: 42px; height: 42px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  background: var(--bg-soft); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; color: var(--navy);
}
.avatar-sm img { width: 100%; height: 100%; object-fit: cover; }
.testimonio-autor strong { display: block; font-size: 14px; }
.testimonio-autor span { display: block; font-size: 12.5px; color: var(--muted); }

/* ---------- Botón flotante de WhatsApp ---------- */
.whatsapp-float {
  position: fixed; left: 22px; bottom: 22px; z-index: 60;
  display: flex; align-items: center; gap: 10px;
  background: #25d366; color: #fff; text-decoration: none;
  padding: 14px; border-radius: 999px; box-shadow: 0 10px 26px rgba(0,0,0,.28);
  transition: padding .25s ease, box-shadow .2s ease;
}
.whatsapp-float:hover { box-shadow: 0 14px 32px rgba(0,0,0,.34); }
.whatsapp-float-label {
  max-width: 0; overflow: hidden; white-space: nowrap; font-size: 14px; font-weight: 700;
  transition: max-width .3s ease;
}
.whatsapp-float:hover .whatsapp-float-label { max-width: 220px; }
.whatsapp-float:hover { padding-right: 18px; }

/* ---------- Animación de entrada ---------- */
[data-aos] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
[data-aos].in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .about, .contact-wrap { grid-template-columns: 1fr; gap: 36px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-2, .services, .doc-grid, .pilares { grid-template-columns: repeat(2, 1fr); }
  .hero-slide { min-height: 480px; }
  .board-item { flex-basis: calc(50% - 8px); }
  .person { flex-basis: calc(50% - 12px); }
  .navbar nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    flex-direction: column; padding: 16px 20px 20px; gap: 2px;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
  }
  .navbar nav.open { display: flex; }
  .navbar nav a { padding: 12px 14px; }
  .nav-toggle { display: block; }
  .section { padding: 64px 0; }
}
@media (max-width: 620px) {
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 24px; }
  .grid-3, .grid-2, .services, .doc-grid, .pilares { grid-template-columns: 1fr; }
  /* Banners con texto diseñado dentro: mostrar la imagen completa sin recortar.
     Los botones bajan debajo de la imagen para no taparla. */
  .hero-slide {
    min-height: 0; display: flex; flex-direction: column;
    background-size: contain; background-position: center top; background-repeat: no-repeat;
    background-color: transparent;
  }
  /* Reserva con padding-top el alto de la imagen (16:9) y apila el contenido debajo */
  .hero-slide-content { position: static; padding: 56.25% 24px 12px; }
  .hero-slide-content .eyebrow { display: none; }
  .hero-slide-content .btn-row { justify-content: center; }
  .hero-slide-content .btn-ghost { border-color: var(--navy); color: var(--navy); }
  .hero-slide-overlay { display: none; }
  .hero-carousel .carousel-dots { position: static; margin-top: 14px; }
  .hero-carousel .carousel-dots button { background: #cbd2e0; }
  .hero-carousel .carousel-dots button[aria-selected="true"] { background: var(--navy); }
  .board-item, .person { flex-basis: 100%; max-width: 280px; }
  .navbar .cta { display: none; }
  .navbar .brand span { font-size: 14px; }
  footer .container { grid-template-columns: 1fr; gap: 28px; }
  .marquee-track .logo-item { width: 190px; height: 112px; padding: 16px 20px; }
  .marquee-track .logo-item img { max-height: 78px; }
  form.contact-form { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  [data-aos] { opacity: 1; transform: none; }
}

/* ---------- Redes sociales (home) ---------- */
.redes-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.red-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 30px 20px; border-radius: var(--radius); background: #fff; color: var(--navy);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm); text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease, color .22s ease;
}
.red-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.red-icono {
  width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(44,45,110,.10); transition: background .22s ease, color .22s ease;
}
.red-card:hover .red-icono { color: #fff; }
.red-instagram:hover .red-icono { background: #d62976; }
.red-linkedin:hover  .red-icono { background: #0a66c2; }
.red-facebook:hover  .red-icono { background: #1877f2; }
.red-x:hover         .red-icono { background: #111; }
.red-nombre { font-weight: 700; font-size: 15px; }
@media (max-width: 620px) { .redes-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Frase de cierre ---------- */
.cierre-section { padding: 64px 0; text-align: center; background: var(--navy); }
.cierre-frase {
  font-family: Georgia, serif; font-style: italic; color: #fff; margin: 0 auto; max-width: 720px;
  font-size: clamp(18px, 2.2vw, 24px); line-height: 1.5;
}
/* Los íconos del bloque de contacto van sobre fondo claro */
.contact-info .social-icons a { background: rgba(44,45,110,.10); color: var(--navy); }
.contact-info .social-icons a:hover { background: var(--navy); color: #fff; }

/* ---------- Proyectos ---------- */
.proyectos-lista { display: flex; flex-direction: column; gap: 28px; }
.proyecto-card {
  display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.proyecto-card:not(:has(.proyecto-foto)) { grid-template-columns: 1fr; }
.proyecto-foto img { width: 100%; height: 100%; min-height: 200px; object-fit: cover; }
.proyecto-cuerpo { padding: 28px 28px 28px 0; }
.proyecto-card:not(:has(.proyecto-foto)) .proyecto-cuerpo { padding: 28px; }
.proyecto-cuerpo h2 { font-size: 21px; margin: 0 0 12px; }
.proyecto-cuerpo p { color: var(--muted); font-size: 15px; margin: 0 0 18px; }
.proyecto-docs { display: flex; flex-wrap: wrap; gap: 10px; }
.proyecto-docs a {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  background: var(--bg-soft); color: var(--navy); border: 1px solid var(--border);
  padding: 9px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  transition: background .18s ease, color .18s ease;
}
.proyecto-docs a:hover { background: var(--navy); color: #fff; }

/* ---------- Página institucional genérica ---------- */
.prosa { max-width: 760px; }
.prosa p { color: var(--muted); font-size: 16px; margin: 0 0 18px; line-height: 1.75; }

@media (max-width: 760px) {
  .proyecto-card { grid-template-columns: 1fr; }
  .proyecto-cuerpo { padding: 24px; }
  .proyecto-foto img { min-height: 180px; }
}

/* ---------- Menú con desplegables ---------- */
.nav-item { position: relative; }
.nav-item > a { display: inline-flex; align-items: center; gap: 5px; }
.nav-item .caret { font-size: 10px; opacity: .65; transition: transform .18s ease; }
.nav-item.open > a .caret, .nav-item:hover > a .caret { transform: rotate(180deg); }
.submenu {
  position: absolute; top: 100%; left: 0; min-width: 215px; z-index: 70;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow-md); padding: 8px; display: none; flex-direction: column; gap: 2px;
}
.nav-item:hover .submenu, .nav-item.open .submenu, .submenu:focus-within { display: flex; }
.submenu a { white-space: nowrap; font-size: 13.5px; padding: 9px 12px; border-radius: 8px; }

@media (max-width: 980px) {
  /* En el menú móvil los submenús se despliegan en vertical, sin superponerse */
  .navbar nav .nav-item { width: 100%; }
  .navbar nav .nav-item > a { width: 100%; justify-content: space-between; }
  .submenu {
    position: static; display: none; border: 0; box-shadow: none; padding: 0 0 6px 14px;
    border-left: 2px solid var(--border); border-radius: 0; margin: 2px 0 6px 12px; min-width: 0;
  }
  .nav-item:hover .submenu { display: none; }   /* en táctil manda el clic, no el hover */
  .nav-item.open .submenu { display: flex; }
}
