/* ═══════════════════════════════════════════════════════
   AutomatIA DEMO 3 v2 — styles.css
   Paleta: Obsidiana + Violeta Eléctrico + Ámbar Dorado
   ═══════════════════════════════════════════════════════ */

:root {
  --navy: #0c1222;
  --navy-light: #111a2e;
  --navy-card: #0f1729;
  --navy-surface: #141e33;

  --cyan: #06b6d4;
  --cyan-bright: #22d3ee;
  --cyan-dim: rgba(6, 182, 212, 0.12);
  --cyan-glow: rgba(6, 182, 212, 0.35);

  --magenta: #d946ef;
  --magenta-dim: rgba(217, 70, 239, 0.12);
  --magenta-glow: rgba(217, 70, 239, 0.3);

  --blue: #3b82f6;
  --emerald: #10b981;
  --amber: #f59e0b;
  --rose: #f43f5e;

  --white: #f7fbff;
  --white-soft: rgba(247, 251, 255, 0.85);
  --muted: rgba(247, 251, 255, 0.52);
  --muted-dark: rgba(247, 251, 255, 0.32);

  --border: rgba(6, 182, 212, 0.1);
  --border-hover: rgba(6, 182, 212, 0.28);
  --border-strong: rgba(6, 182, 212, 0.18);
  --glass: rgba(15, 23, 41, 0.65);
  --glass-border: rgba(6, 182, 212, 0.12);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 14px 40px rgba(0, 0, 0, 0.5), 0 4px 16px rgba(0, 0, 0, 0.32);
  --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.55);

  --font-main: "DM Serif Display", Georgia, serif;
  --font-code: "DM Sans", system-ui, sans-serif;

  --radius: 16px;
  --radius-lg: 22px;
  --radius-full: 999px;
  --tr: 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── RESET ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--navy);
  color: #e5e7eb;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection {
  background: var(--cyan);
  color: #fff;
}
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: var(--navy);
}
::-webkit-scrollbar-thumb {
  background: rgba(124, 58, 237, 0.35);
  border-radius: 3px;
}

/* ── MESH BG ── */
.mesh-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(
      ellipse 80% 60% at 10% 20%,
      rgba(124, 58, 237, 0.08) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 60% 80% at 90% 80%,
      rgba(245, 158, 11, 0.05) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 50% 50% at 50% 50%,
      rgba(139, 92, 246, 0.04) 0%,
      transparent 70%
    );
}
.content-wrap {
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════════════
   HEADER
══════════════════════════════════════ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(8, 11, 20, 0.72);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  transition: var(--tr);
}
.header.scrolled {
  background: rgba(8, 11, 20, 0.95);
  border-bottom-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
}
.nav-wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-mark {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--cyan);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-code);
  font-size: 15px;
  font-weight: 500;
  color: var(--cyan);
  position: relative;
  overflow: hidden;
}
.logo-mark::after {
  content: "";
  position: absolute;
  inset: -50%;
  background: conic-gradient(
    from 0deg,
    transparent,
    var(--cyan-dim),
    transparent
  );
  animation: logoSpin 6s linear infinite;
}
@keyframes logoSpin {
  to {
    transform: rotate(360deg);
  }
}
.logo-word {
  font-family: var(--font-main);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.3px;
}
.logo-word em {
  font-style: italic;
  color: var(--cyan);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--tr);
  position: relative;
}
.nav-links a:not(.btn-nav)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--tr);
}
.nav-links a.is-active,
.nav-links a:hover {
  color: var(--white);
}
.nav-links a.is-active::after,
.nav-links a:hover::after {
  transform: scaleX(1);
}

.btn-nav {
  background: var(--cyan) !important;
  color: #fff !important;
  padding: 10px 22px !important;
  border-radius: var(--radius-full) !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  transition: all var(--tr) !important;
}
.btn-nav:hover {
  background: var(--cyan-bright) !important;
  transform: translateY(-1px);
  box-shadow: 0 0 16px var(--cyan-glow);
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 10px;
  color: var(--white);
  transition: background var(--tr);
}
.hamburger:hover {
  background: var(--cyan-dim);
}
.hamburger svg {
  width: 22px;
  max-height: 100vh;
  overflow-y: auto;
  stroke: currentColor;
  display: block;
}

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;

  /* CAPA TRIPLE DE FONDO */
  background: 
    /* 1. Gradiente radial para iluminar el centro y oscurecer las esquinas */
    radial-gradient(
      circle at center,
      rgba(12, 18, 34, 0.2) 0%,
      var(--navy) 80%
    ),
    /* 2. Gradiente lineal para asegurar que el texto sea legible */
    linear-gradient(180deg, rgba(12, 18, 34, 0.5) 0%, var(--navy) 100%),
    /* 3. La imagen de tecnología */ url("../img/Block_chain.png");

  background-size: cover;
  background-position: center;
  background-position: center;
  background-attachment: fixed; /* Esto crea un efecto parallax muy pro al bajar */
  background-color: rgba(74, 28, 117, 0.7);
  background-blend-mode: overlay;
}

/* 3. El Toque Final: Superposición de malla (Opcional pero recomendado) */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(var(--cyan-dim) 1px, transparent 1px);
  background-size: 30px 30px; /* Crea una cuadrícula de puntos tecnológicos */
  opacity: 0.2;
  pointer-events: none;
}
.hero-bg-shape {
  position: absolute;
  top: -180px;
  right: -120px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(124, 58, 237, 0.12) 0%,
    transparent 70%
  );
  pointer-events: none;
  animation: breathe 8s ease-in-out infinite;
}
.hero-bg-shape-2 {
  position: absolute;
  bottom: -100px;
  left: -60px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(245, 158, 11, 0.07) 0%,
    transparent 70%
  );
  pointer-events: none;
  animation: breathe 10s ease-in-out 2s infinite;
}
@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.7;
  }
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cyan-dim);
  border: 1px solid var(--border-hover);
  color: var(--cyan-bright);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 26px;
}
.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.hero-text h1 {
  font-family: "DM Serif Display", Georgia, serif;
  text-shadow: 0 0 20px rgba(6, 182, 212, 0.4); /* Resplandor cyan sutil */
  font-weight: 600;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 22px;
}
.hero-text h1 em {
  font-style: italic;
  color: var(--cyan-bright);
}
.hero-text p {
  font-size: 17px;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 34px;
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cyan);
  color: #fff;
  padding: 14px 30px;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: all var(--tr);
  border: none;
  cursor: pointer;
  font-family: var(--font-main);
}
.btn-primary:hover {
  background: var(--cyan-bright);
  transform: translateY(-2px);
  box-shadow:
    0 0 24px var(--cyan-glow),
    var(--shadow-md);
}
.btn-primary svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  padding: 14px 30px;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border: 1.5px solid var(--border-strong);
  transition: all var(--tr);
}
.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan-bright);
  background: var(--cyan-dim);
}

/* Hero illustration */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-illustration {
  width: 100%;
  max-width: 500px;
  background: var(--navy-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow:
    var(--shadow-xl),
    0 0 40px rgba(124, 58, 237, 0.08);
  overflow: hidden;
}
.hero-illu-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 13px 16px;
  background: var(--navy-surface);
  border-bottom: 1px solid var(--border);
}
.illu-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.illu-dot.r {
  background: #ff6b6b;
}
.illu-dot.y {
  background: #ffd43b;
}
.illu-dot.g {
  background: #51cf66;
}
.illu-address {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: var(--muted-dark);
  font-weight: 500;
  letter-spacing: 0.3px;
  font-family: var(--font-code);
}
.hero-illu-body {
  padding: 22px;
}
.illu-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}
.illu-card-mini {
  flex: 1;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--navy);
}
.illu-card-mini .illu-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.illu-card-mini h5 {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 4px;
}
.illu-card-mini p {
  font-family: var(--font-main);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.illu-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 60px;
  padding: 10px 14px;
  background: var(--navy);
  border-radius: 10px;
  border: 1px solid var(--border);
}
.illu-bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  animation: barGrow 1.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  transform-origin: bottom;
}
@keyframes barGrow {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

.hero-float-card {
  position: absolute;
  background: rgba(8, 11, 20, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 13px 18px;
  box-shadow:
    var(--shadow-lg),
    0 0 16px var(--cyan-glow);
  animation: floatCard 4s ease-in-out infinite;
}
.hero-float-card.top-right {
  top: -20px;
  right: -30px;
  animation-delay: 0s;
}
.hero-float-card.bottom-left {
  bottom: 20px;
  left: -40px;
  animation-delay: 1.5s;
}
.float-card-label {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
  font-weight: 500;
}
.float-card-value {
  font-family: var(--font-main);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
}
.float-card-value.green {
  color: var(--emerald);
}
.float-card-value.coral {
  color: var(--cyan-bright);
}
@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ── Tech bar ── */
.tech-bar {
  padding: 40px 32px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--navy-surface);
}
.tech-bar-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.tech-bar-label {
  font-size: 11px;
  color: var(--muted-dark);
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.tech-logos {
  display: flex;
  justify-content: center;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0.45;
}
.tech-logo {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--white);
  font-family: var(--font-code);
  transition: opacity var(--tr);
}
.tech-logo:hover {
  opacity: 1;
}

/* ══════════════════════════════════════
   SECTIONS SHARED
══════════════════════════════════════ */
section {
  padding: 110px 32px;
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--cyan-bright);
  margin-bottom: 16px;
}
.section-tag-dot {
  width: 5px;
  height: 5px;
  background: var(--cyan);
  border-radius: 50%;
}
.section-title {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 1.2;
  letter-spacing: -0.3px;
  margin-bottom: 16px;
  color: var(--white);
}
.section-title em {
  font-style: italic;
  color: var(--cyan-bright);
}
.section-subtitle {
  font-size: 16px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.8;
}
.section-header {
  text-align: center;
  margin-bottom: 70px;
}
.section-header .section-subtitle {
  margin: 0 auto;
}

/* ══════════════════════════════════════
   SERVICIOS — 3D card animations
══════════════════════════════════════ */
.servicios {
  background: var(--navy-surface);
}
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

/* ── Base card — compartida con casos y proceso ── */
.servicio-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  position: relative;
  overflow: hidden;
  cursor: default;
  transition:
    transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.4s ease,
    border-color 0.4s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Animated gradient top edge */
.servicio-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--cyan) 40%,
    var(--magenta) 70%,
    transparent 100%
  );
  opacity: 0;
  transform: scaleX(0.3);
  transform-origin: left;
  transition:
    opacity 0.4s ease,
    transform 0.5s ease;
  z-index: 3;
}

/* Inner glow overlay on hover */
.servicio-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 60% at 50% 0%,
    rgba(124, 58, 237, 0.1) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
  pointer-events: none;
}

.servicio-card:hover {
  transform: translateY(-8px) scale(1.015);
  border-color: var(--border-hover);
  box-shadow:
    var(--shadow-lg),
    0 0 30px rgba(124, 58, 237, 0.15);
}
.servicio-card:hover::before {
  opacity: 1;
  transform: scaleX(1);
}
.servicio-card:hover::after {
  opacity: 1;
}

/* Icon */
.servicio-card-icon {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  position: relative;
  z-index: 2;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  -ms-border-radius: 10px;
  -o-border-radius: 10px;
}
.servicio-card:hover .servicio-card-icon {
  transform: scale(1.12) rotate(-4deg);
}
.servicio-card-icon svg {
  width: 24px;
  height: 24px;
}

.servicio-card h3 {
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--white);
  position: relative;
  z-index: 2;
}
.servicio-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  position: relative;
  z-index: 2;
}

/* Floating particle on each card */
.servicio-card .card-particle {
  position: absolute;
  bottom: 16px;
  right: 18px;
  z-index: 2;
  font-size: 28px;
  opacity: 0.08;
  transition:
    opacity 0.4s ease,
    transform 0.5s ease;
  pointer-events: none;
  user-select: none;
}
.servicio-card:hover .card-particle {
  opacity: 0.18;
  transform: scale(1.3) rotate(10deg);
}

/* ── CARD WITH SVG BACKGROUND ── */
.card-with-bg {
  isolation: isolate;
}
.card-with-bg .card-bg-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--card-bg);
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  transition:
    opacity 0.45s ease,
    transform 0.5s ease;
}
.card-with-bg:hover .card-bg-img {
  opacity: 0.38;
  transform: scale(1.06);
}
.card-with-bg .card-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(8, 11, 20, 0.08) 0%,
    rgba(8, 11, 20, 0.52) 55%,
    rgba(8, 11, 20, 0.82) 100%
  );
  transition: opacity 0.35s ease;
  -webkit-transition: opacity 0.35s ease;
  -moz-transition: opacity 0.35s ease;
  -ms-transition: opacity 0.35s ease;
  -o-transition: opacity 0.35s ease;
}
.card-with-bg > *:not(.card-bg-img):not(.card-bg-overlay) {
  position: relative;
  z-index: 2;
}

/* ══════════════════════════════════════
   CASOS — unified with servicios style
══════════════════════════════════════ */
.casos {
  background: var(--navy);
}
.casos-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.caso-tab {
  padding: 10px 26px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-strong);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--tr);
  -webkit-transition: all var(--tr);
  -moz-transition: all var(--tr);
  -ms-transition: all var(--tr);
  -o-transition: all var(--tr);
  -webkit-border-radius: var(--radius-full);
  -moz-border-radius: var(--radius-full);
  -ms-border-radius: var(--radius-full);
  -o-border-radius: var(--radius-full);
}
.caso-tab.active,
.caso-tab:hover {
  background: var(--cyan);
  color: #fff;
  border-color: var(--cyan);
  font-weight: 700;
}
.casos-panel {
  max-width: 1100px;
  margin: 0 auto;
}
.casos-panel-group {
  display: none;
}
.casos-panel-group.active {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

/* Caso cards now inherit servicio-card base styles */
.caso-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.4s ease,
    border-color 0.4s ease;
  -webkit-transition:
    transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.4s ease,
    border-color 0.4s ease;
  -moz-transition:
    transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.4s ease,
    border-color 0.4s ease;
  -ms-transition:
    transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.4s ease,
    border-color 0.4s ease;
  -o-transition:
    transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.4s ease,
    border-color 0.4s ease;
  -webkit-border-radius: var(--radius-lg);
  -moz-border-radius: var(--radius-lg);
  -ms-border-radius: var(--radius-lg);
  -o-border-radius: var(--radius-lg);
}
.caso-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--cyan) 40%,
    var(--magenta) 70%,
    transparent 100%
  );
  opacity: 0;
  transform: scaleX(0.3);
  transform-origin: left;
  transition:
    opacity 0.4s ease,
    transform 0.5s ease;
  z-index: 3;
  -webkit-transform: scaleX(0.3);
  -moz-transform: scaleX(0.3);
  -ms-transform: scaleX(0.3);
  -o-transform: scaleX(0.3);
  -webkit-transition:
    opacity 0.4s ease,
    transform 0.5s ease;
  -moz-transition:
    opacity 0.4s ease,
    transform 0.5s ease;
  -ms-transition:
    opacity 0.4s ease,
    transform 0.5s ease;
  -o-transition:
    opacity 0.4s ease,
    transform 0.5s ease;
}
.caso-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 60% at 50% 0%,
    rgba(124, 58, 237, 0.08) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
  pointer-events: none;
  -webkit-transition: opacity 0.4s ease;
  -moz-transition: opacity 0.4s ease;
  -ms-transition: opacity 0.4s ease;
  -o-transition: opacity 0.4s ease;
}
.caso-card:hover {
  transform: translateY(-8px) scale(1.015);
  border-color: var(--border-hover);
  box-shadow:
    var(--shadow-lg),
    0 0 26px rgba(124, 58, 237, 0.14);
  -webkit-transform: translateY(-8px) scale(1.015);
  -moz-transform: translateY(-8px) scale(1.015);
  -ms-transform: translateY(-8px) scale(1.015);
  -o-transform: translateY(-8px) scale(1.015);
}
.caso-card:hover::before {
  opacity: 1;
  transform: scaleX(1);
}
.caso-card:hover::after {
  opacity: 1;
}

.caso-card-emoji {
  font-size: 30px;
  margin-bottom: 14px;
  display: block;
  text-align: center;
  transition: transform 0.4s ease;
  position: relative;
  z-index: 2;
  -webkit-transition: transform 0.4s ease;
  -moz-transition: transform 0.4s ease;
  -ms-transition: transform 0.4s ease;
  -o-transition: transform 0.4s ease;
}
.caso-card:hover .caso-card-emoji {
  transform: scale(1.2) rotate(-5deg);
  -webkit-transform: scale(1.2) rotate(-5deg);
  -moz-transform: scale(1.2) rotate(-5deg);
  -ms-transform: scale(1.2) rotate(-5deg);
  -o-transform: scale(1.2) rotate(-5deg);
}
.caso-card h4 {
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
}
.caso-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  position: relative;
  z-index: 2;
}

/* ══════════════════════════════════════
   PROCESO — card grid (like servicios)
══════════════════════════════════════ */
.proceso {
  background: var(--navy-surface);
}
.proceso-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  max-width: 1100px;
  margin: 0 auto;
}

.proceso-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.4s ease,
    border-color 0.4s ease;
}
.proceso-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--cyan) 40%,
    var(--magenta) 70%,
    transparent 100%
  );
  opacity: 0;
  transform: scaleX(0.3);
  transform-origin: left;
  transition:
    opacity 0.4s ease,
    transform 0.5s ease;
  z-index: 3;
}
.proceso-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 60% at 50% 0%,
    rgba(124, 58, 237, 0.09) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
  pointer-events: none;
}
.proceso-card:hover {
  transform: translateY(-8px) scale(1.015);
  border-color: var(--border-hover);
  box-shadow:
    var(--shadow-lg),
    0 0 28px rgba(124, 58, 237, 0.14);
}
.proceso-card:hover::before {
  opacity: 1;
  transform: scaleX(1);
}
.proceso-card:hover::after {
  opacity: 1;
}

.proceso-step-num {
  font-family: var(--font-code);
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan-bright);
  letter-spacing: 2px;
  background: var(--cyan-dim);
  border: 1px solid var(--border-hover);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}
.proceso-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  position: relative;
  z-index: 2;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  -webkit-transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  -moz-transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  -ms-transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  -o-transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.proceso-card:hover .proceso-card-icon {
  transform: scale(1.12) rotate(-4deg);
  -webkit-transform: scale(1.12) rotate(-4deg);
  -moz-transform: scale(1.12) rotate(-4deg);
  -ms-transform: scale(1.12) rotate(-4deg);
  -o-transform: scale(1.12) rotate(-4deg);
}
.proceso-card-icon svg {
  width: 22px;
  height: 22px;
}
.proceso-card h4 {
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 17px;
  margin-bottom: 10px;
  color: var(--white);
  position: relative;
  z-index: 2;
}
.proceso-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  position: relative;
  z-index: 2;
}
.proceso-card .card-particle {
  position: absolute;
  bottom: 14px;
  right: 16px;
  z-index: 2;
  font-size: 26px;
  opacity: 0.07;
  transition:
    opacity 0.4s ease,
    transform 0.5s ease;
  pointer-events: none;
  user-select: none;
}
.proceso-card:hover .card-particle {
  opacity: 0.16;
  transform: scale(1.3) rotate(10deg);
}

/* ══════════════════════════════════════
   DIFERENCIADORES
══════════════════════════════════════ */
.diferenciadores {
  background: var(--navy);
}
.dif-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.dif-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px 24px;
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--tr);
  position: relative;
  overflow: hidden;
}
.dif-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--cyan) 50%,
    transparent 100%
  );
  opacity: 0;
  transform: scaleX(0.3);
  transform-origin: left;
  transition:
    opacity 0.4s ease,
    transform 0.5s ease;
}
.dif-card:hover {
  box-shadow:
    var(--shadow-md),
    0 0 20px rgba(124, 58, 237, 0.1);
  transform: translateY(-4px);
  border-color: var(--border-hover);
}
.dif-card:hover::before {
  opacity: 1;
  transform: scaleX(1);
}
.dif-icon {
  width: 46px;
  height: 86px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--tr);
}
.dif-card:hover .dif-icon {
  transform: scale(1.1);
}
.dif-icon svg {
  width: 20px;
  height: 20px;
}
.dif-card h4 {
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 17px;
  margin-bottom: 6px;
}
.dif-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* ══════════════════════════════════════
   CTA BANNER
══════════════════════════════════════ */
.cta-banner {
  background: linear-gradient(
    135deg,
    var(--navy-light) 0%,
    rgba(124, 58, 237, 0.06) 50%,
    var(--navy-light) 100%
  );
  border-top: 1px solid var(--border-hover);
  border-bottom: 1px solid var(--border-hover);
  padding: 90px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 50% 80% at 50% 50%,
      rgba(124, 58, 237, 0.08) 0%,
      transparent 70%
    ),
    radial-gradient(
      circle 200px at 20% 50%,
      rgba(245, 158, 11, 0.04) 0%,
      transparent 60%
    );
}
.cta-banner::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--cyan),
    var(--magenta),
    var(--cyan),
    transparent
  );
}
.cta-inner {
  position: relative;
  z-index: 1;
}
.cta-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cyan-dim);
  border: 1px solid var(--border-hover);
  color: var(--cyan-bright);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.cta-banner h2 {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  margin-bottom: 16px;
}
.cta-banner h2 em {
  font-style: italic;
  color: var(--cyan-bright);
}
.cta-banner p {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 36px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}
.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-cta-wa {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #25d366;
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: all var(--tr);
}
.btn-cta-wa:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.35);
}
.btn-cta-wa svg {
  width: 18px;
  height: 18px;
  fill: #fff;
  flex-shrink: 0;
}

.cta-proof {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}
.cta-proof-item {
  text-align: center;
}
.cta-proof-num {
  font-family: var(--font-main);
  font-size: 26px;
  font-weight: 800;
  color: var(--cyan-bright);
  display: block;
}
.cta-proof-label {
  font-size: 12px;
  color: var(--muted);
}

/* ══════════════════════════════════════
   CONTACTO
══════════════════════════════════════ */
.contacto {
  background: var(--navy-surface);
}
.contact-layout {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 60px;
  align-items: start;
}
.contact-info h3 {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 26px;
  margin-bottom: 14px;
}
.contact-info > p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 30px;
  line-height: 1.8;
}
.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.contact-detail:last-child {
  border: none;
}
.contact-detail-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--cyan-dim);
  border: 1px solid var(--border-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-detail-icon svg {
  width: 17px;
  height: 17px;
  stroke: var(--cyan-bright);
}
.contact-link {
  font-size: 14px;
  color: var(--white-soft);
  text-decoration: none;
  transition: color var(--tr);
}
.contact-link:hover {
  color: var(--cyan-bright);
}
.contact-text {
  font-size: 14px;
  color: var(--muted);
}

/* Map embed */
.contact-map {
  margin-top: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-hover);
  box-shadow: var(--shadow-md);
  position: relative;
}
.contact-map::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.15);
  pointer-events: none;
}
.contact-map iframe {
  display: block;
  width: 100%;
  height: 220px;
  border: none;
  filter: hue-rotate(220deg) saturate(0.4) brightness(0.65) contrast(1.1);
  transition: filter var(--tr);
}
.contact-map:hover iframe {
  filter: hue-rotate(220deg) saturate(0.55) brightness(0.75) contrast(1.05);
}
.map-caption {
  padding: 10px 14px;
  background: var(--navy-card);
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--border);
}
.map-caption svg {
  width: 14px;
  height: 14px;
  stroke: var(--cyan-bright);
  flex-shrink: 0;
}
.map-caption span {
  font-size: 12px;
  color: var(--muted);
}

/* Form */
.contact-form-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--white-soft);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--navy);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--white);
  font-family: var(--font-main);
  font-size: 14px;
  transition:
    border-color var(--tr),
    box-shadow var(--tr);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted-dark);
}
.form-group select {
  cursor: pointer;
  color: var(--white);
}
.form-group select option {
  background: var(--navy-card);
  color: var(--white);
}
.form-group textarea {
  resize: vertical;
  min-height: 90px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-dim);
}
.form-group.is-invalid input,
.form-group.is-invalid select,
.form-group.is-invalid textarea {
  border-color: var(--rose);
}
.field-error {
  display: block;
  font-size: 12px;
  color: var(--rose);
  margin-top: 5px;
  min-height: 16px;
}

.btn-submit {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--cyan) 0%, var(--cyan-bright) 100%);
  color: #fff;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all var(--tr);
  letter-spacing: 0.3px;
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px var(--cyan-glow);
}
.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.form-note {
  font-size: 12px;
  color: var(--muted-dark);
  text-align: center;
  margin-top: 14px;
  line-height: 1.6;
}
.form-legal {
  font-size: 11px;
  color: var(--muted-dark);
  text-align: center;
  margin-top: 10px;
}
.form-legal a {
  color: var(--cyan-bright);
  text-decoration: underline;
  cursor: pointer;
}
.form-status {
  display: none;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  margin-top: 14px;
  text-align: center;
}
.form-status.is-visible {
  display: block;
}
.form-status.is-success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--emerald);
}
.form-status.is-error {
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.25);
  color: var(--rose);
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.footer {
  background: var(--navy-card);
  border-top: 1px solid var(--border);
  padding: 60px 32px 32px;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 260px;
  margin-top: 14px;
}
.footer-col h5 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan-bright);
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color var(--tr);
}
.footer-col a:hover {
  color: var(--white);
}
.footer-legal {
  max-width: 1200px;
  margin: 0 auto 24px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-legal a {
  font-size: 12px;
  color: var(--muted-dark);
  text-decoration: none;
  transition: color var(--tr);
  cursor: pointer;
}
.footer-legal a:hover {
  color: var(--cyan-bright);
}
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: 13px;
  color: var(--muted-dark);
}
.footer-acceso {
  font-size: 12px;
  color: var(--muted-dark);
  text-decoration: none;
  transition: color var(--tr);
}
.footer-acceso:hover {
  color: var(--cyan-bright);
}

/* ══════════════════════════════════════
   WHATSAPP FLOAT — hover-only tooltip
══════════════════════════════════════ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
}
.wa-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all var(--tr);
  flex-shrink: 0;
}
.whatsapp-float:hover .wa-btn {
  transform: scale(1.1);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
}
.wa-btn svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

/* Tooltip label — SOLO aparece al hover */
.wa-label {
  position: absolute;
  right: 68px;
  bottom: 50%;
  transform: translateY(50%) translateX(8px);
  background: var(--navy-light);
  border: 1px solid var(--border-hover);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: var(--radius);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  box-shadow: var(--shadow-md);
}
.wa-label::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right: none;
  border-left-color: var(--border-hover);
}
/* Solo visible en hover — no más auto-show */
.whatsapp-float:hover .wa-label,
.whatsapp-float.wa-show-label .wa-label {
  opacity: 1;
  transform: translateY(50%) translateX(0);
}

/* Ping ring */
.wa-ping {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.35);
  animation: waPing 2.5s ease-out infinite;
}
@keyframes waPing {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.8);
    opacity: 0;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

/* ══════════════════════════════════════
   COOKIE CONSENT BAR
══════════════════════════════════════ */
.cookie-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 300;
  transform: translateX(-50%) translateY(calc(100% + 40px));
  width: min(720px, calc(100vw - 48px));
  background: var(--navy-light);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow:
    var(--shadow-xl),
    0 0 40px rgba(124, 58, 237, 0.12);
  transition:
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.4s ease;
  opacity: 0;
  backdrop-filter: blur(12px);
}
.cookie-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(
    90deg,
    transparent,
    var(--cyan),
    var(--magenta),
    var(--cyan),
    transparent
  );
}
.cookie-bar--visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.cookie-bar--hiding {
  transform: translateX(-50%) translateY(calc(100% + 40px));
  opacity: 0;
}
.cookie-bar-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--cyan-dim);
  border: 1px solid var(--border-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}
.cookie-bar-text {
  flex: 1;
  min-width: 220px;
}
.cookie-bar-text p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.cookie-bar-text a {
  color: var(--cyan-bright);
  text-decoration: underline;
  cursor: pointer;
}
.cookie-bar-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.cookie-btn-accept {
  background: var(--cyan);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  padding: 9px 20px;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--tr);
  white-space: nowrap;
}
.cookie-btn-accept:hover {
  background: var(--cyan-bright);
  transform: translateY(-1px);
  box-shadow: 0 0 14px var(--cyan-glow);
}
.cookie-btn-decline {
  background: transparent;
  color: var(--muted-dark);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  padding: 9px 16px;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--tr);
  white-space: nowrap;
}
.cookie-btn-decline:hover {
  border-color: var(--border-hover);
  color: var(--muted);
}

/* ══════════════════════════════════════
   LEGAL MODALS
══════════════════════════════════════ */
.legal-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(4, 6, 12, 0.85);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.legal-modal.active {
  display: flex;
}
.legal-modal-box {
  background: var(--navy-light);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 680px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-xl);
}
.legal-modal-box::-webkit-scrollbar {
  width: 4px;
}
.legal-modal-box::-webkit-scrollbar-thumb {
  background: var(--border-hover);
  border-radius: 3px;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  gap: 16px;
}
.modal-header h3 {
  font-family: var(--font-main);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
}
.modal-close {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--tr);
  flex-shrink: 0;
}
.modal-close:hover {
  border-color: var(--cyan);
  color: var(--cyan-bright);
}
.modal-close svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}
.legal-content h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin: 20px 0 8px;
}
.legal-content p,
.legal-content li {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}
.legal-content ul {
  padding-left: 20px;
  margin: 8px 0;
}
.legal-content ul li {
  margin-bottom: 4px;
}
.legal-content a {
  color: var(--cyan-bright);
}
.legal-last-update {
  font-size: 12px;
  color: var(--muted-dark);
  margin-bottom: 16px;
}

/* ══════════════════════════════════════
   REVEAL ANIMATIONS
══════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 {
  transition-delay: 0.12s;
}
.reveal-delay-2 {
  transition-delay: 0.24s;
}
.reveal-delay-3 {
  transition-delay: 0.36s;
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1024px) {
  .servicios-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .proceso-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-inner {
    gap: 40px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .dif-grid {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: block; /* Asegúrate de que se vea en móvil */
    z-index: 1100 !important; /* Siempre un nivel arriba del menú */
    position: relative;
    cursor: pointer;
  }
  .nav-links {
    /* Estado inicial: Oculto y fuera de la vista */
    position: fixed !important;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--navy-card); /* Fondo oscuro sólido */
    display: flex !important; /* Siempre debe ser flex para el layout interno */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease-in-out;
    z-index: 1000; /* Por debajo del botón hamburguesa */
    visibility: hidden; /* Evita clics accidentales mientras está oculto */
  }

  /* Estado Activo: Cuando el JS inyecta la clase */
  .nav-links.active {
    right: 0 !important;
    visibility: visible;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  }
  .nav-links a {
    font-size: 18px;
  }
  .btn-nav {
    margin-top: 10px;
    text-align: center;
    display: block !important;
  }

  section {
    padding: 70px 20px;
  }
  .hero {
    padding: 100px 20px 60px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-visual {
    margin-top: 12px;
    order: 2;
  }
  .hero-text {
    order: 1;
  }
  .hero-float-card.top-right {
    top: 6px;
    right: 6px;
  }
  .hero-float-card.bottom-left {
    left: 6px;
    bottom: 6px;
  }
  .float-card-value {
    font-size: 18px;
  }
  .float-card-label {
    font-size: 10px;
  }
  .hero-float-card {
    padding: 9px 13px;
    min-width: 100px;
  }

  .servicios-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .servicio-card {
    padding: 26px 20px;
  }
  .servicio-card:hover {
    transform: translateY(-4px) scale(1);
    -webkit-transform: translateY(-4px) scale(1);
    -moz-transform: translateY(-4px) scale(1);
    -ms-transform: translateY(-4px) scale(1);
    -o-transform: translateY(-4px) scale(1);
  }

  .proceso-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .proceso-card:hover {
    transform: translateY(-4px) scale(1);
    -webkit-transform: translateY(-4px) scale(1);
    -moz-transform: translateY(-4px) scale(1);
    -ms-transform: translateY(-4px) scale(1);
    -o-transform: translateY(-4px) scale(1);
  }

  .caso-tab {
    padding: 9px 18px;
    font-size: 13px;
  }

  .dif-grid {
    grid-template-columns: 1fr;
  }
  .dif-card {
    flex-direction: row;
    gap: 16px;
    align-items: flex-start;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .contact-form-card {
    padding: 24px 20px;
  }

  .cta-banner {
    padding: 60px 20px;
  }
  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
  .cta-proof {
    gap: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  .footer-legal {
    justify-content: center;
  }
  .footer {
    padding: 48px 20px 28px;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
  }
  .wa-btn {
    width: 52px;
    height: 52px;
  }
  .wa-label {
    font-size: 12px;
    padding: 7px 12px;
  }

  .nav-wrap {
    padding: 14px 20px;
  }
  .tech-bar {
    padding: 32px 20px;
  }
  .tech-logos {
    gap: 24px;
  }
  .legal-modal-box {
    padding: 28px 20px;
    margin: 10px;
  }
  .section-title {
    font-size: clamp(1.7rem, 7vw, 2.2rem);
  }

  .cookie-bar {
    bottom: 16px;
    padding: 16px 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .cookie-bar-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }
  .btn-primary,
  .btn-outline {
    justify-content: center;
    text-align: center;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .caso-tab {
    width: calc(50% - 5px);
    text-align: center;
  }
  .cta-proof-num {
    font-size: 22px;
  }
  .hero-illustration {
    max-width: 100%;
  }
  .cookie-btn-accept,
  .cookie-btn-decline {
    flex: 1;
    text-align: center;
  }
}

/* ── Caso/Dif cards bg ── */
.caso-card.card-with-bg,
.dif-card.card-with-bg,
.proceso-card.card-with-bg {
  background: var(--navy-card);
}
