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

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #121212;
  --bg-card: rgba(22, 22, 22, 0.75);
  
  /* Dual Accents */
  --accent-red: #ff3b30;
  --accent-blue: #1b9bff;
  
  --accent-color: var(--accent-red); /* Default fallback */
  --accent-dark: #c91818;
  
  --text-white: #ffffff;
  --text-gray: rgba(255, 255, 255, 0.75);
  --text-muted: rgba(255, 255, 255, 0.52);

  --font-main: 'Outfit', sans-serif;
  --font-heading: 'Alegreya Sans SC', sans-serif;
  --border-radius: 20px;
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset and Globals */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto !important;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* Lenis smooth scroll styling */
html.lenis, html.lenis body {
  height: auto;
}

.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis-stopped {
  overflow: hidden;
}

.lenis-scrolling iframe {
  pointer-events: none;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-white);
  font-family: var(--font-main);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Hide scrollbar globally */
::-webkit-scrollbar {
  display: none;
}

/* Background Grid & Ambient Glows */
.bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 130%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.55;
  overflow: hidden;
}

/* Capa 1: traza base de circuito (líneas y nodos SVG) */
.bg-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Crect width='120' height='120' fill='none'/%3E%3C!-- Trazas horizontales --%3E%3Cline x1='0' y1='30' x2='40' y2='30' stroke='rgba(255,255,255,0.045)' stroke-width='1'/%3E%3Cline x1='50' y1='30' x2='120' y2='30' stroke='rgba(255,255,255,0.045)' stroke-width='1'/%3E%3Cline x1='0' y1='90' x2='70' y2='90' stroke='rgba(255,255,255,0.045)' stroke-width='1'/%3E%3Cline x1='80' y1='90' x2='120' y2='90' stroke='rgba(255,255,255,0.045)' stroke-width='1'/%3E%3C!-- Trazas verticales --%3E%3Cline x1='40' y1='0' x2='40' y2='30' stroke='rgba(255,255,255,0.045)' stroke-width='1'/%3E%3Cline x1='40' y1='30' x2='40' y2='80' stroke='rgba(255,255,255,0.045)' stroke-width='1'/%3E%3Cline x1='80' y1='40' x2='80' y2='90' stroke='rgba(255,255,255,0.045)' stroke-width='1'/%3E%3Cline x1='80' y1='90' x2='80' y2='120' stroke='rgba(255,255,255,0.045)' stroke-width='1'/%3E%3C!-- Traza en L --%3E%3Cline x1='40' y1='80' x2='80' y2='80' stroke='rgba(255,255,255,0.045)' stroke-width='1'/%3E%3Cline x1='80' y1='40' x2='120' y2='40' stroke='rgba(255,255,255,0.045)' stroke-width='1'/%3E%3Cline x1='0' y1='60' x2='20' y2='60' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3Cline x1='20' y1='0' x2='20' y2='60' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3C!-- Nodos / puntos de soldadura --%3E%3Ccircle cx='40' cy='30' r='2.5' fill='rgba(255,59,48,0.18)'/%3E%3Ccircle cx='80' cy='90' r='2.5' fill='rgba(27,155,255,0.18)'/%3E%3Ccircle cx='40' cy='80' r='2' fill='rgba(255,255,255,0.07)'/%3E%3Ccircle cx='80' cy='40' r='2' fill='rgba(255,255,255,0.07)'/%3E%3Ccircle cx='80' cy='80' r='1.5' fill='rgba(255,255,255,0.05)'/%3E%3Ccircle cx='20' cy='60' r='1.5' fill='rgba(255,59,48,0.1)'/%3E%3C/svg%3E");
  background-size: 120px 120px;
  background-repeat: repeat;
}

/* Capa 2: señal de "scan" que recorre el circuito lentamente */
.bg-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(27, 155, 255, 0.015) 48%,
    rgba(255, 59, 48, 0.015) 50%,
    transparent 100%
  );
  background-size: 100% 200%;
  animation: circuitScan 8s linear infinite;
}

@keyframes circuitScan {
  0%   { background-position: 0 -100%; }
  100% { background-position: 0 200%; }
}


.ambient-glow {
  position: absolute;
  width: 450px;
  height: 450px;
  pointer-events: none;
  z-index: 1;
}

.glow-red {
  background: radial-gradient(circle, rgba(255, 59, 48, 0.065) 0%, transparent 70%);
}

.glow-blue {
  background: radial-gradient(circle, rgba(27, 155, 255, 0.065) 0%, transparent 70%);
}

/* ==============================================
   HEADER & NAVIGATION — Barra fija ancho completo
   ============================================== */
.header1 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(8, 8, 8, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Línea de acento degradada en la parte inferior */
.header1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--accent-red) 25%,
    var(--accent-blue) 75%,
    transparent 100%);
  opacity: 0.55;
}

header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  padding: 0 5%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
}

/* Logo */
.ImgTitle {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  height: 100%;
}

.LOGO1 {
  height: 30px;
  width: auto;
  min-width: unset;
  position: static;
  top: unset;
  transition: filter 0.3s ease, transform 0.3s ease;
}

.LOGO1:hover {
  filter: drop-shadow(0 0 8px rgba(255, 59, 48, 0.5));
  transform: scale(1.04);
}

/* Nav contenedor — ocupa el espacio restante a la derecha */
nav {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex: 1 !important;
  height: 100%;
  margin: 0 !important;
  width: auto !important;    /* anular el width:100% de style.css */
  position: static !important;
}

/* ---- #cssmenu wrapper ---- */


/* Lista principal: una sola fila horizontal */
#cssmenu > ul {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;          /* NO envolver a la siguiente línea */
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  height: 100%;
}

/* Items de primer nivel */
#cssmenu > ul > li {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  list-style: none;
  float: none !important;     /* anular cualquier float heredado */
}

/* Links de primer nivel */
#cssmenu > ul > li > a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 13px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(195, 195, 195, 0.9);
  white-space: nowrap;
  line-height: 1;
  transition: color 0.2s ease, background 0.2s ease;
  text-decoration: none;
}

/* Subrayado animado */
#cssmenu > ul > li > a::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-red);
  transition: width 0.28s ease, left 0.28s ease;
  clip-path: polygon(0 50%, 15% 0, 85% 0, 100% 50%, 85% 100%, 15% 100%);
}

#cssmenu > ul > li:hover > a::before,
#cssmenu > ul > li.active > a::before {
  width: 70%;
  left: 15%;
}

/* Hover / activo */
#cssmenu > ul > li > a:hover,
#cssmenu > ul > li.active > a {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

/* Flecha indicadora de submenú */
#cssmenu > ul > li.has-sub > a::after {
  content: '▾';
  font-size: 9px;
  opacity: 0.55;
  transition: transform 0.22s ease;
  position: static;
  width: auto;
  height: auto;
  background: none;
  margin-left: 1px;
}

#cssmenu > ul > li.has-sub:hover > a::after {
  transform: rotate(180deg);
  opacity: 1;
}


/* ---- Dropdowns ---- */
#cssmenu ul ul {
  /* Reset completo de herencias */
  display: block !important;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 2px solid var(--accent-red);
  border-radius: 10px;
  min-width: 170px;
  width: auto !important;     /* anular width:100% de style.css */
  float: none !important;
  padding: 6px 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 9999;
}

/* Mostrar dropdown al hacer hover en li padre */
#cssmenu > ul > li:hover > ul,
#cssmenu > ul > li:focus-within > ul {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Items del dropdown */
#cssmenu ul ul li {
  float: none !important;
  width: 100%;
  display: block;
  position: static;
  height: auto;
  list-style: none;
}

/* Links del dropdown */
#cssmenu ul ul a {
  display: block !important;
  padding: 10px 18px !important;
  color: rgba(185, 185, 185, 0.9);
  background: transparent;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border-radius: 0;
  transition: background 0.18s ease, color 0.18s ease, padding-left 0.18s ease;
  white-space: nowrap;
  line-height: 1.4;
}

#cssmenu ul ul a::before { display: none !important; }
#cssmenu ul ul a::after  { display: none !important; }

#cssmenu ul ul a:hover {
  background: rgba(255, 59, 48, 0.1);
  color: #fff;
  padding-left: 24px !important;
}

/* Bordes redondeados en primer/último item */
#cssmenu ul ul li:first-child > a { border-radius: 8px 8px 0 0; }
#cssmenu ul ul li:last-child  > a { border-radius: 0 0 8px 8px; }

/* Separador entre items */
#cssmenu ul ul li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* Scrollytelling Sections */
.scroll-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 100px 8% 60px 8%;
  overflow: hidden;
}

/* Section Titles in White */
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

/* Centered slide-dividers under specific section titles (alternating colors, animated on scroll) */
#omnicanal .slide-divider,
#mision-vision .slide-divider,
#clientes-logos .slide-divider,
#contacto-form .slide-divider {
  width: 0;
  height: 2px;
  border-radius: 2px;
  margin: -5px auto 20px auto;
  transition: width 0.8s ease 0.3s;
}

#omnicanal.section-active .slide-divider,
#mision-vision.section-active .slide-divider,
#clientes-logos.section-active .slide-divider,
#contacto-form.section-active .slide-divider {
  width: 120px;
}

#clientes-logos .slide-divider {
  background: linear-gradient(90deg, var(--accent-red), transparent);
}

#omnicanal .slide-divider,
#mision-vision .slide-divider,
#contacto-form .slide-divider {
  background: linear-gradient(90deg, var(--accent-blue), transparent);
}

.section-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--text-gray);
  text-align: center;
  max-width: 750px;
  margin: 0 auto 60px auto;
  z-index: 2;
  font-weight: 300;
}

/* 1. Hero Section */
#hero {
  background: radial-gradient(circle at center, rgba(255, 59, 48, 0.04) 0%, rgba(27, 155, 255, 0.04) 40%, var(--bg-primary) 80%);
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  z-index: 2;
  position: relative;
  text-align: center;
}

.hero-content {
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-logo-container {
  margin-bottom: 25px;
  opacity: 0;
  transform: translateY(30px);
}

.hero-logo {
  max-width: 450px;
  width: 90%;
  filter: drop-shadow(0 0 30px rgba(255, 59, 48, 0.25));
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.8vw, 3rem);
  color: var(--text-white);
  margin-bottom: 15px;
  opacity: 0;
  letter-spacing: 4px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  text-align: center;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  color: var(--text-gray);
  margin-bottom: 30px;
  min-height: 50px;
  max-width: 700px;
  text-align: center;
  opacity: 1;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 1px;
  margin-left: auto;
  margin-right: auto;
}

/* Flashing caret for Typewriter */
.typewriter-cursor::after {
  content: '|';
  color: var(--accent-red);
  animation: blinkCursor 0.8s step-end infinite;
  font-weight: 700;
  display: inline-block;
  margin-left: 2px;
}

@keyframes blinkCursor {
  from, to { color: transparent }
  50% { color: var(--accent-red); }
}

.hero-buttons {
  opacity: 0;
  display: flex;
  gap: 20px;
  justify-content: center;
  transform: translateY(20px);
}

.btn-primary {
  background: var(--accent-red);
  color: var(--text-white);
  padding: 16px 36px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid var(--accent-red);
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(255, 59, 48, 0.35);
  letter-spacing: 1px;
}

.btn-primary:hover {
  background: transparent;
  color: var(--accent-blue);
  border-color: var(--accent-blue);
  box-shadow: 0 4px 25px rgba(27, 155, 255, 0.2), inset 0 0 10px rgba(27, 155, 255, 0.1);
  transform: translateY(-3px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-white);
  padding: 16px 36px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: var(--transition-smooth);
  letter-spacing: 1px;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}

/* Adapt original video-responsive to the current page format */
#hero .video-responsive {
  position: relative;
  border-radius: 16px;
  background: rgba(18, 18, 18, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(15px);
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  max-width: 650px;
  margin: 20px auto 0 auto;
  height: 0;
  padding-bottom: calc(56.25% + 24px); /* 16:9 Aspect Ratio + padding */
}

#hero .video-responsive:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(27, 155, 255, 0.15), 0 0 30px rgba(255, 59, 48, 0.15);
}

#hero .video-responsive iframe {
  position: absolute;
  top: 12px !important;
  left: 12px !important;
  width: calc(100% - 24px) !important;
  height: calc(100% - 24px) !important;
  border: none;
  border-radius: 10px;
}

.scroll-indicator {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 3px;
  text-transform: uppercase;
  z-index: 100;
  cursor: default;
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

/* Estado visible (indicador de scroll) */
.scroll-indicator.si-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: none;
}

/* Estado modo botón back-to-top */
.scroll-indicator.si-top-btn {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  cursor: pointer;
  pointer-events: auto;
  gap: 8px;
}

/* Oculto mientras desplaza */
.scroll-indicator.si-hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
  pointer-events: none;
}

/* Contenido del indicador de scroll original */
.si-scroll-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Contenido del botón back-to-top */
.si-top-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  position: absolute;
  pointer-events: none;
}

.scroll-indicator.si-top-btn .si-scroll-content {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.scroll-indicator.si-top-btn .si-top-content {
  opacity: 1;
  transform: translateY(0);
  position: relative;
  pointer-events: auto;
}

/* Círculo del botón back-to-top */
.si-top-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(255, 59, 48, 0.4), 0 0 20px rgba(27, 155, 255, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: topBtnPulse 2.5s ease-in-out infinite;
}

.scroll-indicator.si-top-btn:hover .si-top-circle {
  transform: scale(1.15);
  box-shadow: 0 0 30px rgba(255, 59, 48, 0.6), 0 0 30px rgba(27, 155, 255, 0.5);
}

.si-top-circle svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.si-top-label {
  font-size: 10px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
}

@keyframes topBtnPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 59, 48, 0.4), 0 0 20px rgba(27, 155, 255, 0.3); }
  50% { box-shadow: 0 0 35px rgba(255, 59, 48, 0.7), 0 0 35px rgba(27, 155, 255, 0.6); }
}

.mouse {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background-color: var(--accent-red);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollMouse 1.8s infinite;
}

/* 2. Omnicanal Section */
#omnicanal {
  background-color: var(--bg-secondary);
}

.omnicanal-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  max-width: 1200px;
  width: 100%;
  align-items: center;
  z-index: 2;
}

.omnicanal-text-panel {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.omnicanal-text-panel p {
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  color: var(--text-gray);
  line-height: 1.8;
}

.omnicanal-text-panel strong {
  color: var(--text-white);
  border-left: 3px solid var(--accent-red);
  padding-left: 15px;
  display: block;
  font-weight: 500;
  font-style: italic;
  margin: 10px 0;
}

/* Omnicanal interactive visualizer */
.omnicanal-visual-panel {
  position: relative;
  height: 460px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle, rgba(255, 59, 48, 0.05) 0%, rgba(27, 155, 255, 0.05) 60%, transparent 80%);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.central-inbox {
  width: 110px;
  height: 110px;
  background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-blue) 100%);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 50px rgba(255, 59, 48, 0.35), 0 0 50px rgba(27, 155, 255, 0.35);
  z-index: 5;
  border: 4px solid rgba(255, 255, 255, 0.15);
  transition: var(--transition-smooth);
}

.central-inbox img {
  width: 170px;
  height: auto;
  filter: brightness(0) invert(1);
}

.social-orb {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 22px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  z-index: 4;
}

.social-orb svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.social-orb.whatsapp { background: #25D366; box-shadow: 0 0 20px rgba(37, 211, 102, 0.25); }
.social-orb.facebook { background: #1877F2; box-shadow: 0 0 20px rgba(24, 119, 242, 0.25); }
.social-orb.instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); box-shadow: 0 0 20px rgba(220, 39, 67, 0.25); }
.social-orb.email { background: #ea4335; box-shadow: 0 0 20px rgba(234, 67, 53, 0.25); }
.social-orb.webchat { background: var(--accent-blue); box-shadow: 0 0 20px rgba(27, 155, 255, 0.25); }

.social-orb:hover {
  transform: scale(1.15);
  filter: brightness(1.1);
  box-shadow: 0 0 30px currentColor;
}

/* Orbit paths visual aid */
.orbit-ring {
  position: absolute;
  border: 1px dashed rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  pointer-events: none;
}
.ring-1 { width: 240px; height: 240px; }
.ring-2 { width: 380px; height: 380px; }

/* Message bubble connector visualizer */
.message-bubble {
  position: absolute;
  padding: 8px 14px;
  background: rgba(25, 25, 25, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-white);
  pointer-events: none;
  opacity: 0;
  transform: scale(0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  max-width: 160px;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 15;
}

/* 3. Services Section — Vertical Fade+Slide Flow */
#servicios-scroll-track {
  position: relative;
  height: auto;
}

#servicios-container {
  position: relative;
  width: 100%;
  background: var(--bg-primary);
  overflow: visible;
  height: auto;
}

.services-horizontal-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* ── Slide base: bloques verticales normales ── */
.service-slide {
  width: 100%;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: transparent;
}

/* ── Imagen de fondo fullscreen ── */
.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.slide-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  transition: transform 2s ease, filter 2s ease;
  filter: brightness(0.55) saturate(0.85);
}

.service-slide:hover .slide-bg img {
  transform: scale(1.12);
}

/* Active Slide Background Animations (Noticeable movements in different directions) */
#slide-1.slide-active .slide-bg img {
  animation: pan-up-right 28s infinite ease-in-out;
}

#slide-2.slide-active .slide-bg img {
  animation: pan-down-left 28s infinite ease-in-out;
}

#slide-3.slide-active .slide-bg img {
  animation: pan-horizontal 28s infinite ease-in-out;
}

#slide-4.slide-active .slide-bg img {
  animation: pan-vertical 28s infinite ease-in-out;
}

@keyframes pan-up-right {
  0% {
    transform: translate(-3%, 3%) scale(1.1);
  }
  50% {
    transform: translate(3%, -3%) scale(1.22);
  }
  100% {
    transform: translate(-3%, 3%) scale(1.1);
  }
}

@keyframes pan-down-left {
  0% {
    transform: translate(3%, -3%) scale(1.1);
  }
  50% {
    transform: translate(-3%, 3%) scale(1.22);
  }
  100% {
    transform: translate(3%, -3%) scale(1.1);
  }
}

@keyframes pan-horizontal {
  0% {
    transform: translate(-4%, 0%) scale(1.1);
  }
  50% {
    transform: translate(4%, 0%) scale(1.22);
  }
  100% {
    transform: translate(-4%, 0%) scale(1.1);
  }
}

@keyframes pan-vertical {
  0% {
    transform: translate(0%, 4%) scale(1.1);
  }
  50% {
    transform: translate(0%, -4%) scale(1.22);
  }
  100% {
    transform: translate(0%, 4%) scale(1.1);
  }
}

/* ── Overlays degradados ── */
.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.theme-red-overlay {
  background:
    linear-gradient(to top, rgba(10, 5, 5, 0.96) 0%, rgba(10, 5, 5, 0.4) 50%, transparent 100%),
    linear-gradient(to right, var(--bg-primary) 0%, rgba(255, 59, 48, 0.06) 50%, transparent 100%);
}

.theme-blue-overlay {
  background:
    linear-gradient(to top, rgba(5, 8, 15, 0.96) 0%, rgba(5, 8, 15, 0.4) 50%, transparent 100%),
    linear-gradient(to right, var(--bg-primary) 0%, rgba(27, 155, 255, 0.06) 50%, transparent 100%);
}

/* ── Número decorativo ── */
.slide-num {
  position: absolute;
  top: 8%;
  right: 8%;
  left: auto;
  font-family: var(--font-heading);
  font-size: clamp(5rem, 12vw, 11rem);
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.06);
  user-select: none;
  pointer-events: none;
  z-index: 2;
  letter-spacing: -4px;
}

/* ── Contenido del slide (zona inferior izquierda) ── */
.slide-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 800px;
  padding: 0 10%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Tag */
.service-tag {
  align-self: flex-start;
  font-family: var(--font-heading);
  background: rgba(var(--accent-color-rgb, 255,59,48), 0.12);
  color: var(--accent-color);
  border: 1px solid rgba(var(--accent-color-rgb, 255,59,48), 0.35);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

/* Título (typewriter target) */
.service-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  min-height: 1.2em;
}

/* Línea divisoria animada */
.slide-divider {
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-color, var(--accent-red)), transparent);
  border-radius: 2px;
  transition: width 0.8s ease 0.3s;
}

.service-slide.slide-active .slide-divider {
  width: 120px;
}

/* Descripción */
.service-desc {
  font-size: clamp(0.95rem, 1.1vw, 1.1rem);
  color: rgba(200, 200, 210, 0.85);
  line-height: 1.7;
  max-width: 560px;
}

/* Lista de features */
.service-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-features-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(185, 185, 200, 0.85);
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.service-slide.slide-active .service-features-list li:nth-child(1) { opacity:1; transform:none; transition-delay: 0.5s; }
.service-slide.slide-active .service-features-list li:nth-child(2) { opacity:1; transform:none; transition-delay: 0.65s; }
.service-slide.slide-active .service-features-list li:nth-child(3) { opacity:1; transform:none; transition-delay: 0.8s; }

.service-features-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-color, var(--accent-red));
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--accent-color, var(--accent-red));
}

/* Footer: precio + CTA en fila */
.slide-footer {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.service-price {
  font-family: var(--font-heading);
  font-size: 17px;
  color: rgba(200, 200, 210, 0.7);
  letter-spacing: 0.5px;
}

.service-price span {
  color: var(--accent-color, var(--accent-red));
  font-weight: 700;
  font-size: 20px;
  text-shadow: 0 0 12px rgba(var(--accent-color-rgb, 255,59,48), 0.4);
}

/* Red/Blue accent variable overrides */
.theme-red {
  --accent-color: var(--accent-red);
  --accent-color-rgb: 255, 59, 48;
  --accent-glow: rgba(255, 59, 48, 0.35);
}

.theme-blue {
  --accent-color: var(--accent-blue);
  --accent-color-rgb: 27, 155, 255;
  --accent-glow: rgba(27, 155, 255, 0.35);
}

/* Container grid for slides */
.slide-inner-container {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 5%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

/* Override slide-content styling in desktop grid */
.slide-inner-container .slide-content {
  padding: 0;
  max-width: 100%;
}

.slide-media-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  z-index: 3;
}

.slide-media-frame {
  position: relative;
  width: 100%;
  max-width: 550px;
  aspect-ratio: 16/9;
  border-radius: 16px;
  background: rgba(18, 18, 18, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

/* Hover effects with dynamic section accent color glow */
.slide-media-frame:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 30px var(--accent-glow, rgba(255, 59, 48, 0.25));
}

.mobile-menu-btn-style,
.mobile-menu-close-btn {
  display: none;
}

/* Identity Section Grid */
.identity-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  max-width: 1200px;
  width: 100%;
  align-items: center;
  z-index: 2;
}

.identity-text-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.identity-badge {
  align-self: flex-start;
  font-family: var(--font-heading);
  background: rgba(255, 59, 48, 0.12);
  color: var(--accent-red);
  border: 1px solid rgba(255, 59, 48, 0.35);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.identity-lead {
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  color: var(--text-white);
  line-height: 1.4;
  font-weight: 500;
  border-left: 3px solid var(--accent-blue);
  padding-left: 20px;
  text-align: left;
}

.identity-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-top: 10px;
}

.identity-block {
  background: rgba(22, 22, 22, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 24px;
  border-radius: 16px;
  transition: var(--transition-smooth);
}

.identity-block:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(22, 22, 22, 0.6);
}

.identity-block-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.identity-block-header h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-white);
}

.identity-block:nth-child(1) .block-icon { color: var(--accent-red); }
.identity-block:nth-child(2) .block-icon { color: var(--accent-blue); }

.identity-block p {
  color: var(--text-gray);
  font-size: 14px;
  line-height: 1.6;
  font-weight: 300;
  text-align: left;
}

.identity-media-panel {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.identity-media-frame {
  position: relative;
  width: 100%;
  max-width: 550px;
  aspect-ratio: 16/9;
  border-radius: 16px;
  background: rgba(18, 18, 18, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.identity-media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.identity-media-frame:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(27, 155, 255, 0.2), 0 0 30px rgba(255, 59, 48, 0.2);
}




/* 4. Clientes Section */
#clientes-logos {
  background-color: var(--bg-primary);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 25px;
  width: 100%;
  max-width: 1100px;
  z-index: 2;
}

.client-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 35px 20px;
  border-radius: var(--border-radius);
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-smooth);
}

.client-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1.5px;
  color: var(--text-gray);
  text-transform: uppercase;
}

.client-card:nth-child(even):hover {
  transform: translateY(-5px);
  border-color: rgba(27, 155, 255, 0.25);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(27, 155, 255, 0.08);
}

.client-card:nth-child(odd):hover {
  transform: translateY(-5px);
  border-color: rgba(255, 59, 48, 0.25);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 59, 48, 0.08);
}

/* 5. Misión & Visión Section */
#mision-vision {
  background-color: var(--bg-secondary);
}

.mv-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  max-width: 1200px;
  width: 100%;
  z-index: 2;
}

.mv-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--border-radius);
  padding: 60px 45px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.mv-card:nth-child(odd)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-red), var(--accent-dark));
  opacity: 0.8;
}

.mv-card:nth-child(even)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-blue), #0082e7);
  opacity: 0.8;
}

.mv-card:nth-child(odd):hover {
  transform: translateY(-8px);
  border-color: rgba(255, 59, 48, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 59, 48, 0.06);
}

.mv-card:nth-child(even):hover {
  transform: translateY(-8px);
  border-color: rgba(27, 155, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(27, 155, 255, 0.06);
}

.mv-icon {
  width: 65px;
  height: 65px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mv-card:nth-child(odd) .mv-icon { color: var(--accent-red); background: rgba(255, 59, 48, 0.08); border-color: rgba(255, 59, 48, 0.15); }
.mv-card:nth-child(even) .mv-icon { color: var(--accent-blue); background: rgba(27, 155, 255, 0.08); border-color: rgba(27, 155, 255, 0.15); }

.mv-icon svg {
  width: 30px;
  height: 30px;
}

.mv-card h3 {
  font-family: var(--font-heading);
  font-size: 30px;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--text-white);
}

.mv-card p {
  color: var(--text-gray);
  font-size: 16.5px;
  line-height: 1.8;
  font-weight: 300;
}

/* 6. Video & Technology Section */
#video-tech {
  background: var(--bg-primary);
}

#video-tech .section-divider {
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-red), transparent);
  border-radius: 2px;
  margin: 0 auto 20px auto;
  z-index: 2;
  transition: width 0.8s ease 0.3s;
}

#video-tech.section-active .section-divider {
  width: 120px;
}

.video-wrapper {
  width: 85%;
  max-width: 960px;
  aspect-ratio: 16/9;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 59, 48, 0.04), 0 0 40px rgba(27, 155, 255, 0.04);
  overflow: hidden;
  margin-bottom: 60px;
  transform: scale(0.92);
  opacity: 0;
  z-index: 2;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.coding-graphic {
  max-width: 650px;
  width: 90%;
  opacity: 0;
  transform: translateY(40px);
  z-index: 2;
}

.coding-graphic img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 15px 30px rgba(0,0,0,0.6));
}

/* 7. Contacto Section */
#contacto-form {
  background-color: var(--bg-secondary);
}

.contact-container {
  width: 100%;
  max-width: 680px;
  z-index: 2;
}

.contact-form-wrapper {
  background: rgba(22, 22, 22, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 50px 40px;
  border-radius: var(--border-radius);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.contact-instructions {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 30px;
  text-align: center;
  letter-spacing: 0.5px;
}

.contact-instructions span {
  color: var(--accent-red);
  text-shadow: 0 0 10px rgba(255, 59, 48, 0.4);
}

.form-group {
  position: relative;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
}

.form-input {
  width: 100%;
  padding: 16px 40px 16px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: var(--text-white);
  font-family: var(--font-main);
  font-size: 15px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
  transition: color 0.3s ease;
}

.form-input:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
}

.form-input:focus {
  outline: none;
  background: rgba(10, 10, 10, 0.85);
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 1px var(--accent-blue), 0 0 20px rgba(27, 155, 255, 0.3);
}

.form-input:focus::placeholder {
  color: rgba(255, 255, 255, 0.15);
}

.form-group:nth-child(odd) .form-input:focus {
  border-color: var(--accent-red);
  box-shadow: 0 0 0 1px var(--accent-red), 0 0 20px rgba(255, 59, 48, 0.3);
}

.required-indicator {
  position: absolute;
  right: 20px;
  color: rgba(255, 59, 48, 0.75);
  font-weight: bold;
  pointer-events: none;
  font-size: 16px;
  text-shadow: 0 0 8px rgba(255, 59, 48, 0.5);
}

.form-textarea {
  resize: none;
  min-height: 120px;
}

.form-captcha {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.btn-submit {
  width: 100%;
  padding: 16px;
  background: linear-gradient(90deg, var(--accent-red), var(--accent-blue));
  border: none;
  color: var(--text-white);
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: 1.5px;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(27, 155, 255, 0.2);
}

.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(27, 155, 255, 0.35), 0 6px 25px rgba(255, 59, 48, 0.25);
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-red));
}

/* Footer modern styles */
footer {
  background: #080809;
  border-top: 1px solid;
  border-image: linear-gradient(90deg, transparent, rgba(255, 59, 48, 0.35) 20%, rgba(27, 155, 255, 0.35) 80%, transparent) 1;
  padding: 95px 8% 45px 8%;
  font-family: var(--font-main);
  position: relative;
  overflow: hidden;
}

/* Background grid inside footer */
footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Crect width='120' height='120' fill='none'/%3E%3C!-- Trazas horizontales --%3E%3Cline x1='0' y1='30' x2='40' y2='30' stroke='rgba(255,255,255,0.045)' stroke-width='1'/%3E%3Cline x1='50' y1='30' x2='120' y2='30' stroke='rgba(255,255,255,0.045)' stroke-width='1'/%3E%3Cline x1='0' y1='90' x2='70' y2='90' stroke='rgba(255,255,255,0.045)' stroke-width='1'/%3E%3Cline x1='80' y1='90' x2='120' y2='90' stroke='rgba(255,255,255,0.045)' stroke-width='1'/%3E%3C!-- Trazas verticales --%3E%3Cline x1='40' y1='0' x2='40' y2='30' stroke='rgba(255,255,255,0.045)' stroke-width='1'/%3E%3Cline x1='40' y1='30' x2='40' y2='80' stroke='rgba(255,255,255,0.045)' stroke-width='1'/%3E%3Cline x1='80' y1='40' x2='80' y2='90' stroke='rgba(255,255,255,0.045)' stroke-width='1'/%3E%3Cline x1='80' y1='90' x2='80' y2='120' stroke='rgba(255,255,255,0.045)' stroke-width='1'/%3E%3C!-- Traza en L --%3E%3Cline x1='40' y1='80' x2='80' y2='80' stroke='rgba(255,255,255,0.045)' stroke-width='1'/%3E%3Cline x1='80' y1='40' x2='120' y2='40' stroke='rgba(255,255,255,0.045)' stroke-width='1'/%3E%3Cline x1='0' y1='60' x2='20' y2='60' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3Cline x1='20' y1='0' x2='20' y2='60' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3C!-- Nodos / puntos de soldadura --%3E%3Ccircle cx='40' cy='30' r='2.5' fill='rgba(255,59,48,0.18)'/%3E%3Ccircle cx='80' cy='90' r='2.5' fill='rgba(27,155,255,0.18)'/%3E%3Ccircle cx='40' cy='80' r='2' fill='rgba(255,255,255,0.07)'/%3E%3Ccircle cx='80' cy='40' r='2' fill='rgba(255,255,255,0.07)'/%3E%3Ccircle cx='80' cy='80' r='1.5' fill='rgba(255,255,255,0.05)'/%3E%3Ccircle cx='20' cy='60' r='1.5' fill='rgba(255,59,48,0.1)'/%3E%3C/svg%3E");
  background-size: 120px 120px;
  background-repeat: repeat;
}

/* Ambient glow and scanning sweep */
footer::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: 
    radial-gradient(circle at 12% 15%, rgba(255, 59, 48, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 88% 85%, rgba(27, 155, 255, 0.07) 0%, transparent 45%),
    linear-gradient(180deg, transparent 0%, rgba(27, 155, 255, 0.004) 48%, rgba(255, 59, 48, 0.004) 50%, transparent 100%);
  background-size: 100% 100%, 100% 100%, 100% 200%;
  animation: circuitScan 12s linear infinite;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.footer-brand .logo {
  max-width: 250px;
  transition: var(--transition-smooth);
}

.footer-brand .logo:hover {
  transform: scale(1.02);
  filter: drop-shadow(0 0 10px rgba(255, 59, 48, 0.25));
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 14.5px;
  max-width: 380px;
  line-height: 1.7;
}

.footer-links-col h4 {
  font-family: var(--font-heading);
  color: var(--text-white);
  margin-bottom: 25px;
  font-size: 18px;
  letter-spacing: 1.5px;
  font-weight: 700;
  position: relative;
  padding-bottom: 12px;
}

/* Line accent under columns - slide-divider style */
.footer-links-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 120px;
  height: 2px;
  border-radius: 2px;
}

/* Servicios column - Red slide-divider style */
.footer-brand + .footer-links-col h4::after {
  background: linear-gradient(90deg, var(--accent-red), transparent);
}

/* Legal column - Blue slide-divider style */
.footer-links-col + .footer-links-col h4::after {
  background: linear-gradient(90deg, var(--accent-blue), transparent);
}

/* Hide manual markup slide-dividers in footer columns to avoid duplicates */
.footer-links-col .slide-divider {
  display: none;
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-links-col ul a {
  color: var(--text-gray);
  font-size: 14.5px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
}

.footer-links-col ul a::before {
  content: '→';
  opacity: 0;
  width: 0;
  margin-right: 0;
  transition: all 0.3s ease;
  color: var(--accent-red);
}

.footer-links-col ul a:hover {
  color: var(--text-white);
  transform: translateX(4px);
}

.footer-links-col ul a:hover::before {
  opacity: 1;
  width: 14px;
  margin-right: 6px;
}

.footer-socials {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}

.footer-social-btn {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-gray);
  transition: var(--transition-smooth);
}

/* Social Buttons Brand-specific Hover Colors and Shadows */
.footer-social-btn[title="Twitter"]:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--text-white);
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

.footer-social-btn[title="YouTube"]:hover {
  background: rgba(255, 59, 48, 0.12);
  border-color: rgba(255, 59, 48, 0.4);
  color: var(--text-white);
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(255, 59, 48, 0.35);
}

.footer-social-btn[title="Facebook"]:hover {
  background: rgba(27, 155, 255, 0.12);
  border-color: rgba(27, 155, 255, 0.4);
  color: var(--text-white);
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(27, 155, 255, 0.35);
}

.footer-social-btn svg {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(90deg, transparent 0%, var(--accent-red) 25%, var(--accent-blue) 75%, transparent 100%) no-repeat top / 100% 2px;
  padding-top: 35px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 13.5px;
  letter-spacing: 0.5px;
}

.footer-bottom a {
  color: var(--accent-red);
  transition: var(--transition-smooth);
}

.footer-bottom a:hover {
  text-shadow: 0 0 8px rgba(255, 59, 48, 0.4);
  color: var(--text-white);
}

.g-logo {
  max-width: 190px;
  height: auto;
  opacity: 0.85;
  transition: var(--transition-smooth);
}

.g-logo:hover {
  opacity: 1;
  transform: scale(1.03);
  filter: drop-shadow(0 0 12px rgba(27, 155, 255, 0.25));
}

/* Floating contact button or trigger */
.sticky-contact-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--accent-red);
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 30px rgba(255, 59, 48, 0.45);
  z-index: 999;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
}

.sticky-contact-btn:hover {
  transform: scale(1.1) rotate(8deg);
  box-shadow: 0 12px 35px rgba(255, 59, 48, 0.6);
}

.sticky-contact-btn svg {
  width: 26px;
  height: 26px;
}

/* Sub-pages layout overrides */
body:not(#hero-page) section {
  max-width: 1000px;
  margin: 120px auto 60px auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

body:not(#hero-page) article {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--border-radius);
  padding: 45px;
  margin-bottom: 40px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

body:not(#hero-page) article h2,
body:not(#hero-page) article h1 {
  font-family: var(--font-heading);
  color: var(--text-white);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  text-transform: uppercase;
  text-shadow: 0 0 15px rgba(255, 59, 48, 0.15);
}

body:not(#hero-page) article p {
  color: var(--text-gray);
  font-size: 15.5px;
  line-height: 1.8;
  margin-bottom: 18px;
}

/* Custom buttons on subpages */
.Btn_Contact, .Btn_Consult, .btn-action, .Btn_Clean {
  background: linear-gradient(90deg, var(--accent-red), var(--accent-blue));
  border: none;
  color: var(--text-white);
  padding: 14px 32px;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 1.5px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 59, 48, 0.25);
  transition: var(--transition-smooth);
  display: inline-block;
  text-decoration: none;
}

.Btn_Contact:hover, .Btn_Consult:hover, .btn-action:hover, .Btn_Clean:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27, 155, 255, 0.35);
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-red));
}

/* Mobile & Tablet Responsiveness */
@media screen and (max-width: 992px) {
  header {
    height: 70px;
    position: relative;   /* necesario para centrar el logo con absolute */
  }
  
  .header1 {
    padding: 0 10px;
  }

  /* Centrar logo horizontalmente en modo portátil */
  .ImgTitle {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: auto;
  }

  .omnicanal-grid,
  .service-grid,
  .mv-container,
  .identity-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  .identity-media-panel {
    order: -1 !important;
  }

  .identity-blocks {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  #servicios-scroll-track {
    height: auto !important;
  }

  .services-horizontal-wrapper {
    width: 100% !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
  }

  #servicios-container {
    position: relative !important;
    height: auto !important;
    overflow: visible !important;
  }

  .omnicanal-visual-panel {
    height: 380px;
  }

  .service-slide {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    min-height: 100vh !important;
    height: auto !important;
    padding: 0 !important;
    align-items: center !important;
    transform: none !important;
    opacity: 1 !important;
    z-index: auto !important;
    display: flex !important;
  }

  .slide-inner-container {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
    padding: 100px 6% 60px 6% !important;
    width: 100% !important;
    display: grid !important;
  }

  .slide-inner-container .slide-content {
    padding: 0 !important;
    max-width: 100% !important;
  }

  .slide-media-container {
    order: -1 !important;
    width: 100% !important;
    margin-top: 10px !important;
  }

  .slide-media-frame {
    max-width: 100% !important;
    aspect-ratio: 16/9 !important;
  }

  .slide-bg, .slide-overlay {
    width: 100% !important;
    left: 0 !important;
    right: auto !important;
  }

  .theme-red-overlay {
    background:
      linear-gradient(to top, rgba(10, 5, 5, 0.96) 0%, rgba(10, 5, 5, 0.55) 45%, transparent 75%),
      linear-gradient(to right, rgba(255, 59, 48, 0.12) 0%, transparent 60%) !important;
  }

  .theme-blue-overlay {
    background:
      linear-gradient(to top, rgba(5, 8, 15, 0.96) 0%, rgba(5, 8, 15, 0.55) 45%, transparent 75%),
      linear-gradient(to right, rgba(27, 155, 255, 0.12) 0%, transparent 60%) !important;
  }

  .slide-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 6% 10% 6% !important;
    gap: 14px !important;
  }

  .service-title {
    font-size: clamp(1.6rem, 5vw, 2.4rem);
  }

  .service-desc {
    font-size: 0.95rem;
  }

  .slide-num {
    top: 5% !important;
    right: 5% !important;
    left: auto !important;
    font-size: clamp(4rem, 18vw, 8rem) !important;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}


/* ==========================================
   MENU MOBILE & TABLET
   ========================================== */

/* Hamburger button — oculto por defecto + reset estilos nativos de <button> */
.HideMenu {
  display: none;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

@media screen and (max-width: 768px) {
  header {
    padding: 0 20px;
    height: 64px;
    position: relative;   /* centrado logo en mobile */
  }

  /* Botón de Menú Integrado en Barra Izquierda */
  .mobile-menu-btn-style {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 100%;
    padding: 0 14px !important;
    background: rgba(255, 255, 255, 0.02);
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-white);
    font-family: var(--font-heading);
    font-size: 16px; /* Ajustado para asegurar compatibilidad de pantalla */
    font-weight: 700;
    letter-spacing: 1.2px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
    outline: none;
    user-select: none;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1001;
    box-shadow: inset -5px 0 10px rgba(0, 0, 0, 0.1);
    white-space: nowrap !important; /* Evita saltos de línea de la palabra o ícono */
  }
  
  .mobile-menu-btn-style:hover {
    background: rgba(255, 59, 48, 0.15);
    color: var(--accent-red);
    text-shadow: 0 0 10px rgba(255, 59, 48, 0.4);
  }

  .mobile-menu-btn-style span {
    font-size: 12px;
    letter-spacing: 1px;
    opacity: 0.85;
    font-weight: 500;
  }

  /* Hamburguesa a la derecha, sin empujar el logo centrado */
  .HideMenu {
    margin-left: auto;
  }

  /* Ocultar menú desktop, mostrar envoltura full-screen */
  #cssmenu {
    display: flex !important;
    flex-direction: column;
    justify-content: flex-start !important; /* Inicia al principio para habilitar scroll completo */
    align-items: center;
    position: fixed !important;
    top: 0 !important;
    left: -100% !important; /* Escondido a la izquierda */
    width: 100% !important;
    height: 100vh !important;
    background: rgba(8, 8, 8, 0.98) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    padding: 100px 40px 60px 40px !important; /* Relleno superior para botón de cierre */
    z-index: 2000 !important;
    transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    overflow-y: auto !important; /* Habilita scroll vertical de contenido */
    box-sizing: border-box !important;
    border: none !important;
  }

  /* Menú desplegado en mobile */
  #cssmenu.open {
    left: 0 !important;
  }

  .mobile-menu-close-btn {
    display: flex !important;
    position: absolute !important;
    top: 25px !important;
    right: 25px !important;
    font-size: 22px !important;
    color: rgba(255, 255, 255, 0.6) !important;
    cursor: pointer !important;
    transition: color 0.3s ease, transform 0.3s ease, background 0.3s ease !important;
    z-index: 2002 !important;
    width: 46px !important;
    height: 46px !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
  }

  .mobile-menu-close-btn:hover {
    color: var(--accent-red) !important;
    transform: rotate(90deg) !important;
    background: rgba(255, 59, 48, 0.12) !important;
    border-color: rgba(255, 59, 48, 0.3) !important;
    box-shadow: 0 0 15px rgba(255, 59, 48, 0.25) !important;
  }

  #cssmenu > ul {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    gap: 18px !important; /* Reducido ligeramente para optimizar espacio vertical */
    height: auto !important;
  }

  #cssmenu > ul > li {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    float: none !important;
    display: flex !important;
    flex-direction: column !important;
  }

  /* Links de primer nivel en mobile */
  #cssmenu > ul > li > a {
    font-size: 21px !important; /* Más grande y adaptado */
    padding: 12px 24px !important;
    color: rgba(255, 255, 255, 0.8) !important;
    justify-content: center !important;
    letter-spacing: 2px !important;
    transition: color 0.3s ease, background 0.3s ease !important;
    width: auto !important;
    margin: 0 auto !important;
    border-radius: 8px !important;
    text-align: center !important;
  }

  #cssmenu > ul > li > a:hover,
  #cssmenu > ul > li.active > a {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.06) !important;
  }

  /* Ocultar flechas o marcadores */
  #cssmenu > ul > li > a::before {
    display: none !important;
  }

  /* Submenús en mobile - Cerrados por defecto (override de display: block !important de desktop) */
  #cssmenu ul ul {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    border: none !important;
    border-left: 2px solid var(--accent-red) !important;
    border-radius: 0 !important;
    background: rgba(255, 255, 255, 0.02) !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    padding: 6px 0 6px 12px !important;
    min-width: unset !important;
    width: 80% !important;
    margin: 5px auto 0 auto !important;
    display: none !important; /* Forzado oculto por defecto */
  }

  /* Mostrar solo al expandir */
  #cssmenu ul li.sub-open > ul {
    display: block !important;
  }

  #cssmenu ul ul li a {
    font-size: 15px !important;
    padding: 8px 16px !important;
    color: rgba(255, 255, 255, 0.6) !important;
    text-align: center !important;
    width: 100% !important;
  }
  
  #cssmenu ul ul li a:hover {
    color: #fff !important;
    padding-left: 20px !important;
    background: rgba(255, 59, 48, 0.08) !important;
  }
}

/* Extra alignments for Hero video card in mobile */
@media screen and (max-width: 992px) {
  .hero-content .hero-subtitle {
    text-align: center;
    max-width: 100%;
    margin-bottom: 30px;
  }
  
  .hero-content .hero-buttons {
    justify-content: center;
    width: 100%;
  }

  #hero .video-responsive {
    max-width: 550px;
    margin: 0 auto;
    opacity: 1 !important; /* Always visible on mobile */
    transform: none !important;
  }
}

/* ==========================================
   SCROLL INDICATOR — Desktop: esquina superior derecha
   ========================================== */
@media screen and (min-width: 769px) {
  .scroll-indicator {
    /* Reposicionar: esquina superior derecha, justo bajo el header */
    top: 76px;
    right: 28px;
    bottom: auto;
    left: auto;
    transform: translateY(-12px);
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    font-size: 10px;
  }

  /* Visible: "Desliza" */
  .scroll-indicator.si-visible {
    transform: translateY(0);
  }

  /* Oculto mientras desplaza */
  .scroll-indicator.si-hidden {
    transform: translateY(-12px);
  }

  /* Modo botón back-to-top */
  .scroll-indicator.si-top-btn {
    transform: translateY(0);
  }

  /* Texto [Desliza] — [🖱] ícono a la derecha */
  .si-scroll-content {
    align-items: center;
    flex-direction: row-reverse;
    gap: 10px;
  }

  /* El mouse-wheel icono un poco más pequeño en la esquina */
  .mouse {
    width: 18px;
    height: 30px;
  }

  .wheel {
    width: 3px;
    height: 6px;
    top: 6px;
  }

  /* "Inicio" y círculo en fila: [↑] — Inicio */
  .si-top-content {
    align-items: center;
    flex-direction: row;
    gap: 10px;
  }

  .si-top-circle {
    width: 40px;
    height: 40px;
  }

  .si-top-circle svg {
    width: 16px;
    height: 16px;
  }
}
