/* ==========================================================================
   1. SECCIÓN HERO (CONTENEDORES UNIFICADOS Y LIBERADOS)
   ========================================================================== */

.hero-section {
  min-height: 100vh;
  background: #000;
  display: flex;
  align-items: center;
  padding: 80px 0 0 20%; /* Sin padding derecho para dejar pegar la Mac al borde */
  padding-top: 0px !important; /* <--- Saca todo el aire vacío de arriba */
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.hero-content {
  width: 100%;
  max-width: 100% !important;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  transform: translateY(-20px); /* <--- Cuanto más negativo el número, más suben ambos elementos */
}

/* COLUMNA IZQUIERDA (TEXTOS COMPACTOS A LA IZQUIERDA) */
.hero-left {
  flex: 0.8;
  max-width: 640px; /* Evita que el texto se abra demasiado */
  z-index: 5;
  padding-left: 2%;
}

.hero-badge {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 40px;
  color: #ff7a00;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  background: rgba(255, 122, 0, 0.05);
}

.hero-left h1 {
  font-size: 56px;
  line-height: 1.05;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
  letter-spacing: -1px;
}

.hero-left h1 span {
  background: linear-gradient(90deg, #ff7a00, #ffb15e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-left p {
  font-size: 17px;
  color: #a1a1a6;
  max-width: 480px;
  margin-bottom: 30px;
  line-height: 1.45;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 18px;
}

.btn-cta-mas:hover {
  color: #000000 !important;
  background-color: #E5C603;
  border-color: #E5C603;
}

.btn-primary {
  background: #fff;
  color: #000;
  padding: 16px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: #fff200;
  color: #000;
  text-decoration: none; /* ← agregar esta línea */
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 16px 32px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  text-decoration: none; /* ← agregar esta línea */
}

.microcopy-text {
  display: block;
  font-size: 13px;
  color: #6e6e73;
}

/* COLUMNA DERECHA - MACBOOK GIGANTE PEGADA AL MARGEN DERECHO */
.hero-right {
  flex: 1.3;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-right: 80px; /* Pega el borde de la laptop a la derecha */
}

.macbook-device {
  width: 100%;
  max-width: 1950px !important; /* Ancho calibrado para llenar el lateral */
  margin: 0;
}

/* Pantalla / Bisel Negro Estilo Monitor */
.macbook-screen {
  position: relative;
  background: #1C1C1E;
  border: 12px solid #1c1c1e;
  border-right: none; /* Se funde hacia el borde derecho */
  border-bottom: 14px solid #1d1e1c;
  border-radius: 20px !important; /* <--- Devuelve la curvatura suave a las 4 esquinas */
  padding: 0px;
  overflow: hidden !important; /* <--- OBLIGA a cortar todo lo que sobresalga */
}

/* Cámara Web arriba */
.macbook-camera {
  width: 6px;
  height: 6px;
  background: #000;
  border: 1px solid #3a3a3c;
  border-radius: 50%;
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

/* Interior de la Pantalla (Llega casi al 100% del alto vertical) */
.macbook-display-content {
  background: #000000;
  border-radius: 12px !important; /* <--- Acompaña la curva interior */
  height: 720px !important; /* Alto masivo como la imagen de referencia */
  overflow: hidden;
  margin-right: 10px !important; /* <--- Cuanto más alto el número (ej: 40px, 50px), más se mete hacia adentro desde la DERECHA */
  
}

/* Base de Aluminio Inferior */
.macbook-base {
  position: relative;
  width: 102%;
  height: 14px;
  background: linear-gradient(180deg, #3a3a3c 0%, #1c1c1e 100%);
  margin-left: -1%;
  border-radius: 2px 0 0 12px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.8);
}

.macbook-notch {
  width: 70px;
  height: 5px;
  background: #111113;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 0 0 5px 5px;
}

/* ==========================================================================
   2. ESTILOS INTERNOS DE LA SUITE NUVIA OS (LIGHT MODE 1:1)
   ========================================================================== */
.nuvia-app-real {
  background: #f4f5f8;
  height: 100%;
  padding: 12px 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #1a1a24;
}

.nuvia-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  padding: 8px 14px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  margin-bottom: 10px;
}

.nuvia-brand .logo-text {
  font-size: 11px;
  color: #666;
}

.nuvia-brand strong {
  color: #5d3ebe;
  font-weight: 800;
  font-size: 13px;
}

.role-selector-pills {
  display: flex;
  gap: 6px;
}

.role-pill {
  background: #f0f1f5;
  border: 1px solid #dcdfe6;
  color: #606266;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.role-pill:hover {
  background: #e4e7ed;
}

.role-pill.active {
  background: #5d3ebe;
  color: #ffffff;
  border-color: #5d3ebe;
}

.status-tag {
  font-size: 9.5px;
  color: #67c23a;
  font-weight: 600;
}

/* MAIN GRID */
.nuvia-main-grid {
  display: flex;
  gap: 12px;
  flex: 1;
  overflow: hidden;
}

.nuvia-card {
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #e4e7ed;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  padding: 14px;
  display: flex;
  flex-direction: column;
}

.chat-card { flex: 1; }
.lab-card { flex: 1; }

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.card-title {
  font-size: 12px;
  font-weight: 700;
  color: #303133;
}

.badge-premium {
  background: #f2ebfc;
  color: #5d3ebe;
  font-size: 8.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

/* ALERTA DIRECTIVO */
.alert-box {
  background: #fef0f0;
  border: 1px solid #fde2e2;
  border-radius: 6px;
  padding: 8px 10px;
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.alert-icon { font-size: 16px; }
.alert-content { font-size: 10px; color: #f56c6c; line-height: 1.35; }

/* CHAT CON NUVI */
.chat-body {
  flex: 1;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 6px 0;
}

.nuvi-avatar-icon {
  width: 32px;
  height: 32px;
  background: #ff7a00;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.nuvi-bubble {
  background: #F5F3F6;
  border: 1px solid #e4e7ed;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 11px;
  line-height: 1.45;
  color: #3a3a4a;
  flex: 1;
}

/* CHIPS DE PROMPTS PREDEFINIDOS */
.prompt-chips-wrapper {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.prompt-chip {
  background: #f4f4f8;
  border: 1px solid #dcdfe6;
  color: #5d3ebe;
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 9.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.prompt-chip:hover {
  background: #5d3ebe;
  color: #ffffff;
}

/* INPUT DE CHAT */
.chat-input-wrapper {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.chat-input-wrapper input {
  flex: 1;
  border: 1px solid #dcdfe6;
  border-radius: 18px;
  padding: 7px 12px;
  font-size: 10px;
  background: #fafafa;
  outline: none;
}

.send-btn {
  background: #5d3ebe;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* NUVIA LAB GRID */
.lab-subtitle {
  font-size: 8.5px;
  color: #909399;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.lab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.lab-item {
  background: #ffffff;
  border: 1px solid #e4e7ed;
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lab-item:hover,
.lab-item.active {
  border-color: #5d3ebe;
  background: #fbf9ff;
  box-shadow: 0 2px 6px rgba(93, 62, 190, 0.08);
}

.lab-item-title {
  font-size: 10.5px;
  font-weight: 700;
  color: #2c2c36;
  display: flex;
  justify-content: space-between;
}

.lab-item-desc {
  font-size: 8.5px;
  color: #8c8c99;
  margin-top: 3px;
}

/* ==========================================================================
   3. FUENTES, RESTO DE ANIMACIONES Y MASCARAS DEL SITIO
   ========================================================================== */
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 300; font-display: swap;
  src: local(''), url('fonts/inter-v12-latin-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap;
  src: local(''), url('fonts/inter-v12-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap;
  src: local(''), url('fonts/inter-v12-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap;
  src: local(''), url('fonts/inter-v12-latin-700.woff2') format('woff2');
}

#conoce-nuvi .nuvi-figure {
  width: min(85%, 650px);
  margin-left: auto;
  margin-right: 0;
  display: block;
  margin-top: -120px;
}

#conoce-nuvi .nuvi-figure svg { display: block; }

#conoce-nuvi .nuvi-text-block {
  max-width: 520px;
  margin-top: -360px !important;
}

#conoce-nuvi .nuvi-text-block > * { margin-top: 0px !important; }
#conoce-nuvi .nuvi-text-block h2 { margin-bottom: 0.5rem !important; }

#appleMask {
  height: 300vh;
  background: #000;
  position: relative;
  overflow: hidden;
  z-index: 1;
  margin-top: 0 !important;
  padding: 0 !important;
}

#appleMask .sticky { width: 100%; height: 100vh; overflow: hidden; }
#appleMask video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.mask {
  position: absolute; inset: 0; display: flex; justify-content: center; align-items: center;
  pointer-events: none; overflow: hidden;
}

.mask img {
  width: 100vw; height: 100vh; object-fit: cover; transform-origin: center center; will-change: transform;
}

#nuvia-intro { position: relative; z-index: 10; background-color: #000 !important; }
.pin-spacer { padding-top: 0 !important; margin-top: 0 !important; }
main > div:first-child { margin-bottom: 0 !important; padding-bottom: 0 !important; }

#macbookSection { height: 350vh; background-color: #000; position: relative; z-index: 2; }
#macbookSection + section, #macbookSection + div {
  position: relative; z-index: 10; background-color: #111 !important; width: 100%; min-height: 100vh;
}

#macbookSection .macbook-sticky {
  width: 100%; height: 112vh; margin-top: -6vh; display: flex; justify-content: center; align-items: flex-start; padding-top: 2vh; overflow: hidden;
}

.macbook-grid-wrapper {
  position: relative; width: 100%; max-width: 1200px; height: 700px; display: flex; justify-content: center; align-items: center;
}

.grid-screen {
  position: absolute; width: 500px; height: auto; padding: 0 !important; margin: 0 !important;
  border-radius: 8px; object-fit: cover; will-change: transform; transition: box-shadow 0.3s ease;
  border: none !important; outline: 1px solid rgba(255, 255, 255, 0.12); outline-offset: 0px;
  box-shadow: 0 20px 45px rgba(89, 89, 89, 0.9), 0 2px 8px rgba(89, 89, 89, 0.9);
}

.grid-screen.s-center { width: 815px; z-index: 1; border: none !important; outline: none !important; box-shadow: none !important; }
.s-top-left { z-index: 10; }
.s-top-right { z-index: 9; }
.s-bottom-left { z-index: 8; }
.s-bottom-right { z-index: 7; }
.s-far-left { z-index: 6; }
.s-far-right { z-index: 5; }

/* ==========================================================================
   STACKING CARDS (5 TARJETAS - FULL WIDTH)
   ========================================================================== */

.stacking-cards-section {
  position: relative;
  width: 100%;
  padding: 100px 0 0px !important; /* <--- Cambiamos 250px a 0px para eliminar el hueco negro inferior */
  overflow: visible;
}

/* Quitamos el margen inferior exagerado de la última tarjeta para que pegue limpia */
.stacking-cards-section .card-5 {
  margin-bottom: 0px !important;
}

.card-sticky {
  position: sticky;
  top: 90px; /* Punto de anclaje */
  width: 100vw;
  min-height: 80vh;
  margin-bottom: 90px;
  
  display: flex;
  justify-content: center;
  align-items: center;
  
  box-sizing: border-box;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.3s ease;
}

.card-inner-content {
  width: 100%;
  max-width: 1200px;
  padding: 0 50px;
  box-sizing: border-box;
}

.card-tag {
  display: inline-block;
  color: #ff7a00;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.card-inner-content h2 {
  font-size: 48px;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.card-inner-content p {
  font-size: 18px;
  color: #a1a1a6;
  max-width: 580px;
  line-height: 1.5;
}

/* PALETA Y NIVELES DE CAPA (z-index) */
.card-1 { z-index: 1; background: #08080a; }
.card-2 { z-index: 2; background: #101014; }
.card-3 { z-index: 3; background: #18181f; }
.card-4 { z-index: 4; background: #20202a; }
.card-5 { z-index: 5; background: #282835; }

/* ==========================================================================
   PANTALLA DE BIENVENIDA CON NUVI (LOCK SCREEN INTERACTIVA)
   ========================================================================== */
.nuvi-welcome-screen {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #1a1a24 0%, #08080a 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: relative;
  z-index: 10;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.welcome-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px; /* Achicamos la separación entre elementos */
  padding: 10px 20px 30px; /* Reducimos el padding superior para que suba todo el bloque */
  margin-top: -60px !important; /* <--- Subimos el grupo completo hacia arriba */
}

.welcome-logo-wrapper {
  margin-bottom: 75px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.insight-lock-logo {
  max-width: 260px !important; /* <--- 200% más grande que el tamaño original */
  height: auto;
  filter: none !important; /* <--- Elimina el resplandor/sombra naranja por completo */
  transition: transform 0.3s ease;
}

.nuvi-welcome-screen:hover .insight-lock-logo {
  transform: scale(1.05);
}

.nuvi-robot-icon {
  font-size: 44px;
}

.welcome-title {
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  margin: 0;
}

.welcome-title span {
  color: #FF6B06;
}

.welcome-sub {
  color: #a1a1a6;
  font-size: 13px;
  margin: 0;
  max-width: 320px;
}

/* 2. Estilos base del botón */
.click-to-enter-pill {
  margin-top: 15px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff !important; /* Texto blanco por defecto */
  padding: 10px 22px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}



/* 3. Hover del botón (Fondo naranja y texto a negro) */
.nuvi-welcome-screen:hover .click-to-enter-pill,
.click-to-enter-pill:hover {
  background: #FF8336!important;
  border-color:  #FF8336!important;
  color: #000000 !important; /* <--- Cambia el texto a negro al hacer Hover */
  box-shadow: 0 0 25px rgba(255, 122, 0, 0.6);
  transform: scale(1.05);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background: #27c93f;
  border-radius: 50%;
  box-shadow: 0 0 8px #27c93f;
  animation: pulseGlow 1.5s infinite;
}

@keyframes nuviFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ==========================================================================
   REPRODUCTOR DE VIDEO DEMO EN CHAT CON NUVI
   ========================================================================== */

#nuviVideoPreviewContainer {
  margin-top: 12px;
  width: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.nuvi-video-card {
  background: #121217;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.nuvi-video-header {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  padding: 0 4px;
}

.video-badge {
  background: rgba(255, 122, 0, 0.15);
  color: #ff7a00;
  border: 1px solid rgba(255, 122, 0, 0.3);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 2px 8px;
  border-radius: 10px;
}

.nuvi-demo-video-player {
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  background: #000000;
}

/* ==========================================================================
   NUEVO NAVBAR ALINEADO A LA IZQUIERDA Y ESTILOS INSIGHT HERO
   ========================================================================== */

.navbar-nav .nav-link {
  font-size: 14px;
  font-weight: 500;
  padding: 0 !important;
}

.navbar-nav .nav-link:hover {
  color: #00ff55 !important;
}

/* PANTALLA DE LA MACBOOK PARA INSIGHT EN HERO */
.insight-hero-display {
  background: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  height: 100% !important;
}

.insight-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  border-radius: 8px;
}

/* ==========================================================================
   AJUSTES DEL NAVBAR: ALINEACIÓN A LA IZQUIERDA Y HOVER AMARILLO LIMPIO
   ========================================================================== */

/* 1. Mover el Navbar y el Logo más hacia el margen izquierdo */
#navScroll .container-fluid {
  max-width: 65% !important; /* Expande la barra para despegar el logo del centro */
  padding-left: 20px !important;
  padding-right: 20px !important;
}

#navScroll .navbar-brand {
  margin-right: auto !important; /* Empuja el logo bien a la izquierda */
}

/* 2. Limpieza total de recuadros y fondos en el menú */
#navScroll .nav-link,
#navScroll .navbar-nav .nav-link {
  background: transparent !important; /* Elimina cualquier recuadro o fondo blanco */
  border: none !important;
  box-shadow: none !important;
  color: #000000 !important; /* Texto blanco por defecto */
  font-size: 18px;
  font-weight: 600;
  padding: 6px 12px !important;
}

/* 3. Hover solo a color Amarillo (#EACD47) sin recuadros */
#navScroll .nav-link:hover,
#navScroll .navbar-nav .nav-link:hover,
#navScroll .nav-link.active {
  background: transparent !important; /* Garantiza que NO aparezca caja blanca */
  color: #ffffff !important; /* Cambia el texto únicamente a amarillo */
}

/* ==========================================================================
   PALETA OFICIAL INSIGHT: NEGRO, BLANCO Y AMARILLO (#E5C800)
   ========================================================================== */
/* 1. Badge del Hero */
.hero-badge2 {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid #EACD47;
  border-radius: 40px;
  color: #EACD47!important; /* Amarillo oficial INSIGHT */
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  background: rgba(229, 200, 0, 0.08) !important;
}


/* 1. Badge del Hero */
.hero-badge {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid #ff9900;
  border-radius: 40px;
  color: #ff9900 !important; /* Amarillo oficial INSIGHT */
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  background: rgba(229, 200, 0, 0.08) !important;
}

/* 2. Texto resaltado en el Título (<span>) */
.hero-left h1 span {
  background: linear-gradient(90deg, #E5C800, #F7DC43) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* 3. Hover en botones secundarios o bordes de marca si aplica */
.btn-secondary:hover {
  border-color: #E5C800 !important;
  color: #E5C800 !important;
}

/* ==========================================================================
   CÁPSULA AMARILLA "INSIGHT" EN STACKING CARDS
   ========================================================================== */

/* 1. Posicionamiento vertical de la píldora dentro de la tarjeta */
.card-top-pill-wrapper {
  position: absolute; /* Permite ubicarla donde quieras arriba */
  top: -120px;          /* <--- Cuanto MÁS CHICO el número (ej: 20px, 15px), MÁS ARRIBA sube */
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 10;
}

/* 2. Tamaño y estética de la píldora */
.card-top-pill {
  background-color: #E5C800 !important;
  color: #000000 !important;
  
  /* TAMAÑO Y TIPOGRAFÍA */
  font-size: 14px !important;       /* <--- Tamaño de letra (subido de 11px a 14px) */
  font-weight: 800;
  letter-spacing: 2px;             /* <--- Espaciado entre letras */
  
  /* RELLENO / TAMAÑO DE LA CÁPSULA */
  padding: 10px 32px !important;    /* <--- El primer valor (10px) es ALTO, el segundo (32px) es ANCHO */
  border-radius: 30px !important;  /* Curvatura de las puntas */
  
  box-shadow: 0 4px 20px rgba(229, 200, 0, 0.35);
  display: inline-block;
  text-transform: uppercase;
}

/* 3. Le damos espacio al contenido interior para que no tape la píldora */
.stacking-cards-section .card-inner-content {
  position: relative;
  padding-top: 60px !important; /* <--- Aire superior para que el título no toque la píldora */
}

/* ==========================================================================
   LAYOUT A 2 COLUMNAS CON ILUSTRACIÓN PARA STACKING CARDS
   ========================================================================== */

.stacking-card-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
}

.card-text-col {
  flex: 1;
  max-width: 580px;
}

.card-image-col {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.stacking-card-img {
  max-width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  
  /* BORDES REDONDEADOS Y CORTE LIMPIO */
  border-radius: 16px !important; /* <--- Cuanto más alto el número (ej: 20px, 24px), más redondeadas las puntas */
  overflow: hidden !important;    /* Forzar a cortar el fondo blanco según la curva */
  
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.5));
  transition: transform 0.4s ease;
}

.card-sticky:hover .stacking-card-img {
  transform: translateY(-6px) scale(1.02);
}

/* Responsivo para celulares/tablets */
@media (max-width: 991px) {
  .stacking-card-grid {
    flex-direction: column;
    text-align: center;
  }
  .card-text-col {
    max-width: 100%;
  }
  .card-image-col {
    margin-top: 20px;
  }
}

/* ==========================================================================
   MARCO MACBOOK REAL (+30% MÁS GRANDE Y CORRECCIÓN DE CAPAS)
   ========================================================================== */

.macbook-png-wrapper {
  position: relative;
  width: 100%;
  max-width: 1550px !important; /* <--- Agrandado +30% para ocupar bien el lateral */
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateX(40px); /* <--- Desplaza ligeramente a la derecha para llenar el espacio */
}

.macbook-frame-img {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 1; /* Pasa al fondo por si la imagen interna tenía relleno */
  pointer-events: none;
}

/* ÁREA DE LA PANTALLA (FORZADA ARRIBA DE LA MACBOOK) */
.macbook-screen-area {
  position: absolute;
  top: 4.2%;    /* Ajuste de posición vertical */
  left: 12.1%;  /* Ajuste de posición horizontal */
  width: 75.8%; /* Ancho de la pantalla visible */
  height: 85.5%;/* Alto de la pantalla visible */
  z-index: 5 !important; /* FORZADO POR ENCIMA DEL MARCO */
  overflow: hidden;
  background: #000;
  border-radius: 4px;
}

.macbook-screen-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  display: block;
}

/* ==========================================================================
   CONTROL DE ZOOM EN VIDEO DE NUVIA
   ========================================================================== */

#appleMask video {
  /* CAMBIÁ ESTE NÚMERO PARA MANEJAR EL ZOOM: */
  /* 1.0 = Tamaño normal (100%) */
  /* 0.85 = Aleja un poco (menos zoom) */
  /* 0.70 = Aleja bastante más */
  transform: scale(1.60) !important;
  
  /* Evita que se recorten los bordes del video */
  object-fit: contain !important; 
}

/* ==========================================================================
   ESFUMADO NEGRO INFERIOR PARA EL VIDEO DE NUVIA (FADE TO BLACK)
   No se usa mask-image sobre el <video> porque los navegadores lo manejan
   de forma inconsistente ahí. En vez de "recortar" el video, ponemos un
   div encima con degradé de transparente a negro — mismo resultado visual,
   funciona siempre.
   ========================================================================== */

#appleMask .sticky {
  position: relative; /* para que el overlay se posicione respecto a este contenedor */
}



/* ==========================================================================
   TARJETAS "PRESENTAMOS NUVIA" + CAMINO ANIMADO ENTRE ELLAS
   Antes .nuvia-service-item no tenía ningún estilo propio, y no había
   conector visual entre las 4 tarjetas. Se agrega todo acá.
   ========================================================================== */

.nuvia-service-item {
  position: relative;
  z-index: 2;
  background: rgba(190, 175, 194, 0.06);
  border: 1px solid rgba(190, 175, 194, 0.18);
  border-radius: 18px;
  padding: 28px 22px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.nuvia-service-item:hover {
  transform: translateY(-4px);
  border-color: #695e93;
  background: rgba(190, 175, 194, 0.1);
}

.nuvia-service-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px auto;
  border-radius: 50%;
  background: linear-gradient(135deg, #573583, #27064c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(87, 53, 131, 0.45);
}

.btn-service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: #beafc2;
  text-decoration: none;
  transition: color 0.2s ease, gap 0.2s ease;
}

.btn-service-link:hover {
  color: #ffffff;
  gap: 10px;
}

/* Conector SVG animado entre tarjetas (mismo mecanismo que DataNova:
   dos paths superpuestos, uno fijo tenue y otro animado con dash-offset) */
.nuvia-path-connector {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.nuvia-path-connector .base-line {
  stroke: rgba(190, 175, 194, 0.25);
}

.nuvia-path-connector .beam-line {
  stroke: #beafc2;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: nuvia-beam-animation 5s ease-in-out infinite;
}

.nuvia-path-connector.delay-2 .beam-line {
  animation-delay: 1.7s;
}

.nuvia-path-connector.delay-3 .beam-line {
  animation-delay: 3.4s;
}

@keyframes nuvia-beam-animation {
  0%   { stroke-dashoffset: 300; }
  50%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -300; }
}

@media (max-width: 767px) {
  .nuvia-path-connector { display: none; }
}

/* ==========================================================================
   REDISEÑO "PRESENTAMOS NUVIA" — cascada diagonal tipo referencia Astro
   ========================================================================== */

.nuvia-hero-card {
  background: transparent;
  border-radius: 0;
  padding: 0;
  overflow: visible;
  position: relative;
}

.nuvia-stack-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 34px;
  padding: 10px 0;
}

.nuvia-stack-card {
  position: relative;
  z-index: 2;
  border-radius: 20px;
  padding: 26px 36px;
  width: 40%;
  min-width: 340px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.28);
}

.nuvia-stack-card .bubble-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.nuvia-stack-card h3 {
  color: #27064c;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 6px;
}

.nuvia-stack-card p {
  color: #574f66;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 0;
}

/* Burbujas del Directivo (pregunta) — tarjetas 1 y 4 */
.nuvia-stack-card.role-user {
  background: #ffffff;
  border-bottom-left-radius: 6px;
}
.nuvia-stack-card.role-user .bubble-tag {
  background: rgba(190, 175, 194, 0.25);
  color: #574f66;
}

/* Burbujas de NUVI (análisis/respuesta) — tarjetas 2 y 3 */
.nuvia-stack-card.role-nuvi {
  background: linear-gradient(135deg, #a98df2 0%, #ffffff 100%);
  border: 1px solid rgba(87, 53, 131, 0.18);
  border-bottom-left-radius: 6px;
}
.nuvia-stack-card.role-nuvi .bubble-tag {
  background: linear-gradient(135deg, #573583, #27064c);
  color: #ffffff;
}

.card-pos-1 { align-self: flex-start; margin-left: 0; }
.card-pos-2 { align-self: flex-start; margin-left: 9%; }
.card-pos-3 { align-self: flex-start; margin-left: 18%; }
.card-pos-4 { align-self: flex-start; margin-left: 27%; } /* sigue la misma escalera que las anteriores */

@media (max-width: 767px) {
  .nuvia-stack-card { width: 100%; }
  .card-pos-2, .card-pos-3, .card-pos-4 { margin-left: 0; }
  .nuvia-path-connector { display: none; }
}

/* ==========================================================================
   MARQUESINA INFINITA — herramientas de NUVIA (loop CSS puro, sin JS)
   ========================================================================== */

.nuvia-marquee-row {
  overflow: hidden;
  width: 100%;
  margin-bottom: 18px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.nuvia-marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: nuvia-marquee-scroll 22s linear infinite;
}

.nuvia-marquee-reverse .nuvia-marquee-track {
  animation-direction: reverse;
  animation-duration: 18s;
}

@keyframes nuvia-marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); } /* -50% porque la lista está duplicada */
}

.nuvia-pill {
  flex: 0 0 auto;
  padding: 14px 30px;
  border-radius: 100px;
  background: rgba(190, 175, 194, 0.08);
  border: 1px solid rgba(190, 175, 194, 0.25);
  color: #beafc2;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}

/* Carrusel propio de NUVIA Slides (sin Bootstrap) */
.nuvia-carousel {
  position: relative;
  overflow: hidden;
}

.nuvia-carousel-track {
  position: relative;
}

.nuvia-carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease;
}

.nuvia-carousel-item.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

/* Botones prev/next del carrusel propio (ya no los dibuja Bootstrap,
   porque el contenedor dejó de tener la clase "carousel") */
.nuvia-carousel .carousel-control-prev,
.nuvia-carousel .carousel-control-next {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  border: 0;
  background: transparent;
  opacity: 0.75;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.nuvia-carousel .carousel-control-prev { left: 0; }
.nuvia-carousel .carousel-control-next { right: 0; }

.nuvia-carousel .carousel-control-prev:hover,
.nuvia-carousel .carousel-control-next:hover {
  opacity: 1;
}

.nuvia-carousel .carousel-control-prev-icon,
.nuvia-carousel .carousel-control-next-icon {
  display: inline-block;
  width: 26px;
  height: 26px;
  background-repeat: no-repeat;
  background-position: 50%;
  background-size: 100% 100%;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.nuvia-carousel .carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

.nuvia-carousel .carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* ==========================================================================
   NUVIA EN ACCIÓN — 4 demos reales (Discovery, Video, Podcast, Slides)
   ========================================================================== */


.nuvia-accion-card {
  background: rgba(190, 175, 194, 0.05);
  border: 1px solid rgba(190, 175, 194, 0.18);
  border-radius: 20px;
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.nuvia-accion-card-header {
  margin-bottom: 16px;
}

.nuvia-accion-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  background: linear-gradient(135deg, #573583, #27064c);
  color: #ffffff;
  margin-bottom: 10px;
}

.nuvia-accion-card-header h3 {
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  line-height: 1.35;
}

.nuvia-accion-frame {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(190, 175, 194, 0.15);
}

.nuvia-accion-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.nuvia-accion-audio-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  border-radius: 14px;
  background: linear-gradient(160deg, #2a1a42, #1a0d2e);
  border: 1px solid rgba(190, 175, 194, 0.15);
  padding: 36px 24px;
}

.nuvia-accion-waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 60px;
}

.nuvia-accion-waveform span {
  display: block;
  width: 5px;
  border-radius: 3px;
  background: linear-gradient(180deg, #beafc2, #695e93);
  animation: nuvia-waveform-bounce 1.4s ease-in-out infinite;
}

.nuvia-accion-waveform span:nth-child(1)  { height: 18px; animation-delay: -1.2s; }
.nuvia-accion-waveform span:nth-child(2)  { height: 34px; animation-delay: -1.0s; }
.nuvia-accion-waveform span:nth-child(3)  { height: 50px; animation-delay: -0.8s; }
.nuvia-accion-waveform span:nth-child(4)  { height: 28px; animation-delay: -0.6s; }
.nuvia-accion-waveform span:nth-child(5)  { height: 60px; animation-delay: -1.3s; }
.nuvia-accion-waveform span:nth-child(6)  { height: 22px; animation-delay: -0.4s; }
.nuvia-accion-waveform span:nth-child(7)  { height: 44px; animation-delay: -0.9s; }
.nuvia-accion-waveform span:nth-child(8)  { height: 16px; animation-delay: -0.2s; }
.nuvia-accion-waveform span:nth-child(9)  { height: 52px; animation-delay: -1.1s; }
.nuvia-accion-waveform span:nth-child(10) { height: 30px; animation-delay: -0.5s; }
.nuvia-accion-waveform span:nth-child(11) { height: 20px; animation-delay: -0.7s; }
.nuvia-accion-waveform span:nth-child(12) { height: 40px; animation-delay: -0.3s; }
.nuvia-accion-waveform span:nth-child(13) { height: 24px; animation-delay: -1.4s; }

@keyframes nuvia-waveform-bounce {
  0%, 100% { transform: scaleY(0.4); opacity: 0.6; }
  50%      { transform: scaleY(1); opacity: 1; }
}

/* Discovery: botón de pantalla completa, superpuesto */
.nuvia-accion-frame-discovery {
  position: relative;
}

.nuvia-accion-fullscreen-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 3;
  background: rgba(26, 13, 46, 0.85);
  color: #ffffff;
  border: 1px solid rgba(190, 175, 194, 0.35);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(4px);
}

.nuvia-accion-fullscreen-btn:hover {
  background: #573583;
}

.nuvia-accion-audio-icon {
  font-size: 40px;
  color: #beafc2;
}

@media (max-width: 767px) {
  .nuvia-accion-frame { aspect-ratio: 16 / 11; }
}

/* =========================================================
   NUVIA OCEAN
   ========================================================= */

.hero-section {
    position: relative;
    overflow: hidden;
}

/* La ola ocupa TODO el ancho y queda detrás de absolutamente todo */
.nuvia-ocean {
    position: absolute;
    left: 50%;
    bottom: -5%;
    width: 100vw;
    height: 65%;
    transform: translateX(-50%);
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Olas */
.nuvia-wave {
    position: absolute;
    left: -10%;
    width: 120%;
    height: 100%;
    bottom: -72%;

    background: #FDB913;

    border-radius: 50% 50% 0 0 / 25% 25% 0 0;

    transform-origin: center bottom;

    animation: nuviaOcean 10s ease-in-out infinite alternate;
}

/* Primera ola — la protagonista */
.nuvia-wave-1 {
    bottom: -70%;
    opacity: 0.95;
    animation-duration: 10s;
}

/* Segunda ola — profundidad */
.nuvia-wave-2 {
    bottom: -78%;
    opacity: 0.55;
    animation-duration: 13s;
    animation-delay: -3s;
}

/* Tercera ola — movimiento sutil */
.nuvia-wave-3 {
    bottom: -85%;
    opacity: 0.25;
    animation-duration: 17s;
    animation-delay: -6s;
}


/* Movimiento orgánico de la ola */

@keyframes nuviaOcean {

    0% {
        transform: translateX(-6%) scaleX(1.02);
    }

    50% {
        transform: translateX(3%) scaleX(1.06);
    }

    100% {
        transform: translateX(-3%) scaleX(1.02);
    }

}


/* TODO el contenido queda delante de la ola */

.hero-content {
    position: relative;
    z-index: 2;
}


/* ==========================================================================
   ESTILOS COMPLETOS Y DEFINITIVOS PARA LA OLA EN EL TECHO Y HERO
   ========================================================================== */

/* 1. Base del cuerpo */
body {
  position: relative !important;
}

/* 2. Contenedor de la ola fijado al techo cero */
.absolute-top-wave-container {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 280px !important; /* Alto total de la bajada de la ola */
  z-index: 1 !important;  /* Detrás de la barra y la laptop */
  pointer-events: none !important;
  overflow: hidden !important;
}

/* 3. Base del vector SVG */
.animated-wave-top {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 200% !important;
  height: 100% !important;
  display: block !important;
  transform-origin: top center !important; /* Mantiene el techo rígido */
}

/* 4. Animaciones de las capas */
.wave-top-back {
  animation: waveHorizontalMove 10s ease-in-out infinite alternate !important;
  opacity: 0.8 !important;
}

.wave-top-front {
  animation: waveHorizontalMove 7s ease-in-out infinite alternate !important;
}

/* 5. Keyframes de ondulación solo inferior/horizontal */
@keyframes waveHorizontalMove {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-15%);
  }
  100% {
    transform: translateX(-30%);
  }
}

/* 6. CORRECCIÓN NAVBAR: Flota transparente arriba sin seguir el scroll */
#navScroll,
nav.navbar {
  background: transparent !important;
  z-index: 9999 !important;
  position: absolute !important; /* <--- Cambiado de fixed a absolute para que NO te siga al scrollear */
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
}

/* 7. Mantenimiento de la posición del Hero y la Laptop */
.hero-section {
  background: transparent !important;
  position: relative !important;
  z-index: 2 !important;
  padding-top: 140px !important;
}

.hero-content {
  position: relative !important;
  z-index: 5 !important;
}

.hero-right {
  padding-top: 20px !important;
}

/* CURSOR PARPADEANTE DEL EFECTO TYPEWRITER */
.typewriter-cursor {
  color: #F7DC43;
  font-weight: 400;
  animation: typewriter-blink 0.8s step-end infinite;
}

@keyframes typewriter-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ==========================================================================
   FORMULARIO "AGENDÁ UNA DEMO" — rediseño completo
   ========================================================================== */

#demo-form {
  padding-top: 220px !important;
}

.demo-form-card {
  background: linear-gradient(160deg, #0e0e14 0%, #050507 100%);
  border: 1px solid rgba(190, 175, 194, 0.14);
  border-radius: 28px;
  padding: 56px 48px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}

.demo-form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #beafc2;
  margin-bottom: 8px;
}

.demo-form-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(190, 175, 194, 0.22);
  border-radius: 12px;
  padding: 13px 16px;
  color: #ffffff;
  font-size: 15px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.demo-form-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.demo-form-input:focus {
  outline: none;
  border-color: #E5C800;
  background: rgba(229, 200, 0, 0.05);
}

textarea.demo-form-input {
  resize: vertical;
  min-height: 110px;
}

.demo-form-submit {
  width: auto;
  min-width: 260px;
  display: block;
  margin: 0 auto;
  border: none;
  border-radius: 50px;
  padding: 14px 40px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #000000;
  background: linear-gradient(90deg, #E5C800, #F7DC43);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.demo-form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(229, 200, 0, 0.25);
}

@media (max-width: 767px) {
  .demo-form-card { padding: 36px 24px; }
}

/* Esquinas redondeadas para la captura de Modo Accesible/Desafío */
#modo-inclusion img {
  border-radius: 24px;
}
 