/* ========================================================================
   RESULTO — Estilos principales
   Replica del diseño de v0 en CSS plano (sin Tailwind).
   ======================================================================== */

/* --------- Helpers genéricos --------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}
@media (min-width: 1024px) {
  .container { padding: 0 var(--space-12); }
}

.italic-display { font-family: var(--font-display); font-style: italic; font-weight: 400; }
.text-primary { color: var(--primary); }
.text-foreground { color: var(--foreground); }
.text-muted { color: var(--muted-foreground); }
.text-balance { text-wrap: balance; }

/* --------- Botones --------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 3.5rem;
  padding: 0 2.5rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { box-shadow: var(--shadow-glow); }

.btn-dark {
  background: var(--foreground);
  color: var(--white);
}
.btn-dark:hover { box-shadow: 0 8px 25px -8px rgba(0, 0, 0, 0.3); }

.btn-pill-sm {
  height: 2.5rem;
  padding: 0 1.5rem;
  font-size: 0.875rem;
  border-radius: var(--radius-pill);
}

/* --------- Header / Navigation --------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: var(--background);
  transition: all 0.3s ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(136, 213, 0, 0.25);
  box-shadow: var(--shadow-sm);
}
.site-header nav .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.brand img {
  height: 2.5rem;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}
.brand:hover img {
  transform: scale(1.1) translateY(-4px);
  filter: drop-shadow(0 6px 18px rgba(136, 213, 0, 0.65));
}
@media (min-width: 1024px) {
  .site-header nav .row { height: 5rem; }
  .brand img { height: 3rem; }
}

.nav-links { display: none; gap: 2rem; align-items: center; }
.nav-links a {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  transition: color 0.2s, transform 0.2s ease;
}
.nav-links a:hover { color: var(--primary); transform: translateY(-2px); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  height: 2px;
  width: 0;
  background: var(--primary);
  transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }

.nav-cta { display: none; position: relative; }

@media (min-width: 1024px) {
  .nav-links, .nav-cta { display: flex; }
}

.menu-toggle {
  display: flex;
  padding: 0.5rem;
  color: var(--foreground);
}
@media (min-width: 1024px) { .menu-toggle { display: none; } }

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--background);
  border-bottom: 1px solid var(--border);
}
.mobile-menu.open { display: block; }
.mobile-menu .container {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}
.mobile-menu a {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  padding: 0.5rem 0;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--foreground); }
.mobile-menu .btn { margin-top: var(--space-4); width: 100%; }

/* --------- Hero --------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 4rem;
  overflow: hidden;
  background: var(--background);
}
.hero canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: auto;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, #E5E7EB 1px, transparent 1px),
    linear-gradient(to bottom, #E5E7EB 1px, transparent 1px);
  background-size: 4rem 4rem;
  opacity: 0.3;
  pointer-events: none;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero-blob.right { top: 25%; right: 0; width: 24rem; height: 24rem; background: rgba(136, 213, 0, 0.10); }
.hero-blob.left { bottom: 25%; left: 0; width: 16rem; height: 16rem; background: rgba(136, 213, 0, 0.05); }

.hero-content {
  position: relative; z-index: 10;
  max-width: 64rem; margin: 0 auto;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2.5rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 2.5rem;
}
.hero h1 .rotator {
  display: inline-flex;
  height: 1.2em;
  overflow: hidden;
  vertical-align: bottom;
}
.hero h1 .rotator span {
  color: var(--primary);
  display: inline-block;
  animation: fade-in 0.5s ease-out forwards;
}
.hero p.subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 36rem;
  margin: 0 auto 3.5rem;
  font-family: var(--font-montserrat);
}
@media (min-width: 1024px) {
  .hero p.subtitle { font-size: 1.25rem; }
}
.animated-underline {
  position: relative;
  display: inline-block;
  font-weight: 600;
  color: var(--foreground);
}
.animated-underline::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  animation: underline-grow 1s ease-out 0.5s forwards;
}

.hero-ctas {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .hero-ctas { flex-direction: row; }
}

/* --------- Sección "Nosotros" --------- */
.about {
  position: relative;
  padding: 6rem 0;
  background: var(--background);
  overflow: hidden;
}
@media (min-width: 1024px) { .about { padding: 10rem 0; } }
.about-bg-dots {
  position: absolute; inset: 0;
  opacity: 0.3;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,0.07) 1px, transparent 0);
  background-size: 48px 48px;
}
.about .header { max-width: 56rem; margin-bottom: 5rem; }
@media (min-width: 1024px) { .about .header { margin-bottom: 8rem; } }
.eyebrow {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.h-section {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}
.about p.lead {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  line-height: 1.65;
  max-width: 36rem;
}
@media (min-width: 1024px) { .about p.lead { font-size: 1.5rem; } }
.about p.lead .em {
  color: var(--primary);
  font-weight: 600;
}

.pillars {
  display: grid;
  gap: 2rem;
  margin-bottom: 5rem;
}
@media (min-width: 1024px) {
  .pillars { grid-template-columns: repeat(3, 1fr); gap: 3rem; margin-bottom: 8rem; }
}
.pillar {
  position: relative;
  padding: 2rem;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  background: var(--background);
  transition: all var(--t-slow);
}
.pillar:hover {
  border-color: rgba(136, 213, 0, 0.3);
  background: rgba(245, 245, 245, 0.5);
}
.pillar .num {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}
@media (min-width: 1024px) { .pillar .num { font-size: 4rem; } }
.pillar h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 1rem 0 0.75rem;
}
.pillar p { color: var(--muted-foreground); line-height: 1.65; }

.stats {
  border-top: 1px solid var(--border);
  padding-top: 4rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
@media (min-width: 1024px) {
  .stats { grid-template-columns: repeat(4, 1fr); gap: 4rem; }
}
.stat { text-align: center; }
.stat .value {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
@media (min-width: 1024px) { .stat .value { font-size: 4rem; } }
.stat .label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.about-quote {
  margin-top: 5rem;
  text-align: center;
}
@media (min-width: 1024px) { .about-quote { margin-top: 8rem; } }
.about-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--muted-foreground);
  max-width: 36rem;
  margin: 0 auto;
  font-weight: 300;
}
@media (min-width: 1024px) { .about-quote p { font-size: 1.5rem; } }

/* --------- Sección "Servicios" (fondo oscuro) --------- */
.services {
  position: relative;
  padding: 6rem 0;
  background: var(--foreground);
  color: var(--background);
  overflow: hidden;
}
@media (min-width: 1024px) { .services { padding: 8rem 0; } }
.services .grid-bg {
  position: absolute; inset: 0; opacity: 0.03;
  background-image:
    linear-gradient(rgba(136, 213, 0, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(136, 213, 0, 0.5) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.services .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  background: rgba(136, 213, 0, 0.05);
}
.services .blob.bottom { width: 25rem; height: 25rem; bottom: -12rem; left: -12rem; }
.services .header {
  max-width: 48rem;
  margin: 0 auto 4rem;
  text-align: center;
}
@media (min-width: 1024px) { .services .header { margin-bottom: 5rem; } }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  background: rgba(136, 213, 0, 0.2);
  border: 1px solid rgba(136, 213, 0, 0.3);
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.services h2 {
  font-size: clamp(1.875rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
.services .subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.65;
}

.formula {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 4rem;
  font-size: 0.875rem;
  font-weight: 500;
}
@media (min-width: 1024px) { .formula { font-size: 1rem; } }
.formula .pill {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  color: rgba(255, 255, 255, 0.8);
}
.formula .op { color: var(--primary); font-weight: 700; font-size: 1.25rem; }
.formula .pill.solid {
  background: var(--primary);
  color: var(--foreground);
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(136, 213, 0, 0.3);
}

.services-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }
.service-card {
  position: relative;
  padding: 2rem;
  border-radius: var(--radius-2xl);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.5s;
  cursor: pointer;
}
.service-card:hover {
  transform: translateY(-0.5rem);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}
.service-card.highlight {
  background: rgba(136, 213, 0, 0.1);
  border: 2px solid rgba(136, 213, 0, 0.4);
}
.service-card.highlight:hover {
  border-color: var(--primary);
  background: rgba(136, 213, 0, 0.2);
}
.service-card .ai-tag {
  position: absolute;
  top: -0.75rem; left: 1.5rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--primary);
  color: var(--foreground);
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(136, 213, 0, 0.3);
}
.service-card .icon-box {
  width: 3.5rem; height: 3.5rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  color: var(--primary);
  transition: all 0.3s;
}
.service-card.highlight .icon-box { background: var(--primary); color: var(--foreground); }
.service-card:hover .icon-box { transform: scale(1.1); }
.service-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--background);
  margin-bottom: 0.25rem;
  transition: color 0.3s;
}
.service-card:hover h3 { color: var(--primary); }
.service-card .sub {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 1rem;
}
.service-card p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.65;
}

/* --------- Proceso --------- */
.process {
  position: relative;
  padding: 6rem 0;
  background: var(--foreground);
  color: var(--background);
  overflow: hidden;
}
@media (min-width: 1024px) { .process { padding: 8rem 0; } }
.process .header { max-width: 36rem; margin-bottom: 4rem; }
@media (min-width: 1024px) { .process .header { margin-bottom: 5rem; } }
.process .header .eyebrow { color: rgba(255, 255, 255, 0.6); }
.process h2 {
  font-size: clamp(1.875rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
.process .subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.65;
}

.process-steps { position: relative; }
.process-step {
  display: flex;
  align-items: stretch;
}
.process-step .left {
  flex-shrink: 0;
  width: 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media (min-width: 1024px) { .process-step .left { width: 7rem; } }
.process-step .num {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary);
  z-index: 10;
  background: var(--foreground);
  padding: 0 0.5rem;
}
@media (min-width: 1024px) { .process-step .num { font-size: 3rem; } }
.process-step .line {
  flex: 1;
  width: 1px;
  margin-top: 0.5rem;
  min-height: 3.75rem;
  background: linear-gradient(to bottom, var(--primary), rgba(136, 213, 0, 0.3));
}
.process-step .content {
  flex: 1;
  padding: 0 0 3rem 1rem;
}
@media (min-width: 1024px) { .process-step .content { padding: 0 0 4rem 2rem; } }
.process-step h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
@media (min-width: 1024px) { .process-step h3 { font-size: 1.5rem; } }
.process-step p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.65;
  max-width: 36rem;
}

/* --------- Diferencial --------- */
.differential {
  padding: 6rem 0;
  background: var(--background);
}
@media (min-width: 1024px) { .differential { padding: 8rem 0; } }
.differential .grid-2 {
  display: grid;
  gap: 3rem;
}
@media (min-width: 1024px) { .differential .grid-2 { grid-template-columns: repeat(2, 1fr); gap: 5rem; } }
.differential .left h2 {
  font-size: clamp(1.875rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
.differential .left p.lead {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.65;
  margin-bottom: 2rem;
}

.compare-table {
  background: var(--secondary);
  border-radius: var(--radius-2xl);
  padding: 2rem;
}
.compare-table .header-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.compare-table .header-row span:first-child {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  font-weight: 500;
}
.compare-table .header-row span:last-child {
  color: var(--foreground);
  font-size: 0.875rem;
  font-weight: 600;
}
.compare-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}
.compare-row .old {
  color: rgba(107, 114, 128, 0.6);
  text-decoration: line-through;
  font-size: 0.875rem;
}
.compare-row .new {
  color: var(--foreground);
  font-weight: 500;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.compare-row .arrow { color: var(--primary); }

.diff-list {
  display: flex; flex-direction: column;
  gap: 1rem;
}
.diff-item {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: all 0.5s;
  cursor: pointer;
  display: flex;
  gap: 1rem;
}
.diff-item:hover {
  border-color: rgba(136, 213, 0, 0.3);
  background: rgba(136, 213, 0, 0.05);
}
.diff-item .index {
  flex-shrink: 0;
  width: 2.5rem; height: 2.5rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(136, 213, 0, 0.1);
  color: var(--primary);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.875rem;
  transition: all 0.3s;
}
.diff-item:hover .index { background: var(--primary); color: var(--foreground); }
.diff-item h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}
.diff-item:hover h3 { color: var(--primary); }
.diff-item p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.65;
}

/* --------- Casos (fondo oscuro) --------- */
.cases {
  padding: 6rem 0;
  background: var(--foreground);
  color: var(--background);
  overflow: hidden;
}
@media (min-width: 1024px) { .cases { padding: 8rem 0; } }
.cases .header {
  max-width: 48rem;
  margin: 0 auto 4rem;
  text-align: center;
}
@media (min-width: 1024px) { .cases .header { margin-bottom: 6rem; } }
.cases .badge-static {
  display: inline-block;
  padding: 0.375rem 1rem;
  border-radius: var(--radius-pill);
  background: rgba(136, 213, 0, 0.2);
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.cases h2 {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.cases .subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.65;
}

.cases-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 5rem;
}
@media (min-width: 1024px) { .cases-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-bottom: 7rem; } }
.case-card {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  transition: all 0.5s;
  cursor: pointer;
}
.case-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
}
.case-card .top-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.5rem;
}
.case-card .icon-box {
  width: 3rem; height: 3rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 0.75rem;
  background: rgba(136, 213, 0, 0.2);
  color: var(--primary);
  transition: all 0.3s;
}
.case-card:hover .icon-box { background: var(--primary); color: var(--foreground); transform: scale(1.1); }
.case-card .arrow-out { color: rgba(255, 255, 255, 0.3); transition: all 0.3s; }
.case-card:hover .arrow-out { color: var(--primary); transform: translate(2px, -2px); }
.case-card .category {
  font-size: 0.75rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.case-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  transition: color 0.3s;
}
.case-card:hover h3 { color: var(--primary); }
.case-card .desc {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.65;
  margin-bottom: 2rem;
}
.case-card .metrics {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.case-card .metric .v {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}
.case-card .metric .l {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.testimonials-block { text-align: center; }
.testimonials-block h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
}
@media (min-width: 1024px) { .testimonials-block h3 { font-size: 1.875rem; } }
.testimonials-grid {
  display: grid;
  gap: 1.5rem;
  text-align: left;
}
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }
.testimonial {
  position: relative;
  padding: 2rem;
  border-radius: var(--radius-2xl);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.5s;
}
@media (min-width: 1024px) { .testimonial { padding: 2.5rem; } }
.testimonial:hover { border-color: rgba(136, 213, 0, 0.3); }
.testimonial .quote-icon {
  position: absolute; top: 1.5rem; right: 1.5rem;
  width: 2.5rem; height: 2.5rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(136, 213, 0, 0.2);
  color: var(--primary);
}
.testimonial blockquote {
  font-size: 1.25rem;
  line-height: 1.65;
  margin-bottom: 2rem;
  font-weight: 300;
  font-style: italic;
}
@media (min-width: 1024px) { .testimonial blockquote { font-size: 1.5rem; } }
.testimonial .author-row {
  display: flex; align-items: center; gap: 1rem;
}
.testimonial .avatar {
  width: 3rem; height: 3rem;
  border-radius: 50%;
  background: rgba(136, 213, 0, 0.3);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.testimonial .author-name { font-weight: 600; }
.testimonial .author-company { font-size: 0.875rem; color: rgba(255, 255, 255, 0.5); }

.cases-cta {
  margin-top: 5rem;
  text-align: center;
}
.cases-cta p {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.5rem;
}
.cases-cta a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: var(--foreground);
  font-weight: 600;
  transition: transform 0.3s;
}
.cases-cta a:hover { transform: scale(1.05); }

/* --------- FAQ --------- */
.faq { padding: 6rem 0; }
@media (min-width: 1024px) { .faq { padding: 8rem 0; } }
.faq .grid-2 {
  display: grid; gap: 3rem;
}
@media (min-width: 1024px) {
  .faq .grid-2 { grid-template-columns: repeat(2, 1fr); gap: 5rem; }
  .faq .left { position: sticky; top: 8rem; align-self: flex-start; }
}
.faq h2 {
  font-size: clamp(1.875rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
.faq .lead {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.65;
}

.accordion-item {
  border-bottom: 1px solid var(--border);
}
.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  text-align: left;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--foreground);
  transition: color 0.2s;
}
.accordion-trigger:hover { color: var(--primary); }
.accordion-trigger .chevron {
  transition: transform 0.3s;
  flex-shrink: 0;
}
.accordion-item.open .accordion-trigger .chevron { transform: rotate(180deg); }
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  color: var(--muted-foreground);
  line-height: 1.65;
}
.accordion-item.open .accordion-content {
  max-height: 500px;
  padding-bottom: 1.5rem;
}

/* --------- Contacto (fondo oscuro) --------- */
.contact {
  padding: 6rem 0;
  background: var(--foreground);
  color: var(--background);
}
@media (min-width: 1024px) { .contact { padding: 8rem 0; } }
.contact .grid-2 {
  display: grid; gap: 3rem;
}
@media (min-width: 1024px) { .contact .grid-2 { grid-template-columns: repeat(2, 1fr); gap: 5rem; } }
.contact .left .eyebrow { color: rgba(255, 255, 255, 0.6); }
.contact h2 {
  font-size: clamp(1.875rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
.contact .lead {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.65;
  margin-bottom: 3rem;
}

.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-info a {
  display: flex; align-items: center; gap: 1rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}
.contact-info a:hover { color: var(--background); }
.contact-info .ic-circle {
  width: 3rem; height: 3rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
  transition: border-color 0.2s;
}
.contact-info a:hover .ic-circle { border-color: rgba(255, 255, 255, 0.4); }
.contact-info .label-sm { font-size: 0.875rem; color: rgba(255, 255, 255, 0.5); }
.contact-info .label-lg { font-size: 1.125rem; }

.contact-form-card {
  background: var(--background);
  color: var(--foreground);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  box-shadow: var(--shadow-2xl);
}
@media (min-width: 1024px) { .contact-form-card { padding: 2.5rem; } }
.contact-form-card form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-row {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}
.form-group input, .form-group textarea {
  padding: 0.875rem 1rem;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  height: 3rem;
  color: var(--foreground);
  transition: border-color 0.2s;
}
.form-group textarea { height: auto; min-height: 10rem; resize: none; }
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--foreground);
}
.contact-form-card .legal {
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* --------- Footer --------- */
.site-footer {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
}
@media (min-width: 1024px) { .site-footer { padding: 5rem 0; } }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin-bottom: 4rem;
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
}
.footer-brand { grid-column: span 2; }
@media (min-width: 1024px) { .footer-brand { grid-column: span 1; } }
.footer-brand img { height: 2.5rem; width: auto; margin-bottom: 1.5rem; }
.footer-brand p {
  color: var(--muted-foreground);
  line-height: 1.65;
  max-width: 18rem;
}
.footer-col-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.footer-list li { margin-bottom: 0.75rem; }
.footer-list a {
  color: var(--muted-foreground);
  transition: color 0.2s;
}
.footer-list a:hover { color: var(--foreground); }
.social-row { display: flex; gap: 1rem; }
.social-row a {
  color: var(--muted-foreground);
  transition: color 0.2s;
}
.social-row a:hover { color: var(--foreground); }
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; } }
.footer-bottom p { font-size: 0.875rem; color: var(--muted-foreground); }
.footer-bottom .legal-links { display: flex; gap: 1.5rem; }
.footer-bottom .legal-links a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.2s;
}
.footer-bottom .legal-links a:hover { color: var(--foreground); }

/* --------- WhatsApp button --------- */
.wa-button {
  position: fixed;
  bottom: 1.5rem; left: 1.5rem;
  z-index: 50;
  display: flex; align-items: center; gap: 0.75rem;
  opacity: 0;
  transform: translateY(5rem);
  transition: all 0.5s;
}
.wa-button.visible { opacity: 1; transform: translateY(0); }
.wa-button .tooltip {
  background: var(--foreground);
  color: var(--background);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-1rem);
  transition: all 0.3s;
  order: 2;
}
.wa-button:hover .tooltip { opacity: 1; transform: translateX(0); }
.wa-circle {
  position: relative;
  width: 3.5rem; height: 3.5rem;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s;
}
.wa-button:hover .wa-circle { transform: scale(1.1); }
.wa-circle::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  background: #25D366;
  opacity: 0.25;
  animation: wa-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.wa-circle svg { width: 1.75rem; height: 1.75rem; color: #fff; position: relative; z-index: 1; }

/* --------- Animaciones --------- */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes underline-grow { to { transform: scaleX(1); } }
@keyframes slide-up {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-slide-up { animation: slide-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; opacity: 0; }
.animate-slide-up.delay-1 { animation-delay: 0.15s; }
.animate-slide-up.delay-2 { animation-delay: 0.3s; }
.animate-slide-up.delay-3 { animation-delay: 0.45s; }

@keyframes wa-ping {
  0% { transform: scale(1); opacity: 0.25; }
  75%, 100% { transform: scale(2); opacity: 0; }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ========================================================================
   MEJORAS MARKETINERAS
   ======================================================================== */

/* --------- Barra de progreso de scroll --------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--primary);
  z-index: 200;
  transition: width 0.08s linear;
  pointer-events: none;
}

/* --------- Entrada del logo y nav --------- */
.brand {
  position: relative;
  animation: brand-slide-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}
@keyframes brand-slide-in {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}
.nav-links a,
.nav-cta .btn {
  animation: nav-drop-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.nav-links a:nth-child(1) { animation-delay: 0.20s; }
.nav-links a:nth-child(2) { animation-delay: 0.28s; }
.nav-links a:nth-child(3) { animation-delay: 0.36s; }
.nav-links a:nth-child(4) { animation-delay: 0.44s; }
.nav-links a:nth-child(5) { animation-delay: 0.52s; }
.nav-cta .btn            { animation-delay: 0.60s; }
@keyframes nav-drop-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --------- Hero H1: stagger palabra por palabra --------- */
.hw {
  display: inline-block;
  opacity: 0;
  animation: word-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--i, 0) * 0.16s);
}
/* El rotator usa inline-flex + overflow:hidden; solo fade, sin translateY */
.hw.rotator {
  display: inline-flex;
  animation-name: word-fade;
}
@keyframes word-rise {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes word-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
/* Delays ajustados para subtitle y CTAs después del stagger */
.animate-slide-up.delay-4 { animation-delay: 0.56s; }
.animate-slide-up.delay-5 { animation-delay: 0.72s; }

/* --------- Shimmer en botones primary --------- */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  animation: btn-shimmer 4s ease-in-out 1.8s infinite;
  pointer-events: none;
}
@keyframes btn-shimmer {
  0%      { left: -100%; }
  30%, 100% { left: 200%; }
}

/* --------- Marquee ticker --------- */
.marquee-strip {
  background: var(--foreground);
  padding: 0.875rem 0;
  overflow: hidden;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  white-space: nowrap;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}
.marquee-strip:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-track span {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}
.marquee-track .sep {
  color: var(--primary);
  font-size: 1.125rem;
  line-height: 1;
  letter-spacing: 0;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --------- Tilt 3D en cards --------- */
.case-card,
.card-inner {
  will-change: transform;
}

/* --------- Service cards enriquecidas --------- */
.service-card {
  display: flex;
  flex-direction: column;
}

.svc-human {
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.4;
  margin-bottom: 0.875rem;
}

.svc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 1rem;
}

.svc-chips span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.svc-chips svg { flex-shrink: 0; }

.service-card.highlight .svc-chips span {
  color: rgba(136, 213, 0, 0.85);
  background: rgba(136, 213, 0, 0.08);
  border-color: rgba(136, 213, 0, 0.25);
}

.svc-hook {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.55;
  font-style: italic;
  margin-top: auto;
  padding-top: 0.875rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.service-card.highlight .svc-hook {
  color: rgba(136, 213, 0, 0.6);
  border-top-color: rgba(136, 213, 0, 0.15);
}

/* --------- Flip cards de servicios --------- */
.card-flip {
  perspective: 900px;
  height: 100%;
}

.card-inner {
  position: relative;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.72s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-flip:hover .card-inner,
.card-flip.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.card-front {
  height: 100%;
}

/* Suppress old translateY hover on front when inside flip */
.card-flip .service-card:hover {
  transform: none;
}
.card-flip .service-card:hover .icon-box {
  transform: none;
}
.card-flip .service-card:hover h3 {
  color: var(--background);
}

.card-back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
  border-radius: var(--radius-2xl);
  padding: 1.625rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card-back.highlight {
  background: rgba(136, 213, 0, 0.1);
  border: 2px solid rgba(136, 213, 0, 0.4);
}

.card-back-title {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.875rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.card-back.highlight .card-back-title {
  border-bottom-color: rgba(136, 213, 0, 0.18);
}

.back-items {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex: 1;
  justify-content: space-evenly;
}

.back-item {
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
}

.back-item-icon {
  flex-shrink: 0;
  width: 1.625rem;
  height: 1.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 0.375rem;
}

.card-back.highlight .back-item-icon {
  background: rgba(136, 213, 0, 0.1);
}

.back-item-text strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 0.15rem;
  line-height: 1.3;
}

.card-back.highlight .back-item-text strong {
  color: rgba(136, 213, 0, 1);
}

.back-item-text span {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.5;
}

.card-back.highlight .back-item-text span {
  color: rgba(255, 255, 255, 0.55);
}

/* Hint visible antes del hover */
.flip-hint {
  position: absolute;
  bottom: 1.125rem;
  right: 1.25rem;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.22);
  pointer-events: none;
  transition: opacity 0.25s;
}

.service-card.highlight .flip-hint {
  color: rgba(136, 213, 0, 0.3);
}

.card-flip:hover .flip-hint {
  opacity: 0;
}


/* --------- CTA "Hablemos" — anillo pulsante --------- */
.nav-cta::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--primary);
  opacity: 0;
  pointer-events: none;
  animation: cta-pulse 2.6s ease-out 2.2s infinite;
}
@keyframes cta-pulse {
  0%   { opacity: 0.65; transform: scale(1); }
  100% { opacity: 0;    transform: scale(1.35); }
}

/* --------- Mobile menu — entrada animada --------- */
.mobile-menu.open {
  animation: menu-drop 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes menu-drop {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
