/* =========================================================
   Hostyva — styles.css
   Design tokens, base, components, sections, effects.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --navy: #0D1B6E;
  --blue: #1E5CFF;
  --green: #18E0A6;

  --bg: #060B26;
  --bg-soft: #0A1238;
  --surface: #101C4F;
  --surface-2: rgba(255, 255, 255, 0.04);
  --line: rgba(242, 244, 255, 0.10);
  --line-strong: rgba(242, 244, 255, 0.18);

  --ink: #F4F6FF;
  --ink-soft: rgba(244, 246, 255, 0.74);
  --ink-mute: rgba(244, 246, 255, 0.46);

  --grad-brand: linear-gradient(135deg, var(--navy) 0%, var(--blue) 60%, var(--green) 130%);
  --grad-text: linear-gradient(100deg, var(--blue) 0%, var(--green) 100%);

  --radius: 18px;
  --radius-sm: 10px;

  --container: 1240px;

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 0.2s;
  --dur-med: 0.5s;
  --dur-slow: 0.9s;

  --cube-size: 220px;
}

@media (min-width: 720px) {
  :root { --cube-size: 284px; }
}
@media (min-width: 1200px) {
  :root { --cube-size: 338px; }
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: #5C6B58;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

input, textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: none;
  outline: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 960px) {
  .container { padding: 0 40px; }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--blue);
  color: #fff;
  padding: 12px 20px;
  z-index: 9999;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Background glow (mouse-reactive, decorative) ---------- */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(640px circle at var(--mx, 70%) var(--my, 20%), rgba(30, 92, 255, 0.22), transparent 60%),
    radial-gradient(520px circle at 15% 80%, rgba(24, 224, 166, 0.10), transparent 60%);
  transition: background-position 0.2s ease-out;
}

/* ---------- Splash ---------- */
.splash {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  animation: splash-hide 0.6s var(--ease) 4.5s forwards;
}
.splash.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.splash-logo {
  width: 56px;
  height: 56px;
  animation: splash-pulse 1.4s ease-in-out infinite;
}
.splash-line {
  width: 120px;
  height: 2px;
  background: var(--line-strong);
  overflow: hidden;
  position: relative;
  border-radius: 2px;
}
.splash-line::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  background: var(--grad-text);
  animation: splash-bar 1.1s ease-in-out infinite;
}
@keyframes splash-pulse {
  0%, 100% { opacity: 0.6; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.04); }
}
@keyframes splash-bar {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}
@keyframes splash-hide {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #5C6B58;
  transition: background var(--dur-fast) ease, backdrop-filter var(--dur-fast) ease;
}
.nav.is-scrolled {
  background: #5C6B58;
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 24px;
}
@media (min-width: 960px) {
  .nav-inner { padding: 20px 40px; }
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}
.brand-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid rgba(244, 246, 255, 0.30);
  border-radius: 8px;
  background: rgba(244, 246, 255, 0.10);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.brand-mark { width: 26px; height: 26px; flex-shrink: 0; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-accent { color: var(--green); }

.nav-links {
  display: none;
  align-items: center;
  gap: 32px;
}
@media (min-width: 860px) {
  .nav-links { display: flex; }
}
.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 2px;
  transition: color var(--dur-fast) ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--grad-text);
  transition: right var(--dur-med) var(--ease);
  border-radius: 2px;
}
.nav-link:hover, .nav-link.is-active {
  color: var(--ink);
}
.nav-link:hover::after, .nav-link.is-active::after {
  right: 0;
}

.nav-cta {
  display: none;
}
@media (min-width: 860px) {
  .nav-cta { display: inline-flex; }
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
}
@media (min-width: 860px) {
  .nav-toggle { display: none; }
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--dur-fast) ease, opacity var(--dur-fast) ease;
}
.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); }

.nav-mobile {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows var(--dur-med) var(--ease), background var(--dur-fast) ease;
}
.nav-mobile.is-open {
  grid-template-rows: 1fr;
  background: rgba(47, 58, 44, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(244, 246, 255, 0.10);
}
.nav-mobile > nav {
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 8px 24px 20px;
}
.nav-mobile a {
  padding: 12px 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform var(--dur-fast) ease, box-shadow var(--dur-fast) ease, background var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-text);
  color: #04102E;
  box-shadow: 0 10px 30px -10px rgba(30, 92, 255, 0.6);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px -10px rgba(24, 224, 166, 0.55);
}
.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: var(--surface-2);
}
.btn-ghost:hover {
  border-color: var(--blue);
  background: rgba(30, 92, 255, 0.10);
  transform: translateY(-2px);
}

/* ---------- Section helpers ---------- */
section { position: relative; padding: 88px 0; }
@media (min-width: 960px) { section { padding: 128px 0; } }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.8rem, 4.2vw, 2.6rem);
  max-width: 18ch;
  margin-bottom: 18px;
}
.section-lead {
  color: var(--ink-soft);
  max-width: 52ch;
  font-size: 1.05rem;
}
.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Reveal-on-scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
.reveal[data-split] { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: 110px;
  padding-bottom: 36px;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 40px;
  overflow: hidden;
  background: #5C6B58;
}
@media (min-width: 960px) { .hero { padding-top: 132px; padding-bottom: 48px; } }

/* Decorative mid-height tech readout: coordinates + line + scroll indicator */
.hero-deco {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 246, 255, 0.45);
}
@media (min-width: 720px) {
  .hero-deco { font-size: 0.72rem; letter-spacing: 0.16em; gap: 16px; }
}
.hero-coords {
  flex-shrink: 0;
}
.hero-deco-line {
  flex: 1;
  min-width: 24px;
  height: 1px;
  background: linear-gradient(90deg, rgba(244, 246, 255, 0.28), rgba(244, 246, 255, 0.05));
}
.hero-scroll span:first-child {
  display: none;
}
@media (min-width: 560px) {
  .hero-scroll span:first-child { display: inline; }
}

/* ---------- 3D Cube ---------- */
.hero-cube-stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
  pointer-events: none;
  min-height: 280px;
}
.hero-cube-stage .cube-wrap {
  pointer-events: auto;
}
@media (min-width: 860px) {
  .hero-cube-stage .cube-wrap {
    margin-top: -70px;
  }
}
@media (min-width: 860px) {
  .hero-cube-stage {
    position: absolute;
    inset: 0;
    flex: none;
    min-height: 0;
  }
}

/* ---------- Geo readout (left of cube) ---------- */
.hero-geo {
  display: none;
}
@media (min-width: 860px) {
  .hero-geo {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: absolute;
    left: clamp(32px, 8vw, 120px);
    right: calc(50% + var(--cube-size) / 2 + 16px);
    top: calc(50% - 70px);
    transform: translateY(-50%);
    z-index: 2;
    pointer-events: none;
  }
}
.hero-geo-city {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(244, 246, 255, 0.55);
}
.hero-geo-rule {
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(244,246,255,0.30), rgba(244,246,255,0.08));
}
.hero-geo-coords {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.70rem;
  letter-spacing: 0.12em;
  color: rgba(244, 246, 255, 0.42);
}
.hero-geo-mark {
  color: rgba(244, 246, 255, 0.60);
}
.hero-geo-sep {
  letter-spacing: 0.06em;
  color: rgba(244, 246, 255, 0.25);
}

/* ---------- Geo readout (right of cube) ---------- */
.hero-geo-right {
  display: none;
}
@media (min-width: 860px) {
  .hero-geo-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: absolute;
    left: calc(50% + var(--cube-size) / 2 + 20px);
    right: clamp(32px, 8vw, 120px);
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    pointer-events: none;
    text-align: right;
  }
}
.hero-geo-r-top {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 246, 255, 0.55);
}
.hero-geo-r-bottom {
  font-family: var(--font-mono);
  font-size: 0.70rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 246, 255, 0.42);
}

/* ---------- Bottom content grid ---------- */
.hero-bottom {
  position: relative;
  z-index: 1;
  margin-top: auto;
}
.hero-bottom-grid {
  display: grid;
  gap: 28px;
  align-items: end;
}
@media (min-width: 860px) {
  .hero-bottom-grid {
    grid-template-columns: 1.3fr 1fr;
    gap: 60px;
  }
}

.hero-title {
  font-size: clamp(2.1rem, 6.4vw, 3.8rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.08;
  color: var(--ink);
}

.hero-bottom-right {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hero-sub {
  font-size: 0.98rem;
  color: var(--ink-soft);
  max-width: 38ch;
}
.hero-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 4px;
  width: fit-content;
  transition: color var(--dur-fast) ease, border-color var(--dur-fast) ease, gap var(--dur-fast) ease;
}
.hero-cta-link:hover {
  color: var(--green);
  border-color: var(--green);
  gap: 14px;
}

/* ---------- Scroll indicator ---------- */
.hero-scroll {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-scroll-track {
  position: relative;
  width: 40px;
  height: 1px;
  background: rgba(244, 246, 255, 0.18);
  overflow: hidden;
}
.hero-scroll-dot {
  position: absolute;
  top: -1.5px;
  left: -10px;
  width: 10px;
  height: 4px;
  border-radius: 2px;
  background: var(--green);
  animation: scroll-trickle 2.4s ease-in-out infinite;
}
@keyframes scroll-trickle {
  0%   { left: -10px; opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { left: 40px; opacity: 0; }
}

.cube-wrap {
  position: relative;
  width: var(--cube-size);
  height: var(--cube-size);
  perspective: 900px;
  animation: cube-float 7s ease-in-out infinite;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.cube-wrap.is-dragging {
  cursor: grabbing;
  animation-play-state: paused;
}
@keyframes cube-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@media (prefers-reduced-motion: reduce) {
  .cube-wrap { animation: none; }
}

.cube {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: cube-spin 22s linear infinite;
}
@keyframes cube-spin {
  0%   { transform: rotateX(-20deg) rotateY(0deg); }
  100% { transform: rotateX(-20deg) rotateY(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .cube { animation: none; }
}

.cube-face {
  position: absolute;
  inset: 0;
  width: var(--cube-size);
  height: var(--cube-size);
  border-radius: 5px;
  overflow: hidden;
}

/* Groove (channel) color — dark base visible between tiles */
.cube-face--front  { background: #7A766B; }
.cube-face--right  { background: #384535; }
.cube-face--back   { background: #65625A; }
.cube-face--left   { background: #2E3B2B; }
.cube-face--top    { background: #8A867C; }
.cube-face--bottom { background: #252F23; }

/* 3D transforms */
.cube-face--front  { transform: rotateY(0deg)   translateZ(calc(var(--cube-size) / 2)); }
.cube-face--right  { transform: rotateY(90deg)  translateZ(calc(var(--cube-size) / 2)); }
.cube-face--back   { transform: rotateY(180deg) translateZ(calc(var(--cube-size) / 2)); }
.cube-face--left   { transform: rotateY(-90deg) translateZ(calc(var(--cube-size) / 2)); }
.cube-face--top    { transform: rotateX(90deg)  translateZ(calc(var(--cube-size) / 2)); }
.cube-face--bottom { transform: rotateX(-90deg) translateZ(calc(var(--cube-size) / 2)); }

/* Directional-light overlay per face (pointer-events:none, sits above tiles) */
.cube-face::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 4;
}
.cube-face--top::after    { background: rgba(255,255,255,0.18); }
.cube-face--front::after  { background: rgba(255,255,255,0.07); }
.cube-face--right::after  { background: rgba(0,0,0,0.05); }
.cube-face--left::after   { background: rgba(0,0,0,0.16); }
.cube-face--back::after   { background: rgba(0,0,0,0.24); }
.cube-face--bottom::after { background: rgba(0,0,0,0.30); }

/* 3×3 tile grid */
.cube-tiles {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 4.5%;
  padding: 5.5%;
  z-index: 1;
}

/* Cream tiles (front / back / top) */
.cube-face--front .cube-tile,
.cube-face--back  .cube-tile,
.cube-face--top   .cube-tile {
  border-radius: 11%;
  background: linear-gradient(145deg, #F6F3E8 0%, #DEDAD0 100%);
  box-shadow:
    4px 4px 12px rgba(0,0,0,0.32),
    -1px -1px 4px rgba(255,255,255,0.80),
    inset 2px 2px 5px rgba(255,255,255,0.80),
    inset -2px -2px 5px rgba(0,0,0,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #122070;
  transition: box-shadow 0.15s ease;
}

/* Green tiles (right / left / bottom) */
.cube-face--right  .cube-tile,
.cube-face--left   .cube-tile,
.cube-face--bottom .cube-tile {
  border-radius: 11%;
  background: linear-gradient(145deg, #B0C4A4 0%, #8EA48A 100%);
  box-shadow:
    4px 4px 12px rgba(0,0,0,0.40),
    -1px -1px 4px rgba(255,255,255,0.28),
    inset 2px 2px 5px rgba(255,255,255,0.28),
    inset -2px -2px 5px rgba(0,0,0,0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.96);
  transition: box-shadow 0.15s ease;
}

.cube-tile svg {
  width: 72%;
  height: 72%;
  pointer-events: none;
}

/* ── Center tile: pops out and is the only clickable one ── */
.cube-tile--center {
  position: relative;
  z-index: 3;
  transform: scale(1.17);
  cursor: pointer;
  animation: center-tile-pulse 3.2s ease-in-out infinite;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
@keyframes center-tile-pulse {
  0%, 100% { transform: scale(1.17); }
  50%       { transform: scale(1.23); }
}
@media (prefers-reduced-motion: reduce) {
  .cube-tile--center { animation: none; }
}
.cube-tile--center:hover {
  animation: none;
  transform: scale(1.28) !important;
}
.cube-tile--center:active {
  transform: scale(1.10) !important;
  animation: none;
}

/* Cream center tile — brighter + deeper shadow */
.cube-face--front .cube-tile--center,
.cube-face--back  .cube-tile--center,
.cube-face--top   .cube-tile--center {
  background: linear-gradient(145deg, #FEFBF0 0%, #E6E2D2 100%);
  box-shadow:
    6px 6px 18px rgba(0,0,0,0.36),
    -2px -2px 6px rgba(255,255,255,0.95),
    inset 3px 3px 6px rgba(255,255,255,0.90),
    inset -3px -3px 7px rgba(0,0,0,0.14);
}
/* Green center tile — brighter + deeper shadow */
.cube-face--right  .cube-tile--center,
.cube-face--left   .cube-tile--center,
.cube-face--bottom .cube-tile--center {
  background: linear-gradient(145deg, #C2D6B6 0%, #9CB89A 100%);
  box-shadow:
    6px 6px 18px rgba(0,0,0,0.46),
    -2px -2px 5px rgba(255,255,255,0.36),
    inset 3px 3px 6px rgba(255,255,255,0.36),
    inset -3px -3px 7px rgba(0,0,0,0.22);
}

/* Link inside center tile */
.cube-tile-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

/* Section label */
.cube-face-label {
  position: absolute;
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: clamp(0.50rem, 1.4vw, 0.64rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  z-index: 5;
}
.cube-face--front .cube-face-label,
.cube-face--back  .cube-face-label,
.cube-face--top   .cube-face-label { color: rgba(18,35,100,0.55); }
.cube-face--right  .cube-face-label,
.cube-face--left   .cube-face-label,
.cube-face--bottom .cube-face-label { color: rgba(255,255,255,0.55); }

.cube-shadow {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -36px;
  height: 36px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.5), transparent 70%);
  filter: blur(10px);
  z-index: -1;
  animation: cube-shadow-pulse 7s ease-in-out infinite;
}
@keyframes cube-shadow-pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.85); }
}
@media (prefers-reduced-motion: reduce) {
  .cube-shadow { animation: none; }
}

/* Drag hint arrows */
.cube-drag-hint {
  position: absolute;
  bottom: -56px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.60rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(244,246,255,0.45);
  pointer-events: none;
  white-space: nowrap;
  animation: hint-breathe 2.6s ease-in-out infinite;
  transition: opacity 0.7s ease;
}
.cube-drag-hint svg {
  flex-shrink: 0;
  animation: hint-nudge 2.6s ease-in-out infinite;
}
.cube-drag-hint svg:last-child {
  animation-direction: reverse;
}
.cube-drag-hint.is-gone {
  opacity: 0;
  pointer-events: none;
}
@keyframes hint-breathe {
  0%, 100% { opacity: 0.40; }
  50%       { opacity: 0.78; }
}
@keyframes hint-nudge {
  0%, 100% { transform: translateX(0); }
  50%       { transform: translateX(-4px); }
}

.icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Services ---------- */
.services { background: var(--bg-soft); }
.services-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  margin-top: 48px;
}
@media (min-width: 720px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1080px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
}
.service-card {
  padding: 32px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast) ease, background var(--dur-fast) ease;
}
.service-card:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
}
.service-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--green);
  margin-bottom: 18px;
}
.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.service-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ---------- Tilt (shared) ---------- */
[data-tilt] {
  transform: perspective(800px) rotateX(0deg) rotateY(0deg);
  transition: transform 0.4s var(--ease);
  will-change: transform;
}

/* ---------- Trabajos ---------- */
.work-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: 1fr;
  margin-top: 48px;
}
@media (min-width: 860px) {
  .work-grid { grid-template-columns: repeat(3, 1fr); }
}
.work-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.work-card--ghost { border-style: dashed; }

.work-preview {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  aspect-ratio: 4 / 3;
}
.work-preview--blue { background: linear-gradient(150deg, #0D1B6E, #1E5CFF 80%); }
.work-preview--green { background: linear-gradient(150deg, #0A2A3E, #18E0A6 120%); }
.work-preview--mix { background: linear-gradient(150deg, #0D1B6E, #1E5CFF 55%, #18E0A6 130%); }

/* Real screenshot card */
.work-preview--photo {
  padding: 0;
  gap: 0;
  overflow: hidden;
  display: block;
  position: relative;
  background: #0a0e1f;
  text-decoration: none;
}
.work-preview--photo .browser-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 2;
  background: rgba(10, 14, 31, 0.82);
  backdrop-filter: blur(6px);
  padding: 8px 12px;
  align-items: center;
}
.work-preview--photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s var(--ease);
}
.work-preview--photo:hover img { transform: scale(1.04); }

.browser-bar {
  display: flex;
  gap: 6px;
}
.browser-bar span {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}
.browser-url {
  width: auto !important;
  height: auto !important;
  border-radius: 4px !important;
  background: rgba(255,255,255,0.10) !important;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: rgba(244,246,255,0.55);
  padding: 2px 8px;
  margin-left: 4px;
  letter-spacing: 0.04em;
}
.browser-body {
  flex: 1;
  background: rgba(6, 11, 38, 0.35);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mock-line { border-radius: 6px; background: rgba(255, 255, 255, 0.28); }
.mock-line--lg { height: 14px; width: 70%; }
.mock-line--sm { height: 9px; width: 45%; background: rgba(255, 255, 255, 0.16); }
.mock-grid {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.mock-grid div {
  height: 36px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.14);
}

.work-info { padding: 22px; }
.work-info h3 { font-size: 1.1rem; margin-bottom: 4px; }
.work-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}
.work-info p:not(.work-tag) {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 14px;
}
.work-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  display: inline-flex;
  transition: color var(--dur-fast) ease, gap var(--dur-fast) ease;
}
.work-link:hover { color: var(--green); }

/* ---------- Equipo ---------- */
.team { background: var(--bg-soft); }
.team-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 48px;
}
@media (min-width: 720px) {
  .team-grid { grid-template-columns: repeat(4, 1fr); }
}
.team-card {
  text-align: center;
  padding: 28px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  transition: border-color var(--dur-fast) ease, background var(--dur-fast) ease;
}
.team-card:hover { border-color: var(--line-strong); background: rgba(255,255,255,0.06); }
.team-avatar {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: #04102E;
  background: var(--grad-text);
}
.team-card h3 { font-size: 1rem; margin-bottom: 4px; }
.team-role { color: var(--ink-mute); font-size: 0.85rem; }

/* Photo-style team cards */
/* ---------- Team members new layout ---------- */
.tm-members {
  display: flex;
  gap: 28px;
  justify-content: center;
  margin-top: 48px;
  flex-wrap: wrap;
}

.tm-member {
  flex: 0 0 clamp(260px, 38%, 360px);
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Card with photo */
.tm-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.tm-card:hover { border-color: var(--line-strong); box-shadow: 0 8px 32px rgba(0,0,0,0.25); }

.tm-photo-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.tm-photo-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.5s var(--ease);
}
.tm-card:hover .tm-photo-wrap img { transform: scale(1.04); }

.tm-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, rgba(5,8,20,0.80) 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.tm-card:hover .tm-photo-overlay { opacity: 1; }
.tm-view-hint {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.90);
}

/* Nameplate bar */
.tm-nameplate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
}
.tm-nameplate h3 { font-size: 1.10rem; margin-bottom: 2px; }
.tm-role { color: var(--ink-mute); font-size: 0.82rem; }

.tm-toggle-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.35s var(--ease);
}
.tm-toggle-btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.tm-toggle-btn.is-open {
  transform: rotate(45deg);
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* CV accordion — grid trick for smooth height */
.tm-cv {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.48s var(--ease);
  margin-top: 2px;
}
.tm-cv.is-open { grid-template-rows: 1fr; }

.tm-cv-inner {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--surface);
}

/* CV items with stagger */
.tm-cv-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.30s ease, transform 0.30s ease;
}
.tm-cv-item:last-child { border-bottom: none; }
.tm-cv.is-open .tm-cv-item { opacity: 1; transform: translateY(0); }
.tm-cv.is-open .tm-cv-item:nth-child(1) { transition-delay: 0.06s; }
.tm-cv.is-open .tm-cv-item:nth-child(2) { transition-delay: 0.12s; }
.tm-cv.is-open .tm-cv-item:nth-child(3) { transition-delay: 0.18s; }
.tm-cv.is-open .tm-cv-item:nth-child(4) { transition-delay: 0.24s; }
.tm-cv.is-open .tm-cv-item:nth-child(5) { transition-delay: 0.30s; }
.tm-cv.is-open .tm-cv-item:nth-child(6) { transition-delay: 0.36s; }

.tm-cv-tag {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 3px 7px;
  flex-shrink: 0;
  margin-top: 2px;
  white-space: nowrap;
}
.tm-cv-tag--edu   { background: rgba(30,92,255,0.15); color: #5b8fff; }
.tm-cv-tag--star  { background: rgba(255,200,30,0.15); color: #f0b429; }
.tm-cv-tag--prize { background: rgba(16,185,129,0.15); color: #10b981; }
.tm-cv-tag--lang  { background: rgba(139,92,246,0.15); color: #a78bfa; }
.tm-cv-tag--sport { background: rgba(236,72,153,0.15); color: #f472b6; }
.tm-cv-tag--tech  { background: rgba(6,182,212,0.15);  color: #22d3ee; }

.tm-cv-text { display: flex; flex-direction: column; gap: 2px; }
.tm-cv-text strong { font-size: 0.84rem; color: var(--ink); line-height: 1.35; }
.tm-cv-text span   { font-size: 0.76rem; color: var(--ink-mute); line-height: 1.45; }

/* ---------- Redes ---------- */
.social-section { }
.social-inner {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 860px) {
  .social-inner { grid-template-columns: 1.1fr 1fr; }
}
.social-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.social-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-weight: 600;
  background: var(--surface-2);
  transition: border-color var(--dur-fast) ease, background var(--dur-fast) ease, transform var(--dur-fast) ease;
}
.social-link:hover {
  border-color: var(--green);
  background: rgba(24, 224, 166, 0.08);
}
.social-icon {
  width: 22px; height: 22px;
  color: var(--green);
  flex-shrink: 0;
}

/* ---------- Redes carousel ---------- */
.redes-carousel-wrap {
  margin-top: 40px;
  overflow: hidden;
  /* fade edges */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.redes-track {
  display: flex;
  gap: 22px;
  width: max-content;
  animation: redes-scroll 18s linear infinite;
}
.redes-carousel-wrap:hover .redes-track {
  animation-play-state: paused;
}
@keyframes redes-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 11px)); }
}

/* Base card — full-bleed photo with overlay text */
.redes-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  width: clamp(280px, 36vw, 460px);
  min-height: 540px;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.30s var(--ease), box-shadow 0.30s var(--ease);
}
.redes-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 24px 70px rgba(0,0,0,0.55);
}

/* Background photo */
.redes-card-photo {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s var(--ease);
  z-index: 0;
}
.redes-card:hover .redes-card-photo { transform: scale(1.06); }

/* Dark gradient overlay — base */
.redes-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(5, 8, 20, 0.30) 0%,
    rgba(5, 8, 20, 0.10) 25%,
    rgba(5, 8, 20, 0.55) 60%,
    rgba(5, 8, 20, 0.92) 100%
  );
  transition: opacity 0.4s ease;
}

/* Per-platform color bloom at the bottom */
.redes-card--ig  .redes-card-overlay {
  background: linear-gradient(
    to bottom,
    rgba(5, 8, 20, 0.30) 0%,
    rgba(5, 8, 20, 0.10) 25%,
    rgba(60, 10, 80, 0.65) 65%,
    rgba(180, 20, 90, 0.88) 100%
  );
}
.redes-card--mail .redes-card-overlay {
  background: linear-gradient(
    to bottom,
    rgba(5, 8, 20, 0.30) 0%,
    rgba(5, 8, 20, 0.10) 25%,
    rgba(10, 30, 100, 0.65) 65%,
    rgba(26, 115, 232, 0.82) 100%
  );
}
.redes-card--tt  .redes-card-overlay {
  background: linear-gradient(
    to bottom,
    rgba(5, 8, 20, 0.30) 0%,
    rgba(5, 8, 20, 0.10) 25%,
    rgba(0, 0, 0, 0.65) 65%,
    rgba(10, 200, 200, 0.70) 100%
  );
}

/* Glow border on hover per platform */
.redes-card--ig:hover  { box-shadow: 0 20px 60px rgba(200, 40, 130, 0.45), 0 0 0 1.5px rgba(200, 40, 130, 0.50); }
.redes-card--mail:hover { box-shadow: 0 20px 60px rgba(26, 115, 232, 0.40), 0 0 0 1.5px rgba(26, 115, 232, 0.50); }
.redes-card--tt:hover  { box-shadow: 0 20px 60px rgba(10, 200, 200, 0.35), 0 0 0 1.5px rgba(10, 200, 200, 0.45); }

/* Fallback bg colors when photo missing */
.redes-card--ig  { background: linear-gradient(135deg, #2a0a3e 0%, #8b0057 100%); }
.redes-card--mail { background: linear-gradient(135deg, #0a1628 0%, #1a3a6e 100%); }
.redes-card--tt  { background: #010101; }

/* Floating stat badge (top-right corner) */
.redes-stat-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.90);
  background: rgba(0,0,0,0.40);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 100px;
  padding: 5px 11px;
  backdrop-filter: blur(8px);
}
.redes-stat-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.redes-stat-dot--live  { background: #e1306c; box-shadow: 0 0 6px #e1306c; animation: pulse-dot 2s infinite; }
.redes-stat-dot--blue  { background: #1a73e8; box-shadow: 0 0 6px #1a73e8; }
.redes-stat-dot--tt    { background: #69C9D0; box-shadow: 0 0 6px #69C9D0; }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

/* Content sits above photo + overlay */
.redes-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 24px;
  flex: 1;
}

/* Top row: logo + badge */
.redes-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.redes-logo {
  width: 28px; height: 28px;
  flex-shrink: 0;
  color: #fff;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.6));
}
.redes-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 100px;
  padding: 3px 10px;
  backdrop-filter: blur(6px);
}

/* Bottom content */
.redes-card-bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.redes-card-name {
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.redes-card-desc {
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.72);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Pill CTA button */
.redes-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #050814;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 100px;
  align-self: flex-start;
  transition: gap 0.2s ease, background 0.2s ease;
  margin-top: 4px;
}
.redes-card:hover .redes-pill {
  gap: 12px;
  background: rgba(255,255,255,0.92);
}

/* Email card rows */
.redes-emails {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.redes-email-row {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 10px 14px;
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.redes-email-row:hover {
  background: rgba(255,255,255,0.20);
  border-color: rgba(255,255,255,0.35);
}
.redes-email-who {
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  min-width: 52px;
}
.redes-email-addr {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.70);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.redes-email-arrow {
  flex-shrink: 0;
  font-size: 0.85rem;
  transition: transform 0.2s ease;
}
.redes-email-row:hover .redes-email-arrow { transform: translateX(3px); }

/* ---------- Opiniones ---------- */
.test-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  margin-top: 48px;
}
@media (min-width: 720px) {
  .test-grid { grid-template-columns: repeat(3, 1fr); }
}

.test-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.test-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.35);
}

/* Photo section */
.test-photo {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.test-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s var(--ease);
}
.test-card:hover .test-photo img { transform: scale(1.05); }

.test-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(5,8,20,0.15) 0%,
    rgba(5,8,20,0.55) 100%
  );
}

/* Result badge — styled like reference */
.test-result-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(10,14,31,0.78);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 130px;
}
.test-brand {
  font-family: var(--font-mono);
  font-size: 0.60rem;
  letter-spacing: 0.18em;
  color: var(--green);
  text-transform: uppercase;
}
.test-result-num {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.test-result-sub {
  font-size: 0.70rem;
  color: rgba(255,255,255,0.65);
}

/* "VER WEB" button — bottom right */
.test-web-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(10,14,31,0.78);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-decoration: none;
  padding: 7px 13px;
  border-radius: 6px;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.test-web-btn:hover {
  background: rgba(30,92,255,0.70);
  border-color: rgba(30,92,255,0.60);
}

/* Info section below photo */
.test-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.test-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.test-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--grad-text);
  color: #04102E;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.test-author strong {
  display: block;
  font-size: 0.92rem;
  color: var(--ink);
}
.test-author small {
  font-size: 0.78rem;
  color: var(--ink-mute);
}
.test-quote {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--ink-soft);
  font-style: italic;
}

/* ---------- Contacto / CTA ---------- */
.cta-section { background: var(--bg-soft); }
/* ---------- Contact split layout ---------- */
.contact-split {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
}
@media (min-width: 860px) {
  .contact-split { grid-template-columns: 1fr 1fr; }
}

/* Left panel */
.contact-panel-left {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 8vw, 80px) clamp(28px, 5vw, 60px);
  background: linear-gradient(145deg, #0d0a2e 0%, #1a0a5e 35%, #0a2a5e 70%, #062040 100%);
  display: flex;
  align-items: center;
}

/* Animated blobs */
.contact-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  pointer-events: none;
}
.contact-blob--1 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, #1e5cff 0%, transparent 70%);
  top: -100px; right: -80px;
  animation: blob-float 8s ease-in-out infinite;
}
.contact-blob--2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #00d4a8 0%, transparent 70%);
  bottom: -60px; left: -60px;
  animation: blob-float 10s ease-in-out infinite reverse;
}
@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(20px, -30px) scale(1.05); }
  66%       { transform: translate(-15px, 20px) scale(0.95); }
}

.contact-panel-left-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.contact-eyebrow { color: var(--green); }
.contact-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #fff;
}

.contact-subhead {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.65);
  max-width: 380px;
}

.contact-promises {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
}
.contact-promises li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.85);
}
.cp-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  backdrop-filter: blur(6px);
}
.cp-icon svg { width: 16px; height: 16px; color: var(--green); }

.contact-direct {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.contact-direct-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.40);
}
.contact-direct-mail {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.70);
  text-decoration: none;
  transition: color 0.2s ease;
}
.contact-direct-mail:hover { color: var(--green); }

/* Right panel */
.contact-panel-right {
  padding: clamp(40px, 8vw, 80px) clamp(28px, 5vw, 60px);
  background: var(--bg);
  display: flex;
  align-items: center;
}

/* Form */
.cta-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  position: relative;
}

/* Fields */
.cf-field {
  position: relative;
}
.cf-field input,
.cf-field textarea {
  width: 100%;
  padding: 18px 0 10px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease;
}
.cf-field textarea { resize: none; min-height: 100px; }

.cf-field label {
  position: absolute;
  left: 0; top: 18px;
  font-size: 0.95rem;
  color: var(--ink-mute);
  pointer-events: none;
  transition: transform 0.25s ease, font-size 0.25s ease, color 0.25s ease;
  transform-origin: left top;
}
.cf-field input:focus + label,
.cf-field input:not(:placeholder-shown) + label,
.cf-field textarea:focus + label,
.cf-field textarea:not(:placeholder-shown) + label {
  transform: translateY(-20px) scale(0.78);
  color: var(--blue);
}

/* Animated underline */
.cf-line {
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  border-radius: 2px;
  transition: width 0.35s var(--ease);
}
.cf-field input:focus ~ .cf-line,
.cf-field textarea:focus ~ .cf-line { width: 100%; }

/* Submit button */
.cf-submit {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 16px 32px;
  border: none;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--blue) 0%, #00d4a8 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-top: 8px;
}
.cf-submit::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #00d4a8 0%, var(--blue) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.cf-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(30,92,255,0.40); }
.cf-submit:hover::before { opacity: 1; }
.cf-submit > * { position: relative; z-index: 1; }

/* Spinner & check */
.cta-form-spinner {
  display: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.30);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}
.cta-form-check { display: none; width: 20px; height: 20px; }
.cta-form-check path {
  fill: none; stroke: #fff; stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
@keyframes spin { to { transform: rotate(360deg); } }

.cta-form.is-loading .cta-form-label  { opacity: 0; }
.cta-form.is-loading .cta-form-spinner { display: block; position: absolute; }
.cta-form.is-loading .cf-submit { pointer-events: none; }

.cta-form.is-success .cta-form-label,
.cta-form.is-success .cf-field,
.cta-form.is-success .cf-submit { display: none; }

/* Success */
.cta-success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  padding: 48px 24px;
  animation: fade-up 0.5s ease forwards;
}
.cta-form.is-success .cta-success { display: flex; }
.cta-success-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--green));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  box-shadow: 0 0 40px rgba(0,212,168,0.35);
}
.cta-success h3 { font-size: 1.4rem; color: var(--ink); }
.cta-success p  { color: var(--ink-soft); max-width: 320px; line-height: 1.6; }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}
.brand--footer { margin-right: 0; }
.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-mute);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}
.footer-links a {
  font-size: 0.9rem;
  color: var(--ink-soft);
  transition: color var(--dur-fast) ease;
}
.footer-links a:hover { color: var(--green); }
.footer-copy {
  font-size: 0.8rem;
  color: var(--ink-mute);
}

/* ---------- Section overlays ---------- */
.s-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.38s var(--ease), visibility 0.38s var(--ease);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.s-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
body.overlay-open { overflow: hidden; }

.s-overlay-scroll {
  min-height: 100vh;
  padding: 110px 0 80px;
  position: relative;
}
.s-overlay-close {
  position: fixed;
  top: 22px;
  right: 24px;
  z-index: 10;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease, transform var(--dur-fast) ease;
}
.s-overlay-close:hover {
  background: var(--surface-2);
  color: var(--ink);
  transform: rotate(90deg);
}
.s-overlay-content {
  padding-top: 20px;
}
.s-overlay-content .eyebrow { margin-bottom: 12px; }
.s-overlay-content .section-title { margin-bottom: 40px; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 800;
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  max-width: min(560px, calc(100vw - 32px));
  box-shadow: 0 8px 32px rgba(0,0,0,0.45);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.cookie-banner.is-hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(16px);
  pointer-events: none;
}
.cookie-banner p {
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.cookie-accept {
  flex-shrink: 0;
  padding: 8px 18px;
  background: var(--blue);
  color: #fff;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background var(--dur-fast) ease;
}
.cookie-accept:hover { background: #1a4fd6; }

/* ---------- Reduced motion ----------
   Only gate truly intrusive/infinite long effects.
   Cube rotation (~28s), hovers, reveals, mesh glow stay active. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
