:root {
  /* Color system */
  --green: #299926;
  --green-dim: #1f7a1d;
  --black: #0A0A0A;
  --dark: #111111;

  /* Surfaces */
  --card: #161616;
  --card-hover: #1C1C1C;

  /* Text & borders */
  --border: rgba(255,255,255,0.07);
  --muted: rgba(255,255,255,0.50);
  --text: rgba(255,255,255,0.88);

  /* Fonts */
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* Extra text tokens (legacy / used in some blocks) */
  --text-primary:   #FFFFFF;
  --text-secondary: rgba(255,255,255,0.64);
  --text-muted:     rgba(255,255,255,0.50);
  --text-soft:      rgba(255,255,255,0.42);

  /* Layout system */
  --gutter: 40px;
  --gutter-m: 20px;
  --max: 1280px;
}

/* =============================================================================
   BASE / RESET
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Hide reCAPTCHA badge (requested) */
.grecaptcha-badge { visibility: hidden !important; }

/* =============================================================================
   SCROLL REVEAL
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s cubic-bezier(0.22,1,0.36,1), transform 0.75s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* =============================================================================
   HEADER / NAV
   ========================================================================== */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  height: 68px;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.nav-logo { display: inline-flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 50px; width: auto; display: block; }

nav { display: flex; align-items: center; gap: 36px; }
nav a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
nav a:hover { color: #fff; }

.btn-nav {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--green);
  color: var(--black);
  border: none;
  padding: 10px 22px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.btn-nav:hover { background: #2db329; transform: translateY(-1px); }

.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: #fff;
  display: block;
  transition: 0.3s;
  border-radius: 2px;
}

/* =============================================================================
   HERO
   ========================================================================== */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--gutter) 72px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(181,242,61,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 80% 80% at 20% 80%, rgba(181,242,61,0.04) 0%, transparent 60%),
    #0A0A0A;
  z-index: 0;
}

/* Animated grid overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(181,242,61,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(181,242,61,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  z-index: 1;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero-media { position: absolute; inset: 0; z-index: 2; }
.hero-media-inner {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 65%;
  overflow: hidden;
}
.hero-media-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--black) 0%, rgba(10,10,10,0.5) 30%, rgba(10,10,10,0.15) 100%);
  z-index: 2;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}

/* video swap (hero) */
.hero-video--mobile { display: none; }
@media (max-width: 768px) {
  .hero-video--desktop { display: none; }
  .hero-video--mobile { display: block; }
}

.hero-content { position: relative; z-index: 3; max-width: 720px; }

.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-eyebrow::before { content: ''; display: block; width: 32px; height: 1px; background: var(--green); }

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(64px, 8vw, 112px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: #fff;
  margin-bottom: 28px;
}
.hero-headline em { font-style: normal; color: var(--green); }

.hero-sub {
  font-size: 16px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.65;
  max-width: 500px;
  margin-bottom: 44px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

.btn-primary {
  background: var(--green);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 16px 32px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: #2db329; transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 16px 32px;
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.6); }

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  right: 40px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(181,242,61,0.6), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

/* =============================================================================
   SECTION BASE
   ========================================================================== */
section { padding: 100px var(--gutter); }

.section-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::before { content: ''; display: block; width: 24px; height: 1px; background: var(--green); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.0;
  letter-spacing: 0.01em;
  color: #fff;
  margin-bottom: 35px;
}

/* =============================================================================
   LOGOS TICKER
   ========================================================================== */
#logos {
  padding: 36px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--dark);
  overflow: hidden;
}
.logos-microcopy {
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.50);
  text-align: center;
  margin-bottom: 28px;
}
.logos-ticker-wrap { position: relative; overflow: hidden; }
.logos-ticker-wrap::before,
.logos-ticker-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 140px;
  z-index: 2;
  pointer-events: none;
}
.logos-ticker-wrap::before { left: 0; background: linear-gradient(to right, var(--dark) 0%, transparent 100%); }
.logos-ticker-wrap::after  { right: 0; background: linear-gradient(to left,  var(--dark) 0%, transparent 100%); }
.logos-ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: logos-scroll 32s linear infinite;
}
.logos-ticker-track:hover { animation-play-state: paused; }
@keyframes logos-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.logo-item {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  padding: 0 48px;
  white-space: nowrap;
  user-select: none;
  transition: color 0.35s;
  position: relative;
}
.logo-item::after {
  content: '·';
  position: absolute;
  right: -4px;
  color: rgba(255,255,255,0.08);
  font-size: 20px;
}
.logo-item:hover { color: rgba(255,255,255,0.70); }

/* =============================================================================
   CASOS (Proyectos)
   ========================================================================== */
#casos { background: var(--black); }

.casos-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 60px;
  gap: 24px;
  flex-wrap: wrap;
}

/* Si existe en HTML por error, lo ocultamos */
.casos-header-link { display: none !important; }

.casos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.caso-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--card);
  aspect-ratio: 16/10;
}
.caso-card.is-large { grid-row: span 2; aspect-ratio: auto; }

.caso-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.caso-card:hover .caso-thumb { transform: scale(1.04); }

/* Overlay: capa de gradiente (títulos/desc anclados abajo) */
.caso-overlay{
  position: absolute;
  inset: 0;
  padding: 32px;
  background: linear-gradient(to top,
    rgba(0,0,0,0.92) 0%,
    rgba(0,0,0,0.30) 50%,
    transparent 100%
  );
}

/* Variables por card (JS setea --lift en hover) */
.caso-card{
  --desc-gap: 10px;
  --lift: 0px;
}

/* Título anclado abajo */
.caso-title{
  position: absolute;
  left: 32px;
  right: 64px;
  bottom: 24px;

  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 36px);
  letter-spacing: 0.02em;
  color: #fff;
  line-height: 1.1;
  text-transform: none;

  margin: 0;
  transition: transform .35s cubic-bezier(0.22,1,0.36,1);
  will-change: transform;
  z-index: 2;
}

/* Descripción (se revela en hover, sin reservar layout) */
.caso-desc{
  position: absolute;
  left: 32px;
  right: 64px;
  bottom: 24px;

  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
  max-width: 400px;

  margin: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);

  transition:
    opacity .25s ease,
    transform .35s cubic-bezier(0.22,1,0.36,1);

  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;

  z-index: 1;
}
.caso-card:hover .caso-desc{ opacity: 1; transform: translateY(0); }
.caso-card:hover .caso-title{ transform: translateY(calc(-1 * var(--lift))); }

/* Mobile / touch: sin hover */
@media (hover: none) {
  .caso-card:hover .caso-title{ transform: none !important; }
  .caso-card:hover .caso-desc{ opacity: 0 !important; transform: translateY(10px) !important; }
}

/* Tag/brand removido */
.caso-tag { display: none !important; }

.caso-arrow {
  position: absolute;
  top: 20px; right: 20px;
  width: 32px; height: 32px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(4px);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.caso-arrow svg { width: 12px; height: 12px; }
.caso-card:hover .caso-arrow { background: var(--green); border-color: var(--green); color: #fff; }

/* Botón Ver más */
.casos-ver-mas-wrap { display: flex; justify-content: center; margin-top: 40px; }
.btn-ver-mas {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 14px 32px;
  background: transparent;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.btn-ver-mas:hover { color: #fff; border-color: var(--green); background: rgba(41,153,38,0.06); }
.btn-ver-mas .btn-ver-mas-arrow { transition: transform 0.3s; display: inline-block; font-size: 14px; }
.btn-ver-mas.open .btn-ver-mas-arrow { transform: rotate(180deg); }

/* Desktop: mostrar solo 3 al inicio */
@media (min-width: 769px) {
  #casosGrid:not(.expanded) .caso-card:nth-child(n+4) { display: none; }
  .caso-card:not(.is-large) { aspect-ratio: 16/10; }
  .caso-card.is-large { aspect-ratio: auto; }
}

/* =============================================================================
   MANIFIESTO
   ========================================================================== */
.manifiesto-inner { max-width: 1100px; margin: 0 auto; }
.manifiesto-text {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 58px);
  line-height: 1.0;
  letter-spacing: 0.01em;
  color: #fff;
  max-width: 900px;
}
.manifiesto-text em { font-style: normal; color: var(--green); }
.manifiesto-text .pause { display: block; height: 10px; }

/* =============================================================================
   CAPACIDADES
   ========================================================================== */
#capacidades { background: var(--black); }
.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; margin-top: 60px; }
.cap-card {
  background: var(--card);
  padding: 40px 32px;
  border-bottom: 2px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
.cap-card:hover { background: var(--card-hover); border-color: var(--green); }
.cap-number { font-family: var(--font-display); font-size: 48px; color: rgba(181,242,61,0.15); line-height: 1; margin-bottom: 24px; }
.cap-card:hover .cap-number { color: rgba(181,242,61,0.4); }
.cap-title { font-family: var(--font-display); font-size: 22px; letter-spacing: 0.02em; color: #fff; margin-bottom: 16px; line-height: 1.15; }
.cap-desc { font-size: 13px; font-weight: 300; color: rgba(255,255,255,0.64); line-height: 1.65; }

/* =============================================================================
   PROCESO (Soluciones)
   ========================================================================== */
#proceso { background: var(--dark); }
.proceso-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 60px;
  border-top: 1px solid var(--border);
}
.proceso-step {
  padding: 48px 32px;
  border-right: 1px solid var(--border);
  border-bottom: 2px solid transparent;
  transition: background 0.3s, border-color 0.3s;
  position: relative;
}
.proceso-step:last-child { border-right: none; }
.proceso-step:hover { background: var(--card-hover); border-bottom-color: var(--green); }
.proceso-icon { width: 40px; height: 40px; border: 1px solid var(--border); display:flex; align-items:center; justify-content:center; margin-bottom: 24px; }
.proceso-title { font-family: var(--font-display); font-size: 26px; letter-spacing: 0.02em; color: #fff; margin-bottom: 12px; }
.proceso-desc { font-size: 13px; font-weight: 300; color: rgba(255,255,255,0.58); line-height: 1.65; }

/* =============================================================================
   TECH / IMPLEMENTACIÓN
   ========================================================================== */
#tech{
  background: var(--black);
  padding: 100px var(--gutter);
  border-top: 1px solid var(--border);
}

.infra-wrap{
  display: grid;
  grid-template-columns: 1.05fr 1.25fr;
  gap: 86px;
  align-items: start;
  width: 100%;
  max-width: none;
  margin: 0;
}

.infra-headline {
  font-family: var(--font-display);
  font-size: clamp(42px, 5.5vw, 76px);
  line-height: .92;
  letter-spacing: .01em;
  color: #fff;
  margin-bottom: 32px;
}
.infra-headline em { font-style: normal; color: var(--green); display: block; }

.infra-body, .infra-closing {
  font-size: 15px;
  font-weight: 300;
  color: rgba(255,255,255,.58);
  line-height: 1.8;
  max-width: 420px;
}
.infra-body strong { color: rgba(255,255,255,.75); font-weight: 400; }
.infra-closing { margin-bottom: 52px; }

/* Stats (desktop/default) */
.infra-stats { display: flex; gap: 0; border-top: 1px solid var(--border); padding-top: 36px; }
.infra-stat { display: flex; align-items: center; gap: 16px; flex: 1; padding-right: 36px; border-right: 1px solid var(--border); }
.infra-stat:last-child { border-right: none; padding-right: 0; padding-left: 36px; }
.infra-stat:nth-child(2) { padding-left: 36px; }
.infra-stat-icon {
  width: 44px; height: 44px;
  border: 1px solid rgba(41,153,38,.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--green);
}
.infra-stat-num { font-family: var(--font-display); font-size: 42px; color: #fff; line-height: 1; }
.infra-stat-label { font-size: 9px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.35); line-height: 1.5; }

/* Inputs + connectors (desktop/default) */
.infra-inputs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.infra-input-card {
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.03);
  padding: 28px 20px 24px;
  text-align: center;
  position: relative;
  transition: border-color .3s, background .3s;
}
.infra-input-card:hover { border-color: rgba(41,153,38,.4); background: rgba(41,153,38,.04); }
.infra-input-icon { width: 44px; height: 44px; border: 1px solid rgba(41,153,38,.3); border-radius: 50%; display:flex; align-items:center; justify-content:center; margin: 0 auto 16px; color: var(--green); }
.infra-input-name { font-family: var(--font-display); font-size: 20px; letter-spacing: .08em; color: #fff; margin-bottom: 10px; }
.infra-input-desc { font-size: 12px; font-weight: 300; color: rgba(255,255,255,.38); line-height: 1.6; }

/* small dot at bottom of each input card */
.infra-input-card::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(41,153,38,.8);
}

.infra-connectors { display:block; width: 100%; height: 72px; margin: 0; }

/* Media container (kept as --video class for layout parity) */
.infra-central--video{
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  overflow: hidden;
  aspect-ratio: 16/10;
  display: flex;
}

/* Legacy (if video is re-enabled later) */
.infra-central__video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ACTIVE: image replacement should behave exactly like the video */
.infra-central__img{
  width: 100%;
  height: 100%;
  object-fit: cover; /* desktop == video behavior */
  display: block;
}

/* =============================================================================
   CONTACTO
   ========================================================================== */
#contacto{ padding: 100px var(--gutter); }

/* Full-width layout (same criterion as #tech) */
.contacto-wrap{
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 72px;
  align-items: start;
  width: 100%;
  max-width: none;
  margin: 0;
}

.contacto-headline {
  font-family: var(--font-display);
  font-size: clamp(52px, 6.5vw, 96px);
  line-height: .9;
  letter-spacing: .01em;
  color: #fff;
  margin-bottom: 56px;
}
.contacto-headline em { font-style: normal; color: var(--green); display: block; }

.contacto-info { display: flex; flex-direction: column; gap: 32px; margin-bottom: 44px; }
.contacto-info-label { font-size: 10px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: rgba(255,255,255,.3); margin-bottom: 8px; }
.contacto-info-value { font-size: 14px; font-weight: 300; color: rgba(255,255,255,.64); line-height: 1.65; }
.contacto-info-value a { color: rgba(255,255,255,.64); text-decoration: none; transition: color .2s; }
.contacto-info-value a:hover { color: #fff; }

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--green);
  border: none;
  padding: 16px 28px;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn-whatsapp:hover { background: var(--green-dim); transform: translateY(-1px); }
.btn-whatsapp svg { width: 18px; height: 18px; fill: #fff; flex-shrink: 0; }

.contacto-form { display: flex; flex-direction: column; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2px; margin-bottom: 2px; }
.form-row.full { grid-template-columns: 1fr; }
.form-field { display: flex; flex-direction: column; }

.form-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  padding: 16px 18px 8px;
  background: var(--card);
}

.form-input,
.form-textarea {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: #fff;
  background: var(--card);
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 10px 18px 16px;
  outline: none;
  resize: none;
  transition: border-color .2s, background .2s;
  width: 100%;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--green);
  background: var(--card-hover);
}

.form-textarea { min-height: 140px; }

.btn-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  background: var(--green);
  border: none;
  padding: 20px 36px;
  cursor: pointer;
  margin-top: 2px;
  transition: background .2s, transform .15s;
  align-self: flex-start;
}
.btn-send:hover { background: var(--green-dim); transform: translateY(-1px); }

.form-status {
  margin-top: 14px;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  min-height: 18px;
}

/* =============================================================================
   FOOTER
   ========================================================================== */
footer{
  background: #0c0c0c;
  border-top: 1px solid rgba(255,255,255,.07);
}

.ft-grid{
  display: grid;
  grid-template-columns: 1.25fr 0.9fr 1.25fr;
  column-gap: 64px;
  row-gap: 45px;
  padding: 72px var(--gutter);
  width: 100%;
  margin: 0;
}

.ft-col1{ display:flex; flex-direction:column; align-items:flex-start; margin: 0 50px;}
.ft-col2{ display:flex; flex-direction:column; gap:20px; align-items:center; margin: 0 50px; }
.ft-col3{ display:flex; flex-direction:column; gap:20px; align-items:flex-end; margin: 0 50px; }

.ft-logo{
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-bottom: 18px;
  width: fit-content;
}
.ft-logo img{ height: 22px; width: auto; display: block; }

.ft-tagline{
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,.50);
  line-height: 1.75;
}

.ft-col2 a{
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.42);
  text-decoration: none;
  transition: color .2s;
  width: fit-content;
}
.ft-col2 a:hover{ color: var(--green); }

.ft-contact-row{
  display:flex;
  align-items:center;
  gap:16px;
  width: fit-content;
}

.ft-icon{
  width: 22px;
  height: 22px;
  color: var(--green);
  display:flex;
  align-items:center;
  justify-content:center;
}

.ft-icon svg{
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ft-contact-row a,
.ft-contact-row span{
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,.50);
  text-decoration: none;
  transition: color .2s;
}
.ft-contact-row a:hover{ color: rgba(255,255,255,.75); }

/* Separator aligned to gutter */
.ft-sep{
  border: none;
  border-top: 1px solid rgba(255,255,255,.07);
  margin: 0 var(--gutter);
}

/* Bottom bar */
.ft-bottom{
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 22px var(--gutter);
  width: 100%;
  margin: 0;
  text-align: center;
}

.ft-bottom span{
  font-size: 11px;
  font-weight: 300;
  letter-spacing: .05em;
  color: rgba(255, 255, 255, 0.5);
}

.recaptcha-legal{
  width: 100%;
  margin: 0;
  padding: 0 var(--gutter) 28px;
  font-size: 11px;
  font-weight: 300;
  color: rgba(255,255,255,0.28);
  text-align: center;
}
.recaptcha-legal a{ color: rgba(255,255,255,0.38); text-decoration: none; }
.recaptcha-legal a:hover{ color: rgba(255,255,255,0.65); text-decoration: underline; }

/* =============================================================================
   MOBILE MENU
   ========================================================================== */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: #0a0a0a;
  z-index: 200;
  flex-direction: column;
  padding: 80px 32px 48px;
}
.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-size: 17px;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

/* Close (X) button — fixed so it never gets cropped */
.mobile-menu-close{
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  overflow: visible;
}
.mobile-menu-close span{
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 2px;
  background: rgba(255,255,255,.55);
  border-radius: 2px;
  transform-origin: center;
}
.mobile-menu-close span:first-child{ transform: translate(-50%, -50%) rotate(45deg); }
.mobile-menu-close span:last-child{  transform: translate(-50%, -50%) rotate(-45deg); }

/* =============================================================================
   SWIPE HINT (mobile only)
   ========================================================================== */
.swipe-hint--mobile { display: none; }

/* =============================================================================
   LIGHTBOX
   ========================================================================== */
.lb-overlay{
  position:fixed;
  inset:0;
  z-index:1000;
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
  opacity:0;
  pointer-events:none;
  transition:opacity .3s ease;
}
.lb-overlay.open{display:flex;opacity:1;pointer-events:auto;}

.lb-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lb-panel{
  position:relative;
  z-index:1;
  width:100%;
  max-width:1400px;
  max-height:88vh;
  background:#111111;
  display:grid;
  grid-template-columns: 1fr 1fr;
  overflow:hidden;
  border-top:4px solid var(--green);
  border-radius: 0;
}

.lb-close{
  position:absolute;
  top:14px;
  right:14px;
  z-index:10;
  width:36px;
  height:36px;
  border-radius:50%;
  background:rgba(255,255,255,.08);
  border:none;
  color:#fff;
  font-size:15px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition: background .2s, transform .25s;
}
.lb-close:hover{background:var(--green);transform:rotate(90deg);}

.lb-media{
  display:flex;
  flex-direction:column;
  overflow:hidden;
  background:#0a0a0a;
}

.lb-carousel{
  position:relative;
  flex:1;
  overflow:hidden;
  min-height:300px;
}

.lb-slides{
  display:flex;
  height:100%;
  transition: transform .45s cubic-bezier(.22,1,.36,1);
}

.lb-slide{
  min-width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  user-select:none;
  background:#0a0a0a;
}

.lb-slide img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.lb-btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:3;
  width:36px;
  height:36px;
  border-radius:50%;
  background:rgba(0,0,0,.55);
  border:1px solid rgba(255,255,255,.12);
  color:#fff;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition: background .2s, border-color .2s;
}
.lb-btn:hover{background:var(--green);border-color:var(--green);}
.lb-btn--prev{left:12px;}
.lb-btn--next{right:12px;}

.lb-dots{
  display:flex;
  justify-content:center;
  gap:8px;
  padding:12px 0;
  background:#0d0d0d;
  border-top:1px solid rgba(255,255,255,.06);
  flex-shrink:0;
}

.lb-dot{
  width:7px;
  height:7px;
  border-radius:50%;
  background:rgba(255,255,255,.18);
  cursor:pointer;
  transition: background .25s, transform .25s;
}
.lb-dot.on{background:var(--green);transform:scale(1.35);}

.lb-content{
  padding:48px 40px;
  overflow-y:auto;
  display:flex;
  flex-direction:column;
}

/* tag de marca removido */
.lb-tag{ display:none !important; }

.lb-title{
  font-family:var(--font-display);
  font-size:clamp(30px,4vw,48px);
  letter-spacing:.02em;
  color:#fff;
  line-height:.95;
  margin-bottom:16px;
}

.lb-tagline{
  font-size:16px;
  font-style:italic;
  font-weight:300;
  color:rgba(255,255,255,.65);
  line-height:1.5;
  margin-bottom:16px;
}

.lb-desc{
  font-size:13px;
  font-weight:300;
  color:rgba(255,255,255,.58);
  line-height:1.8;
  margin-bottom:28px;
}

.lb-bullets{
  list-style:none;
  margin-bottom:32px;
}

.lb-bullets li{
  font-size:13px;
  font-weight:300;
  color:rgba(255,255,255,.55);
  padding:11px 0;
  border-bottom:1px solid rgba(255,255,255,.05);
  display:flex;
  align-items:center;
  gap:12px;
  transition: color .2s, padding-left .25s;
}
.lb-bullets li:hover{color:rgba(255,255,255,.9);padding-left:5px;}
.lb-bullets li::before{
  content:'';
  width:5px;
  height:5px;
  border-radius:50%;
  background:var(--green);
  flex-shrink:0;
  box-shadow:0 0 7px var(--green);
}

.lb-cta{
  margin-top:auto;
  align-self:flex-start;
  font-size:11px;
  letter-spacing:.14em;
}

/* =============================================================================
   SCROLL PROGRESS
   ========================================================================== */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--green);
  z-index: 1000;
  transition: width .1s linear;
}

/* Focus */
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* =============================================================================
   ACCESSIBILITY / REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .logos-ticker-track { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* =============================================================================
   RESPONSIVE (Global breakpoints)
   ========================================================================== */
@media (max-width: 1024px) {
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .proceso-grid { grid-template-columns: repeat(2, 1fr); }
  .proceso-step { border-bottom: 1px solid var(--border); }
  .proceso-step:nth-child(2) { border-right: none; }
  .manifiesto-body { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .ft-grid { grid-template-columns: 1fr; padding: 48px 24px; gap: 28px; }
  .ft-col2{ align-items:flex-start; }
  .ft-col3{ align-items:flex-start; }
  .ft-sep{ margin: 0 24px; }
  .ft-bottom{ padding: 18px 24px; }
  .recaptcha-legal{ padding: 0 24px 24px; }

  .infra-wrap { grid-template-columns: 1fr; gap: 56px; }
  .contacto-wrap { grid-template-columns: 1fr; gap: 56px; }
}

/* =============================================================================
   MOBILE (<= 768px)
   - Carruseles (casos/cap/proceso)
   - Implementación (sin marco + imagen como el video)
   - Lightbox full-screen
   ========================================================================== */
@media (max-width: 768px) {
  :root { --gutter: 20px; }

  /* Header */
  header { padding: 0 var(--gutter); }
  nav, .nav-right, .btn-nav { display: none; }
  .hamburger { display: flex; }

  /* Sections spacing */
  section { padding: 48px var(--gutter); }
  #logos  { padding: 24px 0; }

  /* Hero */
  #hero { min-height: 100svh; padding: 0 var(--gutter) 48px; justify-content: flex-end; }
  .hero-media-inner { width: 100%; opacity: 0.6; }
  .hero-media-inner::after { background: linear-gradient(90deg, var(--black) 0%, rgba(10,10,10,0.3) 30%, rgba(10,10,10,0.15) 100%); }

  .hero-headline { font-size: clamp(42px, 11vw, 68px); line-height: .9; }
  .hero-sub { font-size: 15px; max-width: 100%; }
  .hero-ctas { flex-direction: column; gap: 12px; }
  .btn-primary, .btn-ghost { width: 100%; text-align: center; justify-content: center; display: flex; }
  .hero-scroll-indicator { display: none; }

  /* Reveal: disable on mobile for performance */
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }

  /* Swipe hint: mobile only */
  .swipe-hint--mobile {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255,255,255,.35);
    padding: 0 0 12px;
  }

  /* ---- Carruseles (Casos / Cap / Proceso) ---- */
  .casos-header { flex-direction: column; align-items: flex-start; gap: 4px; }

  .casos-grid,
  .cap-grid,
  .proceso-grid{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 12px;
    padding: 4px 0 16px;
    width: 100%;
  }
  .casos-grid::-webkit-scrollbar,
  .cap-grid::-webkit-scrollbar,
  .proceso-grid::-webkit-scrollbar { display: none; }

  .caso-card, .caso-card.is-large {
    flex: 0 0 78vw;
    width: 78vw;
    min-width: 0;
    height: 280px;
    grid-row: span 1;
    aspect-ratio: unset;
    scroll-snap-align: start;
  }

  .cap-grid .cap-card {
    flex: 0 0 78vw;
    width: 78vw;
    min-height: 240px;
    scroll-snap-align: start;
    border: 1px solid var(--border);
  }

  .proceso-grid{
    border-top: none;
  }
  .proceso-step {
    flex: 0 0 78vw;
    width: 78vw;
    border: 1px solid var(--border);
    scroll-snap-align: start;
    padding: 28px 24px;
  }

  /* Swipe hint spacing: pegado al carrusel (Soluciones + Capacidades) */
  #proceso .swipe-hint--mobile,
  #capacidades .swipe-hint--mobile{
    margin: 0 0 15px 0 !important;
    padding: 0 !important;
    line-height: 1.2;
  }
  #proceso .proceso-grid,
  #capacidades .cap-grid{
    padding-top: 0 !important;
    margin-top: -6px !important;
  }

  /* ---- Implementación (#tech) ---- */
  #tech { padding: 72px var(--gutter); overflow-x: hidden; }
  .infra-inputs { grid-template-columns: 1fr; }
  .infra-connectors { display: none; } /* in mobile, avoid overflow and visual clutter */

  /* Allow grid children to shrink properly (avoid mobile overflow) */
  .infra-wrap,
  .infra-left,
  .infra-diagram-col{ min-width: 0; }

  /* Stats: keep in one row, compact (so +30 doesn't get cut) */
  .infra-stats{
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
  }
  .infra-stat{
    flex: 1 1 0;
    min-width: 0;
    padding: 0 !important;
    border-right: none !important;
  }
  .infra-stat-icon{
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
  }
  .infra-stat-num{
    font-size: 34px;
    line-height: 1;
  }
  .infra-stat-label{
    font-size: 7px;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .infra-stat-main{ min-width: 0; }

  /* Media in Implementación: SIN marco (as requested) + same sizing logic */
  .infra-central--video{
    margin-top: 0;                 /* slight separation from "Se Opera" card */
    border: none !important;
    background: transparent !important;

    width: 100% !important;
    max-width: 100% !important;

    height: min(46svh, 320px) !important;
    min-height: 220px !important;

    aspect-ratio: auto !important;    /* height controls the box in mobile */
    overflow: hidden;
  }

  /* Image behaves exactly like the old mobile video settings */
  .infra-central__img{
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    background: #0a0a0a;
    display: block;
  }

  /* Contact */
  #contacto { padding: 72px var(--gutter); }
  .form-row { grid-template-columns: 1fr; }
  .contacto-headline { font-size: clamp(44px, 12vw, 72px); }

  /* ---- Lightbox mobile full-screen ---- */
  .lb-overlay{ align-items: stretch !important; justify-content: stretch !important; padding: 0 !important; }

  .lb-panel{
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100svh !important;
    max-height: 100svh !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .lb-media, .lb-content{ min-width: 0 !important; }

  .lb-media{
    flex: 0 0 auto !important;
    height: 48svh !important;
    max-height: 520px !important;
    background: #0a0a0a !important;
  }

  .lb-carousel{ height: 100% !important; min-height: 0 !important; }
  .lb-slides{ height: 100% !important; }
  .lb-slide{ height: 100% !important; }

  .lb-slide img{
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    background: #0a0a0a !important;
    display: block;
  }

  .lb-dots{ background: #111111 !important; padding: 10px 0 6px !important; }
  .lb-btn { width: 36px !important; height: 36px !important; }

  .lb-title { font-size: 26px !important; margin-bottom: 8px !important; }
  .lb-tagline { font-size: 14px !important; margin-bottom: 10px !important; }
  .lb-desc { font-size: 13px !important; margin-bottom: 14px !important; }
  .lb-cta { width: 100% !important; display: flex !important; justify-content: center !important; align-self: stretch !important; }
  .lb-close { top: 10px !important; right: 10px !important; }
}

/* =============================================================================
   Tap feedback (touch devices)
   ========================================================================== */
@media (hover: none) {
  .caso-card:active { opacity: .88; transform: scale(.98); transition: all .12s; }
  .cap-card:active  { opacity: .88; }
  .btn-primary:active, .btn-ghost:active { opacity: .85; transform: scale(.97); }
}

/* =============================================================================
   LOGO effects (exact hover green)
   ========================================================================== */
.nav-logo img,
.ft-logo img{
  filter: brightness(0) invert(1) !important;
  transition: filter .3s !important;
}
.nav-logo:hover img,
.ft-logo:hover img{
  filter: brightness(0) saturate(100%) invert(44%) sepia(80%) saturate(500%)
          hue-rotate(82deg) brightness(95%) !important;
}