/* ==========================================================
   HOME — mapa de serpientes y secciones del grupo
   ========================================================== */
body.home { background: var(--navy-950); color: #fff; --ink: #fff; --muted: #a9c3d1; --line: rgba(255,255,255,.16); --surface: rgba(255,255,255,.05); }
.hero { position: relative; padding: 118px clamp(20px, 4vw, 56px) 56px; overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, var(--navy-900), var(--navy-950)); }
.hero-in { position: relative; max-width: var(--wrap); margin: auto; }
.top { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px 64px; align-items: end; }
.top h1 { font-size: clamp(2.3rem, 4.9vw, 4.4rem); font-weight: 800; max-width: 15ch; }
.top p { color: #b9d0dc; font-size: clamp(1.04rem, 1.4vw, 1.2rem); max-width: 46ch; margin: 0 0 6px; animation: fade 1s .5s backwards; }
.top .cta-row { margin-top: 20px; animation: fade 1s .65s backwards; }
@media (max-width: 900px) { .top { grid-template-columns: 1fr; } }

/* mapa */
.hair-wrap { position: relative; margin-top: 8px; }
.hair-wrap svg { width: 100%; height: auto; overflow: visible; display: block; }
#bodies, #heads, #labels { pointer-events: none; }
.sk .body { fill: url(#skin); stroke: #082f45; stroke-width: 1.6; stroke-linejoin: round; transition: filter .3s; }
.sk .scales { fill: none; stroke: #eaf6fb; stroke-opacity: .55; stroke-width: 3.2; stroke-dasharray: .1 9; stroke-linecap: round; }
.sk.hot .body { filter: brightness(1.35) drop-shadow(0 0 8px rgba(157,188,203,.85)); }
.nd { cursor: pointer; animation: fade 1s backwards; animation-delay: var(--d, 0s); }
.nd .orb, .nd .orbit, .nd .shd { transform-box: fill-box; transform-origin: center; }
.nd .orb { animation: bob var(--fl, 4s) ease-in-out infinite alternate; transition: transform .45s var(--spring); filter: drop-shadow(0 14px 14px rgba(0,0,0,.45)); }
@keyframes bob { from { translate: 0 -4px; } to { translate: 0 6px; } }
.nd .halo { opacity: .55; transition: opacity .3s; }
.nd .shd { fill: #000; opacity: .4; filter: blur(5px); animation: shd var(--fl, 4s) ease-in-out infinite alternate; }
@keyframes shd { from { transform: scaleX(1.05); opacity: .45; } to { transform: scaleX(.8); opacity: .25; } }
.nd .orbit { animation: spin 18s linear infinite; opacity: .85; }
.nd:hover .orbit { animation-duration: 4s; }
@keyframes spin { to { transform: rotate(360deg); } }
.nd:hover .orb, .nd:focus-visible .orb { transform: scale(1.2); }
.nd:hover .halo, .nd:focus-visible .halo { opacity: 1; }
.nd:focus-visible { outline: none; }
.nd:focus-visible .rim { stroke: #fff; }
.lb { fill: #e6f0f5; font: 700 21px "Hanken Grotesk", sans-serif; paint-order: stroke; stroke: #01141f; stroke-width: 7px; stroke-linejoin: round; }
.hub .hring { transform-box: fill-box; transform-origin: center; }
.hub .r1 { animation: spin 40s linear infinite; }
.hub .r2 { animation: spin 26s linear infinite reverse; }
.hubpulse { animation: hp 5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes hp { 50% { transform: scale(1.15); opacity: .7; } }

/* móvil: esferas en rejilla */
.orbs { display: none; margin-top: 28px; }
.orbs a { display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; text-align: center; font: 700 1rem var(--font-display); }
.orbs .o { width: 88px; height: 88px; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #fff, #e4edf2 60%, #c3d3dd); display: grid; place-items: center; padding: 12px; box-shadow: 0 0 0 4px var(--c), 0 14px 24px rgba(0,0,0,.45); }
.orbs .o img { max-height: 100%; width: auto; object-fit: contain; }
@media (max-width: 760px) { .hair-wrap { display: none; } .orbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 8px; } }
@media (max-width: 420px) { .orbs { grid-template-columns: repeat(2, 1fr); } }

/* logos que corren */
.logos-band { background: #fff; padding-block: 28px; position: relative; z-index: 2; }
.logos-band .marquee-track { gap: 64px; --dur: 50s; align-items: center; }
.logos-band img { height: 54px; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1); opacity: .65; transition: filter .3s, opacity .3s; }
.logos-band a:hover img { filter: none; opacity: 1; }
.logos-band a { display: block; }

/* cifras */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-block: 1px solid var(--line); }
.stat { padding: 40px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font: 800 clamp(2.6rem, 5vw, 4.4rem)/1 var(--font-display); letter-spacing: -.04em; }
.stat span { color: #a9c3d1; display: block; margin-top: 8px; max-width: 22ch; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(3) { border-left: 0; } .stat { border-top: 1px solid var(--line); } .stat:nth-child(-n+2) { border-top: 0; } }

/* áreas: acordeón horizontal */
.acc { display: flex; gap: 12px; height: 460px; margin-top: 36px; }
.acc-item { position: relative; flex: 1; min-width: 0; border-radius: 28px; overflow: hidden; cursor: pointer; background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.14); transition: flex .7s var(--ease), border-color .3s; outline: none; }
.acc-item.on { flex: 4.2; border-color: rgba(255,255,255,.4); }
.acc-item:focus-visible { border-color: #fff; }
.acc-item::after { content: ""; position: absolute; inset: auto -20% -40% auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--c, #0a5578), transparent 65%); opacity: .45; pointer-events: none; transition: opacity .5s; }
.acc-item.on::after { opacity: .8; }
.acc-head { position: absolute; inset: 0; padding: 26px 22px; display: flex; align-items: flex-end; transition: opacity .3s; }
.acc-head h3 { font-size: 1.25rem; writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; letter-spacing: -.01em; }
.acc-item.on .acc-head { opacity: 0; pointer-events: none; }
.acc-body { position: absolute; inset: 0; padding: 32px; width: min(520px, 100%); opacity: 0; transform: translateX(24px); transition: opacity .4s, transform .6s var(--ease); display: flex; flex-direction: column; justify-content: flex-end; z-index: 1; }
.acc-item.on .acc-body { opacity: 1; transform: none; transition-delay: .25s; }
.acc-body h3 { font-size: clamp(1.4rem, 2.2vw, 2rem); margin-bottom: 10px; }
.acc-body p { color: #cfe0ea; }
.members { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.chip { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: #0c2230; border-radius: 999px; padding: 6px 18px 6px 6px; text-decoration: none; font-weight: 700; min-height: 48px; transition: transform .3s var(--spring); }
.chip:hover { transform: translateY(-3px) scale(1.04); }
.chip img { height: 36px; width: 36px; object-fit: contain; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--c); padding: 3px; }
@media (max-width: 900px) {
  .acc { flex-direction: column; height: auto; }
  .acc-item, .acc-item.on { flex: none; }
  .acc-head { position: relative; padding: 22px; align-items: center; }
  .acc-head h3 { writing-mode: horizontal-tb; transform: none; white-space: normal; }
  .acc-item.on .acc-head { opacity: 1; pointer-events: auto; }
  .acc-body { position: relative; width: 100%; opacity: 1; transform: none; display: none; padding: 0 22px 24px; }
  .acc-item.on .acc-body { display: flex; }
}

/* empresas: tarjetas */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin-top: 36px; }
.card { position: relative; display: flex; flex-direction: column; border-radius: 26px; overflow: hidden; background: #fff; color: #0c2230; text-decoration: none; transition: transform .45s var(--spring), box-shadow .4s; --spot: color-mix(in srgb, var(--c) 40%, transparent); transform-style: preserve-3d; }
.card:hover { transform: translateY(-8px); box-shadow: 0 30px 60px rgba(0,0,0,.5); }
.card .plate { aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 22px; position: relative; }
.card .plate img { max-height: 130px; width: auto; max-width: 100%; object-fit: contain; transition: transform .5s var(--spring); }
.card:hover .plate img { transform: scale(1.1); }
.card .info { padding: 18px 20px 22px; background: var(--c); color: var(--ci, #fff); flex: 1; position: relative; }
.card .info b { display: block; font: 800 1.2rem var(--font-display); }
.card .info span { display: block; font-size: .93rem; line-height: 1.4; opacity: .92; margin-top: 4px; }
.card .info em { display: inline-block; margin-top: 12px; font-style: normal; font-weight: 700; font-size: .9rem; transition: transform .3s var(--ease); }
.card:hover .info em { transform: translateX(6px); }

.allies .marquee-track { gap: 14px; --dur: 60s; }
.allies span { display: inline-block; padding: 12px 26px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); font-weight: 600; white-space: nowrap; }

.band-cta { background: linear-gradient(120deg, #04435f, #075a7c 55%, #0a6384); border-radius: 32px; padding: clamp(30px, 5vw, 72px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.band-cta::after { content: ""; position: absolute; right: -10%; top: -40%; width: 50%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(229,37,42,.5), transparent 65%); animation: hp 7s ease-in-out infinite; }
.band-cta > * { position: relative; z-index: 1; }
.band-cta h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
.band-cta p { color: #e8f3f8; margin-top: 12px; }
.band-cta .btn { background: #fff; color: var(--navy-900); border-color: #fff; }
.band-cta .btn--ghost { background: transparent; color: #fff; border-color: #fff; }
@media (max-width: 760px) { .band-cta { grid-template-columns: 1fr; } }

.promise { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 6vw, 80px); align-items: start; }
.promise ul { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.promise li { padding: 24px; border-radius: 22px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); transition: transform .35s var(--ease), border-color .3s; --spot: rgba(157,188,203,.22); }
.promise li:hover { transform: translateY(-5px); border-color: rgba(255,255,255,.4); }
.promise strong { display: block; font: 700 1.15rem var(--font-display); margin-bottom: 6px; }
.promise li span { color: #b9d0dc; font-size: .98rem; display: block; line-height: 1.45; }
@media (max-width: 900px) { .promise { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .promise ul { grid-template-columns: 1fr; } }
