/* ====================================================================
   KOBRUX · base.css — design system comun (cabecera, footer, tipografia)
   Las paginas pueden añadir <style> propio que sobreescribe esto.
   ==================================================================== */
:root {
  --primary: #0B0F24;
  --primary-mid: #141A33;
  --primary-light: #20264A;
  --green: #7C6BFF;
  --green-dark: #5B49E0;
  --green-soft: rgba(124,107,255,0.1);
  --green-glow: 0 4px 24px rgba(124,107,255,0.25);
  --amber: #F5A623;
  --amber-soft: rgba(245,166,35,0.1);
  --bg-light: #F5F6FB;
  --bg-white: #FFFFFF;
  --text-primary: #1A2332;
  --text-body: #4A5568;
  --text-soft: #8896A6;
  --text-white: #FFFFFF;
  --text-light: #C1CCD9;
  --border: #E4E9F0;
  --border-dark: rgba(255,255,255,0.07);
  --shadow-sm: 0 1px 4px rgba(11,15,36,0.06);
  --shadow-md: 0 4px 20px rgba(11,15,36,0.08);
  --shadow-lg: 0 12px 48px rgba(11,15,36,0.1);
  --radius: 10px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --heading: 'Space Grotesk', sans-serif;
  --body: 'Inter', sans-serif;
  --max-w: 1180px;
  --py: 96px;
  --py-m: 60px;
  --header-h: 66px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--text-body);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color .25s, border-color .25s, background .25s; }

/* ─── Layout helpers ─── */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
.sec { padding: var(--py) 0; }
.sec--dark { background: var(--primary); color: var(--text-white); }
.sec--mid  { background: var(--primary-mid); color: var(--text-white); }
.sec--light{ background: var(--bg-light); }
.t-center { text-align: center; }

/* ─── Typography ─── */
h1, h2, h3, h4 { font-family: var(--heading); color: var(--text-primary); line-height: 1.18; letter-spacing: -.025em; }
.sec--dark h2, .sec--dark h3, .sec--dark h4,
.sec--mid h2, .sec--mid h3, .sec--mid h4 { color: var(--text-white); }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
.label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--heading); font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; color: var(--green); margin-bottom: 14px;
}
.label::before { content: ''; width: 20px; height: 2px; background: var(--green); border-radius: 1px; }
.sub { font-size: 1.05rem; color: var(--text-soft); max-width: 600px; line-height: 1.75; margin-top: 10px; }
.sec--dark .sub, .sec--mid .sub { color: var(--text-light); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--heading); font-weight: 600; font-size: .95rem;
  padding: 15px 30px; border-radius: var(--radius); border: none; cursor: pointer;
  transition: all .3s; white-space: nowrap;
}
.btn--green { background: var(--green); color: #fff; box-shadow: var(--green-glow); }
.btn--green:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(124,107,255,.35); }
.btn--outline { background: transparent; color: var(--text-white); border: 1.5px solid rgba(255,255,255,.25); }
.btn--outline:hover { border-color: #fff; background: rgba(255,255,255,.04); }
.btn--dark { background: var(--primary); color: #fff; }
.btn--dark:hover { background: var(--primary-mid); transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ─── Barra de progreso de scroll ─── */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 1100;
  background: linear-gradient(90deg, var(--green), #2DD4F2);
  box-shadow: 0 0 10px rgba(124,107,255,.6); transition: width .08s linear;
}

/* ─── Skip link (accesibilidad) ─── */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--green); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
  font-family: var(--heading); font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ─── Header / nav (2 niveles + mega menu) ─── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(11,15,36,.86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-dark);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled { background: rgba(11,15,36,.97); box-shadow: 0 8px 34px rgba(0,0,0,.32); }
.site-header .wrap, .site-footer .wrap { max-width: 1200px; }

/* Barra superior */
.topbar { border-bottom: 1px solid var(--border-dark); overflow: hidden; transition: max-height .35s var(--ease), opacity .3s; max-height: 44px; }
.site-header.scrolled .topbar { max-height: 0; opacity: 0; border-color: transparent; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 40px; }
.topbar__trust { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--text-soft); }
.topbar__trust svg { width: 15px; height: 15px; color: var(--green); }
.topbar__links { display: inline-flex; align-items: center; gap: 22px; }
.topbar__links a { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; color: var(--text-light); font-weight: 500; }
.topbar__links a:hover { color: var(--green); }
.topbar__links svg { width: 15px; height: 15px; }

/* Barra de navegacion */
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); transition: height .3s var(--ease); }
.site-header.scrolled .site-header__inner { height: 58px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { width: 34px; height: 34px; flex-shrink: 0; }
.brand__mark svg { width: 100%; height: 100%; overflow: visible; }
/* Concepto "Órbita": el arco-flecha orbita la K (recuperación en movimiento) */
.brand__orbit { transform-box: view-box; transform-origin: 36px 36px; animation: kbxOrbit 22s linear infinite; }
.brand:hover .brand__orbit { animation-duration: 6s; }
@keyframes kbxOrbit { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .brand__orbit { animation: none; } }
.brand__name { font-family: var(--heading); font-weight: 800; font-size: 1.22rem; color: #fff; letter-spacing: -.02em; }

.site-nav__list { list-style: none; display: flex; align-items: center; gap: 2px; }
.site-nav__list > li > a {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--heading); font-weight: 500; font-size: .9rem;
  color: var(--text-light); padding: 9px 13px; border-radius: 8px; position: relative;
}
.site-nav__list > li > a::after {
  content: ''; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 2px;
  background: var(--green); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.site-nav__list > li > a:hover { color: #fff; }
.site-nav__list > li > a:hover::after,
.site-nav__list > li > a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav__list > li > a[aria-current="page"] { color: #fff; }
.site-nav__list .caret { width: 14px; height: 14px; transition: transform .25s; }
.has-sub { position: relative; }
.has-sub:hover .caret { transform: rotate(180deg); }

/* Mega menu */
.megamenu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(10px);
  width: 620px; max-width: 92vw; background: var(--primary-mid);
  border: 1px solid var(--border-dark); border-radius: 16px; padding: 14px;
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: all .26s var(--ease);
}
.megamenu::before { content: ''; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.has-sub:hover .megamenu, .has-sub:focus-within .megamenu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.megamenu__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mm-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 11px; transition: background .2s; }
.mm-item:hover { background: rgba(255,255,255,.05); }
.mm-item__ic { width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px; background: var(--green-soft); display: flex; align-items: center; justify-content: center; }
.mm-item__ic svg { width: 19px; height: 19px; color: var(--green); }
.mm-item strong { display: block; font-family: var(--heading); font-size: .92rem; font-weight: 600; color: #fff; margin-bottom: 2px; }
.mm-item small { font-size: .8rem; color: var(--text-soft); line-height: 1.4; }
.mm-item--tool { grid-column: 1 / -1; border-top: 1px solid var(--border-dark); margin-top: 4px; padding-top: 14px; }
.mm-item--tool .mm-item__ic { background: rgba(45,212,242,.12); }
.mm-item--tool .mm-item__ic svg { color: #2DD4F2; }

.site-nav__cta { margin-left: 12px; }
.site-nav__cta .btn { padding: 10px 20px; font-size: .88rem; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2px; background: #fff; border-radius: 2px; transition: all .3s; }
.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); }

/* ─── Banda CTA previa al footer ─── */
.btn--wa { background: #25D366; color: #fff; }
.btn--wa:hover { background: #1FB855; transform: translateY(-2px); color: #fff; }
.btn--wa svg { width: 20px; height: 20px; }
.footer-cta {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--primary) 0%, var(--primary-light) 100%);
  border-top: 1px solid var(--border-dark);
}
.footer-cta::before {
  content: ''; position: absolute; top: -40%; right: -10%; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(124,107,255,.18), transparent 65%); pointer-events: none;
}
.footer-cta__inner {
  position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
  padding: 64px 0;
}
/* Motivo de orbita (concepto C) */
.orbit-deco { position: absolute; top: 50%; right: 4%; width: 300px; height: 300px; transform: translateY(-50%); pointer-events: none; opacity: .8; }
.orbit-deco__spin { transform-box: view-box; transform-origin: 120px 120px; animation: kbxOrbit 16s linear infinite; }
.orbit-deco__spin2 { transform-box: view-box; transform-origin: 120px 120px; animation: kbxOrbit 11s linear infinite reverse; }
@media (prefers-reduced-motion: reduce) { .orbit-deco__spin, .orbit-deco__spin2 { animation: none; } }
@media (max-width: 860px) { .orbit-deco { display: none; } }
.footer-cta h2 { color: #fff; }
.footer-cta p { color: var(--text-light); margin-top: 12px; max-width: 520px; line-height: 1.75; }
.footer-cta__btns { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.footer-cta__btns .btn { width: 100%; justify-content: center; }

/* ─── Footer ─── */
.site-footer { background: var(--primary); color: var(--text-light); padding-top: 64px; }
.site-footer__grid {
  display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px;
}
.site-footer__brand p { font-size: .9rem; line-height: 1.7; margin: 16px 0 18px; max-width: 320px; }
.site-footer__contact { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.site-footer__contact li, .site-footer__addr { display: inline-flex; align-items: center; gap: 9px; font-size: .9rem; color: var(--text-light); }
.site-footer__contact svg { width: 18px; height: 18px; flex-shrink: 0; }
.site-footer__wa { display: inline-flex; align-items: center; gap: 9px; color: #fff; font-weight: 600; }
.site-footer__wa svg { color: #25D366; }
.site-footer__wa:hover { color: #25D366; }
.site-footer__mail { display: inline-flex; align-items: center; gap: 9px; color: var(--green); font-weight: 500; }
.site-footer__mail svg { color: var(--green); }
.site-footer__mail:hover { color: #fff; }
.site-footer__addr svg { color: var(--green); }
.brand--footer .brand__name { font-size: 1.2rem; }
.site-footer__col .site-footer__h { font-family: var(--heading); font-weight: 600; color: #fff; font-size: .95rem; margin-bottom: 16px; }
.site-footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.site-footer__col a { font-size: .9rem; color: var(--text-light); }
.site-footer__col a:hover { color: var(--green); }
.site-footer__bottom { border-top: 1px solid var(--border-dark); padding: 22px 0; }
.site-footer__bottom-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer__bottom p { font-size: .8rem; color: var(--text-soft); }

/* ─── Volver arriba ─── */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 900;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--green-glow); opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--green-dark); transform: translateY(-2px); }
.to-top svg { width: 22px; height: 22px; }

/* ─── Banner de cookies ─── */
.cookie-banner {
  position: fixed; left: 22px; right: 22px; bottom: 22px; z-index: 1200;
  max-width: 580px; margin: 0 auto;
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 18px 50px rgba(11,15,36,.25); padding: 18px 20px;
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  transform: translateY(160%); transition: transform .55s var(--ease); opacity: 0;
}
.cookie-banner.show { transform: none; opacity: 1; }
.cookie-banner p { flex: 1 1 280px; font-size: .85rem; line-height: 1.55; color: var(--text-body); margin: 0; }
.cookie-banner a { color: var(--green-dark); border-bottom: 1px solid rgba(124,107,255,.35); font-weight: 500; }
.cookie-banner__btns { display: flex; gap: 10px; }
.cookie-banner__btns .btn { padding: 10px 20px; font-size: .85rem; }
.cookie-ghost { background: var(--bg-light); color: var(--text-body); }
.cookie-ghost:hover { background: var(--border); }
body.cookie-open .wa-float { bottom: 110px; }
@media (max-width: 560px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 16px; }
  .cookie-banner__btns { width: 100%; }
  .cookie-banner__btns .btn { flex: 1; justify-content: center; }
}

/* ─── Boton flotante WhatsApp ─── */
.wa-float {
  position: fixed; left: 22px; bottom: 22px; z-index: 900;
  display: inline-flex; align-items: center; gap: 9px;
  background: #25D366; color: #fff; font-family: var(--heading); font-weight: 600; font-size: .92rem;
  padding: 12px 18px 12px 14px; border-radius: 100px;
  box-shadow: 0 6px 22px rgba(37,211,102,.4); transition: transform .25s, box-shadow .25s;
}
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(37,211,102,.5); color: #fff; }
.wa-float svg { width: 24px; height: 24px; }
@media (max-width: 600px) {
  .wa-float span { display: none; }
  .wa-float { padding: 14px; left: 16px; bottom: 16px; }
  .wa-float svg { width: 26px; height: 26px; }
}

/* ─── Formulario (kf) ─── */
.kf { text-align: left; }
.kf__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.kf__field { margin-bottom: 16px; }
.kf label { display: block; font-family: var(--heading); font-size: .85rem; font-weight: 600; color: var(--text-primary); margin-bottom: 7px; }
.kf__opt { color: var(--text-soft); font-weight: 400; }
.kf input, .kf select, .kf textarea {
  width: 100%; font-family: var(--body); font-size: .95rem; color: var(--text-primary);
  padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius);
  background: #fff; transition: border-color .25s, box-shadow .25s;
}
.kf input::placeholder, .kf textarea::placeholder { color: var(--text-soft); }
.kf input:focus, .kf select:focus, .kf textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft);
}
.kf input[aria-invalid="true"], .kf textarea[aria-invalid="true"] { border-color: #E53E3E; }
.kf textarea { resize: vertical; min-height: 96px; }
.kf__check { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--text-body); margin: 4px 0 20px; }
.kf__check input { width: auto; margin-top: 3px; flex-shrink: 0; }
.kf__check a { color: var(--green-dark); border-bottom: 1px solid rgba(124,107,255,.3); }
.kf__check span { font-family: var(--body); font-weight: 400; }
.kf__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.kf__submit { width: 100%; justify-content: center; }
.kf__submit[disabled] { opacity: .6; cursor: not-allowed; }
.kf__msg { margin-top: 14px; font-size: .9rem; text-align: center; display: none; }
.kf__msg.show { display: block; }
.kf__msg.ok { color: var(--green-dark); }
.kf__msg.err { color: #E53E3E; }
@media (max-width: 560px) { .kf__row { grid-template-columns: 1fr; gap: 0; } }

/* ─── Animaciones scroll ─── */
.anim { opacity: 0; transform: translateY(24px); transition: opacity .55s ease, transform .55s ease; }
.anim.vis { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .anim { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ─── Responsive nav ─── */
@media (max-width: 1060px) {
  .topbar { display: none; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; top: var(--header-h); right: 0; bottom: 0; width: min(88%, 380px);
    background: var(--primary-mid); border-left: 1px solid var(--border-dark);
    transform: translateX(100%); transition: transform .3s var(--ease); overflow-y: auto; padding: 20px;
  }
  .site-nav.open { transform: translateX(0); }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav__list > li > a { padding: 14px 16px; font-size: 1rem; }
  .site-nav__list > li > a::after { display: none; }
  .megamenu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    width: auto; max-width: none; background: rgba(255,255,255,.03); margin: 4px 0 8px;
    padding: 6px; display: none; border-radius: 12px;
  }
  .megamenu__grid { grid-template-columns: 1fr; }
  .mm-item--tool { grid-column: auto; }
  .has-sub.open .megamenu { display: block; }
  .has-sub:hover .caret { transform: none; }
  .has-sub.open .caret { transform: rotate(180deg); }
  .site-nav__cta { margin: 14px 0 0; }
  .site-nav__cta .btn { width: 100%; justify-content: center; padding: 14px; }
}
@media (max-width: 860px) {
  .footer-cta__inner { grid-template-columns: 1fr; gap: 26px; padding: 48px 0; }
  .footer-cta__btns { flex-direction: row; flex-wrap: wrap; }
  .footer-cta__btns .btn { width: auto; }
}
@media (max-width: 768px) {
  .wrap { padding: 0 7%; }
  .sec { padding: var(--py-m) 0; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-cta__btns .btn { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

/* ====================================================================
   EFECTOS AVANZADOS · reveal, parallax, micro-interacciones, bandas
   ==================================================================== */

/* ─── Scroll reveal con stagger ─── */
[data-reveal] {
  opacity: 0; transform: translateY(34px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  will-change: opacity, transform;
}
[data-reveal="left"]  { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="scale"] { transform: scale(.94); }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none; }
}

/* ─── Botones: brillo y profundidad ─── */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent);
  transform: skewX(-18deg); transition: left .6s var(--ease);
}
.btn:hover::after { left: 130%; }
.btn--green { background-image: linear-gradient(135deg, #9B8CFF, var(--green-dark)); }

/* ─── Tarjetas: elevacion + borde luminoso ─── */
.s-card, .g-card, .d-card { will-change: transform; }
.g-card { position: relative; overflow: hidden; }
.g-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(124,107,255,.5), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s;
}
.g-card:hover::before { opacity: 1; }

/* ─── Banda parallax (rompe patron) ─── */
.band {
  position: relative; padding: 120px 0; color: #fff; overflow: hidden;
  background: var(--primary);
}
.band--img {
  background-size: cover; background-position: center;
}
@media (min-width: 1024px) { .band--fixed { background-attachment: fixed; } }
.band::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(11,15,36,.94) 0%, rgba(11,15,36,.78) 55%, rgba(27,45,74,.7) 100%);
}
.band > .wrap { position: relative; z-index: 1; }
.band .label { color: #BDB2FF; }
.band h2 { color: #fff; }
.band__lead { font-size: 1.15rem; color: var(--text-light); max-width: 640px; line-height: 1.8; margin: 14px 0 0; }
.band__cta { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ─── Banda de confianza (respaldo, sin datos inventados) ─── */
.trustbar { background: var(--primary-mid); border-top: 1px solid var(--border-dark); border-bottom: 1px solid var(--border-dark); padding: 22px 0; }
.trustbar__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 38px; }
.trustbar__item { display: inline-flex; align-items: center; gap: 9px; color: var(--text-light); font-size: .92rem; font-family: var(--heading); font-weight: 500; }
.trustbar__item svg { width: 19px; height: 19px; color: var(--green); flex-shrink: 0; }

/* ─── Seccion Recursos / silo de enlazado interno ─── */
.recursos__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.r-card {
  display: block; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px 24px; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.r-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(124,107,255,.4); }
.r-card__tag { display: inline-block; font-family: var(--heading); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--green-dark); background: var(--green-soft); padding: 4px 11px; border-radius: 100px; margin-bottom: 14px; }
.r-card h3 { color: var(--text-primary); margin-bottom: 8px; font-size: 1.12rem; }
.r-card p { font-size: .92rem; color: var(--text-body); line-height: 1.6; }
.r-card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-family: var(--heading); font-weight: 600; font-size: .85rem; color: var(--green-dark); }
.r-card:hover .r-card__more { gap: 10px; }
.r-card__more svg { width: 15px; height: 15px; }

/* ─── Bloque de enlazado relacionado (servicios/articulos) ─── */
.related { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.related a {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--green-soft); color: var(--green-dark); font-weight: 600; font-size: .86rem;
  padding: 9px 16px; border-radius: 100px; border: 1px solid rgba(124,107,255,.22);
  transition: background .25s, transform .25s;
}
.related a:hover { background: var(--green); color: #fff; transform: translateY(-2px); }

/* ─── Divisor SVG entre secciones ─── */
.wave { display: block; width: 100%; height: 60px; }

@media (max-width: 768px) {
  .band { padding: 72px 0; }
  .recursos__grid { grid-template-columns: 1fr; }
  .trustbar__grid { gap: 12px 22px; }
}
