/* ============================================================
   PAYBOOM — Stylesheet
   Premium dark theme · 3D effects · glassmorphism
   ============================================================ */

:root {
  /* Brand */
  --orange: #f05215;
  --orange-2: #ff7a45;
  --teal: #049ea0;
  --teal-2: #06c4c7;

  --bg: #06121a;
  --bg-2: #0a1d29;
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-2: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.16);
  --text: #f5f8f9;
  --text-2: #b9cdd2;
  --text-3: #7a8a90;

  --primary: var(--orange);
  --primary-2: var(--orange-2);
  --accent: var(--teal);
  --accent-2: var(--teal-2);

  --grad: linear-gradient(135deg, #f05215 0%, #f57a3a 35%, #06c4c7 70%, #049ea0 100%);
  --grad-soft: linear-gradient(135deg, rgba(240, 82, 21, 0.18), rgba(4, 158, 160, 0.18));
  --grad-text: linear-gradient(110deg, #ff7a45 0%, #f05215 30%, #06c4c7 65%, #049ea0 100%);
  --shadow: 0 30px 80px -20px rgba(240, 82, 21, 0.4);

  --radius: 20px;
  --radius-sm: 12px;
  --maxw: 1200px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Space Grotesk', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

/* ---------- Background atmospherics ---------- */
.noise {
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  opacity: 0.04; pointer-events: none; z-index: 1; mix-blend-mode: overlay;
}
.grid-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 75%);
}
.orb {
  position: fixed; border-radius: 50%; filter: blur(120px);
  pointer-events: none; z-index: 0; opacity: 0.55;
  animation: float 18s ease-in-out infinite;
}
.orb-1 { width: 520px; height: 520px; background: #f05215; top: -160px; left: -120px; }
.orb-2 { width: 440px; height: 440px; background: #049ea0; top: 320px; right: -140px; animation-delay: -6s; }
.orb-3 { width: 380px; height: 380px; background: #ff7a45; top: 1000px; left: 30%; animation-delay: -12s; opacity: 0.35; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(40px, -30px) scale(1.08); }
}

/* ---------- Container ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  border-radius: 999px; font-weight: 500; font-size: 15px;
  letter-spacing: -0.01em;
  transition: all .25s cubic-bezier(.2,.8,.2,1);
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--primary {
  background: var(--grad);
  background-size: 200% 200%;
  color: #fff; font-weight: 600;
  box-shadow: 0 10px 30px -8px rgba(240, 82, 21, 0.6), inset 0 1px 0 rgba(255,255,255,0.35);
  animation: gradShift 6s ease infinite;
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(4, 158, 160, 0.7), inset 0 1px 0 rgba(255,255,255,0.5); }
.btn--ghost {
  background: var(--bg-glass);
  border: 1px solid var(--border-2);
  color: var(--text); backdrop-filter: blur(12px);
}
.btn--ghost:hover { background: var(--bg-glass-2); border-color: rgba(255,255,255,0.25); transform: translateY(-2px); }

@keyframes gradShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.02em; }
/* Logo SVG renders directly — see HTML */
.logo svg { display: block; height: 26px; width: auto; }
.logo--lg svg { height: 32px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 16px; left: 0; right: 0; z-index: 50;
  transition: top .3s ease;
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px;
  background: rgba(10, 10, 35, 0.6);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}
.nav.is-scrolled .nav__inner {
  background: rgba(10, 10, 35, 0.85);
  border-color: var(--border-2);
}
.nav__links { display: flex; gap: 28px; }
.nav__links a {
  font-size: 14px; color: var(--text-2);
  transition: color .2s; position: relative;
}
.nav__links a:hover { color: var(--text); }
.nav__links a::after {
  content: ""; position: absolute; bottom: -6px; left: 0; right: 0;
  height: 2px; background: var(--grad); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta { display: flex; gap: 8px; align-items: center; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ---------- HERO ---------- */
.hero { padding: 160px 0 80px; position: relative; }
.hero__grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--bg-glass); border: 1px solid var(--border-2);
  font-size: 13px; color: var(--text-2); margin-bottom: 24px;
  backdrop-filter: blur(8px);
}
.badge__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 12px var(--orange);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:.4; } }

.hero__title {
  font-size: clamp(40px, 6.4vw, 84px);
  line-height: 0.98; letter-spacing: -0.04em;
  font-weight: 600; margin-bottom: 24px;
}
.grad-text {
  background: var(--grad-text);
  background-size: 200% 200%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: gradShift 8s ease infinite;
}
.hero__sub {
  font-size: 18px; color: var(--text-2);
  max-width: 540px; margin-bottom: 32px;
}
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 56px; }
.hero__stats {
  display: flex; gap: 40px;
  padding-top: 32px; border-top: 1px solid var(--border);
}
.hero__stats div { display: flex; flex-direction: column; }
.hero__stats strong {
  font-size: 28px; font-weight: 600; letter-spacing: -0.02em;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__stats span { font-size: 13px; color: var(--text-3); }

.hero__visual {
  position: relative; height: 560px;
}
#cardCanvas { width: 100%; height: 100%; }
.hero__chip {
  position: absolute;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(10, 10, 35, 0.7);
  border: 1px solid var(--border-2);
  font-size: 13px; color: var(--text);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
  animation: floatChip 5s ease-in-out infinite;
}
.chip-1 { top: 10%; left: 5%; animation-delay: 0s; }
.chip-2 { top: 50%; right: 0%; animation-delay: -1.6s; }
.chip-3 { bottom: 12%; left: 10%; animation-delay: -3.2s; }
@keyframes floatChip {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* ---------- Trusted by ---------- */
.trusted { margin-top: 100px; text-align: center; }
.trusted__label { font-size: 13px; color: var(--text-3); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 24px; }
.trusted__logos {
  display: flex; flex-wrap: wrap; gap: 48px; justify-content: center; align-items: center;
  opacity: 0.7;
}
.trusted__logos span {
  font-weight: 700; font-size: 18px; letter-spacing: 0.05em;
  color: var(--text-2); white-space: nowrap;
}
.trusted__logos small { color: var(--cyan); margin: 0 2px; }

/* ---------- Sections ---------- */
.section { padding: 120px 0; position: relative; }
.section--alt { background: linear-gradient(180deg, transparent, rgba(123, 92, 255, 0.05), transparent); }

.section__head { max-width: 720px; margin-bottom: 64px; }
.section__head--center { margin: 0 auto 64px; text-align: center; }

.kicker {
  display: inline-block;
  font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--teal-2); font-weight: 600; margin-bottom: 14px;
}
.section__title {
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.05; letter-spacing: -0.03em; font-weight: 600;
  margin-bottom: 18px;
}
.section__sub { color: var(--text-2); font-size: 17px; max-width: 620px; }
.section__head--center .section__sub { margin: 0 auto; }

/* ---------- Cards (productos) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .cards--4 { grid-template-columns: 1fr; } }
.card {
  position: relative;
  padding: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .4s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .3s;
  transform-style: preserve-3d;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(240, 82, 21, 0.18), transparent 40%);
  opacity: 0; transition: opacity .4s;
  pointer-events: none;
}
.card:hover { border-color: var(--border-2); box-shadow: 0 30px 80px -30px rgba(240, 82, 21, 0.35); }
.card:hover::before { opacity: 1; }
.card__icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center;
  margin-bottom: 24px;
  background: var(--bg-glass-2);
  border: 1px solid var(--border-2);
  color: var(--teal-2);
  transform: translateZ(20px);
  transition: transform .4s;
}
.icon-1 { color: #f05215; box-shadow: inset 0 0 30px rgba(240, 82, 21, 0.25); }
.icon-2 { color: #049ea0; box-shadow: inset 0 0 30px rgba(4, 158, 160, 0.25); }
.icon-3 { color: #06c4c7; box-shadow: inset 0 0 30px rgba(6, 196, 199, 0.25); }
.icon-4 { color: #ff7a45; box-shadow: inset 0 0 30px rgba(255, 122, 69, 0.25); }
.icon-5 { color: #f05215; box-shadow: inset 0 0 30px rgba(240, 82, 21, 0.25); }
.icon-6 { color: #049ea0; box-shadow: inset 0 0 30px rgba(4, 158, 160, 0.25); }
.card h3 {
  font-size: 22px; letter-spacing: -0.02em; margin-bottom: 10px;
  font-weight: 600;
}
.card > p { color: var(--text-2); font-size: 15px; margin-bottom: 18px; }
.card__list { display: flex; flex-direction: column; gap: 8px; }
.card__list li {
  font-size: 14px; color: var(--text-2);
  padding-left: 22px; position: relative;
}
.card__list li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 12px; height: 12px;
  background: var(--grad);
  border-radius: 4px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l5 5L20 7' stroke='black' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l5 5L20 7' stroke='black' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.card--link { display: block; color: inherit; text-decoration: none; cursor: pointer; }
.card__cta {
  display: inline-block; margin-top: 18px;
  font-size: 14px; font-weight: 600; color: var(--orange-2);
  transition: transform .25s, color .25s;
}
.card--link:hover .card__cta { transform: translateX(4px); color: var(--teal-2); }

/* ---------- Global / Globe ---------- */
.global__grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center;
}
.global__metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 28px 0; }
.metric {
  padding: 18px 22px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.metric__num {
  display: block;
  font-size: 32px; font-weight: 600; letter-spacing: -0.02em;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.metric__lbl { font-size: 13px; color: var(--text-3); }

.global__pills { display: flex; flex-wrap: wrap; gap: 8px; }
.global__pills span {
  padding: 6px 14px; border-radius: 999px;
  background: var(--bg-glass); border: 1px solid var(--border-2);
  font-size: 13px; color: var(--text-2);
}
.global__visual { position: relative; height: 560px; }
#globeCanvas { width: 100%; height: 100%; }
.globe__legend {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 18px;
  padding: 8px 16px;
  background: rgba(10,10,35,0.7); border: 1px solid var(--border-2);
  border-radius: 999px; backdrop-filter: blur(12px);
  font-size: 13px; color: var(--text-2);
}
.globe__legend i {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  margin-right: 6px; vertical-align: middle;
  box-shadow: 0 0 8px currentColor;
}

/* ---------- API ---------- */
.api__grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center;
}
.api__features {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  margin: 28px 0;
}
.api__features div {
  padding: 18px 20px;
  background: var(--bg-glass); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex; flex-direction: column; gap: 4px;
  font-size: 14px; color: var(--text-2);
}
.api__features strong {
  font-size: 24px; font-weight: 600;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}

.code {
  background: linear-gradient(180deg, #0e0d2e, #06061a);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  transform-style: preserve-3d;
}
.code::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, rgba(123,92,255,0.15), transparent 40%);
}
.code__head {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.code::before {
  background: linear-gradient(135deg, rgba(240,82,21,0.15), transparent 40%);
}
.code__dots { display: flex; gap: 6px; }
.code__dots span { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.code__dots span:nth-child(1) { background: #ff5f57; }
.code__dots span:nth-child(2) { background: #ffbd2e; }
.code__dots span:nth-child(3) { background: #28c940; }
.code__tabs { display: flex; gap: 4px; margin-left: auto; }
.code__tab {
  padding: 6px 12px; border-radius: 8px;
  font-size: 12px; color: var(--text-3);
  font-family: 'JetBrains Mono', monospace;
  transition: all .2s;
}
.code__tab.active { background: var(--bg-glass-2); color: var(--text); }
.code__body {
  padding: 24px 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px; line-height: 1.75;
  overflow-x: auto;
  color: #d6d8f5;
  position: relative;
}
.code__body code { white-space: pre; display: block; }
.c-com { color: #6e8590; font-style: italic; }
.c-key { color: #ff7a45; }
.c-str { color: #06c4c7; }
.c-num { color: #f5b074; }
.c-fn  { color: #049ea0; }
.c-var { color: #ff9c6e; }

/* ---------- Seguridad badges ---------- */
.badges {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
}
.bdg {
  text-align: center; padding: 28px 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: transform .3s, border-color .3s;
}
.bdg:hover { transform: translateY(-4px); border-color: var(--border-2); }
.bdg__title {
  display: block; font-weight: 700; font-size: 18px; margin-bottom: 4px; letter-spacing: -0.01em;
}
.bdg__sub { font-size: 12px; color: var(--text-3); letter-spacing: 0.05em; }

/* ---------- CTA ---------- */
.cta { padding: 100px 0; position: relative; }
.cta__inner {
  position: relative;
  text-align: center;
  padding: 80px 40px;
  background: radial-gradient(ellipse at center, rgba(240, 82, 21, 0.18), rgba(4, 158, 160, 0.10) 60%, transparent);
  border: 1px solid var(--border-2);
  border-radius: 32px;
  overflow: hidden;
}
.cta__halo {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(400px circle at 20% 30%, rgba(240, 82, 21, 0.45), transparent 50%),
    radial-gradient(400px circle at 80% 70%, rgba(4, 158, 160, 0.4), transparent 50%);
}
.cta h2 {
  font-size: clamp(32px, 4.5vw, 52px);
  letter-spacing: -0.03em; font-weight: 600; line-height: 1.05;
  margin-bottom: 12px; position: relative;
}
.cta p { color: var(--text-2); font-size: 17px; margin-bottom: 32px; position: relative; }
.cta__form {
  display: flex; gap: 8px; max-width: 460px; margin: 0 auto 16px;
  background: rgba(10,10,35,0.7);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  padding: 6px;
  position: relative;
  backdrop-filter: blur(12px);
}
.cta__form input {
  flex: 1; padding: 12px 18px;
  background: transparent; border: none; outline: none;
  color: var(--text); font-size: 15px; font-family: inherit;
}
.cta__form input::placeholder { color: var(--text-3); }
.cta__note { font-size: 13px; color: var(--text-3); position: relative; }

/* ---------- Footer ---------- */
.footer {
  padding: 80px 0 32px; margin-top: 60px;
  border-top: 1px solid var(--border);
  position: relative;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}
.footer__brand p {
  color: var(--text-2); font-size: 14px;
  margin-top: 16px; max-width: 280px;
}
.footer__social { display: flex; gap: 10px; margin-top: 20px; }
.footer__social a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: all .25s;
}
.footer__social a:hover { color: var(--text); background: var(--bg-glass-2); transform: translateY(-2px); }
.footer h4 { font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.footer__grid > div:not(.footer__brand) { display: flex; flex-direction: column; gap: 10px; }
.footer__grid a {
  font-size: 14px; color: var(--text-2);
  transition: color .2s;
}
.footer__grid a:hover { color: var(--text); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--border);
  color: var(--text-3); font-size: 13px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero { padding: 130px 0 60px; }
  .hero__grid, .global__grid, .api__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual, .global__visual { height: 440px; order: -1; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .badges { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .section { padding: 80px 0; }
}
@media (max-width: 640px) {
  .hero__title { font-size: clamp(36px, 11vw, 56px); }
  .hero__stats { gap: 18px; flex-wrap: wrap; }
  .hero__visual, .global__visual { height: 360px; }
  .cards { grid-template-columns: 1fr; }
  .badges { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
  .nav__cta .btn--ghost { display: none; }
  .nav__inner { padding: 8px 12px 8px 16px; }
  .cta__inner { padding: 50px 24px; }
  .cta__form { flex-direction: column; border-radius: 16px; padding: 8px; }
  .cta__form input { padding: 14px 18px; }
  .cta__form .btn { width: 100%; justify-content: center; padding: 14px; }
  .global__metrics, .api__features { grid-template-columns: 1fr 1fr; }
  .api__features strong { font-size: 20px; }
  .global__pills { gap: 6px; }
  .global__pills span { font-size: 12px; padding: 5px 12px; }
}

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  .reveal { opacity: 1; transform: none; }
}

/* selection */
::selection { background: rgba(240, 82, 21, 0.45); color: white; }

/* Badges grid */
.badges { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .badges { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .badges { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   FORMULARIO DE CONTACTO
   ============================================================ */
.contact-form {
  position: relative; z-index: 1;
  max-width: 720px; margin: 0 auto;
  text-align: left;
}
.cf-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin-bottom: 18px;
}
.cf-field { display: flex; flex-direction: column; gap: 6px; }
.cf-field--full { grid-column: 1 / -1; }
.cf-lbl {
  font-size: 13px; color: var(--text-2);
  letter-spacing: 0.02em;
}
.contact-form input,
.contact-form textarea {
  font: inherit; color: var(--text);
  padding: 14px 16px;
  background: rgba(10, 22, 30, 0.55);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  outline: none; transition: border-color .2s, background .2s, box-shadow .2s;
  width: 100%;
  resize: vertical;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-3); }
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(240, 82, 21, 0.18);
  background: rgba(10, 22, 30, 0.8);
}
.cf-submit { display: inline-flex; align-items: center; gap: 8px; }
.cf-status { font-size: 14px; color: var(--text-2); margin-top: 14px; min-height: 20px; }
.cf-status.is-ok { color: var(--teal-2); }
.cf-status.is-err { color: #ff7a45; }
.contact-form.is-loading .cf-submit { opacity: .7; cursor: wait; }

@media (max-width: 640px) {
  .cf-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   BANNER DE COOKIES
   ============================================================ */
.cookie {
  position: fixed; bottom: 16px; left: 16px; right: 16px;
  z-index: 100;
  background: rgba(10, 22, 30, 0.92);
  border: 1px solid var(--border-2);
  border-radius: 18px;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6);
  animation: cookieIn .5s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes cookieIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cookie__inner {
  display: flex; align-items: center; gap: 24px;
  padding: 20px 24px;
  max-width: 1200px; margin: 0 auto;
}
.cookie__txt strong { display: block; margin-bottom: 4px; font-size: 15px; }
.cookie__txt p { font-size: 13.5px; color: var(--text-2); margin: 0; }
.cookie__txt a { color: var(--teal-2); text-decoration: underline; }
.cookie__actions { display: flex; gap: 8px; flex-shrink: 0; }
@media (max-width: 768px) {
  .cookie__inner { flex-direction: column; align-items: stretch; gap: 14px; padding: 18px; }
  .cookie__actions { justify-content: flex-end; }
}

/* ============================================================
   PÁGINAS INTERNAS — wrapper, hero más simple
   ============================================================ */
.inner-hero {
  padding: 160px 0 60px;
  text-align: center;
}
.inner-hero h1 {
  font-size: clamp(36px, 5.5vw, 64px);
  letter-spacing: -0.03em; line-height: 1.05;
  font-weight: 600; margin-bottom: 18px;
}
.inner-hero p {
  max-width: 720px; margin: 0 auto;
  color: var(--text-2); font-size: 18px;
}

.inner-section { padding: 60px 0; }
.inner-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start;
}
@media (max-width: 900px) { .inner-grid { grid-template-columns: 1fr; } }
.inner-grid h2 { font-size: clamp(26px, 3.5vw, 38px); letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 16px; font-weight: 600; }
.inner-grid p { color: var(--text-2); margin-bottom: 14px; line-height: 1.7; }
.inner-grid ul { display: flex; flex-direction: column; gap: 10px; padding-left: 22px; }
.inner-grid ul li { color: var(--text-2); position: relative; }
.inner-grid ul li::before {
  content: ""; position: absolute; left: -22px; top: 7px;
  width: 12px; height: 12px;
  background: var(--grad);
  border-radius: 4px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l5 5L20 7' stroke='black' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l5 5L20 7' stroke='black' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Concept cards */
.concept-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 32px 0; }
@media (max-width: 900px) { .concept-grid { grid-template-columns: 1fr; } }
.concept {
  padding: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.concept__num {
  display: inline-block;
  width: 36px; height: 36px; border-radius: 10px;
  font-weight: 700; font-size: 16px;
  display: grid; place-items: center;
  background: var(--grad); color: #fff;
  margin-bottom: 14px;
}
.concept h3 { font-size: 19px; margin-bottom: 8px; font-weight: 600; }
.concept p { color: var(--text-2); font-size: 14.5px; }

/* ============================================================
   FLUJO ANIMADO (SVG) — usado en páginas internas
   ============================================================ */
.flow {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--border-2);
  border-radius: 24px;
  padding: 36px 28px;
  overflow: hidden;
}
.flow::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px circle at 50% 0%, rgba(240,82,21,0.18), transparent 50%);
  pointer-events: none;
}
.flow__svg { width: 100%; height: auto; display: block; position: relative; z-index: 1; }
.flow__node rect, .flow__node circle { transition: transform .3s; }
.flow__node text {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 600; fill: #fff;
}
.flow__node-sub { font-size: 11px; fill: rgba(255,255,255,0.6); font-weight: 400; }

/* Animación: línea con dash que avanza */
.flow__path {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 8 6;
  animation: dashMove 2.2s linear infinite;
}
@keyframes dashMove {
  to { stroke-dashoffset: -56; }
}
/* Partícula viajera */
.flow__particle {
  filter: drop-shadow(0 0 6px var(--orange));
}

/* ============================================================
   PÁGINAS LEGALES — tipografía de prosa
   ============================================================ */
.legal {
  max-width: 820px; margin: 0 auto;
  padding: 140px 24px 80px;
}
.legal h1 {
  font-size: clamp(32px, 4.5vw, 48px);
  letter-spacing: -0.03em; font-weight: 600;
  margin-bottom: 8px;
}
.legal .legal__meta {
  color: var(--text-3); font-size: 14px; margin-bottom: 40px;
}
.legal h2 {
  font-size: 22px; font-weight: 600;
  margin-top: 36px; margin-bottom: 12px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.legal h3 {
  font-size: 17px; font-weight: 600;
  margin-top: 22px; margin-bottom: 8px;
  color: var(--text);
}
.legal p, .legal li {
  color: var(--text-2); font-size: 16px; line-height: 1.75;
  margin-bottom: 14px;
}
.legal ul, .legal ol { padding-left: 20px; margin-bottom: 14px; }
.legal ul li, .legal ol li { margin-bottom: 8px; }
.legal a { color: var(--teal-2); text-decoration: underline; }
.legal strong { color: var(--text); font-weight: 600; }
.legal code {
  font-family: 'JetBrains Mono', monospace;
  background: var(--bg-glass);
  padding: 2px 8px; border-radius: 6px;
  font-size: 0.92em;
}
.legal hr {
  border: none; height: 1px;
  background: var(--border);
  margin: 32px 0;
}
