/* ============================================
   INDUMEC — Premium Industrial Website
   Design System (taste-skill + scroll-web)
   Canvas-in-Hero Architecture + Post-Scroll Sections
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* --- Variables --- */
:root {
  --bg-light: #FAFAF8;
  --bg-dark: #0D1B1E;
  --bg-section: #F0F2F5;
  --bg-green-dark: #0a2e1a;
  --text-primary: #1A2E35;
  --text-secondary: #8899A4;
  --text-on-dark: #E8E4DF;
  --accent: #E87C5D;
  --green: #1B5E3B;
  --green-light: #25D366;
  --green-glow: #2ECC71;
  --coral-dim: #D4694E;
  --border-light: rgba(26,46,53,0.08);
  --shadow-soft: 0 20px 60px -15px rgba(13,27,30,0.07);
  --shadow-card: 0 4px 24px -4px rgba(13,27,30,0.08);
  --radius: 6px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --max-w: 1400px;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; font-family: inherit; }

/* --- Loader --- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo {
  width: 120px;
  margin-bottom: 40px;
  filter: brightness(2);
}
.loader-bar-track {
  width: 200px;
  height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}
.loader-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.15s linear;
}
.loader-text {
  color: var(--text-secondary);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 16px;
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 16px;
  left: 3vw;
  right: 3vw;
  z-index: 1000;
  padding: 14px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(13,27,30,0.75);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  transition: var(--transition);
  gap: 16px;
}
.site-header .logo {
  height: 30px;
  width: auto;
  filter: brightness(0) invert(1);
  display: block;
}

/* CTA Desktop Button */
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--transition);
  flex-shrink: 0;
}
.header-cta:hover {
  background: var(--coral-dim);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232,124,93,0.4);
}
.mobile-wa-cta { display: none; }

/* Nav Links */
.site-nav {
  display: flex;
  gap: 28px;
  align-items: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.03em;
  transition: var(--transition);
  white-space: nowrap;
}
.nav-link:hover,
.nav-link--active { color: var(--accent); font-weight: 600; }

/* Hamburger Menu Toggle — hidden on desktop */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 8px;
  cursor: pointer;
  z-index: 1001;
  flex-shrink: 0;
}
.mobile-menu-btn span {
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: var(--transition);
  display: block;
}
.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   HERO + CANVAS (Unified System)
   Optimizado para WPO - performance first
   ============================================ */
.hero-canvas-wrapper {
  position: relative;
  height: 300vh;
  /* Reducir CLS reservando espacio */
  min-height: 100vh;
}

.hero-canvas-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  z-index: 1;
  /* Optimización GPU */
  will-change: opacity;
  transform: translateZ(0);
}
#product-canvas {
  width: 100%;
  height: 100%;
  display: block;
  /* Optimización de rendimiento */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
.hero-canvas-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13,27,30,0.85) 0%,
    rgba(13,27,30,0.55) 40%,
    rgba(13,27,30,0.15) 70%,
    transparent 100%
  );
  z-index: 2;
  pointer-events: none;
}

.hero-content-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: 0 5vw 12vh;
  z-index: 3;
}
.hero-content {
  max-width: 680px;
  width: 100%;
  position: relative;
  overflow-wrap: break-word;
  word-break: break-word;
}
.hero-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  opacity: 0;
}
.hero-title {
  font-size: clamp(2rem, 5.5vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: white;
  margin-bottom: 20px;
  opacity: 0;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}
.hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 52ch;
  line-height: 1.7;
  margin-bottom: 24px;
  opacity: 0;
}
.hero-subtitle--strong {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 600;
  color: white;
  margin-bottom: 12px;
}
.hero-cta-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  opacity: 0;
}
.hero-trust-tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-left: 4px;
}

/* Scroll Hint */
.scroll-hint {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.35);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.scroll-hint-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.4));
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.7); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 42px;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: scale(0.96); }
.btn-primary {
  background: var(--green-light);
  color: white;
  box-shadow: 0 4px 15px rgba(37,211,102,0.25);
}
.btn-primary:hover { background: var(--green); transform: translateY(-3px); box-shadow: 0 12px 30px rgba(37,211,102,0.4); }
.btn-ghost {
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: var(--coral-dim); transform: translateY(-2px); }
.btn-whatsapp {
  background: var(--green-light);
  color: white;
  padding: 18px 40px;
  font-size: 0.95rem;
  border-radius: var(--radius-lg);
}
.btn-whatsapp:hover { background: var(--green); transform: translateY(-2px); box-shadow: 0 12px 36px rgba(37,211,102,0.35); }
.btn-outline-light {
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 18px 40px;
  font-size: 0.95rem;
  border-radius: var(--radius-lg);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); }

/* ============================================
   SCROLL SECTIONS (over canvas)
   ============================================ */
#scroll-container {
  position: relative;
  height: 350vh; /* fallback — JS lo sobreescribe segun scrollMultiplier */
  z-index: 5;
}

.scroll-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  display: flex;
  align-items: center;
  pointer-events: none;
  opacity: 0;
  z-index: 5;
}
.scroll-section.active { pointer-events: auto; }

.scroll-section > div {
  background: rgba(13,27,30,0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 56px 48px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 30px 60px rgba(0,0,0,0.6);
  max-width: 600px;
}

.align-left { padding-left: 5vw; padding-right: 45vw; }
.align-right { padding-left: 45vw; padding-right: 5vw; justify-content: flex-end; }

.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: white;
  margin-bottom: 20px;
}
.section-text {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 48ch;
}

/* --- Process Steps --- */
.process-steps { display: grid; gap: 32px; margin-top: 28px; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.step-number {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: white;
  font-weight: 700; font-size: 1.1rem; border-radius: 50%; flex-shrink: 0;
}
.step-title { font-weight: 600; font-size: 1.05rem; color: white; }
.step-desc { font-size: 0.9rem; color: var(--text-secondary); margin-top: 4px; }

/* --- Dark Overlay --- */
.dark-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13,27,30,0.92);
  z-index: 4;
  opacity: 0;
  pointer-events: none;
}

/* --- Industries Tags --- */
.industries-full { max-width: 520px; }
.industry-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.industry-tag {
  padding: 10px 20px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  color: white;
  transition: var(--transition);
}
.industry-tag:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.4); }

/* --- Client Logo Carousel --- */
.client-carousel {
  margin-top: 36px;
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.client-carousel-track {
  display: flex;
  gap: 40px;
  align-items: center;
  animation: logo-scroll 20s linear infinite;
  width: max-content;
}
.client-logo-item {
  flex-shrink: 0;
  height: 40px;
  display: flex;
  align-items: center;
  filter: brightness(0) invert(1);
  opacity: 0.5;
  transition: var(--transition);
}
.client-logo-item:hover { opacity: 1; }
.client-logo-item img {
  height: 36px;
  width: auto;
  object-fit: contain;
}
@keyframes logo-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Marquee --- */
.marquee-wrap {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
}
.marquee-text {
  white-space: nowrap;
  font-size: 10vw;
  font-weight: 900;
  color: rgba(255,255,255,0.04);
  letter-spacing: -0.03em;
  line-height: 1;
  will-change: transform;
}

/* ============================================
   POST-SCROLL CONTENT
   Normal page sections below the scroll animation
   ============================================ */
.post-scroll {
  position: relative;
  z-index: 10;
  background: var(--bg-section);
}

/* --- Common Section Styles --- */
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 5vw;
}
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 22px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 100px;
  margin-bottom: 24px;
}
.pill-badge-light {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: var(--green-glow);
}
.pill-badge-accent {
  background: rgba(37,211,102,0.1);
  border-color: rgba(37,211,102,0.25);
  color: var(--green-glow);
}
.post-title {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.post-subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 60ch;
  line-height: 1.7;
  margin-bottom: 48px;
}

/* ============================================
   SECTION 5: Soluciones Rapidas
   ============================================ */
.section-soluciones {
  position: relative;
  padding: 120px 0;
  background: var(--bg-section);
  overflow: hidden;
  text-align: center;
}
.section-soluciones .post-subtitle { margin-left: auto; margin-right: auto; }

/* Nebula background */
.nebula-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.nebula-bg::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  top: -100px;
  right: -100px;
  background: radial-gradient(circle, rgba(27,94,59,0.12) 0%, transparent 70%);
  border-radius: 50%;
  animation: nebula-float 15s ease-in-out infinite;
}
.nebula-bg::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  bottom: -150px;
  left: -100px;
  background: radial-gradient(circle, rgba(27,94,59,0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: nebula-float 18s ease-in-out infinite reverse;
}
.nebula-bg-2::before {
  background: radial-gradient(circle, rgba(27,94,59,0.1) 0%, transparent 70%);
  top: -200px;
  left: 50%;
}
.nebula-bg-2::after {
  background: radial-gradient(circle, rgba(232,124,93,0.06) 0%, transparent 70%);
  bottom: -100px;
  right: 20%;
}
@keyframes nebula-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

.section-soluciones .section-inner { position: relative; z-index: 1; }

/* Solutions Grid */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 16px;
}
.solution-card {
  background: white;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-xl);
  padding: 36px 28px 32px;
  text-align: left;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.solution-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  border: 2px solid transparent;
  transition: var(--transition);
}
.solution-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px -10px rgba(27,94,59,0.12);
  background: rgba(27,94,59,0.03);
}
.solution-card:hover::before {
  border-color: var(--green);
}
.solution-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.solution-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}
.solution-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}
.solution-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green);
  margin-top: 16px;
  opacity: 0;
  transform: translateY(8px);
  transition: var(--transition);
}
.solution-card:hover .solution-link {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   SECTION 6: Por que elegirnos
   ============================================ */
.section-porque {
  background: linear-gradient(165deg, #0a2e1a 0%, #0d3520 40%, #102a1c 100%);
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.section-porque::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 20%, rgba(37,211,102,0.06) 0%, transparent 100%),
    radial-gradient(ellipse 50% 50% at 80% 80%, rgba(27,94,59,0.08) 0%, transparent 100%);
  pointer-events: none;
}
.porque-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  color: white;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.porque-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.5);
  max-width: 55ch;
  margin: 0 auto 56px;
  line-height: 1.7;
}
.porque-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-bottom: 72px;
}
.porque-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  padding: 40px 24px 36px;
  text-align: center;
  transition: var(--transition);
}
.porque-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(37,211,102,0.25);
  transform: translateY(-4px);
}
.porque-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(37,211,102,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  color: var(--green-glow);
}
.porque-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}
.porque-card p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}

/* Stats */
.porque-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding-top: 56px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.porque-stat { text-align: center; }
.porque-stat-number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--green-glow);
  line-height: 1;
  display: block;
}
.porque-stat-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 8px;
  display: block;
}

/* ============================================
   SECTION 7: Soluciones para tu industria
   ============================================ */
.section-industrias {
  position: relative;
  padding: 120px 0;
  background: var(--bg-section);
  overflow: hidden;
  text-align: center;
}
.section-industrias .post-subtitle { margin-left: auto; margin-right: auto; }
.section-industrias .section-inner { position: relative; z-index: 1; }

.industrias-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}
.industria-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 260px;
  cursor: pointer;
  display: block;
}
.industria-card-large {
  grid-row: 1 / 3;
  min-height: 540px;
}
.industria-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.industria-card:hover img {
  transform: scale(1.08);
}
.industria-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,27,30,0.85) 0%, rgba(13,27,30,0.3) 50%, rgba(13,27,30,0.1) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  text-align: left;
  transition: var(--transition);
}
.industria-card:hover .industria-overlay {
  background: linear-gradient(to top, rgba(13,27,30,0.9) 0%, rgba(13,27,30,0.5) 50%, rgba(13,27,30,0.2) 100%);
}
.industria-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: white;
}
.industria-overlay h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}
.industria-overlay p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}
.industria-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green-glow);
  margin-top: 12px;
  opacity: 0;
  transform: translateY(6px);
  transition: var(--transition);
}
.industria-card:hover .industria-link {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   SECTION 8: Recursos Tecnicos
   ============================================ */
.section-recursos {
  padding: 120px 0;
  background: var(--bg-section);
  text-align: center;
}
.section-recursos .post-subtitle { margin-left: auto; margin-right: auto; }

.recursos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.recurso-card {
  background: white;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-xl);
  padding: 40px 32px 36px;
  text-align: left;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.recurso-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px -8px rgba(13,27,30,0.1);
  border-color: rgba(27,94,59,0.2);
}
.recurso-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.recurso-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.3;
}
.recurso-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
}
.recurso-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}
.recurso-card:hover .recurso-link { color: var(--green); }

/* ============================================
   SECTION 9: Final CTA + Contact Form
   ============================================ */
.section-final-cta {
  background: linear-gradient(165deg, #0a2e1a 0%, #0d3520 40%, #0D1B1E 100%);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}
.cta-pattern-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(37,211,102,0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  opacity: 0.6;
}
.cta-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
}
.cta-content { text-align: left; }
.cta-final-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: white;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.accent-text { color: var(--green-glow); }
.cta-final-text {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  max-width: 48ch;
  margin-bottom: 36px;
}
.cta-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.cta-status {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  gap: 8px;
}
.status-dot {
  width: 8px;
  height: 8px;
  background: var(--green-glow);
  border-radius: 50%;
  animation: status-blink 2s ease-in-out infinite;
}
@keyframes status-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Form */
.cta-form-wrap {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
}
.form-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}
.form-subtitle {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 28px;
  line-height: 1.6;
}
.contact-form { display: grid; gap: 16px; }
.contact-form input,
.contact-form textarea {
  padding: 14px 18px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  color: white;
  transition: var(--transition);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--green-glow);
  box-shadow: 0 0 0 3px rgba(37,211,102,0.15);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,0.3); }
.contact-form textarea { min-height: 100px; resize: vertical; }

/* --- Footer --- */
.site-footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 48px 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo { height: 28px; filter: brightness(10); }
.footer-text { font-size: 0.8rem; color: rgba(255,255,255,0.3); }

/* --- WhatsApp Float --- */
.wa-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 60px;
  height: 60px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  box-shadow: 0 8px 25px rgba(37,211,102,0.4);
  animation: wa-pulse 2s infinite;
  transition: var(--transition);
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 12px 35px rgba(37,211,102,0.5); }
.wa-float svg { width: 32px; height: 32px; fill: white; }

@keyframes wa-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  50% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
}

/* ============================================
   SCROLL REVEAL ANIMATIONS (post-scroll)
   ============================================ */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-up.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE — Tablet (≤ 1024px)
   ============================================ */
@media (max-width: 1024px) {
  .solutions-grid { grid-template-columns: repeat(3, 1fr); }
  .porque-grid { grid-template-columns: repeat(3, 1fr); }
  .industrias-grid { grid-template-columns: 1fr 1fr; }
  .industria-card-large { grid-row: auto; min-height: 300px; }

  /* Comprimir nav en tablet */
  .site-nav { gap: 18px; }
  .site-header { padding: 12px 20px; }
}

/* ============================================
   RESPONSIVE — Mobile (≤ 768px)
   ============================================ */
@media (max-width: 768px) {

  /* ---- Hero ---- */
  .hero-canvas-wrapper { height: 150vh; }
  .hero-content-layer {
    padding: 0 5vw 18vh; /* más espacio inferior para sticky bar */
    align-items: flex-end;
    overflow: hidden;
  }
  .hero-content {
    max-width: 100%;
    width: 100%;
  }
  .hero-title {
    font-size: clamp(1.5rem, 7.5vw, 2.6rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
  }
  .hero-subtitle {
    font-size: 0.88rem;
    margin-bottom: 14px;
    max-width: 100%;
  }
  .hero-subtitle--strong {
    font-size: 0.95rem;
    margin-bottom: 8px;
  }
  /* CTA row: columna, botón full-width, trust tag debajo */
  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }
  .hero-cta-row .btn {
    width: 100%;
    justify-content: center;
    font-size: 0.85rem;
    padding: 15px 20px;
  }
  .hero-trust-tag {
    font-size: 0.68rem;
    text-align: center;
    padding-left: 0;
    display: block;
    width: 100%;
  }
  .hero-trust-belt { display: none !important; }
  .hero-canvas-gradient {
    background: linear-gradient(
      180deg,
      rgba(13,27,30,0.92) 0%,
      rgba(13,27,30,0.65) 50%,
      rgba(13,27,30,0.35) 100%
    );
  }

  /* ---- Scroll container ---- */
  #scroll-container { height: 350vh; }

  .align-left, .align-right {
    padding-left: 5vw;
    padding-right: 5vw;
    justify-content: center;
  }
  .scroll-section > div {
    padding: 30px 20px;
    border-radius: 18px;
    margin: 0 auto;
    width: calc(100% - 32px);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(13,27,30,0.96);
  }
  .section-title {
    font-size: clamp(1.6rem, 7vw, 2.4rem);
    line-height: 1.15;
  }
  .scroll-hint { display: none; }

  /* ---- Header móvil — Layout: burger | logo centrado | WA icon ---- */
  .site-header {
    top: 10px;
    left: 12px;
    right: 12px;
    width: auto;
    padding: 10px 14px;
    border-radius: 18px;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    background: rgba(13,27,30,0.88);
    justify-content: space-between;
  }

  /* Burger — visible, izquierda */
  .mobile-menu-btn {
    display: flex;
    flex-shrink: 0;
    order: 0;
    padding: 6px;
  }

  /* Logo — centrado absolutamente */
  .logo-link {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    order: 1;
  }
  .site-header .logo { height: 26px; }

  /* Nav — drawer lateral */
  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    transform: translateX(-110%);
    width: min(80vw, 300px);
    height: 100dvh;
    background: rgba(8,18,22,0.97);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 80px 40px;
    gap: 36px;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
    border-right: 1px solid rgba(255,255,255,0.07);
    box-shadow: 4px 0 40px rgba(0,0,0,0.5);
    /* Quitar posicionamiento absoluto de desktop */
    position: fixed !important;
    left: 0 !important;
    transform: translateX(-110%) !important;
  }
  .site-nav.open {
    transform: translateX(0) !important;
  }
  .nav-link {
    font-size: 1.3rem;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
    padding: 4px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    width: 100%;
  }
  .nav-link:hover,
  .nav-link--active { color: var(--accent); border-color: var(--accent); }

  /* CTA — oculto en móvil */
  .desktop-cta { display: none !important; }

  /* WhatsApp icon — visible, derecha */
  .mobile-wa-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(37,211,102,0.12);
    border: 1.5px solid rgba(37,211,102,0.5);
    border-radius: 50%;
    color: var(--green-light);
    flex-shrink: 0;
    order: 2;
    transition: var(--transition);
  }
  .mobile-wa-cta:hover {
    background: var(--green-light);
    color: white;
    transform: scale(1.08);
  }
  .mobile-wa-cta svg { fill: currentColor; }

  /* ---- Post-scroll sections ---- */
  .post-title {
    font-size: clamp(1.6rem, 6.5vw, 2.4rem);
    line-height: 1.15;
  }
  .post-subtitle {
    font-size: 0.95rem;
    margin-bottom: 32px;
  }

  .solutions-grid { grid-template-columns: 1fr; }
  .porque-grid { grid-template-columns: 1fr 1fr; }
  .porque-stats { grid-template-columns: 1fr 1fr; gap: 20px; }
  .industrias-grid { grid-template-columns: 1fr; }
  .industria-card-large { min-height: 260px; }
  .recursos-grid { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; gap: 40px; }

  /* Category grid — 1 col en xs */
  .category-grid { grid-template-columns: 1fr !important; }
  .cat-card-nav { padding: 24px 20px !important; }
  .cat-card-nav h3 { font-size: 1.15rem !important; }

  /* Urgency section */
  .urgency-box { padding: 32px 20px !important; }
  .urgency-list { font-size: 0.95rem !important; }
  .urgency-text { font-size: 1rem !important; }
  .urgency-btn { font-size: 0.9rem !important; padding: 14px 24px !important; width: 100%; }

  /* Process steps */
  .process-steps-new { grid-template-columns: 1fr 1fr !important; gap: 16px !important; }
  .process-step-item { padding: 24px 14px !important; }
  .process-step-item h3 { font-size: 0.9rem !important; }

  /* FAQ */
  .faq-item { padding: 22px 20px !important; }
  .faq-item h3 { font-size: 1rem !important; }
  .faq-item p { font-size: 0.88rem !important; }

  /* Secciones paddings */
  .section-soluciones,
  .section-porque,
  .section-industrias,
  .section-recursos,
  .section-final-cta { padding: 64px 0; }

  /* WPO: reducir animaciones costosas */
  .nebula-bg::before, .nebula-bg::after { animation: none; }
  .hero-canvas-bg { will-change: auto; }
  .marquee-text { font-size: 15vw; }

  /* Footer */
  .site-footer { flex-direction: column; gap: 14px; text-align: center; }

  /* Botones */
  .cta-buttons { flex-direction: column; }
  .btn-whatsapp, .btn-outline-light { width: 100%; justify-content: center; }
  .btn {
    font-size: 0.82rem;
    padding: 15px 24px;
    gap: 8px;
  }

  /* Trust grid — 2 cols en móvil */
  .trust-grid { grid-template-columns: 1fr 1fr !important; }
  .trust-card { padding: 20px !important; }
}

/* ============================================
   RESPONSIVE — Extra small (≤ 480px)
   ============================================ */
@media (max-width: 480px) {
  .hero-title { font-size: clamp(1.6rem, 8.5vw, 2.2rem); }
  .process-steps-new { grid-template-columns: 1fr !important; }
  .porque-grid { grid-template-columns: 1fr !important; }
  .porque-stats { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr !important; }
}

/* ============================================
   BOTTOM STICKY BAR (Delayed 10s)
   ============================================ */
.bottom-sticky-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 150px);
  z-index: 999;
  width: calc(100% - 48px);
  max-width: 600px;
  background: rgba(13, 27, 30, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  padding: 10px 10px 10px 24px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
  opacity: 0;
  pointer-events: none;
}
.bottom-sticky-bar.visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}
.sticky-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.sticky-call {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: white;
  transition: var(--transition);
}
.sticky-call:hover {
  opacity: 0.8;
}
.sticky-call-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.sticky-call-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: white;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sticky-call-text {
  display: flex;
  flex-direction: column;
}
.sticky-call-label {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.sticky-call-number {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: white;
}
.sticky-catalog {
  background: var(--green-light);
  color: var(--bg-dark);
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}
.sticky-catalog:hover {
  background: white;
  transform: scale(1.02);
}
.sticky-catalog svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 768px) {
  .bottom-sticky-bar {
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    transform: translate(0, 100%);
    border-radius: 24px 24px 0 0;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 20px 20px;
    background: #0b1517; /* Darker solid color matching image */
  }
  .bottom-sticky-bar.visible {
    transform: translate(0, 0);
  }
  .sticky-bar-inner {
    flex-direction: column;
    gap: 12px;
  }
  .sticky-call {
    width: 100%;
    justify-content: center;
    background: transparent;
    padding: 2px 0;
  }
  .sticky-call-text {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
  .sticky-call-label {
    display: none; /* Hide label to save space, just show phone number like "Llámanos 314..." */
  }
  .sticky-catalog {
    width: 100%;
    justify-content: center;
    padding: 16px 20px;
  }
  .wa-float {
    z-index: 1001; /* Ensure WA float stays above sticky bar */
    bottom: 120px; /* Push WA button slightly up on mobile if bar is visible? Done via JS or just CSS. Let's just adjust it via CSS if the bar is visible */
  }
}

/* SEO Static Pages Styles */
.seo-hero {
  padding-top: 120px;
  padding-bottom: 60px;
  background: var(--bg-dark);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  text-align: center;
}
.seo-hero .hero-title {
  font-size: 3rem;
  margin-bottom: 20px;
}
.seo-hero .hero-subtitle {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.2rem;
  color: var(--text-light);
}

.seo-content {
  padding: 60px 0;
  background: var(--bg-dark);
  color: var(--text-muted);
}
.seo-content .section-inner {
  max-width: 900px;
  margin: 0 auto;
}
.seo-article {
  line-height: 1.8;
  font-size: 1.1rem;
  padding-bottom: 40px;
}
.seo-article h2 {
  color: var(--text-light);
  margin-bottom: 15px;
  font-size: 2rem;
}
.seo-article h3 {
  color: var(--text-light);
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 1.6rem;
}
.seo-article p {
  margin-bottom: 20px;
}
.seo-article ul {
  margin-bottom: 25px;
  list-style-type: disc;
  padding-left: 20px;
}
.seo-article li {
  margin-bottom: 8px;
}

.faq-accordion {
  margin-top: 20px;
}
.faq-accordion .faq-item {
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 15px;
}
.faq-accordion h4 {
  color: var(--text-light);
  font-size: 1.2rem;
  margin-bottom: 8px;
}
