/* ==========================================================================
   🏨 SOFTWARE HOTELERO PRO — ESTILOS DE ULTRA-ALTA FIDELIDAD (TEMA CLARO)
   ========================================================================== */

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

:root {
  /* Paleta de Colores HSL Claras */
  --bg-primary: #f8fafc;        /* Blanco Glaciar */
  --bg-secondary: #ffffff;      /* Blanco Puro */
  --bg-tertiary: #f1f5f9;       /* Gris ultra claro */
  
  --primary: #0f172a;           /* Azul pizarra profundo (Texto Principal) */
  --secondary: #475569;         /* Gris Slate (Texto Secundario) */
  
  --accent: #06b6d4;            /* Turquesa Eléctrico */
  --accent-rgb: 6, 182, 212;
  --accent-hover: #0891b2;
  
  --brand: #2563eb;             /* Azul Cobalto */
  --brand-rgb: 37, 99, 235;
  --brand-gradient: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  
  /* Glassmorphism en Tema Claro */
  --glass-bg: rgba(255, 255, 255, 0.45);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.04);
  --glass-shadow-hover: 0 12px 40px 0 rgba(15, 23, 42, 0.08);
  --border-light: rgba(15, 23, 42, 0.06);

  /* Tipografías */
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  /* Transiciones */
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ==========================================================================
   FONDO INTERACTIVO THREE.JS Y AURORAS ANIMADAS
   ========================================================================== */
#webgl-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0.9;
}

/* Decoración de Gradiente en el Fondo Dinámico y Pulsante */
.bg-gradient-aurora {
  position: fixed;
  top: -20%;
  right: -10%;
  width: 70vw;
  height: 70vw;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, rgba(37, 99, 235, 0.04) 40%, rgba(139, 92, 246, 0.02) 70%, rgba(255, 255, 255, 0) 100%);
  z-index: -2;
  pointer-events: none;
  filter: blur(100px);
  animation: aurora-move 20s infinite alternate ease-in-out;
}

.bg-gradient-aurora-2 {
  position: fixed;
  bottom: -20%;
  left: -15%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, rgba(139, 92, 246, 0.05) 45%, rgba(6, 182, 212, 0.02) 75%, rgba(255, 255, 255, 0) 100%);
  z-index: -2;
  pointer-events: none;
  filter: blur(100px);
  animation: aurora-move-reverse 25s infinite alternate ease-in-out;
}

@keyframes aurora-move {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-5%, 8%) scale(1.1); }
  100% { transform: translate(4%, -5%) scale(0.95); }
}

@keyframes aurora-move-reverse {
  0% { transform: translate(0, 0) scale(0.95); }
  50% { transform: translate(8%, -6%) scale(1.05); }
  100% { transform: translate(-3%, 7%) scale(1); }
}

/* ==========================================================================
   TIPOGRAFÍA Y ELEMENTOS REUSABLES
   ========================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.15;
}

p {
  color: var(--secondary);
  line-height: 1.6;
  font-size: 1.05rem;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Botones Premium */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--brand-gradient);
  color: #ffffff;
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.25), 0 8px 10px -6px rgba(37, 99, 235, 0.15);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 30px -10px rgba(37, 99, 235, 0.35), 0 10px 15px -5px rgba(37, 99, 235, 0.2);
}

.btn-secondary {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: var(--primary);
  box-shadow: var(--glass-shadow);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(37, 99, 235, 0.3);
  transform: translateY(-2px);
  box-shadow: var(--glass-shadow-hover);
}

/* Etiquetas e Hitos */
.badge-promo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.18);
  color: var(--accent-hover);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.05);
}

/* Efecto Glassmorphism Premium con Borde de Brillo Reactivo y Neumorfismo */
.glass-panel {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 
    0 10px 40px -10px rgba(15, 23, 42, 0.04), 
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -1px 0 rgba(15, 23, 42, 0.02);
  border-radius: 24px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.glass-panel::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.25) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-20deg);
  transition: 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.glass-panel:hover::after {
  left: 120%;
}

.glass-panel:hover {
  box-shadow: 
    0 20px 50px -15px rgba(15, 23, 42, 0.08), 
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-color: rgba(37, 99, 235, 0.25);
  transform: translateY(-4px) scale(1.01);
}

/* ==========================================================================
   HEADER / NAVEGACIÓN
   ========================================================================== */
.main-header {
  position: fixed;
  top: 1.5rem;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: var(--transition-smooth);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary);
}

.logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.menu-toggle-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
  z-index: 110;
  transition: var(--transition-fast);
}

.menu-toggle-btn:hover {
  color: var(--brand);
}

.nav-link {
  text-decoration: none;
  color: var(--secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  position: relative;
  padding: 0.25rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-gradient);
  transition: var(--transition-smooth);
  border-radius: 2px;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after {
  width: 100%;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  padding-top: 10rem;
  padding-bottom: 7rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  z-index: 2;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero-title span {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  max-width: 580px;
}

.hero-ctas {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.hero-features-strip {
  display: flex;
  gap: 2.5rem;
}

.h-feat-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.h-feat-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
}

.h-feat-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

.h-feat-text p {
  font-size: 0.85rem;
}

/* Visualizador 3D interactivo en Hero */
.hero-visualizer {
  position: relative;
  width: 100%;
  height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.interactive-mockup {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px -15px rgba(15, 23, 42, 0.08);
  border: 1px solid var(--glass-border);
  background: var(--bg-secondary);
}

.mockup-header {
  height: 45px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  gap: 0.5rem;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}

.mockup-dot.red { background: #ef4444; }
.mockup-dot.yellow { background: #f59e0b; }
.mockup-dot.green { background: #10b981; }

.mockup-screen {
  width: 100%;
  height: calc(100% - 45px);
  position: relative;
}

.mockup-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
}

.mockup-image.active {
  opacity: 1;
  z-index: 1;
}

/* Controles de la Galería Interactiva */
.mockup-nav {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  border: 1px solid var(--glass-border);
}

.mockup-nav-btn {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.mockup-nav-btn.active {
  background: var(--brand);
  transform: scale(1.3);
}

/* ==========================================================================
   SECCIONES DE CARACTERÍSTICAS (DISEÑO ASIMÉTRICO / ORGÁNICO)
   ========================================================================== */
.section {
  padding: 7rem 0;
  position: relative;
}

.section-tag {
  color: var(--brand);
  text-transform: uppercase;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.section-desc {
  max-width: 650px;
  margin-bottom: 4rem;
}

/* Layout Asimétrico de Flujo */
.flow-layout {
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

.flow-step {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 5rem;
  align-items: center;
}

.flow-step:nth-child(even) {
  grid-template-columns: 0.95fr 1.05fr;
}

.flow-step:nth-child(even) .flow-text {
  order: 2;
}

.flow-step:nth-child(even) .flow-visual {
  order: 1;
}

.flow-text {
  padding-right: 2rem;
}

.flow-step:nth-child(even) .flow-text {
  padding-right: 0;
  padding-left: 2rem;
}

.flow-text h3 {
  font-size: 2rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.flow-list {
  list-style: none;
  margin-top: 1.75rem;
}

.flow-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.flow-list-item i {
  color: var(--accent-hover);
  margin-top: 0.25rem;
  font-size: 1.1rem;
}

.flow-visual {
  position: relative;
}

.flow-card-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.06);
  border: 1px solid var(--glass-border);
  background: var(--bg-secondary);
  aspect-ratio: 16/10;
}

.flow-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.flow-card-wrapper:hover .flow-card-img {
  transform: scale(1.04);
}

/* Tarjeta flotante interactiva de info extra */
.floating-overlay-card {
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  width: 260px;
  padding: 1.5rem;
  border-radius: 16px;
  z-index: 5;
}

.flow-step:nth-child(even) .floating-overlay-card {
  right: auto;
  left: -2rem;
}

.floating-overlay-card h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.floating-overlay-card p {
  font-size: 0.85rem;
}

/* ==========================================================================
   MÓDULO DE LA ARQUITECTURA LAN Y SEGURIDAD HWID
   ========================================================================== */
.tech-architecture {
  background: var(--bg-tertiary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3.5rem;
}

.tech-card {
  padding: 3rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tech-card-header {
  margin-bottom: 2rem;
}

.tech-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--brand-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.3);
}

.tech-card h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.tech-features-list {
  list-style: none;
  margin-top: 1.5rem;
}

.tech-feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.06);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Clases para la rejilla de galería y tarjetas sin estilos inline */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.gallery-card {
  padding: 0.75rem;
  border-radius: 20px;
}

.gallery-img-container {
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 16/10;
}

.gallery-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.gallery-img-container img:hover {
  transform: scale(1.05);
}

.gallery-card-last {
  grid-column: span 1;
  justify-self: center;
  width: 100%;
  max-width: 380px;
}

/* Modificaciones de estructuración en los precios */
.price-display-wrapper {
  background: rgba(37, 99, 235, 0.05);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px dashed rgba(37, 99, 235, 0.2);
  margin-bottom: 2rem;
}

.price-promo-tag {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.badge-pricing-promo {
  background: var(--brand-gradient);
  color: #fff;
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.pricing-card-featured {
  border: 2px solid var(--brand);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
}

.price-currency-icon {
  font-size: 2.25rem;
  font-weight: 600;
  font-family: var(--font-title);
  color: var(--brand);
}

.price-amount-large {
  font-size: 6rem;
  font-weight: 800;
  font-family: var(--font-title);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--primary);
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   TABLA DE PRECIOS Y COMPARATIVA
   ========================================================================== */
.pricing {
  position: relative;
}

.pricing-cards-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: stretch;
  margin-top: 2rem;
}

.pricing-card-main {
  padding: 4rem;
  border-radius: 32px;
  background: var(--bg-secondary);
  border: 1px solid rgba(37, 99, 235, 0.15);
  box-shadow: 0 30px 60px -20px rgba(37, 99, 235, 0.08);
  position: relative;
  overflow: hidden;
}

.pricing-card-main::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: var(--brand-gradient);
}

.badge-pricing {
  background: var(--brand-gradient);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.price-display {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.price-currency {
  font-size: 2.25rem;
  font-weight: 600;
  font-family: var(--font-title);
  color: var(--brand);
}

.price-amount {
  font-size: 6rem;
  font-weight: 800;
  font-family: var(--font-title);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--primary);
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.price-period {
  font-size: 1.1rem;
  color: var(--secondary);
  font-weight: 500;
}

.pricing-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.pricing-feat-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.pricing-feat-item i {
  color: #10b981;
  font-size: 1.15rem;
}

.pricing-feat-item h5 {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.pricing-feat-item p {
  font-size: 0.85rem;
}

/* Card comparativa mensual */
.pricing-card-comparison {
  padding: 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.02);
  border: 1px dashed var(--border-light);
}

.pricing-card-comparison h4 {
  font-size: 1.35rem;
  margin-bottom: 1.5rem;
}

.comparison-list {
  list-style: none;
}

.comparison-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.95rem;
  color: var(--secondary);
}

.comparison-item.negative i {
  color: #ef4444;
}

.comparison-summary-box {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.1);
  padding: 1.25rem;
  border-radius: 12px;
  color: #ef4444;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 2rem;
  text-align: center;
}

/* ==========================================================================
   ACORDEÓN DE PREGUNTAS FRECUENTES (FAQs)
   ========================================================================== */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--primary);
  transition: var(--transition-fast);
}

.faq-trigger:hover {
  background: rgba(255, 255, 255, 0.7);
}

.faq-icon-box {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.faq-item.active .faq-icon-box {
  transform: rotate(45deg);
  background: var(--brand);
  color: white;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(255, 255, 255, 0.3);
}

.faq-content-inner {
  padding: 0 2rem 1.5rem 2rem;
}

/* ==========================================================================
   FORMULARIO DE CONTACTO Y CTA FINAL
   ========================================================================== */
.cta-section {
  padding-bottom: 10rem;
}

.cta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
  align-items: center;
}

.contact-form-card {
  padding: 3rem;
  border-radius: 28px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.8);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-fast);
  color: var(--primary);
}

.form-control:focus {
  outline: none;
  border-color: var(--brand);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

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

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
  padding: 6rem 0 3rem 0;
  position: relative;
  z-index: 10;
  color: var(--secondary);
}

/* Contenedor principal con efecto glassmorphic en el footer */
.footer-wrap {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 32px;
  padding: 4rem;
  box-shadow: 
    0 20px 40px -15px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}

.footer-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--brand-gradient);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand span {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary);
}

.footer-brand p {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--secondary);
  max-width: 320px;
}

.footer-nav-col h5 {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.85rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--secondary);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--brand);
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #64748b;
}

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

.footer-bottom a:hover {
  color: #ffffff;
}

/* ==========================================================================
   ASISTENTE DE VENTAS CON IA (CHAT FLOTANTE GLASSMORPHISM)
   ========================================================================== */
#ai-assistant-wrapper {
  position: fixed;
  bottom: 7.5rem; /* Colocado encima del botón de WhatsApp */
  right: 2rem;
  z-index: 999;
  font-family: var(--font-body);
}

#ai-assistant-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--brand);
  cursor: pointer;
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
  position: relative;
  background: var(--glass-bg);
  transition: var(--transition-smooth);
}

#ai-assistant-toggle:hover {
  transform: scale(1.1) rotate(5deg);
  background: rgba(255, 255, 255, 0.95);
  color: var(--accent-hover);
}

.ai-status-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background: #10b981;
  border-radius: 50%;
  border: 2px solid white;
}

#ai-chat-box {
  position: absolute;
  bottom: 4.5rem;
  right: 0;
  width: 360px;
  height: 480px;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1);
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: var(--transition-smooth);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--glass-border);
}

#ai-chat-box.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.ai-chat-header {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ai-chat-header h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

#ai-chat-close {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--secondary);
  transition: var(--transition-fast);
}

#ai-chat-close:hover {
  color: #ef4444;
}

#ai-chat-messages {
  flex: 1;
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ai-message {
  max-width: 80%;
  padding: 0.85rem 1.15rem;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.ai-message.bot {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.02);
}

.ai-message.user {
  background: var(--brand-gradient);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  box-shadow: 0 6px 15px rgba(37, 99, 235, 0.15);
}

#ai-chat-input-form {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.6);
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 0.5rem;
}

#ai-chat-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: white;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--primary);
}

#ai-chat-input:focus {
  outline: none;
  border-color: var(--brand);
}

#ai-chat-input-form button {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--brand-gradient);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

#ai-chat-input-form button:hover {
  transform: translateY(-2px);
}

/* Ajustes responsivos para pantallas pequeñas */
@media (max-width: 640px) {
  #ai-assistant-wrapper {
    bottom: 6.5rem;
    right: 1.25rem;
  }
  #ai-chat-box {
    width: calc(100vw - 2.5rem);
    height: 420px;
  }
}

/* ==========================================================================
   MEDIAS QUERIES (RESPONSIVO MÓVIL)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid, .tech-grid, .pricing-cards-container, .cta-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-visualizer {
    height: 380px;
  }
  
  .flow-step, .flow-step:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .flow-step:nth-child(even) .flow-text {
    order: 1;
  }
  
  .flow-step:nth-child(even) .flow-visual {
    order: 2;
  }
  
  .flow-text, .flow-step:nth-child(even) .flow-text {
    padding: 0;
  }
  
  .floating-overlay-card, .flow-step:nth-child(even) .floating-overlay-card {
    right: 1rem;
    left: auto;
    bottom: -1rem;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 1.25rem;
  }
  
  .hero {
    padding-top: 8rem;
  }
  
  .hero-title {
    font-size: 2.25rem;
  }
  
  .hero-ctas {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .hero-features-strip {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .pricing-features-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-card-main {
    padding: 2rem;
  }
  
  .price-display {
    flex-wrap: wrap;
    gap: 0.25rem;
  }
  
  .price-amount, .price-amount-large {
    font-size: 3rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .nav-container {
    padding: 0.75rem 1.5rem;
    position: relative;
  }

  .menu-toggle-btn {
    display: block; /* Mostrar botón hamburguesa en móvil */
  }

  .nav-menu-wrapper {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    padding: 1.5rem 0;
    display: none;
    flex-direction: column;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
    max-width: 100%;
    z-index: 105;
  }

  .nav-menu-wrapper.active {
    display: flex;
  }

  .nav-menu {
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
    align-items: center;
  }

  .nav-link {
    font-size: 1.05rem;
    padding: 0.5rem 0;
    width: 100%;
    text-align: center;
  }

  .nav-menu li a.btn-primary {
    display: inline-flex; /* Mostrar el botón principal centrado en el desplegable */
    margin-top: 0.5rem;
    padding: 0.75rem 2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }

  /* Ajustes extras para móvil */
  .footer-wrap {
    padding: 2rem 1.5rem;
    border-radius: 20px;
  }

  .floating-overlay-card {
    position: relative;
    right: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 100%;
    margin-top: 1rem;
  }

  .hero-visualizer {
    height: 300px;
    max-width: 100%;
    overflow: hidden;
  }

  .pricing-cards-container {
    grid-template-columns: 1fr;
  }

  .pricing-card-comparison {
    padding: 2rem;
  }

  /* Evitar desbordamiento por la derecha */
  body, html {
    overflow-x: hidden;
    width: 100%;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 0.5rem;
  }

  .hero-title {
    word-wrap: break-word;
    font-size: 2.1rem;
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
}
