/*
   ____  _   _ ____    _    _   _   _
  |  _ \| | | | __ )  / \  | | | | | |
  | | | | | | |  _ \ / _ \ | | | | | |
  | |_| | |_| | |_) / ___ \| |_| |_| |
  |____/ \___/|____/_/   \_\_____\___/

  Dubalu — Plataforma Buen Gobierno · 2026
*/

/* =========================================================
   PBG — v3 components (clone-fidelity to PDF design)
   Layered on top of tokens.css. Includes:
   - Top navbar v3 (logo + search + actions + sub-nav)
   - Banner carousel
   - "¿Qué necesitas hacer hoy?" red gradient card
   - Category tabs + horizontal scroll listings
   - Beneficios destacados (tagged image cards, scroll)
   - Tarjeta promo banner
   - Noticias/blog scroll
   - Footer v3
   ========================================================= */

/* ——— Logo PT (SVG inline marker) ——— */
.pt-logo { display:flex; align-items:center; gap: 12px; }
.pt-logo svg { display:block; }
.pt-logo .wordmark { line-height: 1; }
.pt-logo .wordmark .top {
  font-family: var(--font-display); font-weight: 700;
  font-size: 14px; letter-spacing: .04em; color: var(--ink-900);
  display:block;
}
.pt-logo .wordmark .bot {
  font-family: var(--font-display); font-weight: 400;
  font-size: 12px; letter-spacing: .14em; color: var(--ink-500);
  margin-top: 2px; display:block;
}
.pt-logo--lg .wordmark .top { font-size: 18px; }
.pt-logo--lg .wordmark .bot { font-size: 13px; letter-spacing: .16em; }

/* ——— Navbar v3 (sticky top) ——— */
.nav-v3 {
  position: relative; z-index: 60;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.2) blur(16px);
  -webkit-backdrop-filter: saturate(1.2) blur(16px);
  border-bottom: 1px solid var(--hairline);
}
.nav-v3 .topline {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px; align-items: center;
  padding: 14px 0;
}
.nav-v3 .search-wrap {
  display:flex; align-items:center;
  background: var(--gray-100);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 4px 4px 4px 18px;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav-v3 .search-wrap:focus-within { background: #fff; border-color: var(--ink-300); }
.nav-v3 .search-wrap input {
  flex:1; border:0; background: transparent;
  padding: 10px 0; font: inherit; color: var(--text);
  font-size: 14.5px;
}
.nav-v3 .search-wrap input::placeholder { color: var(--ink-500); }
.nav-v3 .search-wrap input:focus { outline: none; }
.nav-v3 .search-wrap .go-btn {
  width: 44px; height: 38px; border-radius: var(--radius-pill);
  background: var(--red-600); color: #fff; border: 0;
  display:grid; place-items:center;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.nav-v3 .search-wrap .go-btn:hover { background: var(--red-700); transform: translateY(-1px); }

.nav-v3 .actions { display:flex; align-items:center; gap: 28px; }
.nav-v3 .actions a, .nav-v3 .actions button { color: var(--ink-900); font-size: 14px; font-weight: 500; display:inline-flex; align-items:center; gap: 6px; background: transparent; border:0; padding:0; }
.nav-v3 .actions a:hover, .nav-v3 .actions button:hover { color: var(--red-600); }
.nav-v3 .cart-btn { position: relative; }
.nav-v3 .cart-btn .count {
  position: absolute; top: -4px; right: -8px;
  background: var(--red-600); color: #fff; font-size: 10px; font-weight: 600;
  border-radius: 999px; min-width: 16px; padding: 2px 5px; line-height: 1;
  display:inline-flex; justify-content:center;
}
.nav-v3 .avatar {
  width: 36px; height: 36px; border-radius: 999px;
  background: var(--red-600); color: #fff;
  display:grid; place-items:center;
  font-weight: 600; font-size: 13px; letter-spacing: .02em;
}

.nav-v3 .subnav {
  display:flex; align-items:center; gap: 28px;
  padding: 0 0 14px;
  font-size: 14.5px;
}
.nav-v3 .subnav a {
  color: var(--ink-700); font-weight: 500;
  padding: 8px 0; position: relative;
  display:inline-flex; align-items:center; gap: 6px;
}
.nav-v3 .subnav a:hover { color: var(--ink-900); }
.nav-v3 .subnav a.active { color: var(--red-600); font-weight: 600; }
.nav-v3 .subnav a.active:not(.subnav-cta)::after {
  content:""; position:absolute; left:0; right:0; bottom: 4px; height: 2px; background: var(--red-600); border-radius: 2px;
}
.nav-v3 .subnav .subnav-cta {
  margin-left: auto;
  background: var(--red-600); color: #fff !important;
  padding: 8px 16px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 13.5px;
  display:inline-flex; align-items:center;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.nav-v3 .subnav .subnav-cta:hover { background: var(--red-700); color: #fff !important; transform: translateY(-1px); }
.nav-v3 .subnav .subnav-cta.active { color: #fff !important; }
.nav-v3 .subnav .subnav-cta + .sep, .nav-v3 .subnav .sep:has(+ .subnav-cta) { display: none; }
.nav-v3 .subnav .sep { width: 1px; height: 18px; background: var(--ink-300); opacity: .5; }
.nav-v3 .subnav .chev { opacity: .6; }

@media (max-width: 900px){
  .nav-v3 .topline { grid-template-columns: auto 1fr; gap: 12px; }
  .nav-v3 .actions { display: none; }
  .nav-v3 .subnav { overflow-x: auto; white-space: nowrap; gap: 18px; padding-bottom: 10px; }
  .nav-v3 .subnav::-webkit-scrollbar { display: none; }
}

/* ——— Banner carousel ——— */
.banner-carousel {
  position: relative;
  margin-top: 18px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.banner-track {
  display: flex; transition: transform 600ms var(--ease);
}
.banner-slide {
  flex: 0 0 100%;
  position: relative; aspect-ratio: 24/7;
  background: var(--gray-200);
}
.banner-slide img { width:100%; height:100%; object-fit: cover; }
.banner-slide .veil {
  position:absolute; inset:0;
  background: linear-gradient(95deg, rgba(20,16,14,.62) 0%, rgba(20,16,14,.28) 45%, rgba(20,16,14,0) 80%);
}
.banner-slide .copy {
  position:absolute; left: 56px; top: 50%; transform: translateY(-50%);
  color: #fff; max-width: 460px;
}
.banner-slide .eyebrow { color: rgba(255,255,255,.78); }
.banner-slide h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1.1; letter-spacing: -.02em;
  margin: 10px 0 14px;
}
.banner-slide p { font-size: 15px; color: rgba(255,255,255,.85); max-width: 38ch; margin: 0 0 22px; }
.banner-dots {
  position:absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  display:flex; gap: 8px; z-index: 2;
}
.banner-dots button {
  width: 28px; height: 4px; border-radius: 999px;
  background: rgba(255,255,255,.45); border: 0; padding: 0;
  transition: background var(--dur) var(--ease), width var(--dur) var(--ease);
}
.banner-dots button.is-active { background: #fff; width: 40px; }
.banner-arrows {
  position:absolute; inset: 0; pointer-events: none;
}
.banner-arrows button {
  pointer-events: auto;
  position:absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 999px;
  background: rgba(255,255,255,.92); border: 0;
  display:grid; place-items:center; color: var(--ink-900);
  box-shadow: var(--shadow-sm);
  transition: background var(--dur) var(--ease);
}
.banner-arrows button:hover { background: #fff; }
.banner-arrows .prev { left: 18px; }
.banner-arrows .next { right: 18px; }
@media (max-width: 700px){
  .banner-slide { aspect-ratio: 4/3; }
  .banner-slide .copy { left: 24px; right: 24px; }
  .banner-arrows button { width: 36px; height: 36px; }
}

/* ——— Hero: ¿Qué necesitas hacer hoy? ——— */
.hoy {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: 48px clamp(28px, 4vw, 56px);
  color: #fff;
  background:
    radial-gradient(circle at 80% 50%, rgba(255,210,120,.35), transparent 55%),
    linear-gradient(115deg, #7E0E16 0%, #B5121B 38%, #C58A00 100%);
  isolation: isolate;
}
.hoy::after {
  content:""; position:absolute; inset:0; pointer-events:none;
  background-image:
    radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .35; mix-blend-mode: overlay;
}
.hoy-layout {
  display:grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 40px;
  align-items: center;
  position: relative; z-index: 1;
}
.hoy h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.875rem, 3.4vw, 2.75rem); line-height: 1.05; letter-spacing: -.025em;
  margin: 0 0 14px;
}
.hoy p { color: rgba(255,255,255,.88); margin: 0 0 24px; font-size: 15.5px; }
.hoy .cta {
  display:inline-flex; align-items:center; gap:10px;
  background: #fff; color: var(--ink-900);
  padding: 14px 22px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 14.5px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.hoy .cta:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.hoy .cta .arr { color: var(--red-600); }

.hoy-cats {
  display:grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.hoy-cat {
  background: #fff; color: var(--ink-900);
  border-radius: 18px; padding: 22px 16px;
  text-align: center;
  display:flex; flex-direction: column; align-items:center; gap: 12px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  min-height: 160px; justify-content: center;
}
.hoy-cat:hover { transform: translateY(-3px); box-shadow: 0 12px 24px -10px rgba(0,0,0,.22); }
.hoy-cat .icon-tile {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--red-50); color: var(--red-600);
  display:grid; place-items:center;
}
.hoy-cat .icon-tile.is-amber { background: var(--amber-100); color: var(--amber-700); }
.hoy-cat .icon-tile.is-sky { background: var(--sky-100); color: var(--sky-700); }
.hoy-cat .icon-tile.is-jade { background: var(--jade-100); color: var(--jade-700); }
.hoy-cat .icon-tile.is-violet { background: var(--violet-100); color: var(--violet-700); }
.hoy-cat h4 { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: -.005em; }
.hoy-cat small { font-size: 12px; color: var(--ink-500); line-height: 1.4; }
@media (max-width: 1100px){
  .hoy-layout { grid-template-columns: 1fr; gap: 28px; }
  .hoy-cats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px){
  .hoy-cats { grid-template-columns: repeat(2, 1fr); }
}

/* ——— Tabs (Productos | Servicios | Experiencias | Hospedaje) ——— */
.tabs {
  display:flex; align-items:center; gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
  overflow-x: auto;
}
.tabs::-webkit-scrollbar { display:none; }
.tabs button {
  background: transparent; border: 0;
  padding: 14px 18px;
  font-size: 15px; font-weight: 500; color: var(--ink-500);
  position: relative; white-space: nowrap;
  transition: color var(--dur) var(--ease);
}
.tabs button:hover { color: var(--ink-900); }
.tabs button.is-active { color: var(--ink-900); font-weight: 600; }
.tabs button.is-active::after {
  content:""; position:absolute; left: 14px; right: 14px; bottom: -1px;
  height: 2px; background: var(--red-600);
}
.tabs .sep { width: 1px; height: 22px; background: var(--ink-300); opacity: .4; margin: 0 4px; }

/* ——— Horizontal scroll listing ——— */
.scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 20px;
  overflow-x: auto;
  padding: 4px 4px 20px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.scroll-row::-webkit-scrollbar { height: 6px; }
.scroll-row::-webkit-scrollbar-thumb { background: var(--ink-300); border-radius: 999px; }
.scroll-row > * { scroll-snap-align: start; }

/* ——— Scroll listings: right-edge fade + next button (wraps .scroll-row / .programs-row) ——— */
.scroll-wrap { position: relative; }
.scroll-wrap::after {
  content: ""; position: absolute; top: 0; bottom: 0; right: 0;
  width: 96px; pointer-events: none; z-index: 1;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.85) 60%, #fff 100%);
  opacity: 1; transition: opacity var(--dur) var(--ease);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.scroll-wrap.at-end::after { opacity: 0; }
.scroll-wrap > .scroll-next {
  position: absolute; top: 50%; right: 12px; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 999px;
  background: #fff; border: 1px solid var(--border);
  display: grid; place-items: center; color: var(--ink-900);
  box-shadow: var(--shadow-sm); cursor: pointer; z-index: 2;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.scroll-wrap > .scroll-next:hover { background: var(--gray-50, #FAFBFC); transform: translateY(-50%) scale(1.04); }
.scroll-wrap > .scroll-prev {
  position: absolute; top: 50%; left: 12px; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 999px;
  background: #fff; border: 1px solid var(--border);
  display: grid; place-items: center; color: var(--ink-900);
  box-shadow: var(--shadow-sm); cursor: pointer; z-index: 2;
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur) var(--ease), background var(--dur) var(--ease);
}
.scroll-wrap.has-prev > .scroll-prev { opacity: 1; pointer-events: auto; }
.scroll-wrap.at-end > .scroll-next { opacity: 0; pointer-events: none; }

.scroll-row--4 { grid-auto-columns: minmax(240px, calc(25% - 15px)); }
.scroll-row--3 { grid-auto-columns: minmax(280px, calc(33.33% - 14px)); }
@media (max-width: 1100px){ .scroll-row--4, .scroll-row--3 { grid-auto-columns: minmax(240px, 60%); } }
@media (max-width: 600px){ .scroll-row--4, .scroll-row--3 { grid-auto-columns: minmax(220px, 80%); } }

/* ——— Product card v3 ——— */
.pcard {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display:flex; flex-direction:column;
  height: 100%;
  min-height: 440px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.pcard .img-wrap {
  height: 200px; flex: 0 0 200px;
  background: var(--gray-100);
  border-radius: 12px; overflow: hidden;
  margin-bottom: 14px;
}
.pcard .img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard .tags { display:flex; flex-wrap:wrap; gap:6px; margin-bottom: 8px; min-height: 22px; }
.pcard .tags .tag { font-size: 11px; padding: 3px 8px; }
.pcard h3 { margin: 0 0 4px; font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; min-height: 2.6em; display:-webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow:hidden; }
.pcard .vendor { font-size: 12.5px; color: var(--ink-500); margin: 0 0 14px; display:flex; align-items:center; gap: 6px; min-height: 18px; }
.pcard .vendor .dot { width:3px; height:3px; border-radius:999px; background: var(--ink-300); }
.pcard .divider { height: 1px; background: var(--border); margin: 6px 0 12px; }
.pcard .price { display:flex; align-items:baseline; gap: 6px; margin-bottom: 4px; }
.pcard .price .num { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -.02em; }
.pcard .price .cur { font-size: 12px; color: var(--ink-500); font-weight: 500; }
.pcard .price .unit { font-size: 11.5px; color: var(--ink-500); margin-left:auto; }
.pcard .rating { font-size: 12px; color: var(--ink-500); display:flex; align-items:center; gap: 4px; }
.pcard .rating .star { color: #E2A22A; }
.pcard.free .price .num::before { content: "Sin costo"; }

/* ——— Beneficio card (with tag corner) ——— */
.bcard {
  position: relative;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display:flex; flex-direction:column;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.bcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.bcard { height: 100%; min-height: 420px; }
.bcard .body { display:flex; flex-direction:column; gap: 6px; padding: 16px 18px 20px; }
.bcard .body .divider { height: 1px; background: var(--border); margin: 8px 0 6px; }
.bcard .body .price { display:flex; align-items:baseline; gap: 6px; }
.bcard .body .price .num { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; color: var(--ink-900); }
.bcard .body .price .cur { font-size: 11.5px; color: var(--ink-500); font-weight: 500; }
.bcard .body .price .unit { font-size: 11.5px; color: var(--ink-500); margin-left:auto; }
.bcard .body .rating { font-size: 12px; color: var(--ink-500); display:flex; align-items:center; gap: 4px; }
.bcard .body .rating .star { color: #E2A22A; }
.bcard .img-wrap { height: 200px; flex: 0 0 200px; background: var(--gray-100); position: relative; }
.bcard .img-wrap img { width:100%; height:100%; object-fit: cover; display:block; }
.bcard .body { flex:1; }
.bcard h3 { display:-webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow:hidden; }
.bcard p { display:-webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow:hidden; }
.bcard .badge {
  position:absolute; top: 12px; left: 12px;
  background: var(--jade-500); color: #fff;
  padding: 5px 12px; border-radius: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: -.005em;
}
.bcard .badge.is-violet { background: #6B3FCB; }
.bcard .badge.is-amber  { background: #D88913; }
.bcard .badge.is-red    { background: #D31F2A; }
.bcard .badge.is-sky    { background: #2E73AF; }
.bcard .body { padding: 18px 18px 22px; }
.bcard h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
.bcard p  { margin: 0; font-size: 13.5px; color: var(--ink-500); }

/* ——— Promo tarjeta ——— */
.tarjeta-promo {
  display:grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: 32px; align-items:center;
  background: linear-gradient(180deg, var(--gray-50), var(--gray-100));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px clamp(28px, 4vw, 56px);
  position: relative; overflow: hidden;
}
.tarjeta-promo::after {
  content:""; position:absolute; right: -120px; top: -80px;
  width: 320px; height: 320px; border-radius: 999px;
  background: radial-gradient(circle, rgba(211,31,42,.10), transparent 60%);
  pointer-events: none;
}
.tarjeta-promo .visual {
  position: relative; aspect-ratio: 4/3; min-height: 240px;
}
.tarjeta-promo .phone, .tarjeta-promo .card-mock {
  position: absolute; border-radius: 18px; overflow: hidden;
  box-shadow: 0 18px 40px -16px rgba(0,0,0,.32), 0 4px 10px rgba(0,0,0,.06);
}
.tarjeta-promo .phone {
  width: 46%; aspect-ratio: 9/19; left: 0; top: 8%;
  background: var(--ink-900); border-radius: 28px;
  display:flex; flex-direction:column; justify-content:flex-start;
  padding: 16px 12px;
}
.tarjeta-promo .phone .screen {
  background: linear-gradient(180deg, #fff 0%, #FDE3E5 100%);
  border-radius: 18px; flex:1; padding: 12px;
  display:flex; flex-direction:column; gap: 10px;
}
.tarjeta-promo .phone .ph-top { display:flex; justify-content:space-between; font-size: 9px; color: var(--ink-500); font-weight: 600; }
.tarjeta-promo .phone .ph-card {
  background: linear-gradient(135deg, #C58A00, #7E0E16);
  border-radius: 10px; padding: 10px;
  color: #fff; font-size: 10px;
}
.tarjeta-promo .phone .ph-card .saldo { font-size: 9px; opacity: .8; }
.tarjeta-promo .phone .ph-card .monto { font-size: 14px; font-weight: 700; margin-top: 2px; }
.tarjeta-promo .phone .ph-actions { display:grid; grid-template-columns: repeat(4,1fr); gap: 6px; margin-top: 4px; }
.tarjeta-promo .phone .ph-actions span {
  background: var(--red-600); width: 100%; aspect-ratio: 1; border-radius: 999px;
  display:grid; place-items:center; color:#fff; font-size: 8px;
}
.tarjeta-promo .card-mock {
  width: 58%; aspect-ratio: 16/10; right: 0; bottom: 0;
  background: linear-gradient(120deg, #fff 0%, #fff 55%, #FDE3E5 100%);
  border: 1px solid var(--border);
  padding: 16px;
  display:flex; flex-direction: column; justify-content: space-between;
}
.tarjeta-promo .card-mock .chip { width: 32px; height: 22px; background: linear-gradient(120deg, #C58A00, #7E5300); border-radius: 4px; }
.tarjeta-promo .card-mock .num { font-family: var(--font-mono); font-size: 13px; letter-spacing: .12em; color: var(--ink-700); }
.tarjeta-promo .card-mock .name { font-size: 9px; color: var(--ink-500); letter-spacing: .08em; }
.tarjeta-promo .card-mock .pt { position:absolute; top: 10px; right: 12px; }
.tarjeta-promo h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.625rem, 2.6vw, 2.25rem); margin: 0 0 10px; letter-spacing: -.02em;
}
.tarjeta-promo .lead { font-size: 15.5px; color: var(--text-soft); margin: 0 0 22px; max-width: 50ch; }
.tarjeta-promo .perks { display:flex; gap: 24px; flex-wrap: wrap; margin: 0 0 24px; }
.tarjeta-promo .perks .perk { display:flex; align-items:center; gap:10px; font-size: 13.5px; color: var(--ink-700); }
.tarjeta-promo .perks .icon-tile { width: 36px; height: 36px; border-radius: 10px; background: var(--red-50); color: var(--red-600); display:grid; place-items:center; }
.tarjeta-promo .cta-row { display:flex; align-items:center; gap: 18px; flex-wrap: wrap; }
.tarjeta-promo .text-link { color: var(--red-600); font-weight: 600; font-size: 14px; }
.tarjeta-promo .text-link:hover { text-decoration: underline; }
@media (max-width: 900px){ .tarjeta-promo { grid-template-columns: 1fr; } }

/* ——— Noticias / blog ——— */
.ncard {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  display:flex; flex-direction:column;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.ncard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.ncard { height: 100%; min-height: 420px; }
.ncard .img-wrap { height: 200px; flex: 0 0 200px; background: var(--gray-100); }
.ncard .img-wrap img { width:100%; height:100%; object-fit:cover; display:block; }
.ncard .body { flex:1; }
.ncard h3 { display:-webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow:hidden; }
.ncard p { display:-webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow:hidden; }
.ncard .body { padding: 18px 18px 22px; display:flex; flex-direction:column; gap: 10px; }
.ncard .meta { display:flex; gap: 10px; align-items:center; font-size: 12px; color: var(--ink-500); }
.ncard .meta .pill { background: var(--red-50); color: var(--red-700); padding: 3px 8px; border-radius: 999px; font-weight: 600; }
.ncard h3 { margin: 0; font-size: 17px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }
.ncard p { margin: 0; color: var(--text-soft); font-size: 13.5px; line-height: 1.55; }
.ncard .leer { margin-top: auto; color: var(--red-600); font-weight: 600; font-size: 13.5px; }

/* ——— Section header ——— */
.section-head {
  display:flex; align-items:flex-end; justify-content:space-between;
  gap: 16px; margin-bottom: 22px; flex-wrap: wrap;
}
.section-head h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.5rem, 2.4vw, 2.125rem); margin: 0; letter-spacing: -.022em;
}
.section-head .link {
  color: var(--red-600); font-weight: 600; font-size: 14.5px;
  display:inline-flex; align-items:center; gap: 6px;
}
.section-head .link:hover { text-decoration: underline; }

/* ——— Impact (¿proyecto y programas?) ——— */
.impact {
  display:grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
@media (max-width: 1000px){ .impact { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px){ .impact { grid-template-columns: 1fr; } }
.impact-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  display:flex; flex-direction:column;
  height: 100%;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.impact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.impact-card .img-wrap { height: 186px; flex: 0 0 186px; position: relative; background: var(--gray-100); }
.impact-card .img-wrap img { width:100%; height:100%; object-fit:cover; display:block; }
.impact-card p { flex: 0 0 auto; }
.impact-card .num {
  position:absolute; top: 14px; left: 14px;
  width: 36px; height: 36px; border-radius: 999px;
  background: var(--red-600); color: #fff;
  display:grid; place-items:center;
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
}
.impact-card p { padding: 14px 16px 16px; margin: 0; font-size: 13px; color: var(--text-soft); line-height: 1.45; }
.impact-card.is-cta {
  background: var(--violet-100);
  padding: 20px; gap: 10px;
  justify-content: flex-start; align-items: flex-start;
}
.impact-card.is-cta h3 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -.015em; line-height: 1.2; }
.impact-card.is-cta p { padding: 0; color: var(--ink-700); font-size: 14px; flex: 0 0 auto; margin: 0 0 6px; }
.impact-card.is-cta .btn { margin-top: 0; }

/* ——— Footer v3 ——— */
.foot-v3 {
  background: var(--gray-100);
  padding: 64px 0 0;
  margin-top: 96px;
  border-top: 1px solid var(--border);
}
.foot-v3 .grid {
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  gap: 48px; align-items:flex-start;
}
@media (max-width: 1000px){ .foot-v3 .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px){ .foot-v3 .grid { grid-template-columns: 1fr; } }
.foot-v3 .institutos { display:flex; flex-direction:column; gap: 22px; }
.foot-v3 .inst {
  display:flex; align-items:center; gap: 14px;
}
.foot-v3 .inst .badge {
  width: 140px; height: 88px; border-radius: 0;
  background: transparent; border: 0;
  display:grid; place-items:center;
  flex: none;
}
.foot-v3 .inst .badge img {
  width: 100%; height: 100%; object-fit: contain;
}
.foot-v3 .inst .lbl { display: none; }
.foot-v3 .contacto, .foot-v3 .info { font-size: 14px; line-height: 1.9; color: var(--ink-700); }
.foot-v3 h5 { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--ink-900); margin: 0 0 8px; letter-spacing: -.005em; }
.foot-v3 a { color: var(--ink-700); }
.foot-v3 a:hover { color: var(--red-600); }
.foot-v3 .socials { display:flex; flex-direction:column; gap: 14px; align-items: flex-start; }
.foot-v3 .socials .title { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--red-600); }
.foot-v3 .socials .icons { display:flex; gap: 10px; }
.foot-v3 .socials .icons a {
  width: 38px; height: 38px; border-radius: 999px;
  background: var(--red-600); color: #fff;
  display:grid; place-items:center;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.foot-v3 .socials .icons a:hover { background: var(--red-700); transform: translateY(-2px); }

.foot-bottom {
  background: var(--ink-700); color: var(--ink-100);
  margin-top: 64px;
  font-size: 13px;
}
.foot-bottom .row {
  display:flex; align-items:center; justify-content:space-between;
  padding: 18px 0; flex-wrap: wrap; gap: 12px;
}
.foot-bottom a { color: inherit; }
.foot-bottom a:hover { color: #fff; }
.foot-bottom .links { display:flex; gap: 28px; flex-wrap: wrap; }

/* ——— Misc tweaks ——— */
.tag.tag-jade-soft { background: var(--jade-100); color: var(--jade-700); }
.tag.tag-sky-soft { background: var(--sky-100); color: var(--sky-700); }
.tag.tag-amber-soft { background: var(--amber-100); color: var(--amber-700); }
.tag.tag-violet-soft { background: var(--violet-100); color: var(--violet-700); }

.skeleton { background: linear-gradient(90deg, var(--gray-100) 0%, var(--gray-200) 50%, var(--gray-100) 100%); background-size: 200% 100%; animation: skel 1.4s ease-in-out infinite; }
@keyframes skel { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
