/* Bilakai · sistema visual 2026-10 · "Ingeniería de la Ría"
   Una sola familia (Archivo variable, ancho 62–125), azul acero del logo,
   amarillo señal marítima para las acciones. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --ria: #0D2638;
  --ria-2: #12344C;
  --ria-3: #1A425E;
  --acero: #194D6F;
  --acero-claro: #8FB4CC;
  --senal: #F2C230;
  --senal-2: #FFD54A;
  --niebla: #E8EDF0;
  --papel: #F6F8F9;
  --tinta: #0A1E2C;
  --gris: #4A5E6D;
  --linea: rgba(10, 30, 44, .14);
  --linea-osc: rgba(143, 180, 204, .2);

  /* Variables heredadas: login, portal de clientes y páginas legales */
  --bg: var(--niebla);
  --bg-strong: var(--papel);
  --surface: #fff;
  --surface-strong: #fff;
  --surface-solid: #fff;
  --text: var(--tinta);
  --muted: var(--gris);
  --line: var(--linea);
  --line-strong: rgba(10, 30, 44, .24);
  --accent: var(--acero);
  --accent-2: #2C6E98;
  --accent-3: var(--ria);
  --success: #157347;
  --danger: #B42318;
  --warning: #B7791F;
  --shadow-sm: 0 1px 2px rgba(10, 30, 44, .06), 0 8px 24px -12px rgba(10, 30, 44, .18);
  --shadow-lg: 0 30px 80px -30px rgba(10, 30, 44, .45);
  --radius: 14px;
  --radius-sm: 10px;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --hd-h: 72px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--hd-h) + 16px);
  background: var(--niebla);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-stretch: 100%;
  color: var(--tinta);
  background: var(--niebla);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--senal); color: var(--tinta); }
:focus-visible { outline: 3px solid var(--senal); outline-offset: 3px; border-radius: 4px; }
.sr, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 2000; padding: 10px 16px; background: var(--senal); color: var(--tinta); font-weight: 700; border-radius: 8px; }
.skip:focus { top: 12px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.ico { flex: none; }

/* ---------- Tipografía ---------- */
.h-mega, .h-xl, .h-lg, .h-md {
  margin: 0;
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -.012em;
  text-wrap: balance;
}
.h-mega { font-size: clamp(2.4rem, 6vw, 5.8rem); line-height: .96; letter-spacing: -.01em; font-stretch: 112%; }
.h-xl { font-size: clamp(2rem, 4.4vw, 3.9rem); line-height: 1; font-stretch: 115%; }
.h-lg { font-size: clamp(1.6rem, 2.9vw, 2.6rem); line-height: 1.02; }
.h-md { font-size: clamp(1.2rem, 1.7vw, 1.5rem); line-height: 1.15; font-stretch: 112%; font-weight: 750; }
.lede { font-size: clamp(1.06rem, 1.4vw, 1.28rem); line-height: 1.55; max-width: 60ch; color: var(--gris); margin: 0; text-wrap: pretty; }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: .95rem; font-weight: 600; font-stretch: 112%; color: var(--acero); }
.kicker::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.dark .kicker, .hero .kicker { color: var(--senal); }
p { text-wrap: pretty; }

/* ---------- Botones ---------- */
.btn {
  --bh: 52px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--bh);
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font-size: .98rem;
  font-weight: 700;
  font-stretch: 108%;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .35s var(--ease-out), background-color .2s, color .2s, box-shadow .3s;
  -webkit-tap-highlight-color: transparent;
}
.btn-sm { --bh: 42px; padding: 0 18px; font-size: .9rem; }
.btn-primary { background: var(--senal); color: var(--tinta); box-shadow: 0 10px 30px -12px rgba(242, 194, 48, .7); }
.btn-primary:hover { background: var(--senal-2); }
.btn-primary .ico { transition: transform .35s var(--ease-out); }
.btn-primary:hover .ico { transform: translateX(4px); }
.btn-secondary, .btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-secondary:hover, .btn-ghost:hover { background: rgba(127, 160, 185, .14); }
.btn-dark { background: var(--tinta); color: var(--papel); }
.btn-dark:hover { background: var(--acero); }
.btn:active { transform: scale(.97); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Cabecera ---------- */
.hd {
  position: fixed;
  inset: 0 0 auto;
  z-index: 900;
  height: var(--hd-h);
  color: var(--tinta);
  background: rgba(246, 248, 249, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--linea);
  transition: background-color .35s, color .35s, box-shadow .35s, transform .4s var(--ease);
  view-transition-name: cabecera;
}
.hd--over { background: transparent; color: #fff; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.hd.is-hidden { transform: translateY(-100%); }
.hd-in { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-tile { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px rgba(10, 30, 44, .08), 0 6px 18px -8px rgba(10, 30, 44, .45); overflow: hidden; flex: none; }
.brand-tile img { width: 36px; height: 36px; object-fit: contain; }
.brand-word { font-size: 1.22rem; font-weight: 800; font-stretch: 125%; letter-spacing: .06em; line-height: 1; }
.hd-nav { display: flex; gap: 4px; }
.hd-nav a {
  position: relative;
  padding: 10px 14px;
  font-size: .97rem;
  font-weight: 600;
  font-stretch: 108%;
  border-radius: 999px;
  transition: background-color .2s;
}
.hd-nav a:hover { background: rgba(127, 160, 185, .16); }
.hd-nav a .nav-dot { display: inline-block; width: 7px; height: 7px; margin: 0 0 6px 5px; border-radius: 50%; background: var(--senal); vertical-align: middle; }
.hd-nav a.is-active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--senal); border-radius: 2px; }
.hd-side { display: flex; align-items: center; gap: 10px; }
.socials { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.socials a { display: inline-flex; align-items: center; gap: 8px; min-width: 40px; min-height: 40px; justify-content: center; border-radius: 999px; transition: background-color .2s, color .2s, transform .3s var(--ease-out); }
.socials a:hover { background: rgba(127, 160, 185, .18); transform: translateY(-2px); }
.hd-socials { gap: 2px; }
.hd-socials a { min-width: 38px; min-height: 38px; opacity: .9; }
.hd-socials a:hover { opacity: 1; }
.socials-chips { flex-wrap: wrap; gap: 8px; }
.socials-chips a { padding: 0 14px 0 12px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .28); font-weight: 600; font-size: .95rem; color: #fff; }
.socials-chips a:hover { background: var(--senal); color: var(--tinta); box-shadow: inset 0 0 0 1.5px var(--senal); }
.socials-list { display: grid; gap: 8px; }
.socials-list a { display: flex; justify-content: flex-start; gap: 14px; padding: 12px 16px; min-height: 58px; border-radius: 16px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); color: #fff; }
.socials-list a:hover { background: var(--senal); color: var(--tinta); transform: translateX(4px); }
.socials-list span { display: grid; line-height: 1.2; text-align: left; }
.socials-list b { font-weight: 700; }
.socials-list small { font-size: .85rem; opacity: .75; }
.hd-access { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; font-size: .92rem; font-weight: 600; }
.hd-access:hover { background: rgba(127, 160, 185, .16); }
.burger { display: none; width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; position: relative; }
.burger span:not(.sr) { position: absolute; left: 12px; right: 12px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .35s var(--ease-out), top .35s var(--ease-out); }
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 25px; }
.menu-open .burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* Menú móvil a pantalla completa (sin desplegables) */
.menu {
  position: fixed;
  inset: 0;
  z-index: 850;
  padding-top: var(--hd-h);
  background: var(--ria);
  color: #fff;
  overflow-y: auto;
  clip-path: circle(0 at calc(100% - 44px) 36px);
  transition: clip-path .6s var(--ease-out);
}
.menu[hidden] { display: block; visibility: hidden; }
.menu-open .menu { clip-path: circle(150% at calc(100% - 44px) 36px); visibility: visible; }
.menu-open .hd { background: transparent; color: #fff; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.menu-in { display: grid; gap: 34px; padding: 28px 0 48px; }
.menu-main { display: grid; }
.menu-main a { font-size: clamp(2.2rem, 10vw, 3.4rem); font-weight: 800; font-stretch: 125%; line-height: 1.12; letter-spacing: -.02em; opacity: 0; transform: translateY(18px); transition: opacity .5s, transform .6s var(--ease-out); }
.menu-open .menu-main a { opacity: 1; transform: none; }
.menu-open .menu-main a:nth-child(2) { transition-delay: .05s; }
.menu-open .menu-main a:nth-child(3) { transition-delay: .1s; }
.menu-open .menu-main a:nth-child(4) { transition-delay: .15s; }
.menu-svc { display: grid; gap: 2px; }
.menu-svc p { margin: 0 0 6px; color: var(--acero-claro); font-weight: 600; }
.menu-svc a { padding: 9px 0; font-size: 1.15rem; font-weight: 600; border-bottom: 1px solid var(--linea-osc); }
.menu-foot { display: grid; gap: 12px; }
.menu-foot .socials { flex-wrap: wrap; margin-top: 8px; }

/* ---------- Estructura de páginas ---------- */
.main { display: block; }
.no-hero .main { padding-top: var(--hd-h); }
.sec { padding-block: clamp(72px, 10vw, 140px); }
.sec-tight { padding-block: clamp(48px, 6vw, 84px); }
.dark { background: var(--ria); color: #fff; }
.dark .lede, .dark p { color: rgba(225, 236, 243, .78); }
.paper { background: var(--papel); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 400px); gap: 24px 48px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head .lede { margin-top: 18px; }
.sec-head > .btn { justify-self: end; }

/* Revelados (solo títulos de sección) */
[data-reveal] { --rv: 1; }
.js-reveal [data-reveal] { opacity: 0; transform: translateY(.35em); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); }
.js-reveal [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Héroe principal ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ria);
  color: #fff;
  padding-top: calc(var(--hd-h) + clamp(28px, 6vw, 80px));
  padding-bottom: clamp(56px, 8vw, 110px);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 70% at 78% 30%, rgba(44, 110, 152, .55), transparent 70%),
    radial-gradient(40% 50% at 10% 100%, rgba(25, 77, 111, .6), transparent 70%),
    linear-gradient(180deg, #0B2132 0%, var(--ria) 60%, #0F2D42 100%);
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 160px;
  z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(8, 26, 40, .55));
}
.hero-home { min-height: min(100svh, 980px); display: flex; align-items: center; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.hero h1 { margin: 0; }
.hero .lede { color: rgba(225, 236, 243, .8); margin-top: 26px; }
.hero .actions { margin-top: 36px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 40px 0 0; padding: 0; list-style: none; color: rgba(225, 236, 243, .72); font-size: .95rem; }
.hero-note li { display: inline-flex; align-items: center; gap: 8px; }
.hero-note .ico { color: var(--senal); }

/* Líneas del titular: entran una a una. Si las animaciones no corren, el texto se ve igual. */
.line { display: block; }
.line > span { display: inline-block; }
.js .hero .line > span { animation: lineUp .9s var(--ease-out) both; animation-delay: calc(.25s + var(--i, 0) * .09s); }
.js .hero .fade-late { animation: fadeIn .9s var(--ease-out) .8s both; }
@keyframes lineUp { from { opacity: 0; transform: translateY(.5em); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } }

/* Visual: el logo como estructura del Puente Colgante */
.bridge { position: relative; width: 100%; max-width: 620px; margin-inline: auto; aspect-ratio: 600 / 640; }
.bridge svg { width: 100%; height: 100%; overflow: visible; }
.bridge .cable { stroke: rgba(143, 180, 204, .55); stroke-width: 1.4; fill: none; vector-effect: non-scaling-stroke; }
.bridge .deck { stroke: rgba(225, 236, 243, .7); stroke-width: 2; vector-effect: non-scaling-stroke; }
.bridge .logo-line { fill: none; stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.bridge .logo-fill { fill: url(#acero); }
.bridge .gondola { fill: var(--senal); }
.bridge .hanger { stroke: var(--senal); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.bridge .grid-line { stroke: rgba(143, 180, 204, .1); stroke-width: 1; vector-effect: non-scaling-stroke; }
.bridge .water path { fill: none; stroke: rgba(143, 180, 204, .4); stroke-width: 1.6; stroke-linecap: round; vector-effect: non-scaling-stroke; animation: shimmer 5s ease-in-out infinite alternate; }
.bridge .water path:nth-child(even) { animation-duration: 6.5s; animation-direction: alternate-reverse; }
.bridge .reflection { opacity: .5; }
.js .bridge .reflection { animation: reflectIn 1.4s var(--ease-out) 2s both; }
@keyframes reflectIn { from { opacity: 0; } }
@keyframes shimmer { from { opacity: .35; transform: translateX(-8px); } to { opacity: .95; transform: translateX(8px); } }
.bridge .layer { transition: transform .9s var(--ease-out); }
.js .bridge .logo-line { animation: draw 1.8s var(--ease) .2s both; }
.js .bridge .logo-fill { animation: fillIn 1.2s var(--ease-out) 1.6s both; }
.js .bridge .cable { animation: draw 1.1s var(--ease-out) both; animation-delay: calc(.9s + var(--i, 0) * .045s); }
.js .bridge .deck { animation: draw 1s var(--ease-out) .7s both; }
.js .bridge .ride { animation: fadeIn .6s ease 2.2s both; }
.bridge .ride-move { animation: ride 14s ease-in-out 2.4s infinite; }
@keyframes draw { from { stroke-dasharray: 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } }
@keyframes fillIn { from { opacity: 0; } }
@keyframes ride { 0%, 8% { transform: translateX(0); } 46%, 54% { transform: translateX(var(--ride, 520px)); } 92%, 100% { transform: translateX(0); } }
.bridge-caption { position: absolute; left: 0; bottom: -6px; font-size: .85rem; color: rgba(225, 236, 243, .55); }

/* Tira de clientes */
.proof { border-top: 1px solid var(--linea-osc); margin-top: clamp(48px, 7vw, 96px); padding-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 34px; color: rgba(225, 236, 243, .72); font-size: .95rem; }
.proof a { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 650; font-stretch: 110%; opacity: .85; transition: opacity .2s; }
.proof a:hover { opacity: 1; }
.proof img { width: 22px; height: 22px; border-radius: 6px; background: #fff; padding: 2px; }

/* ---------- Héroe de páginas interiores ---------- */
.hero-page { padding-bottom: clamp(48px, 7vw, 96px); }
.hero-page .h-mega { font-size: clamp(2.3rem, 5.8vw, 5.2rem); }
.hero-page .h-contact { font-size: clamp(2.4rem, 4.6vw, 4.4rem); }
.hero-page-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: 48px; align-items: end; }
.hero-glyph { justify-self: end; align-self: center; width: min(320px, 100%); color: rgba(143, 180, 204, .55); }
.hero-glyph svg { width: 100%; height: auto; }
.js .hero-glyph path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s var(--ease-out) .5s forwards; }
.hero-glyph .hl { stroke: var(--senal); }
.crumbs { display: flex; gap: 8px; margin: 0 0 22px; font-size: .92rem; color: rgba(225, 236, 243, .65); }
.crumbs a:hover { color: #fff; }

/* Pestañas de servicios: sustituyen al desplegable */
.svc-tabs { position: sticky; top: var(--hd-h); z-index: 50; background: rgba(246, 248, 249, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--linea); }
.svc-tabs-in { position: relative; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-block: 10px; }
.svc-tabs-in::-webkit-scrollbar { display: none; }
@media (max-width: 960px) { .svc-tabs-in { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 28px), transparent); } }
.svc-tabs a { flex: none; padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: .95rem; color: var(--gris); transition: background-color .2s, color .2s; }
.svc-tabs a:hover { color: var(--tinta); background: rgba(10, 30, 44, .06); }
.svc-tabs a.is-active { background: var(--tinta); color: #fff; }

/* ---------- Lista de servicios (home) ---------- */
.svc-list { border-top: 1.5px solid var(--tinta); }
.svc-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 56px;
  gap: 24px;
  align-items: center;
  padding: clamp(22px, 3vw, 34px) 0;
  border-bottom: 1px solid var(--linea);
  isolation: isolate;
}
.svc-row::before {
  content: "";
  position: absolute;
  inset: 0 calc(-1 * var(--gutter));
  z-index: -1;
  background: var(--ria);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .55s var(--ease-out);
}
.svc-row h3 { margin: 0; font-size: clamp(1.7rem, 3.6vw, 3.1rem); font-weight: 800; font-stretch: 125%; line-height: 1; letter-spacing: -.02em; transition: color .3s, transform .55s var(--ease-out); }
.svc-row p { margin: 0; color: var(--gris); max-width: 46ch; transition: color .3s; }
.svc-arrow { width: 56px; height: 56px; border-radius: 999px; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--linea); transition: background-color .3s, color .3s, transform .55s var(--ease-out), box-shadow .3s; }
@media (hover: hover) {
  .svc-row:hover::before { transform: scaleY(1); transform-origin: top; }
  .svc-row:hover h3 { color: #fff; transform: translateX(14px); }
  .svc-row:hover p { color: rgba(225, 236, 243, .82); }
  .svc-row:hover .svc-arrow { background: var(--senal); color: var(--tinta); box-shadow: none; transform: rotate(-45deg); }
}

/* ---------- Bloques "por qué" ---------- */
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--linea-osc); }
.why > div { padding: 34px 32px 6px 0; }
.why > div + div { padding-left: 32px; border-left: 1px solid var(--linea-osc); }
.why h3 { margin: 0 0 12px; font-size: 1.3rem; font-stretch: 115%; font-weight: 750; line-height: 1.2; color: #fff; }
.why p { margin: 0; }
.big-stat { font-size: clamp(3rem, 6vw, 5rem); font-weight: 800; font-stretch: 125%; line-height: 1; color: var(--senal); margin-bottom: 14px; }

/* ---------- Proceso (secuencia real) ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: paso; }
.steps::before, .steps::after { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: var(--linea); }
.steps::after { background: var(--acero); transform-origin: left; transform: scaleX(var(--progress, 0)); transition: transform .2s linear; }
.steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step { position: relative; z-index: 1; }
.step-n { counter-increment: paso; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 999px; background: var(--papel); box-shadow: inset 0 0 0 2px var(--acero); color: var(--acero); font-weight: 800; font-stretch: 120%; margin-bottom: 22px; transition: background-color .4s, color .4s; }
.step-n::before { content: counter(paso); }
.step.is-on .step-n { background: var(--acero); color: #fff; }
.step h3 { margin: 0 0 10px; font-size: 1.28rem; font-weight: 750; font-stretch: 115%; }
.step p { margin: 0; color: var(--gris); }

/* ---------- Casos ---------- */
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); align-items: stretch; }
.case { display: grid; grid-template-rows: auto 1fr; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 1px 0 rgba(10, 30, 44, .06), 0 24px 60px -34px rgba(10, 30, 44, .5); color: var(--tinta); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.case:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(10, 30, 44, .06), 0 34px 70px -34px rgba(10, 30, 44, .6); }
.case-shot { position: relative; display: block; background: #0F2D42; overflow: hidden; }
.case-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #0F2D42; }
.case-bar i { width: 10px; height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .22); }
.case-bar i:first-child { background: #F2C230; }
.case-bar b { margin-left: 10px; padding: 3px 12px; border-radius: 99px; background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .78); font-size: .76rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 52%; }
.case-shot picture, .case-shot > img { display: block; overflow: hidden; }
.case-shot img { display: block; width: 100%; height: auto; aspect-ratio: 1280 / 598; object-fit: cover; object-position: top center; transition: transform 1.1s var(--ease-out); }
.case:hover .case-shot img { transform: scale(1.035); }
.case-face { display: grid; place-items: center; gap: 12px; aspect-ratio: 1280 / 598; background: radial-gradient(60% 80% at 70% 20%, rgba(44, 110, 152, .55), transparent 70%), #0D2638; color: rgba(255, 255, 255, .7); }
.case-face img { width: 76px; height: 76px; border-radius: 18px; background: #fff; padding: 10px; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .6); }
.case-face b { font-weight: 600; font-size: .95rem; }
.case-body { display: flex; flex-direction: column; gap: 16px; padding: 22px 24px 24px; }
.case-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.case-head > div { min-width: 0; }
.case-fav { width: 40px; height: 40px; flex: none; border-radius: 11px; background: #fff; padding: 5px; box-shadow: inset 0 0 0 1px var(--linea); }
.case-head h3 { margin: 0; font-size: 1.32rem; font-weight: 800; font-stretch: 118%; line-height: 1.12; }
.case-domain { display: block; color: var(--gris); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.case-flag { position: absolute; top: 6px; right: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 10px; border-radius: 99px; background: var(--senal); color: var(--tinta); font-size: .76rem; font-weight: 700; line-height: 1; }
.case-badge { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; background: rgba(242, 194, 48, .2); color: #6B4E00; font-size: .8rem; font-weight: 700; }
.case-desc { margin: 0; color: var(--gris); }
.case-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 20px; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--linea); }
.case-facts dt { font-size: .8rem; font-weight: 600; color: var(--gris); }
.case-facts dd { margin: 3px 0 0; font-weight: 700; font-stretch: 105%; overflow-wrap: anywhere; }
.case-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.case-tags em { font-style: normal; font-size: .82rem; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: rgba(25, 77, 111, .1); color: var(--acero); }
.case-link { align-self: flex-start; margin-top: auto; display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 999px; background: var(--tinta); color: #fff; font-weight: 700; font-size: .92rem; transition: background-color .25s, color .25s; }
.case-link:hover { background: var(--senal); color: var(--tinta); }
/* Casos a lo grande (página de casos) */
.cases-feature { grid-template-columns: 1fr; gap: clamp(28px, 4vw, 48px); }
.cases-feature .case { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-template-rows: auto; align-items: stretch; }
.cases-feature .case:nth-child(even) .case-shot { order: 2; }
.cases-feature .case-body { justify-content: center; padding: clamp(24px, 3vw, 44px); }
.cases-feature .case-link { margin-top: 4px; }
.cases-feature .case-head h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }

/* ---------- Preguntas: abiertas, sin acordeón ---------- */
.qa { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.qa > div { padding: 26px 0; border-top: 1px solid var(--linea); }
.qa h3 { margin: 0 0 10px; font-size: 1.15rem; font-weight: 750; font-stretch: 110%; line-height: 1.3; }
.qa p { margin: 0; color: var(--gris); }
.dark .qa > div { border-color: var(--linea-osc); }
.dark .qa h3 { color: #fff; }

/* ---------- Blog ---------- */
.posts { display: grid; border-top: 1.5px solid var(--tinta); }
.post-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 28px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--linea); transition: padding .4s var(--ease-out); }
.post-row time, .post-row .cat { color: var(--gris); font-size: .92rem; }
.post-row h3 { margin: 0 0 6px; font-size: clamp(1.2rem, 2vw, 1.55rem); font-weight: 750; font-stretch: 112%; line-height: 1.2; }
.post-row p { margin: 0; color: var(--gris); max-width: 68ch; }
.post-row .ico { color: var(--acero); transition: transform .4s var(--ease-out); }
.post-row:hover { padding-left: 12px; }
.post-row:hover h3 { color: var(--acero); }
.post-row:hover .ico { transform: translateX(6px); }

.article { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 6vw, 88px); align-items: start; }
.prose { max-width: 68ch; font-size: 1.1rem; line-height: 1.75; }
.prose .intro { font-size: 1.3rem; line-height: 1.55; color: var(--tinta); margin-top: 0; }
.prose h2 { margin: 2.2em 0 .5em; font-size: 1.7rem; font-weight: 800; font-stretch: 118%; line-height: 1.12; letter-spacing: -.01em; }
.prose p { color: #22394A; }
.prose ul { padding-left: 0; list-style: none; }
.prose li { position: relative; padding: 10px 0 10px 34px; border-bottom: 1px solid var(--linea); }
.prose li .ico { position: absolute; left: 0; top: 13px; color: var(--acero); }
.aside { position: sticky; top: calc(var(--hd-h) + 28px); display: grid; gap: 28px; }
.aside-box { padding: 26px; border-radius: 18px; background: var(--ria); color: #fff; }
.aside-box h3 { margin: 0 0 10px; font-size: 1.3rem; font-weight: 800; font-stretch: 118%; line-height: 1.1; }
.aside-box p { color: rgba(225, 236, 243, .78); margin: 0 0 18px; }
.aside-list p { margin: 0 0 8px; font-weight: 700; }
.aside-list a { display: block; padding: 12px 0; border-top: 1px solid var(--linea); font-weight: 600; line-height: 1.35; }
.aside-list a:hover { color: var(--acero); }
.aside-list small { display: block; color: var(--gris); font-weight: 500; margin-top: 4px; }

/* ---------- Servicio: pilares, entregables ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.pillar { padding-top: 22px; border-top: 3px solid var(--tinta); }
.pillar .tag { display: inline-block; margin-bottom: 14px; font-size: .9rem; font-weight: 600; color: var(--acero); }
.pillar h3 { margin: 0 0 10px; font-size: 1.4rem; font-weight: 800; font-stretch: 118%; line-height: 1.12; }
.pillar p { margin: 0; color: var(--gris); }
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.checks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linea-osc); }
.checks li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--linea-osc); font-size: 1.08rem; }
.checks .ico { color: var(--senal); margin-top: 3px; }
.paper .checks, .paper .checks li { border-color: var(--linea); }
.paper .checks .ico { color: var(--acero); }

/* ---------- Llamada final ---------- */
.cta { position: relative; overflow: hidden; background: var(--acero); color: #fff; padding-block: clamp(72px, 10vw, 130px); isolation: isolate; }
.cta::before { content: ""; position: absolute; right: -10%; top: -40%; width: 70%; aspect-ratio: 1; z-index: -1; background: radial-gradient(closest-side, rgba(143, 200, 235, .22), transparent); }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(90deg, transparent 0 79px, rgba(255, 255, 255, .05) 79px 80px); -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); mask-image: linear-gradient(90deg, transparent 30%, #000); }
.cta-in { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 48px; align-items: center; }
.cta p { color: rgba(234, 242, 247, .85); font-size: 1.15rem; max-width: 56ch; margin: 22px 0 32px; }
.cta-social > p { margin: 0 0 12px; font-weight: 700; font-size: 1rem; color: #fff; }

/* ---------- Pie ---------- */
.ft { background: var(--tinta); color: rgba(225, 236, 243, .78); padding-top: clamp(64px, 8vw, 110px); overflow: hidden; }
.ft-top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.brand-ft { color: #fff; margin-bottom: 22px; }
.ft-claim { margin: 0 0 18px; font-size: 1.15rem; line-height: 1.45; color: #fff; max-width: 34ch; font-stretch: 105%; }
.ft-contact { display: grid; gap: 8px; margin: 0 0 22px; }
.ft-contact a, .ft-contact span { display: inline-flex; align-items: center; gap: 10px; }
.ft-contact .ico { color: var(--senal); }
.ft-contact a:hover { color: #fff; }
.ft-project { display: inline-flex !important; align-items: center; gap: 10px; }
.ft-project img { width: 20px; height: 20px; border-radius: 5px; background: #fff; padding: 2px; }
.ft-brand .socials-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 300px; }
.ft-brand .socials-chips a { display: flex; width: 100%; justify-content: flex-start; }
.ft-col { display: grid; align-content: start; gap: 8px; }
.ft-col p { margin: 0 0 6px; color: #fff; font-weight: 700; }
.ft-col a:hover { color: var(--senal); }
.ft-word { margin: clamp(48px, 7vw, 96px) 0 clamp(20px, 3vw, 36px); padding-left: .02em; font-size: clamp(3.2rem, 15.4vw, 14.6rem); font-weight: 900; font-stretch: 125%; letter-spacing: .02em; line-height: .78; text-align: center; color: transparent; -webkit-text-stroke: 1.5px rgba(143, 180, 204, .32); background: linear-gradient(180deg, rgba(143, 180, 204, .14), transparent 85%); -webkit-background-clip: text; background-clip: text; user-select: none; white-space: nowrap; }
.ft-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 22px 0 calc(22px + env(safe-area-inset-bottom)); border-top: 1px solid var(--linea-osc); font-size: .9rem; position: relative; background: var(--tinta); }
.ft-bottom nav { display: flex; flex-wrap: wrap; gap: 18px; }
.ft-bottom a:hover { color: #fff; }

/* ---------- Formulario de contacto ---------- */
.contact { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.form { display: grid; gap: 22px; padding: clamp(24px, 4vw, 44px); border-radius: 22px; background: #fff; color: var(--tinta); box-shadow: var(--shadow-lg); }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-weight: 700; font-size: .98rem; }
.field input, .field textarea {
  width: 100%;
  padding: 15px 16px;
  border-radius: 12px;
  border: 1.5px solid rgba(10, 30, 44, .18);
  background: var(--papel);
  font-size: 1rem;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--acero); background: #fff; box-shadow: 0 0 0 4px rgba(25, 77, 111, .14); }
[aria-invalid="true"] { border-color: #B42318 !important; box-shadow: 0 0 0 4px rgba(180, 35, 24, .12) !important; }
.field textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.field small { color: var(--gris); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick label { position: relative; cursor: pointer; }
.pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pick span { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px rgba(10, 30, 44, .18); font-weight: 600; font-size: .95rem; transition: background-color .2s, color .2s, box-shadow .2s; }
.pick input:checked + span { background: var(--tinta); color: #fff; box-shadow: none; }
.pick input:checked + span::before { content: "✓"; color: var(--senal); }
.pick input:focus-visible + span { outline: 3px solid var(--senal); outline-offset: 2px; }
.hp { position: absolute !important; left: -9999px !important; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; font-weight: 600; }
.notice.ok { background: #E3F4EA; color: #0F5132; }
.notice.err { background: #FDECEA; color: #8A1C12; }
.contact-ways { display: grid; gap: 4px; margin-top: 34px; border-top: 1px solid var(--linea-osc); }
.contact-ways a, .contact-ways span { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--linea-osc); font-weight: 600; font-size: 1.05rem; color: #fff; }
.contact-ways a:hover { color: var(--senal); }
.contact-ways .ico { color: var(--senal); }

/* ---------- Varios ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--linea); background: var(--papel); }
.marquee-track { display: flex; gap: 48px; width: max-content; padding: 22px 0; animation: marquee 38s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 48px; font-size: clamp(1.4rem, 2.6vw, 2.1rem); font-weight: 800; font-stretch: 125%; letter-spacing: -.01em; white-space: nowrap; }
.marquee-track span::after { content: ""; width: 12px; height: 12px; background: var(--senal); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

.empty-404 { min-height: 70vh; display: flex; align-items: center; }

#toast { position: fixed; left: 50%; bottom: 22px; z-index: 1500; transform: translate(-50%, 140%); opacity: 0; visibility: hidden; padding: 14px 20px; border-radius: 999px; background: var(--tinta); color: #fff; font-weight: 600; box-shadow: var(--shadow-lg); transition: transform .45s var(--ease-out); pointer-events: none; }
#toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* ---------- Compatibilidad: login, portal y legales ---------- */
.container { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section-block { padding-top: 40px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(25, 77, 111, .1); color: var(--acero); font-size: .88rem; font-weight: 700; }
.title-xl, .title-lg, .title-md { margin: 0; font-weight: 800; font-stretch: 122%; letter-spacing: -.012em; line-height: 1.02; text-wrap: balance; }
.title-xl { font-size: clamp(2.2rem, 5vw, 4rem); }
.title-lg { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
.title-md { font-size: clamp(1.3rem, 2vw, 1.8rem); }
.lead { margin: 0; color: var(--gris); font-size: 1.1rem; line-height: 1.65; max-width: 62ch; }
.glass-card, .card { border-radius: var(--radius); background: #fff; border: 1px solid var(--linea); box-shadow: var(--shadow-sm); }
.card { padding: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.form-field { display: grid; gap: 8px; margin-bottom: 16px; }
.form-field label { font-weight: 700; }
.form-field input, .form-field textarea, .form-field select, .form-group input { width: 100%; padding: 13px 14px; border-radius: 12px; border: 1.5px solid rgba(10, 30, 44, .18); background: var(--papel); }
.form-status { padding: 14px 16px; border-radius: 12px; margin: 14px 0; font-weight: 600; }
.form-status.ok { background: #E3F4EA; color: #0F5132; }
.form-status.err { background: #FDECEA; color: #8A1C12; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Títulos de páginas legales con la tipografía de la web */
.legal-card h2, .legal-hero .title-lg { font-family: inherit !important; font-stretch: 112%; letter-spacing: -.005em; }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .hd-socials { display: none; }
}
@media (max-width: 1100px) {
  .hd-nav, .hd-socials, .hd-access { display: none; }
  .burger { display: inline-block; }
  .hd-in { gap: 12px; }
}
@media (max-width: 960px) {
  .hero-grid, .hero-page-grid, .split, .contact, .article, .cta-in { grid-template-columns: 1fr; }
  .bridge { max-width: 460px; margin-top: 12px; }
  .hero-glyph { display: none; }
  .why { grid-template-columns: 1fr; }
  .why > div, .why > div + div { padding: 26px 0; border-left: 0; border-bottom: 1px solid var(--linea-osc); }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps::before, .steps::after { display: none; }
  .pillars { grid-template-columns: 1fr; }
  .ft-top { grid-template-columns: 1fr 1fr; }
  .ft-brand { grid-column: 1 / -1; }
  .aside { position: static; }
  .sec-head { grid-template-columns: 1fr; }
  .sec-head > .btn { justify-self: start; }
  .cases-feature .case { grid-template-columns: 1fr; }
  .cases-feature .case:nth-child(even) .case-shot { order: 0; }
  .cta-in { gap: 32px; }
}
@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .h-mega { font-size: clamp(2.4rem, 11.4vw, 3.6rem); }
  .hero-page .h-mega { font-size: clamp(2.3rem, 10.6vw, 3.4rem); }
  :root { --hd-h: 64px; }
  .hd-cta { display: none; }
  .svc-row { grid-template-columns: minmax(0, 1fr) 44px; gap: 10px 16px; }
  .svc-row p { grid-column: 1 / 2; grid-row: 2; }
  .svc-arrow { width: 44px; height: 44px; grid-row: 1 / 3; grid-column: 2; }
  .cases, .qa, .row-2, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .post-row { grid-template-columns: 1fr; gap: 6px; }
  .post-row .ico { display: none; }
  .hero-home { min-height: auto; }
  .hero .actions .btn { flex: 1 1 auto; }
  .ft-top { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .ft-brand { grid-column: 1 / -1; }
  .proof { gap: 12px 22px; }
  .case-body { padding: 18px 18px 20px; }
  .brand-word { font-size: 1.08rem; }
  .brand-tile { width: 38px; height: 38px; }
  .brand-tile img { width: 32px; height: 32px; }
}
@media (max-width: 420px) {
  .ft-top { grid-template-columns: 1fr; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .bridge .ride-move { animation: none !important; }
  .marquee-track { animation: none !important; }
}

/* ---------- Transiciones entre páginas (Chrome, Edge, Safari 18+) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut .22s var(--ease) both; }
::view-transition-new(root) { animation: vtIn .38s var(--ease-out) both; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }

/* ---------- Banda del curso (portada) ---------- */
.curso-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: center; padding: clamp(24px, 3.5vw, 40px); border-radius: 24px; background: #fff; border: 1px solid var(--linea); box-shadow: var(--shadow-sm); color: var(--tinta); transition: transform .4s var(--ease-out), box-shadow .4s; }
.curso-band:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.curso-band .kicker { margin-bottom: 10px; }
.curso-band h2 { margin: 0 0 10px; max-width: 24ch; }
.curso-band p:last-child { margin: 0; color: var(--gris); max-width: 60ch; }
.curso-band > .btn { white-space: nowrap; }
@media (max-width: 720px) { .curso-band { grid-template-columns: 1fr; } .curso-band > .btn { width: 100%; } }

/* ---------- Redes sociales (portada) ---------- */
.social-band { position: relative; overflow: hidden; isolation: isolate; }
.social-band::before { content: ""; position: absolute; inset: auto -10% -40% auto; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; z-index: -1; background: radial-gradient(closest-side, rgba(44, 110, 152, .45), transparent); pointer-events: none; }
.social-grid { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 14px; }
.social-card { position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 18px; min-height: 236px; padding: 26px 24px 22px; border-radius: 22px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(143, 180, 204, .2); color: #fff; overflow: hidden; transition: background-color .3s, color .3s, transform .45s var(--ease-out), box-shadow .3s; }
.social-card::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 140px; height: 140px; border-radius: 50%; background: rgba(10, 30, 44, .06); transform: scale(0); transition: transform .6s var(--ease-out); }
.social-card:hover { background: var(--senal); color: var(--tinta); transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(242, 194, 48, .55); }
.social-card:hover::after { transform: scale(1.6); }
.social-ico { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); transition: background-color .3s, box-shadow .3s; }
.social-card:hover .social-ico { background: var(--tinta); color: var(--senal); box-shadow: none; }
.social-txt { display: grid; align-content: end; gap: 4px; min-width: 0; }
.social-name { font-size: clamp(1.4rem, 2vw, 1.75rem); font-weight: 800; font-stretch: 122%; letter-spacing: -.01em; line-height: 1; }
.social-handle { color: rgba(225, 236, 243, .7); font-weight: 600; overflow-wrap: anywhere; transition: color .3s; }
.social-card:hover .social-handle { color: rgba(10, 30, 44, .75); }
.social-go { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-stretch: 108%; }
.social-go .ico { transition: transform .35s var(--ease-out); }
.social-card:hover .social-go .ico { transform: translate(3px, -3px); }
@media (max-width: 960px) {
  .social-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .social-grid { grid-template-columns: 1fr; gap: 10px; }
  .social-card { grid-template-columns: 52px minmax(0, 1fr) auto; grid-template-rows: auto; align-items: center; gap: 14px; min-height: 0; padding: 16px 18px; border-radius: 18px; }
  .social-ico { width: 52px; height: 52px; border-radius: 14px; }
  .social-go span { display: none; }
  .social-name { font-size: 1.25rem; }
  .social-card::after { display: none; }
}
