﻿:root {
  --bg: #ffffff;
  --ink: #f0edf5;
  --purple: #9100e6;
  --blue: #56acff;
  --pink: #d05be6;
  --line: #6a2d86;
  --surface: #11111e;
  --dark-purple: #1f0042;
  --dark-dark: #15104b;
  --neutral-50: #b8aec8;
  --neutral-500: rgba(255, 255, 255, .08);
  --secondary-500: #56acff;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: #fff;
  -webkit-font-smoothing: antialiased;
  line-height: 1.4;
  min-height: 100vh;
  overflow-x: hidden;
}
button, a, article {
  transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease, color .22s ease, border-color .22s ease, opacity .22s ease;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { text-wrap: balance; }
h1 { font-size: clamp(1.8rem, 5vw, 5.3rem); line-height: .95; margin: .8rem 0; font-weight: 200; }
h2 { font-size: clamp(1.6rem, 4vw, 3.2rem); line-height: 1.1; }

/* ====== Gradients ====== */
.gradient-text-pink-blue {
  background: linear-gradient(84deg, #d05be6 4.57%, #56acff 95.56%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-purple {
  background: linear-gradient(135deg, #a100ff, #a42e94);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-btn {
  background: linear-gradient(270deg, #d05be6 -9.73%, #9100e6 67.79%, #15104b 183.45%);
}
.gradient-hover-card {
  background: linear-gradient(77.64deg, #458acc -1%, #9100e6 64.26%, #15104b 129.51%);
}
.shiny-stroke {
  height: .5px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent);
  opacity: .8;
  pointer-events: none;
}

/* ====== Header ====== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: transform .26s ease, opacity .26s ease;
}
.site-header.scrolled {
  background: rgba(8, 8, 14, 0.86);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
}
.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo img {
  height: 70px;
  filter: brightness(0) invert(1);
  transition: height .3s ease;
}
.site-header.scrolled .logo img { height: 56px; }
.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 1rem;
}
.nav a {
  color: #fff;
  white-space: nowrap;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  transition: all .3s ease;
  position: relative;
}
.nav a:not(.btn-contact):hover {
  background: linear-gradient(84deg, #d05be6, #a100ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.btn-contact {
  background: linear-gradient(270deg, #d05be6 -9.73%, #9100e6 67.79%, #15104b 183.45%);
  color: #fff;
  padding: .65rem 1.4rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: .9rem;
  transition: transform .3s ease;
}
.btn-contact:hover {
  transform: translateY(-2px);
  color: #fff;
}
.menu-btn {
  display: none;
  font-family: inherit;
  background: transparent;
  border: none;
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  padding: .5rem;
}

/* ====== Spotlight ====== */
.spotlight {
  --spot-x: 50%;
  --spot-y: 50%;
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  overflow-y: visible;
}
@media (width < 640px) {
  .spotlight { transform: translateY(-2.5rem); }
}
@media (width >= 1024px) {
  .spotlight { transform: translateY(0); }
  .agentes-card { border-radius: 20px; }
}
.spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(500px circle at var(--spot-x) var(--spot-y), rgba(145, 0, 230, .12), transparent 50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s ease;
}
.spotlight:hover::after { opacity: 1; }
.spotlight > * { position: relative; z-index: 1; }

/* ====== Card Yavar ====== */
.card-yavar, .prob-card, .resultados-item, .intel-flow, .compare-card {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .08);
  position: relative;
  overflow: hidden;
  background: #1f0042;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card-yavar::before, .prob-card::before, .resultados-item::before, .intel-flow::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  width: 80%;
  height: .5px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent);
  opacity: .8;
  pointer-events: none;
  z-index: 1;
}
.card-yavar::after, .prob-card::after, .resultados-item::after, .intel-flow::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: .5px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  opacity: .4;
  pointer-events: none;
  z-index: 1;
}
.card-yavar:hover, .prob-card:hover, .resultados-item:hover, .intel-flow:hover, .compare-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, .35);
  border-color: rgba(255, 255, 255, .3);
}

/* Card hover gradient overlay (Yavar style) */
.card-hover-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(77.64deg, #458acc -1%, #9100e6 64.26%, #15104b 129.51%);
  border-radius: inherit;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.card-yavar:hover .card-hover-overlay,
.platform-card:hover .card-hover-overlay { opacity: 1; }
/* Keep content above overlay */
.card-yavar > *:not(.card-hover-overlay),
.prob-card > *,
.resultados-item > *,
.intel-flow > * {
  position: relative;
  z-index: 1;
}

/* ====== Hero ====== */
.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background: #08051A;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(77, 37, 121, .68) 0%, rgba(8, 8, 14, .85) 100%),
              radial-gradient(900px 500px at 40% 53%, rgba(86, 172, 255, .2), transparent),
              rgba(145, 0, 230, 0.35);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1200px, 92vw);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  align-items: center;
  gap: 3rem;
  padding-top: 60px;
}
.hero-content { max-width: 700px; }
.hero-media {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-media::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(86, 172, 255, 0.22), transparent 70%);
  filter: blur(50px);
  z-index: -1;
  animation: glow 18s ease-in-out infinite;
}
@keyframes glow {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.hero-bot-video {
  display: none;
}
.hero-media.webm-supported .hero-bot-video {
  display: block;
}
.hero-media.webm-supported .hero-bot-fallback {
  display: none;
}
.hero-media img,
.hero-bot-video {
  width: 100%;
  max-width: 480px;
  height: auto;
  display: block;
  object-fit: contain;
  transform: translateY(var(--paralax, 0));
  animation: float 10s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.label {
  letter-spacing: .08em;
  font-size: 1rem;
  font-weight: 500;
  color: var(--blue);
  display: inline-block;
  padding: .35rem .85rem;
  border-radius: 100px;
  border: 1px solid rgba(86, 172, 255, .2);
  background: rgba(86, 172, 255, .08);
}
.kicker {
  letter-spacing: .08em;
  font-size: 1.1rem;
  font-weight: 600;
  background: linear-gradient(84deg, #d05be6, #56acff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}
.lead { width: min(640px, 100%); color: rgba(255,255,255,.85); font-size: 1.4rem; font-weight: 400; line-height: 1.5; }
.hero-ctas {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  margin-top: 1.3rem;
}
.hero-btn {
  display: inline-block;
  padding: .75rem 1.5rem;
  border-radius: 100px;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .02em;
  position: relative;
  overflow: hidden;
  transition: transform .3s ease;
}
.hero-btn-primary {
  background: linear-gradient(270deg, #d05be6 -9.73%, #9100e6 67.79%, #15104b 183.45%);
  border: none;
  color: #fff;
}
.hero-btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(145, 0, 230, .3);
}
.hero-btn-secondary {
  background: rgba(8, 8, 14, .55);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
}
.hero-btn-secondary:hover {
  color: #fff;
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.4);
  background: rgba(8, 8, 14, .75);
}
.section {
  width: 100%;
  padding: 5rem 0;
}
.section-inner {
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding-inline: 2rem;
}

/* ====== Problema ====== */
.problema {
  width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 2;
  background: transparent;
}
.problema-overlap {
  margin-top: -120px;
  padding-bottom: 2rem;
  background: transparent;
}
.problema-overlap.is-visible .prob-card {
  opacity: 1;
  transform: translateY(0);
}
.problema-overlap.is-visible .prob-card:nth-child(1) { transition-delay: 0.2s; }
.problema-overlap.is-visible .prob-card:nth-child(2) { transition-delay: 0.4s; }
.problema-overlap.is-visible .prob-card:nth-child(3) { transition-delay: 0.6s; }
.problema-overlap.is-visible .prob-card:nth-child(4) { transition-delay: 0.8s; }
.problema-overlap.is-visible .prob-card:nth-child(5) { transition-delay: 1.0s; }
.problema-intro {
  background: #fff;
  width: 100%;
  padding: 4rem 0 5rem;
  margin: 0;
  text-align: center;
}
.problema-intro h2 {
  color: #2e282a;
  max-width: 1100px;
  margin: 0 auto;
  font-size: clamp(1.3rem, 5vw, 2.6rem);
}
.problema-intro .kicker {
  display: inline-block;
  margin-bottom: .5rem;
}
.problema .highlight {
  background: linear-gradient(84deg, #d05be6, #56acff);
  color: #fff;
  padding: 0 .5rem;
}
.problema-intro h2 .highlight {
  white-space: nowrap;
}
.problema-logo {
  height: 90px;
  filter: none;
  margin: 1.5rem auto 0;
  display: block;
}
.problema-container {
  width: min(1200px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .85rem;
  background: transparent;
}
/* Yavar-style framework card for each problem card */
.prob-card {
  position: relative;
  isolation: isolate;
  will-change: transform;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 20px;
  padding: 2.2rem 1.5rem;
  min-height: 220px;
  display: flex;
  align-items: center;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.prob-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, .35);
  border-color: rgba(255, 255, 255, .15);
}
/* Shiny stroke top */
.prob-card-shiny-top {
  position: absolute;
  top: 0;
  right: 10%;
  width: 80%;
  height: .5px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent);
  opacity: .8;
  pointer-events: none;
  will-change: transform;
}
/* Shiny stroke bottom */
.prob-card-shiny-bottom {
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: .5px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  opacity: .4;
  pointer-events: none;
  will-change: transform;
}
/* Backdrop background */
.prob-card-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(31, 0, 66, .2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: inherit;
  will-change: transform;
  transition: all .3s ease;
}
.prob-card:hover .prob-card-bg {
  background: linear-gradient(77.64deg, rgba(69, 138, 204, .55), rgba(145, 0, 230, .6), rgba(21, 16, 75, .65));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.prob-card:hover .prob-card-shiny-top {
  opacity: .8;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent);
}
.prob-card:hover .prob-card-shiny-bottom {
  opacity: .7;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
}
/* Content layer */
.prob-card-col {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  width: 100%;
  position: relative;
  z-index: 1;
  transform: translateY(var(--paralax, 0));
}
.prob-icon {
  font-size: .95rem;
  line-height: 1;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
}
.prob-card h3 {
  font-size: 1.35rem;
  margin: 0;
  line-height: 1.3;
  color: #fff;
  font-weight: 600;
}

/* ====== Cambio Paradigma ====== */
#paradigma { background: #08051A; }
.compare-wrap {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}
.compare-card { padding: 0; overflow: hidden; isolation: isolate; background: transparent; }
.compare-head, .compare-list, .compare-foot { position: relative; z-index: 1; }
.compare-card-shiny-top {
  position: absolute;
  top: 0;
  right: 0;
  width: 80%;
  height: .5px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent);
  opacity: .8;
  pointer-events: none;
  will-change: transform;
}
@media (width >= 640px) {
  .compare-card-shiny-top { right: 1rem; }
}
@media (width >= 1024px) {
  .compare-card-shiny-top { height: 1px; }
}
.compare-card-shiny-bottom {
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: .5px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent);
  opacity: .8;
  pointer-events: none;
}
.compare-card-texture {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background-image: url(https://www.yavar.ai/_astro/sustainable_bg.CrUXhcCe.png);
  background-size: cover;
  background-position: center;
  opacity: 1;
  pointer-events: none;
}
.compare-card-hover {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: linear-gradient(77.64deg, rgba(69,138,204,.55), rgba(145,0,230,.6), rgba(21,16,75,.65));
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.compare-card:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .4);
  border-color: rgba(255, 255, 255, .3);
}
.compare-head {
  padding: 1.5rem;
  background: linear-gradient(160deg, rgb(3 169 244 / 16%), rgba(86, 172, 255, .05));
}
.compare-plan {
  display: inline-block;
  padding: .35rem .8rem;
  font-size: .8rem;
  color: var(--blue);
  font-weight: 600;
  border-radius: 100px;
  background: rgba(86, 172, 255, .1);
  border: 1px solid rgba(86, 172, 255, .2);
}
.compare-img {
  margin: .8rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.compare-img img {
  width: 100%;
  max-width: 200px;
  height: 130px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,.3));
}
.compare-head h3 {
  margin: .5rem 0 0;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  color: #fff;
  font-weight: 600;
}
.compare-sub {
  margin: .4rem 0 0;
  color: var(--neutral-50);
  font-size: .9rem;
  line-height: 1.5;
}
.compare-list {
  list-style: none;
  margin: 0;
  padding: 0 1.5rem 1.5rem;
  display: grid;
  gap: .55rem;
}
.compare-list li {
  padding: .5rem 0 .5rem 1.4rem;
  font-size: .9rem;
  color: rgba(255,255,255,.8);
  position: relative;
}
.compare-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: .18rem;
  color: var(--blue);
  font-weight: 700;
}
.compare-foot {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,.06);
  font-weight: 600;
  font-size: .95rem;
  color: var(--blue);
  background: rgba(86, 172, 255, .05);
}
.compare-new .compare-head {
  background: linear-gradient(160deg, rgba(145, 0, 230, .15), rgba(86, 172, 255, .05));
}
.compare-new .compare-foot {
  background: linear-gradient(84deg, #d05be6, #56acff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  border-top-color: rgba(255,255,255,.1);
}
.compare-new .compare-list li::before {
  color: var(--pink);
}

/* ====== Como Funciona (Engine style) ====== */
.como {
  width: 100%;
  margin: 0;
  padding: 5rem 0;
  background: radial-gradient(ellipse 48% 48% at 30% 50%, rgb(3 21 72) 0%, rgba(37, 6, 79, 1) 35%, rgba(0, 0, 0, 1) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.como-layout {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  position: relative;
  z-index: 1;
  align-items: center;
}
@media (min-width: 900px) {
  .como-layout {
    flex-direction: row;
    gap: 4rem;
    align-items: center;
  }
}
.como-visual {
  flex-shrink: 0;
  width: 100%;
  max-width: 400px;
}
.como-visual-inner {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(31,0,66,.35);
  backdrop-filter: blur(80px);
  -webkit-backdrop-filter: blur(80px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
}
.como-visual-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8,8,14,.85), rgba(8,8,14,.3)),
              url("../assets/img/placeholder_how_1.webp") center / cover no-repeat;
  transition: background .5s ease;
  z-index: -1;
}
.como[data-como-bg="step-1"] .como-visual-inner::after {
  background: linear-gradient(0deg, rgba(8,8,14,.85), rgba(8,8,14,.3)),
              url("../assets/img/placeholder_how_1.webp") center / cover no-repeat;
}
.como[data-como-bg="step-2"] .como-visual-inner::after {
  background: linear-gradient(0deg, rgba(8,8,14,.85), rgba(8,8,14,.3)),
              url("../assets/img/placeholder_how_2.webp") center / cover no-repeat;
}
.como[data-como-bg="step-3"] .como-visual-inner::after {
  background: linear-gradient(0deg, rgba(8,8,14,.85), rgba(8,8,14,.3)),
              url("../assets/img/placeholder_how_3.webp") center / cover no-repeat;
}
.como[data-como-bg="step-4"] .como-visual-inner::after {
  background: linear-gradient(0deg, rgba(8,8,14,.85), rgba(8,8,14,.3)),
              url("../assets/img/placeholder_how_4.webp") center / cover no-repeat;
}
.como-col {
  flex: 1;
  min-width: 0;
}
.como-col .kicker { margin-bottom: .5rem; }
.como-col h2 { color: #fff; margin-bottom: 1rem; }
.como-sub { font-size: 1.15rem; color: rgba(255,255,255,.7); margin-bottom: 2rem; }
.como-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .como-grid { grid-template-columns: 1fr 1fr; }
}
.como-card {
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 2.5rem 1.5rem 1.5rem;
  text-align: left;
  color: #fff;
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  background: transparent;
  width: 100%;
}
.como-card-texture {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background-image: url(https://www.yavar.ai/_astro/sustainable_bg.CrUXhcCe.png);
  background-size: cover;
  background-position: center;
  opacity: 1;
  pointer-events: none;
}
.como-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(0,0,0,.35);
  border-color: rgba(255,255,255,.2);
}
.como-card.is-active {
  border-color: rgba(145, 0, 230, .6);
}
.como-card-badge {
  position: absolute;
  left: 1.5rem;
  top: 0;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(31,0,66,.6);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  overflow: hidden;
  isolation: isolate;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  transition: background .3s ease, border-color .3s ease;
}
.como-card.is-active .como-card-badge {
  background: rgba(145, 0, 230, .5);
  border-color: rgba(145, 0, 230, .6);
}
.como-card h5 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: .4rem;
  color: #fff;
  position: relative;
  z-index: 1;
}
.como-card p {
  font-size: .9rem;
  color: rgba(255,255,255,.6);
  position: relative;
  z-index: 1;
}
/* Shiny strokes */
.como-card-shiny-top {
  position: absolute;
  top: 0;
  right: 0;
  width: 80%;
  height: .5px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent);
  opacity: .8;
  pointer-events: none;
  will-change: transform;
}
@media (width >= 640px) {
  .como-card-shiny-top { right: 1rem; }
}
@media (width >= 1024px) {
  .como-card-shiny-top { height: 1px; }
}
.como-card-shiny-bottom {
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: .5px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent);
  opacity: .8;
  pointer-events: none;
}
/* Glass background */
.como-card-glass {
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: inherit;
  background: rgba(31,0,66,.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all .3s ease;
}
.como-card-hover {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: linear-gradient(77.64deg, rgba(69,138,204,.55), rgba(145,0,230,.6), rgba(21,16,75,.65));
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.como-card:hover .como-card-hover {
  opacity: 1;
}
.como-card:hover .como-card-glass {
  opacity: 0;
}

/* ====== Agentes ====== */
.agentes {
  width: 100%;
  margin: 0;
  padding: 5rem 0;
  background: #fff;
  color: #2e282a;
  position: relative;
  overflow: hidden;
}
.agentes-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.agentes-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.agentes > *:not(.agentes-video):not(.agentes-overlay) {
  position: relative;
  z-index: 2;
}
.agentes-inner {
  width: min(1200px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 35%) minmax(0, 65%);
  gap: 2rem;
}
.agentes-left, .agentes-right, .track-wrapper, .agentes-track { min-width: 0; }
.agentes-left { max-width: 460px; align-self: center; }
.agentes-left h2 {
  margin-bottom: .8rem;
  font-size: clamp(2rem, 6vw, 5.5rem);
  line-height: 1.2;
  font-weight: 200;
}
.agentes-left h3 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 400;
  color: #555;
  line-height: 1.5;
}
.agentes-left p { font-size: 1.1rem; line-height: 1.5; color: #555; }
.agentes-highlight {
  background: linear-gradient(84deg, #d05be6, #56acff);
  color: #fff;
  padding: 0 .4rem;
  border-radius: 4px;
}
.agentes-right { position: relative; }
.agentes-arrow {
  position: absolute;
  top: 50%;
  z-index: 20;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .25s ease, transform .25s ease, border-color .25s ease;
  transform: translateY(-50%);
}
.agentes-arrow:hover {
  background: rgba(145,0,230,.5);
  border-color: rgba(145,0,230,.6);
  transform: translateY(-50%) scale(1.08);
}
.agentes-arrow-prev { left: 4px; }
.agentes-arrow-next { right: 4px; }
@media (max-width: 980px) {
  .agentes-arrow { display: none; }
}
.track-wrapper { mask-image: linear-gradient(to right, black 0%, black 90%, transparent 100%); }
.track-wrapper { padding-top: 50px; }
.agentes-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 2rem 1rem 0;
  cursor: grab;
  user-select: none;
  scrollbar-width: none;
}
.agentes-track::-webkit-scrollbar { display: none; }
.agentes-track.dragging { cursor: grabbing; }
.agentes-dots {
  display: flex;
  justify-content: center;
  gap: .55rem;
  margin-top: .75rem;
}
.agentes-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(0,0,0,.2);
  padding: 0;
  transition: width .25s ease, background .25s ease;
  cursor: pointer;
}
.agentes-dot.is-active { width: 24px; background: #9100e6; }
.agentes-card {
  flex: 0 0 clamp(220px, 22vw, 400px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1.5rem;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
  overflow: hidden;
  scroll-snap-align: start;
  position: relative;
  isolation: isolate;
  will-change: transform;
  background-image: url(https://www.yavar.ai/_astro/sustainable_bg.CrUXhcCe.png);
  background-size: cover;
  background-position: center;
  transition: transform .35s ease, box-shadow .35s ease, border-color .3s ease;
}
.agentes-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 28px rgba(0, 0, 0, .3);
  border-color: rgba(255, 255, 255, .15);
}
.agentes-card-shiny-top {
  position: absolute;
  top: 0;
  right: 10%;
  width: 80%;
  height: .5px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent);
  opacity: .8;
  pointer-events: none;
}
.agentes-card-shiny-bottom {
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: .5px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  opacity: .4;
  pointer-events: none;
}
.agentes-card-glass {
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: inherit;
  background: linear-gradient(23deg, rgb(34 8 79 / 35%), rgba(69, 138, 204, .35));
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
  transition: all .3s ease;
}
.agentes-card-hover {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(77.64deg, rgba(69,138,204,.55), rgba(145,0,230,.6), rgba(21,16,75,.65));
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.agentes-card:hover .agentes-card-hover {
  opacity: 1;
}
.agentes-card:hover .agentes-card-glass {
  opacity: 0;
}
.agentes-card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 6px;
}
.agentes-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
  transition: transform .7s ease;
}
.agentes-card:hover .agentes-card-media img { transform: scale(1.05); }
.agentes-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  z-index: 1;
}
.agentes-card h3 {
  max-width: 10ch;
  margin: 0 0 .5rem;
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  line-height: .92;
  font-weight: 700;
}
.agentes-card .agentes-card-description {
  font-size: .95rem;
  line-height: 1.5;
  color: rgba(255,255,255,.75);
}
.agentes-card-number {
  font-size: .9rem;
  letter-spacing: .08em;
  font-weight: 700;
  text-align: right;
  margin-top: auto;
  background: linear-gradient(84deg, #d05be6, #56acff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ====== Inteligencia ====== */
.inteligencia { width: 100%; background: #08051A; }
.intel-flow { padding: 2.5rem; margin-top: 3rem; color: #fff; }
.intel-flow-number {
  font-size: clamp(2.2rem, 5.5vw, 4.8rem);
  line-height: .85;
  text-align: center;
  letter-spacing: .02em;
  font-weight: 200;
}
.intel-flow-divider {
  border-top: 1px solid rgba(255,255,255,.2);
  margin: 3.5rem 0 2rem;
}
.intel-flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.intel-flow-grid article {
  border: none;
  background: transparent;
  padding: 0;
  position: relative;
  z-index: 1;
}
.intel-flow-grid h3 {
  margin: 0;
  font-size: clamp(1.1rem, 2.2vw, 1.8rem);
  color: #fff;
  font-weight: 500;
  line-height: 1.3;
}
.inteligencia p { font-size: 1.2rem; color: var(--neutral-50); line-height: 1.6; }

/* ====== Resultados ====== */
.resultados {
  width: 100%;
  background: #08051A;
  padding: 5rem 0;
}
.resultados .section-inner {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr);
  gap: 1.4rem;
  align-items: start;
}
.resultados-left h2 { margin-top: .6rem; color: #fff; }
.resultados-list { display: grid; gap: .7rem; }
.resultados-item {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 1rem 1.2rem;
  color: #fff;
}
.resultados-item h3 {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 500;
}
.resultados-icon {
  fill: var(--blue);
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.resultados-item:hover {
  border-color: rgba(255, 255, 255, .25);
  background: linear-gradient(77.64deg, rgba(69, 138, 204, .55), rgba(145, 0, 230, .6), rgba(21, 16, 75, .65));
}

/* ====== Industrias ====== */
.industrias { background: #08051A; }
.industrias .highlight {
  background: linear-gradient(84deg, #d05be6, #56acff);
  color: #fff;
  padding: 0 .5rem;
  border-radius: 4px;
}
.industrias h2 { line-height: 1.2; color: #fff; }
.industrias-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.industrias-row article {
  display: grid;
  place-items: center start;
  font-size: 1.3rem;
  font-weight: 500;
  padding: 1.5rem;
  border-radius: 16px;
  background: #1f0042;
  border: 1px solid rgba(255, 255, 255, .08);
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.industrias-row article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  width: 80%;
  height: .5px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent);
  opacity: .8;
  pointer-events: none;
}
.industrias-row article:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 22px rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, .15);
  background: linear-gradient(160deg, #1f0042, #2a005a);
}

/* ====== CTA ====== */
.cta {
  display: grid;
  color: #fff;
}
.cta .section-inner {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 2rem;
  align-items: center;
  background: radial-gradient(700px 300px at 60% 70%, rgba(86, 172, 255, .2), transparent),
              #1f0042;
  padding: 4rem 2.5rem;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.08);
  margin-top: 3rem;
}
.contact-form-card {
  width: min(100%, 560px);
  justify-self: end;
  background: rgba(10, 6, 28, .45);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 24px 40px rgba(0, 0, 0, .25);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.contact-form-card h3 {
  margin: .2rem 0 .6rem;
  font-size: 1.5rem;
  color: #fff;
}
.contact-form-card p {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: var(--neutral-50);
}
.btn {
  display: inline-block;
  padding: .75rem 1.5rem;
  border-radius: 100px;
  margin-top: 1rem;
  font-weight: 600;
  background: linear-gradient(270deg, #d05be6 -9.73%, #9100e6 67.79%, #15104b 183.45%);
  color: #fff;
  border: none;
  transition: transform .3s ease;
}
.btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(145, 0, 230, .3);
}

/* ====== Footer ====== */
.footer { padding: 5rem 0 2rem; background: #08051A; }
.footer-box {
  max-width: min(1200px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr .9fr 1.2fr;
  gap: 3rem;
  padding: 3rem 2rem;
  background: #1f0042;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.08);
  position: relative;
  overflow: hidden;
}
.footer-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  width: 80%;
  height: .5px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent);
  opacity: .8;
}
.footer-description {
  margin-top: .8rem;
  color: var(--neutral-50);
  line-height: 1.6;
  font-size: .9rem;
}
.footer h4 {
  font-size: .75rem;
  letter-spacing: .12em;
  margin: 0 0 1.2rem;
  color: var(--blue);
  font-weight: 700;
}
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .7rem;
}
.footer ul a {
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  transition: color .3s ease;
}
.footer ul a:hover {
  background: linear-gradient(84deg, #d05be6, #56acff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer p {
  color: var(--neutral-50);
  font-size: .9rem;
  line-height: 1.5;
}

.contact-modal-form { display: grid; gap: .65rem; }
.contact-modal-form input {
  border-radius: 12px;
  padding: .85rem 1rem;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  color: #fff;
  font: inherit;
  outline: none;
  transition: border-color .3s ease;
}
.contact-modal-form input:focus {
  border-color: var(--purple);
}
.contact-modal-form input::placeholder { color: rgba(255,255,255,.3); }
.contact-modal-form button {
  width: 100%;
  margin-top: 1rem;
  border-radius: 100px;
  background: linear-gradient(270deg, #d05be6 -9.73%, #9100e6 67.79%, #15104b 183.45%);
  color: #fff;
  border: none;
  padding: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .3s ease;
}
.contact-modal-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(145,0,230,.3);
}

/* ====== Flow Steps ====== */
.flow-step {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, .08);
  background: #1f0042;
  padding: 1rem 1.2rem;
  display: grid;
  gap: .4rem;
  min-height: 150px;
  align-content: start;
  border-radius: 16px;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.flow-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  width: 80%;
  height: .5px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent);
  opacity: .8;
  pointer-events: none;
}
.flow-step:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 28px rgba(0, 0, 0, .3);
  border-color: rgba(255, 255, 255, .15);
}
.flow-step span {
  color: var(--blue);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .05em;
}
.flow-step h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #fff;
}
.flow-step p {
  margin: 0;
  font-size: .85rem;
  line-height: 1.35;
  color: var(--neutral-50);
}
.flow-arrow { align-self: center; justify-self: center; color: var(--purple); font-size: 1.25rem; }
.flow-note { margin: .8rem 0 0; color: var(--blue); font-size: .9rem; }
.grid-3, .grid-2, .steps { display: grid; gap: 1rem; margin-top: 2rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.steps { grid-template-columns: repeat(3, 1fr); }

/* ====== Animations ====== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.2s ease, transform 1.2s cubic-bezier(.16, 1, .3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 1.5s ease, transform 1.5s cubic-bezier(.16, 1, .3, 1);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 1.2s ease, transform 1.2s cubic-bezier(.16, 1, .3, 1);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-bottom {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s ease, transform 1.2s cubic-bezier(.16, 1, .3, 1);
}
.reveal-bottom.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ====== Responsive ====== */
@media (max-width: 1130px) {
  .hero-inner { grid-template-columns: 1.1fr .9fr; }
  .hero-media img,
  .hero-bot-video { max-width: 400px; }
}
@media (max-width: 980px) {
  .header-inner { padding: .5rem 1rem; }
  .nav {
    display: none;
    position: absolute;
    right: 1rem;
    top: 4.5rem;
    background: #1f0042;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px;
    padding: 1rem;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
    backdrop-filter: blur(20px);
  }
  .logo img { height: 50px; }
  .site-header.scrolled .logo img { height: 44px; }
  .nav.open { display: flex; }
  .menu-btn { display: block; }
  .grid-3, .grid-2, .industrias-row, .cta, .footer-box { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 80px; }
  .prob-card-col { flex-direction: row; align-items: center; gap: 2rem; }
  .inteligencia p { font-size: 1rem; }
  .intel-flow-grid { grid-template-columns: 1fr; }
  .cta .section-inner { grid-template-columns: 1fr; }
  .contact-form-card { width: 100%; justify-self: stretch; }
  .intel-flow { padding: 2rem 4vw; text-align: center; }
  .intel-flow-divider { margin: 2rem 0; }
  .compare-wrap { grid-template-columns: 1fr; }
  .resultados .section-inner { grid-template-columns: 1fr; gap: 1rem; }
  .industrias-row article { font-size: 1.1rem; }
  .problema-intro { padding: 4rem 4vw 1rem; width: 100%; }
  .problema-container { grid-template-columns: repeat(2, 1fr); gap: .7rem; padding: 0 4vw 2rem; }
  .prob-card { padding: 1.5rem 1rem; min-height: 180px; }
  .problema-overlap { margin-top: -80px; }
  .agentes { padding: 4rem 0 3rem; }
  .agentes-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .agentes-left { max-width: 100%; }
  .track-wrapper { mask-image: none; }
  .agentes-card { flex-basis: 40%; }
  .agentes-track { padding: 0 0 1rem; width: 100%; }
  .cta .section-inner { padding: 2rem; }
  .footer-box { text-align: center; gap: 1.5rem; }
}
@media (max-width: 640px) {
  .hero-inner { padding-top: 100px; }
  .hero-btn { width: 100%; text-align: center; }
  .como-grid { grid-template-columns: 1fr; }
  .como-visual { display: none; }
  .problema-container { grid-template-columns: 1fr; }
  .problema-overlap { margin-top: -40px; }
  .agentes-left { text-align: center; margin: 0 auto; padding: 0; }
  .agentes-card { flex-basis: 90%; }
}
