/* Widow Polish — capa de acabado visual sobre widow.css (2026-09-26) */

:root {
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wp-surface: linear-gradient(180deg, rgba(15,17,21,0.8), rgba(7,8,10,0.9));
  --wp-hairline: rgba(255, 255, 255, 0.075);
  --wp-rim: rgba(255,43,62,0.32);
  --wp-lift: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 28px 60px -34px rgba(0, 0, 0, 0.95);
  --wp-lift-hover: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 0 0 1px rgba(255,43,62,0.22), 0 34px 70px -34px rgba(224,0,19,0.35);
  --wp-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

html {
  scrollbar-color: #2a2e36 #07080a;
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #07080a;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #22252c, #181c22);
  border: 2px solid #07080a;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #393d47;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv05";
}

p,
li {
  line-height: 1.65;
}

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--red-bright);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ---------- nav ---------- */

.nav.solid {
  background: linear-gradient(180deg, rgba(6,7,9,0.9), rgba(6,7,9,0.78));
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  border-color: transparent;
  box-shadow: 0 12px 40px -24px rgba(0, 0, 0, 0.9);
}

.nav.solid::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 4%, rgba(255,43,62,0.22) 30%, rgba(255, 170, 170, 0.16) 50%, rgba(255,43,62,0.22) 70%, transparent 96%);
  pointer-events: none;
}

.wfx-nav {
  gap: 4px;
}

.wfx-nav > a,
.wfx-nav-trigger {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 13.5px;
  color: var(--silver);
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
  transition: color 0.2s, background 0.2s;
}

.wfx-nav-group {
  position: relative;
}

.wfx-nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.wfx-nav-trigger svg {
  width: 12px;
  height: 12px;
  transition: transform 0.25s var(--wp-ease);
  opacity: 0.7;
}

.wfx-nav-group.is-open .wfx-nav-trigger,
.wfx-nav-trigger:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
}

.wfx-nav-group.is-open .wfx-nav-trigger svg {
  transform: rotate(180deg);
}

.wfx-nav-group.on .wfx-nav-trigger {
  color: #fff;
  box-shadow: inset 0 -2px 0 0 var(--red-bright);
  border-radius: 0;
}

.wfx-nav-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  min-width: 210px;
  padding: 8px;
  display: grid;
  gap: 2px;
  background: linear-gradient(180deg, rgba(13,15,18,0.97), rgba(6,7,9,0.97));
  border: 1px solid var(--wp-hairline);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 30px 60px -20px rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px);
  transition: opacity 0.2s ease, transform 0.25s var(--wp-ease), visibility 0s linear 0.25s;
  z-index: 60;
}

.wfx-nav-menu::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red-bright), transparent);
}

.wfx-nav-group.is-open .wfx-nav-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity 0.2s ease, transform 0.25s var(--wp-ease), visibility 0s;
}

.wfx-nav-menu a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 13px;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

.wfx-nav-menu a small {
  font-family: var(--font-body);
  font-size: 12px;
  text-transform: none;
  color: var(--muted);
  letter-spacing: 0;
}

.wfx-nav-menu a:hover,
.wfx-nav-menu a:focus-visible {
  background: rgba(255,43,62,0.1);
}

.wfx-nav-menu a.on {
  background: rgba(255,43,62,0.14);
  box-shadow: inset 2px 0 0 var(--red-bright);
}

/* ---------- hero cinematográfico ---------- */

.hero-art {
  filter: blur(12px) saturate(0.6) brightness(0.6) contrast(1.08);
}

.hero-art::after {
  background:
    radial-gradient(42% 50% at 27% 46%, rgba(224,0,19,0.3), transparent 72%),
    radial-gradient(70% 60% at 50% 42%, rgba(7,8,9,0.6), rgba(7,8,9,0.4) 60%, transparent 88%),
    linear-gradient(180deg, rgba(6,7,9,0.55), rgba(6,7,9,0.55) 55%, var(--bg) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(2,3,3,0.65) 100%);
}

.wfx-hero-web {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.wfx-hero-web.is-visible {
  opacity: 1;
}

.hero-inner {
  z-index: 1;
}

body[data-page="home"] .amb-home {
  display: none;
}

.hero-net {
  background: linear-gradient(180deg, #fff 30%, #d9d2d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-tag {
  font-size: clamp(16px, 1.55vw, 19px);
  color: #d6d0d3;
}

.hero-panel {
  background: var(--wp-surface);
  border-color: var(--wp-hairline);
  box-shadow: var(--wp-lift);
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red-bright), transparent);
  opacity: 0.8;
}

/* ---------- superficies ---------- */

.conn-card,
.disc-card,
.ip-card,
.conn-ip {
  box-shadow: var(--wp-lift);
}

.conn-card {
  background: var(--wp-surface);
  border-color: var(--wp-hairline);
}

.conn-card:hover {
  border-color: var(--wp-rim);
  box-shadow: var(--wp-lift-hover);
}

.feat-media:not(.feat-cut) {
  box-shadow: var(--wp-lift);
  transition: transform 0.45s var(--wp-ease), box-shadow 0.45s var(--wp-ease), border-color 0.45s;
}

.feat-media:not(.feat-cut):hover {
  border-color: var(--wp-rim);
  box-shadow: var(--wp-lift-hover);
}

.feat-text,
.sec-sub,
.disc-card p {
  color: #b9b1b5;
}

.steps li span {
  color: #d9d3d6;
}

/* ---------- pie ---------- */

.footer {
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,43,62,0.5) 50%, transparent);
  pointer-events: none;
}

.foot-col a,
.foot-col .fi {
  transition: color 0.2s, transform 0.2s var(--wp-ease);
}

.foot-col a:hover,
.foot-col .fi:hover {
  color: var(--ink);
  transform: translateX(3px);
}

@media (max-width: 1100px) {
  .hero-art::after {
    background:
      radial-gradient(60% 40% at 50% 30%, rgba(224,0,19,0.3), transparent 72%),
      radial-gradient(80% 60% at 50% 40%, rgba(7,8,9,0.6), rgba(7,8,9,0.4) 60%, transparent 88%),
      linear-gradient(180deg, rgba(6,7,9,0.55), rgba(6,7,9,0.55) 55%, var(--bg) 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wfx-hero-web,
  .wfx-nav-menu,
  .foot-col a {
    transition: none;
  }
}
