/* ==========================================================================
   Damavis - Private AI Agents Landing Page Style Sheet
   ========================================================================== */

/* Import Official Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&family=Rubik:wght@400;500;600;700;800&display=swap');

/* Design Tokens & Variables */
:root {
  --color-primary: #01153a;
  /* Damavis Dark Navy */
  --color-accent: #00fda1;
  /* Neon Green/Cyan Accent */
  --color-accent-hover: #00e08f;
  /* Darker Neon Accent */
  --color-accent-rgb: 0, 253, 170;
  /* RGB components for opacity tricks */
  --color-bg-dark: #051c3d;
  /* Deep Navy Hero / Footer */
  --color-bg-dark-accent: #0a2752;
  /* Slightly lighter deep navy for dark cards */
  --color-bg-light: #f2f2f9;
  /* Light Mode Main Background */
  --color-bg-light-sec: #fafaff;
  /* Soft alternative light background */
  --color-bg-card: #ffffff;
  /* Card White background */
  --color-text-navy: #01153a;
  /* Navy main text */
  --color-text-light: #ffffff;
  /* White/Light text */
  --color-text-muted: #64748b;
  /* Muted text on light backgrounds */
  --color-text-muted-dark: #94a3b8;
  /* Muted text on dark backgrounds */
  --color-border: #e2e8f0;
  /* Light grey borders */
  --color-border-dark: #1b3860;
  /* Dark navy borders */
  --font-title: 'Rubik', sans-serif;
  --font-body: 'Roboto', sans-serif;
  --shadow-sm: 0 2px 4px rgba(1, 21, 58, 0.05);
  --shadow-md: 0 8px 24px rgba(1, 21, 58, 0.08);
  --shadow-lg: 0 16px 40px rgba(1, 21, 58, 0.12);
  --shadow-accent: 0 0 20px rgba(0, 253, 170, 0.35);
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  --border-radius: 12px;
  --border-radius-lg: 20px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-title);
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.25;
}

p {
  color: var(--color-text-muted);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Base Layout Containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 100px 0;
  position: relative;
}

.section-light {
  background-color: var(--color-bg-light);
}

.section-light-sec {
  background-color: var(--color-bg-light-sec);
}

.section-dark {
  background-color: #f2f2f9;
  color: var(--color-text-light);
}

.section-dark h2 {
  color: #000000;
}

.section-dark h3,
.section-dark h4 {
  color: var(--color-text-light);
}

.section-dark p {
  color: var(--color-text-muted-dark);
}

/* Section Header Typography */
.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.section-header p {
  font-size: 1.125rem;
}

/* Glowing Accent Line for Titles */
.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: #051c3d;
  border-radius: 2px;
}

/* Buttons System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 28px;
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 20px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: center;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-secondary:hover {
  background-color: rgba(0, 253, 170, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(0, 253, 170, 0.2);
}

.btn-case {
  background-color: #022387;
  color: #ffffff;
  font-size: 0.6rem;
  box-shadow: var(--color-accent);
  padding: 6px 12px;
  display: flex !important;
  width: fit-content !important;
  margin-left: 0 !important;
  margin-right: auto !important;
}

.btn-case:hover {
  background-color: #00ffa8;
  color: #000000;
  font-size: 0.6rem;
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(0, 253, 170, 0.2);
  padding: 6px 12px;
}

.btn-navy {
  background-color: var(--color-primary);
  color: var(--color-text-light);
}

.btn-navy:hover {
  background-color: #032157;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-navy {
  background-color: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-outline-navy:hover {
  background-color: rgba(1, 21, 58, 0.05);
  transform: translateY(-2px);
}

/* Header & Sticky Navigation */
header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 24px 0;
  transition: all var(--transition-normal);
}

header.sticky {
  position: fixed;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 14px 0;
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 180px !important; /* Dale un ancho fijo al enlace para que tenga donde centrar */
  height: 60px !important;
  overflow: hidden !important;
}

.logo-link img {
  width: 160px !important;
  height: auto !important;
  display: block !important;
  margin: 0 auto !important; /* Centrado extra por si acaso */
  object-fit: contain !important;
}

.logo-light,
.logo-dark {
  height: 100%;
  width: auto;
  transition: opacity var(--transition-normal);
}

/* Toggle logos based on header state */
header.sticky .logo-light {
  opacity: 0;
  position: absolute;
  pointer-events: none;
}

header:not(.sticky) .logo-dark {
  opacity: 0;
  position: absolute;
  pointer-events: none;
}

header.sticky .logo-dark {
  opacity: 1;
}

header:not(.sticky) .logo-light {
  opacity: 1;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 36px;
}

.nav-link {
  font-family: var(--font-title);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width var(--transition-normal);
}

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

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

/* Active links in sticky dark text */
header.sticky .nav-link {
  color: var(--color-primary);
}

header.sticky .nav-link:hover {
  color: #000000;
}

header.sticky .nav-link::after {
  background-color: #01ffa8;
}

/* CTA button inside header */
.header-cta .btn {
  padding: 8px 20px;
  font-size: 0.9rem;
  display: inline-block !important;
  vertical-align: top !important;
  margin-top: 10px !important;
 }
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--color-text-light);
  margin-bottom: 5px;
  transition: all 0.3s ease;
  border-radius: 2px;
}

header.sticky .mobile-toggle span {
  background-color: var(--color-primary);
}

/* Hero Section (Aesthetic, Dark, AI-focused) */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 140px;
  padding-bottom: 80px;
  background: radial-gradient(circle at 80% 20%, #0c336b 0%, var(--color-bg-dark) 60%);
  overflow: hidden;
}

/* Glowing particle vector backgrounds in hero */
.hero::before {
  content: '';
  position: absolute;
  top: 10%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 253, 170, 0.1) 0%, rgba(0, 253, 170, 0) 70%);
  filter: blur(60px);
  pointer-events: none;
}

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

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(0, 253, 170, 0.15);
  color: var(--color-accent);
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
  border: 1px solid rgba(0, 253, 170, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-accent);
  border-radius: 50%;
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0% {
    transform: scale(0.9);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.3);
    opacity: 1;
    box-shadow: 0 0 8px var(--color-accent);
  }

  100% {
    transform: scale(0.9);
    opacity: 0.6;
  }
}

.hero-content h1 {
  font-size: 3rem;
  color: var(--color-text-light);
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-content h1 span {
  background: linear-gradient(135deg, #ffffff 40%, var(--color-accent) 100%);
  -webkit-background-clip: text;
}

.hero-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: #c8c8d1;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero AI Assistant Simulator UI */
.hero-visual {
  position: relative;
  z-index: 10;
}

.hero-visual::before {
  content: '';
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  border-radius: var(--border-radius-lg);
  filter: blur(20px);
  z-index: -1;
}

/* =======================================================
   TELEGRAM CHAT WINDOW — Hero Section (faithful to app)
   ======================================================= */

.tg-window {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.10);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, 'Roboto', sans-serif;
  transition: box-shadow var(--transition-normal), transform var(--transition-normal);
  width: 300px;
}

.tg-window:hover {
  box-shadow: 0 16px 56px rgba(36,129,204,0.18), 0 4px 16px rgba(0,0,0,0.12);
  transform: translateY(-3px);
}

/* --- Header --- */
.tg-header {
  background: #ffffff;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e8eaed;
  min-height: 52px;
}

.tg-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tg-back-btn {
  display: flex;
  align-items: center;
  cursor: pointer;
  opacity: 0.85;
}

.tg-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4CAF84 0%, #2ba870 100%);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-title);
  letter-spacing: -0.5px;
}

.tg-contact-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.tg-contact-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #000000;
  line-height: 1.2;
  font-family: var(--font-title);
}

.tg-contact-status {
  font-size: 0.75rem;
  color: #6c7883;
}

.tg-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}

/* --- Chat Body with Wallpaper --- */
.tg-body {
  position: relative;
  flex: 1;
  min-height: 260px;
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 14px;
  scroll-behavior: smooth;
  /* Telegram wallpaper tinted background */
  background-color: #c8d5b9;
  background-image:
    radial-gradient(ellipse 60% 40% at 20% 30%, rgba(167,210,140,0.35) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 70%, rgba(120,180,100,0.25) 0%, transparent 70%);
}

/* Wallpaper pattern overlay (Telegram doodles) */
.tg-wallpaper {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='none' stroke='rgba(100,150,80,0.18)' stroke-width='1.2'%3E%3Ccircle cx='20' cy='20' r='8'/%3E%3Cpath d='M40 60 Q50 50 60 60 Q70 70 80 60'/%3E%3Ccircle cx='90' cy='30' r='5'/%3E%3Cpath d='M10 90 L20 80 L30 90'/%3E%3Ccircle cx='60' cy='100' r='6'/%3E%3Cpath d='M70 20 Q80 10 90 20'/%3E%3Cpath d='M100 80 Q110 70 120 80'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 120px;
  opacity: 0.7;
}

/* All content above the wallpaper */
.tg-body > *:not(.tg-wallpaper) {
  position: relative;
  z-index: 1;
}

/* --- Bot Bubble (white, left-aligned) --- */
.tg-bubble--bot {
  align-self: flex-start;
  background: #ffffff;
  color: #000000;
  border-radius: 2px 12px 12px 12px;
  padding: 8px 12px 18px;
  max-width: 82%;
  font-size: 0.875rem;
  line-height: 1.45;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
  position: relative;
  word-break: break-word;
}

.tg-bubble-sender {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #4CAF84;
  margin-bottom: 3px;
  font-family: var(--font-title);
}

/* --- User Bubble (blue, right-aligned) --- */
.tg-bubble--user {
  align-self: flex-end;
  background: #effdde;
  color: #000000;
  border-radius: 12px 2px 12px 12px;
  padding: 8px 12px 18px;
  max-width: 82%;
  font-size: 0.875rem;
  line-height: 1.45;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
  position: relative;
  word-break: break-word;
}

/* Timestamp inside bubble */
.tg-bubble-time {
  position: absolute;
  bottom: 4px;
  right: 8px;
  font-size: 0.65rem;
  color: rgba(0,0,0,0.35);
  white-space: nowrap;
}

/* Typing indicator bubble */
.tg-typing-bubble {
  align-self: flex-start;
  background: #ffffff;
  border-radius: 2px 12px 12px 12px;
  padding: 10px 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
  display: flex;
  gap: 4px;
  align-items: center;
}

.tg-typing-bubble span {
  width: 7px;
  height: 7px;
  background: #aab8c2;
  border-radius: 50%;
  animation: typing-animation 1.4s infinite ease-in-out;
  opacity: 0.6;
}
.tg-typing-bubble span:nth-child(2) { animation-delay: 0.2s; }
.tg-typing-bubble span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-animation {
  0%   { transform: translateY(0); opacity: 0.4; }
  50%  { transform: translateY(-4px); opacity: 1; }
  100% { transform: translateY(0); opacity: 0.4; }
}

/* --- Inline Keyboard (Telegram bot buttons) --- */
.tg-keyboard {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 4px;
}

.tg-keyboard-hint {
  font-size: 0.7rem;
  color: rgba(0,0,0,0.45);
  font-weight: 500;
  margin-bottom: 2px;
  text-align: center;
  letter-spacing: 0.3px;
}

.tg-key-btn {
  background: #ffffff;
  border: none;
  border-radius: 6px;
  color: #2481cc;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 9px 12px;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.10);
  line-height: 1.35;
}

.tg-key-btn:hover {
  background: #e8f4fd;
  color: #1a6aaa;
}

.tg-key-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* --- Bottom Input Bar --- */
.tg-input-bar {
  background: #f0f2f5;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #e8eaed;
}

.tg-input-field {
  flex: 1;
  background: #ffffff;
  border-radius: 22px;
  padding: 8px 14px;
  font-size: 0.875rem;
  color: #aab8c2;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  border: 1px solid #e8eaed;
  display: flex;
  align-items: center;
  min-height: 36px;
}

.tg-input-placeholder {
  color: #aab8c2;
  font-size: 0.875rem;
  pointer-events: none;
}

.tg-input-icon {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 50%;
  transition: background var(--transition-fast);
}
.tg-input-icon:hover { background: rgba(0,0,0,0.06); }

.tg-send-btn {
  width: 36px;
  height: 36px;
  background: #2481cc;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
  flex-shrink: 0;
}
.tg-send-btn:hover {
  background: #1a6aaa;
  transform: scale(1.08);
}

@keyframes chatGlowPulse {
  0% {
    border-color: rgba(0, 253, 170, 0.3);
    box-shadow: 0 0 25px rgba(0, 253, 170, 0.1), 0 20px 50px rgba(0, 0, 0, 0.4);
  }
  100% {
    border-color: rgba(0, 253, 170, 0.65);
    box-shadow: 0 0 40px rgba(0, 253, 170, 0.25), 0 20px 50px rgba(0, 0, 0, 0.4);
  }
}

.telegram-header {
  background: #17212b;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1.5px solid #101921;
}

.chat-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.telegram-back-arrow {
  color: #6c7883;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.telegram-back-arrow:hover {
  color: var(--color-accent);
}

.telegram-avatar {
  position: relative;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #2481cc 0%, #00fda1 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.telegram-avatar svg {
  width: 18px;
  height: 18px;
}

.chat-status-indicator.online {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background-color: var(--color-accent);
  border-radius: 50%;
  border: 2px solid #17212b;
}

.chat-title h4 {
  font-size: 0.95rem;
  color: var(--color-text-light);
  font-weight: 600;
  line-height: 1.2;
}

.chat-title p {
  font-size: 0.75rem;
  color: #6c7883;
  margin-top: 2px;
}

.telegram-controls {
  display: flex;
  gap: 16px;
  color: #6c7883;
}

.telegram-controls svg {
  cursor: pointer;
  transition: color var(--transition-fast);
}

.telegram-controls svg:hover {
  color: var(--color-accent);
}

/* Telegram Chat Content Area */
.telegram-body {
  height: 290px;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
  background-color: #0e1621;
}

/* Chat Messages (Telegram bubble style with tail placeholders) */
.chat-message {
  max-width: 80%;
  padding: 10px 14px;
  font-size: 0.9rem;
  line-height: 1.4;
  position: relative;
  word-wrap: break-word;
}

/* Telegram incoming message style */
.chat-message.incoming {
  align-self: flex-start;
  background-color: #182533;
  color: #f5f6f7;
  border-radius: 12px 12px 12px 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

/* Telegram outgoing message style */
.chat-message.outgoing {
  align-self: flex-end;
  background-color: #2b5278;
  color: #f5f6f7;
  border-radius: 12px 12px 2px 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

/* Assistant messages are also bot replies (incoming from bot) */
.chat-message.assistant {
  align-self: flex-start;
  background-color: #182533;
  color: #f5f6f7;
  border-radius: 12px 12px 12px 2px;
  border: 1px solid rgba(0, 253, 170, 0.15);
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

/* Typing Indicator inside Telegram */
.typing-indicator {
  display: flex;
  gap: 4px;
  align-items: center;
  height: 12px;
  padding-left: 2px;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  background-color: var(--color-accent);
  border-radius: 50%;
  animation: typing-animation 1.4s infinite ease-in-out;
  opacity: 0.4;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing-animation {
  0% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(-4px); opacity: 1; }
  100% { transform: translateY(0); opacity: 0.4; }
}

/* Keyboard inline buttons title */
.telegram-suggestions-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6c7883;
  margin-top: 8px;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Keyboard inline buttons container (Telegram bot menu) */
.telegram-keyboard {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.telegram-btn {
  background-color: #24303f;
  border: none;
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  width: 100%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.telegram-btn:hover {
  background-color: #2f3f52;
  color: #ffffff;
  transform: translateY(-1px);
}

.telegram-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Telegram Bottom Bar */
.telegram-input-bar {
  background-color: #17212b;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1.5px solid #101921;
}

.telegram-input-left {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #6c7883;
  flex: 1;
}

.telegram-icon-attach {
  cursor: pointer;
  transition: color var(--transition-fast);
}

.telegram-icon-attach:hover {
  color: var(--color-accent);
}

.telegram-input-placeholder {
  font-size: 0.9rem;
  color: #6c7883;
}

.telegram-input-right {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #6c7883;
}

.telegram-icon-emoji {
  cursor: pointer;
  transition: color var(--transition-fast);
}

.telegram-icon-emoji:hover {
  color: var(--color-accent);
}

.telegram-send-btn {
  width: 32px;
  height: 32px;
  background-color: #2481cc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.telegram-send-btn:hover {
  background-color: #3b94d9;
  transform: scale(1.05);
}

/* Simulated RAG Search Status box inside Telegram chat */
.rag-status-box {
  background: #152433;
  border: 1px dashed rgba(0, 253, 170, 0.3);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.6rem;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-self: flex-start;
  width: 90%;
  animation: fadeIn var(--transition-fast);
}

.rag-status-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rag-status-icon {
  width: 14px;
  height: 14px;
  stroke: var(--color-accent);
  display: flex;
  align-items: center;
}

.rag-status-text span {
  color: var(--color-accent);
  font-weight: 500;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Comparison Section (Public vs Private) - Dark Blue Background overrides */
#comparativa {
  background: #fafaff;
  color: var(--color-text-light);
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 20px;
}

.comp-card {
  background-color: rgba(10, 39, 82, 0.4);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(27, 56, 96, 0.8);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.comp-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
}

/* Public IA Card: Rojo */
.comp-card.public-ia {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.05);
  color: var(--color-text-light);
}

.comp-card.public-ia::before {
  /* Alert red */
}

.comp-card.public-ia:hover {
  transform: translateY(-5px);
  background-color: #ffffff;
  box-shadow: 0 15px 35px rgba(0,0,0,0.35), inset 0 0 0 1px rgba(255,255,255,0.08);
}

.comp-card.public-ia h3 {
  color: #ff8a8a;
  /* Readable light red */
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.comp-card.public-ia p.comp-desc {
  color: #fca5a5;
  font-size: 1rem;
  margin-bottom: 30px;
}

.comp-card.public-ia .comp-list-icon {
  fill: #022387;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 5px;
}

.comp-card.public-ia .comp-list-text strong {
  color: #000000;
  display: block;
  font-family: var(--font-title);
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.comp-card.public-ia .comp-list-text {
  color: #000000;
}

/* Private IA Card: Verde */
.comp-card.private-ia {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  box-shadow: rgba(0,0,0,0.35), inset 0 0 0 1px rgba(255,255,255,0.08);
  color: var(--color-text-light);
}

.comp-card.private-ia::before {
}

.comp-card.private-ia:hover {
  transform: translateY(-5px);
  background-color: #ffffff;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35), inset 0 0 0 1px rgba(255,255,255,0.08);
}

.comp-card.private-ia h3 {
  color: var(--color-accent);
  /* Brand green */
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.comp-card.private-ia p.comp-desc {
  color: #ccfbf1;
  font-size: 1rem;
  margin-bottom: 30px;
}

.comp-card.private-ia .comp-list-icon {
  fill: var(--color-accent);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 5px;
}

.comp-card.private-ia .comp-list-text strong {
  color: #000000;
  display: block;
  font-family: var(--font-title);
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.comp-card.private-ia .comp-list-text {
  color: #000000;
}

.comp-badge {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.6rem;
  font-family: var(--font-title);
  font-weight: 600;
  border-radius: 12px;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.comp-card.public-ia .comp-badge {
  background-color: #022387;
  color: #ffffff;
}

.comp-card.private-ia .comp-badge {
  background-color: #00ffa8;
  color: #000000;
}

.comp-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comp-list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.7rem;
}

/* ==========================================================================
   Cómo Funciona & Stepper Interactive Sections Styles
   ========================================================================== */

.como-funciona-section {
  padding: 100px 0;
  background-color: #ffffff;
}

.como-funciona-stepper {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 20px;
}

.diagram-svg {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Stepper Tabs Nav */
.step-nav {
  display: flex;
  justify-content: space-between;
  background-color: var(--color-bg-card);
  padding: 8px;
  border-radius: 40px;
  border: 1px solid var(--color-border);
  gap: 8px;
}

.step-tab-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 14px 20px;
  border-radius: 30px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all var(--transition-normal);
}

.step-tab-btn .step-num {
  font-size: 0.8rem;
  color: #022387;
  opacity: 0.65;
  background-color: rgba(1, 21, 58, 0.05);
  padding: 2px 8px;
  border-radius: 10px;
  transition: all var(--transition-normal);
}

.step-tab-btn:hover {
  color: var(--color-primary);
  background-color: rgba(1, 21, 58, 0.03);
}

.step-tab-btn.active {
  background-color: #022387;
  color: var(--color-text-light);
  box-shadow: var(--shadow-md);
}

.step-tab-btn.active .step-num {
  background-color: rgba(0, 253, 170, 0.25);
  color: var(--color-accent);
  opacity: 1;
}

/* Tab Nav Progress Bar */
.step-progress-container {
  padding: 0 20px;
}

.step-progress-bar {
  width: 100%;
  height: 4px;
  background-color: var(--color-border);
  border-radius: 2px;
  overflow: hidden;
}

.step-progress-fill {
  height: 100%;
  width: 20%;
  background-color: #022387;
  border-radius: 2px;
  transition: width var(--transition-slow) cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px var(--color-accent);
}

/* Slide Cards Container */
.step-content-wrapper {
  position: relative;
  min-height: 480px;
}

.step-slide-card {
  display: none;
  opacity: 0;
  transform: translateY(15px);
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  transition: all var(--transition-slow);
}

.step-slide-card.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: slideFadeIn var(--transition-slow) forwards;
}

@keyframes slideFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.slide-info h3 {
  font-size: 1.7rem;
  margin-top: 10px;
  margin-bottom: 16px;
  color: var(--color-primary);
}

.slide-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-family: var(--font-title);
  color: var(--color-accent-hover);
  background-color: rgba(0, 253, 170, 0.08);
  border: 1px solid rgba(0, 253, 170, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
  text-transform: uppercase;
}

.slide-info p {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

/* Slide Feature List */
.slide-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.slide-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.slide-feature-icon {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  background-color: #022387;
  flex-shrink: 0;
  width: 42px !important;
  height: 42px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden;
  border-radius: 50% !important;
}

.slide-feature-icon img {
  max-width: 100% !important; /* No se sale del contenedor */
  max-height: 100% !important; /* No se sale en altura */
  width: auto; /* Mantiene proporción */
  height: auto;
  display: block; /* Quita el espacio inferior por defecto */
  margin: 0 !important; /* Quita cualquier margen que pueda descentrarla */
  /* Excelente para centrar y ajustar la imagen dentro del contenedor */
}

.slide-feature-text strong {
  display: block;
  font-family: var(--font-title);
  color: var(--color-primary);
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.slide-feature-text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Formats Bar */
.slide-formats-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.format-tag {
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-title);
  color: var(--color-primary);
  background-color: var(--color-bg-light);
  border: 1.5px solid var(--color-border);
  padding: 6px 14px;
  border-radius: 10px;
}

/* CONCEPT BOX (Galaxia & Examen) */
.slide-concept-box {
  background-color: var(--color-bg-light-sec);
  border-left: 4px solid var(--color-accent);
  border-radius: 4px;
  padding: 20px;
  margin-top: 20px;
  box-shadow: var(--shadow-sm);
}

.concept-box-title {
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--color-primary);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.slide-concept-box p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* ==========================================================
   Slide Visual Mockups & Vector Diagrams (Pure CSS/HTML)
   ========================================================== */

.slide-visual {
  background: #ffffff;
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border);
  padding: 30px;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* --- Slide 1: Ingesta Visual --- */
.visual-ingesta-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
}

.sources-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.source-node {
  background-color: var(--color-bg-card);
  border: 1.5px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  padding: 10px 18px;
  border-radius: 20px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-primary);
  transition: all var(--transition-fast);
  cursor: default;
}

.source-node:hover {
  transform: translateX(4px);
  border-color: var(--color-accent);
  box-shadow: 0 4px 10px rgba(0, 253, 170, 0.15);
}

.conduit-panel {
  flex: 1;
  display: flex;
  justify-content: center;
}

.secure-conduit {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  border-radius: 30px;
  padding: 8px 16px;
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 90%;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 253, 170, 0.2);
}

.conduit-particles {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}

.conduit-particles span {
  display: block;
  width: 6px;
  height: 6px;
  background-color: var(--color-accent);
  border-radius: 50%;
  position: absolute;
  top: -2px;
  box-shadow: 0 0 8px var(--color-accent);
  animation: move-particle 2s infinite linear;
}

.conduit-particles span:nth-child(1) { animation-delay: 0s; left: -10%; }
.conduit-particles span:nth-child(2) { animation-delay: 0.6s; left: -10%; }
.conduit-particles span:nth-child(3) { animation-delay: 1.2s; left: -10%; }

@keyframes move-particle {
  0% { left: 0%; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

.destination-panel {
  display: flex;
  justify-content: center;
}

.destination-database {
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
  border: 1.5px solid rgba(0, 253, 170, 0.3);
  padding: 16px 20px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), 0 0 15px rgba(0, 253, 170, 0.1);
  animation: db-pulse 3s infinite alternate;
}

.destination-database .db-layer {
  width: 44px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(0, 253, 170, 0.25);
  border: 1px solid var(--color-accent);
  margin-bottom: 4px;
  box-shadow: 0 0 8px rgba(0, 253, 170, 0.3);
}

.destination-database .db-label {
  font-family: var(--font-title);
  font-size: 0.75rem;
  margin-top: 6px;
  line-height: 1.2;
}

.destination-database .db-label strong {
  color: var(--color-accent);
}

@keyframes db-pulse {
  0% {
    border-color: rgba(0, 253, 170, 0.25);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  }
  100% {
    border-color: rgba(0, 253, 170, 0.6);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), 0 0 25px rgba(0, 253, 170, 0.25);
  }
}

/* --- Slide 2: Semantic Galaxy Visual --- */
.visual-galaxy-container {
  width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.galaxy-capsule {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #01153a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(27, 56, 96, 0.8);
}

.galaxy-capsule::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(white 1px, transparent 0), radial-gradient(white 1.5px, transparent 0);
  background-size: 40px 40px, 80px 80px;
  opacity: 0.15;
}

.galaxy-cluster {
  position: absolute;
}

#cluster-turismo {
  top: 15%;
  left: 15%;
  width: 180px;
  height: 120px;
}

#cluster-finanzas {
  bottom: 15%;
  right: 15%;
  width: 180px;
  height: 120px;
}

.galaxy-node {
  position: absolute;
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: 1.5px solid transparent;
}

.galaxy-node.center-node {
  background-color: var(--color-accent);
  color: var(--color-primary);
  box-shadow: 0 0 15px rgba(0, 253, 170, 0.4);
}

.galaxy-node.linked-node {
  background-color: rgba(255, 255, 255, 0.08);
  color: #c8c8d1;
  border-color: rgba(255, 255, 255, 0.15);
}

/* Cluster positions */
#cluster-turismo #node-vacaciones { top: 35%; left: 30%; }
#cluster-turismo #node-descanso { top: 0%; left: 0%; }
#cluster-turismo #node-playa { bottom: 0%; right: 0%; }

#cluster-finanzas #node-presupuesto { top: 35%; left: 30%; }
#cluster-finanzas #node-gastos { bottom: 0%; left: 0%; }
#cluster-finanzas #node-auditoria { top: 0%; right: 0%; }

.galaxy-link-line {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 0;
}

.galaxy-link-line line {
  stroke: rgba(0, 253, 170, 0.3);
  stroke-width: 1.5;
  stroke-dasharray: 4 3;
}

.galaxy-cluster:hover .linked-node {
  background-color: rgba(0, 253, 170, 0.1);
  border-color: rgba(0, 253, 170, 0.5);
  color: var(--color-accent);
  transform: scale(1.05);
}

.galaxy-cluster:hover .galaxy-link-line line {
  stroke: var(--color-accent);
  stroke-width: 2;
  stroke-dasharray: none;
  animation: line-pulse 1s infinite alternate;
}

@keyframes line-pulse {
  from { opacity: 0.5; }
  to { opacity: 1; }
}

.galaxy-distant-line {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-30deg);
  width: 220px;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.35;
}

.galaxy-distant-line svg {
  width: 100%;
  height: 20px;
}

.galaxy-distant-line svg line {
  stroke: #ff5f56;
  stroke-width: 1;
  stroke-dasharray: 2 4;
}

.distant-label {
  font-size: 0.65rem;
  color: #ff8a8a;
  margin-top: 4px;
  font-family: var(--font-title);
  white-space: nowrap;
}

/* --- Slide 3: RAG Blueprint Visual --- */
.visual-rag-blueprint {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 10px 0;
}

.blueprint-step {
  background-color: var(--color-bg-card);
  border: 1.5px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  padding: 14px 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 85%;
  transition: all var(--transition-normal);
}

.blueprint-step .bp-icon {
  font-size: 1.5rem;
  background-color: rgba(0, 253, 170, 0.1);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--color-accent);
}

.blueprint-step h4 {
  font-size: 0.95rem;
  color: var(--color-primary);
  margin-bottom: 2px;
}

.blueprint-step p {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
  line-height: 1.35;
}

.blueprint-arrow {
  font-size: 1.125rem;
  color: var(--color-border);
  margin: 6px 0;
  animation: pulse-arrow 1.5s infinite alternate;
}

@keyframes pulse-arrow {
  0% { transform: scale(0.9); opacity: 0.4; }
  100% { transform: scale(1.1); opacity: 1; color: var(--color-accent); }
}

.blueprint-step:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

/* --- Slide 4: Phone Chat Citation Visual --- */
.visual-mobile-chat {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* =======================================================
   SLIDE 4 & HERO — Unified Phone Mockup
   ======================================================= */

.tg-phone-mockup {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 10px 0;
}

.tg-phone-container {
  position: relative;
  display: inline-block;
  perspective: 1000px;
}

/* Redesigned Side Buttons */
.tg-phone-buttons .phone-btn {
  position: absolute;
  background: #11141a;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 2px 4px rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.tg-phone-buttons .phone-btn-power {
  top: 95px;
  right: -13px;
  width: 3px;
  height: 48px;
  border-radius: 0 3px 3px 0;
}

.tg-phone-buttons .phone-btn-vol-up {
  top: 85px;
  left: -13px;
  width: 3px;
  height: 38px;
  border-radius: 3px 0 0 3px;
}

.tg-phone-buttons .phone-btn-vol-down {
  top: 135px;
  left: -13px;
  width: 3px;
  height: 38px;
  border-radius: 3px 0 0 3px;
}

/* Premium Phone Frame Shell */
.tg-phone-frame {
  width: 280px;
  height: 480px;
  background: #ffffff;
  border-radius: 36px;
  border: 10px solid #1a1f26;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.4),
    inset 0 0 0 2px rgba(255, 255, 255, 0.15),
    0 0 0 1px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  position: relative;
}

/* Sleek Notch for Camera and Speaker */
.tg-phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 18px;
  background: #1a1f26;
  border-radius: 9px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.8);
}

.tg-phone-camera {
  width: 6px;
  height: 6px;
  background: #080a0f;
  border-radius: 50%;
  border: 1px solid #283039;
  position: relative;
}

.tg-phone-camera::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 1px;
  width: 2px;
  height: 2px;
  background: #4b6cb7;
  border-radius: 50%;
  opacity: 0.6;
}

.tg-phone-speaker {
  width: 32px;
  height: 3px;
  background: #3a424a;
  border-radius: 1.5px;
}

/* Status bar */
.tg-phone-statusbar {
  background: #ffffff;
  padding: 8px 16px 2px;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  font-size: 0.5rem;
  font-weight: 600;
  color: #333333;
  min-height: 26px;
  position: relative;
  z-index: 10;
  border-bottom: 1px solid transparent;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Status bar icon sizing — let inline SVG attrs handle colors */
.sb-icon {
    width: 13px !important;
    height: 13px !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
    color: #111111;
    overflow: visible;
}

/* Telegram header inside phone */
.tg-phone-header {
  background: #ffffff;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e8eaed;
  position: relative;
  z-index: 10;
}

.tg-phone-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tg-phone-back-btn {
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #2481cc;
}

.tg-phone-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4CAF84 0%, #2ba870 100%);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-title);
}

.tg-phone-contact {
  display: flex;
  flex-direction: column;
}

.tg-phone-name {
  font-size: 0.7rem;
  font-weight: 500;
  color: #000000;
  font-family: var(--font-title);
  line-height: 1.2;
}

.tg-phone-sub {
  font-size: 0.55rem;
  color: #6c7883;
}

.tg-phone-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #2481cc;
}

/* Phone chat body */
.tg-phone-body {
  flex: 1;
  position: relative;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 10px;
  background-color: #c8d5b9;
  background-image:
    radial-gradient(ellipse 60% 40% at 20% 30%, rgba(167,210,140,0.3) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 70%, rgba(120,180,100,0.2) 0%, transparent 70%);
}

.tg-phone-wallpaper {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cg fill='none' stroke='rgba(100,150,80,0.18)' stroke-width='1'%3E%3Ccircle cx='15' cy='15' r='5'/%3E%3Cpath d='M30 50 Q40 40 50 50'/%3E%3Ccircle cx='65' cy='20' r='4'/%3E%3Cpath d='M5 65 L12 55 L20 65'/%3E%3Ccircle cx='50' cy='70' r='4'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
  opacity: 0.7;
}

.tg-phone-body > *:not(.tg-phone-wallpaper) {
  position: relative;
  z-index: 1;
}

/* Phone bubbles */
.tg-phone-bubble {
  max-width: 82%;
  padding: 8px 10px 18px;
  border-radius: 12px;
  font-size: 0.6rem;
  line-height: 1.4;
  box-shadow: 0 1px 2px rgba(0,0,0,0.12);
  position: relative;
  word-break: break-word;
}

.tg-phone-bubble--user {
  align-self: flex-end;
  background: #effdde;
  color: #000000;
  border-radius: 12px 2px 12px 12px;
}

.tg-phone-bubble--bot {
  align-self: flex-start;
  background: #ffffff;
  color: #000000;
  border-radius: 2px 12px 12px 12px;
}

.tg-phone-sendername {
  display: block;
  font-size: 0.6rem;
  color: #000000;
  margin-bottom: 2px;
  font-family: var(--font-title);
}

.tg-phone-sendername-2 {
  display: block;
  font-size: 0.6rem;
  color: #2481cc;
  margin-bottom: 2px;
  font-family: var(--font-title);
}

.tg-phone-time {
  position: absolute;
  bottom: 4px;
  right: 8px;
  font-size: 0.5rem;
  color: rgba(0,0,0,0.35);
  white-space: nowrap;
}

/* Typing indicator bubble (inside phone) */
.tg-phone-typing-bubble {
  align-self: flex-start;
  background: #ffffff;
  border-radius: 2px 10px 10px 10px;
  padding: 6px 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.12);
  display: flex;
  gap: 3px;
  align-items: center;
}

.tg-phone-typing-bubble span {
  width: 5px;
  height: 5px;
  background: #aab8c2;
  border-radius: 50%;
  animation: typing-animation 1.4s infinite ease-in-out;
  opacity: 0.6;
}
.tg-phone-typing-bubble span:nth-child(2) { animation-delay: 0.2s; }
.tg-phone-typing-bubble span:nth-child(3) { animation-delay: 0.4s; }

/* Keyboard styling inside phone frame overrides */
.tg-phone-frame .tg-keyboard-hint {
  font-size: 0.6rem;
  margin-bottom: 1px;
}
.tg-phone-frame .tg-key-btn {
  font-size: 0.6rem;
  padding: 7px 10px;
  border-radius: 6px;
}

/* Citation tags (inside phone) */
.tg-cite {
  background: rgba(36,129,204,0.12);
  color: #2481cc;
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 0.6rem;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
  transition: all var(--transition-fast);
}
.tg-cite:hover {
  background: #2481cc;
  color: #ffffff;
}

/* Phone input bar */
.tg-phone-inputbar {
  background: #f0f2f5;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #e8eaed;
  position: relative;
  z-index: 10;
}

.tg-phone-inputplaceholder {
  flex: 1;
  background: #ffffff;
  border-radius: 16px;
  padding: 5px 12px;
  font-size: 0.6rem;
  color: #aab8c2;
  border: 1px solid #e8eaed;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
}

.tg-phone-sendbtn {
  width: 28px;
  height: 28px;
  background: #2481cc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.tg-phone-sendbtn:hover {
  background-color: #1a6aaa;
}

/* Document popup */
.phone-popup-doc {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.97);
  border-top: 2px solid #2481cc;
  box-shadow: 0 -6px 16px rgba(0,0,0,0.15);
  padding: 12px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 20;
}

.phone-popup-doc.active { transform: translateY(0); }

.popup-doc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

#popup-doc-title {
  font-family: var(--font-title);
  font-size: 0.6rem;
  font-weight: 700;
  color: #2481cc;
}

.popup-doc-close {
  color: rgba(0,0,0,0.4);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
}
.popup-doc-close:hover { color: #000000; }

#popup-doc-text {
  font-size: 0.6rem;
  color: #555;
  line-height: 1.4;
}

/* --- Slide 5: Superiority Visual (Replaced by diagram-ventajas.svg) --- */

/* --- Superiority cards layout --- */
.superior-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.sup-mini-card {
  background-color: var(--color-bg-light-sec);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: all var(--transition-fast);
}

.sup-mini-card:hover {
  transform: translateX(4px);
  border-color: rgba(0, 253, 170, 0.4);
  background-color: var(--color-bg-card);
  box-shadow: var(--shadow-sm);
}

.sup-mini-icon {
  font-size: 1.25rem;
  background-color: #022387;
  color: var(--color-accent-hover);
  border: 1px solid rgba(0, 253, 170, 0.2);
  width: 32px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  flex-shrink: 0;
  overflow: hidden;
}

.sup-mini-icon img,
.sup-mini-icon svg {
    display: block;
    max-width: 100% !important;
    max-height: 100% !important;
    width: 20px !important;        /* Forzamos el tamaño que ya tenías en línea */
    height: 20px !important;
    margin: 0 !important;          /* Evita desvíos por márgenes heredados */
}
.sup-mini-info h4 {
  font-size: 0.9rem;
  color: var(--color-primary);
  margin-bottom: 2px;
}

.sup-mini-info p {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.35;
  margin-bottom: 0;
}

/* ==========================================================
   Casos de Uso Section Styles (Direct grid)
   ========================================================== */

.casos-uso-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.caso-card {
  background: #ffffff;
  padding: 32px;
  transition: all var(--transition-normal);
  display: flex;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  flex-direction: column;
  gap: 20px;
}

.caso-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.35), inset 0 0 0 1px rgba(255,255,255,0.08);
}

.caso-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.caso-badge {
  font-family: var(--font-title);
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #ffffff;
  background-color: #022387;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(0, 253, 170, 0.25);
  letter-spacing: 0.5px;
}

.caso-icon {
  width: 40px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 6px !important;
  transition: all var(--transition-normal);
}

.caso-card:hover .caso-icon {
  background-color: rgba(0, 253, 170, 0.1);
  border-color: var(--color-accent);
  transform: scale(1.1);
}

.caso-icon-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.caso-card h3 {
  font-size: 1rem;
  color: #000000 !important;
  font-family: var(--font-title);
  margin-bottom: 2px;
  line-height: 1.3;
}

.caso-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 0.7rem;
  line-height: 1.5;
}

.caso-problem {
  background-color: #ffffff;
  border-left: 3px solid #00ffa8;
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
  color: #000000;
}

.caso-problem strong {
  display: block;
  color: #00000;
  margin-bottom: 6px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: var(--font-title);
}

.caso-solution {
  background-color: #ffffff;
  border-left: 3px solid #00ffa8;
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
  color: #000000;
}

.caso-solution strong {
  display: block;
  color: #000000;
  margin-bottom: 6px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: var(--font-title);
}

/* Premium Interactive ROI Calculator */
.roi-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  margin-top: 20px;
}

.roi-inputs {
  background-color: var(--color-bg-card);
  padding: 40px;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.roi-inputs h3 {
  font-size: 1.6rem;
  margin-bottom: 24px;
}

.calculator-group {
  margin-bottom: 30px;
}

.calculator-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.calculator-label-row label {
  font-family: var(--font-title);
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.95rem;
}

.calculator-value-badge {
  background-color: rgba(1, 21, 58, 0.05);
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  font-family: var(--font-title);
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 0.95rem;
}

/* Styled HTML Sliders */
.slider-input {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--color-bg-light);
  outline: none;
  transition: background var(--transition-fast);
}

.slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 4px solid var(--color-primary);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}

.slider-input::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: var(--shadow-accent);
}

.slider-input::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 4px solid var(--color-primary);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}

.slider-input::-moz-range-thumb:hover {
  transform: scale(1.2);
}

/* Calculator outcomes panel */
.roi-results {
  background: radial-gradient(circle at 10% 10%, #0c336b 0%, var(--color-bg-dark) 80%);
  padding: 40px;
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(27, 56, 96, 0.8);
  color: var(--color-text-light);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.roi-results::before {
  content: '';
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(0, 253, 170, 0.08) 0%, rgba(0, 253, 170, 0) 70%);
  filter: blur(20px);
  pointer-events: none;
}

.roi-results h3 {
  font-size: 1.6rem;
  color: var(--color-text-light);
  margin-bottom: 24px;
}

.roi-savings-main {
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  padding: 30px 20px;
  margin-bottom: 24px;
}

.roi-savings-label {
  font-size: 0.85rem;
  font-family: var(--font-title);
  color: var(--color-text-muted-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.roi-savings-value {
  font-size: 3.5rem;
  font-family: var(--font-title);
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  text-shadow: 0 0 15px rgba(0, 253, 170, 0.2);
}

.roi-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.roi-metric-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  padding: 20px;
  text-align: center;
}

.roi-metric-title {
  font-size: 0.8rem;
  color: var(--color-text-muted-dark);
  margin-bottom: 6px;
}

.roi-metric-val {
  font-size: 1.5rem;
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--color-text-light);
}

/* ROI detailed breakdown styles */
.roi-breakdown-details {
  margin: 0 0 24px 0;
  padding: 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.roi-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--color-text-muted-dark);
}

.roi-breakdown-row strong {
  color: var(--color-text-light);
  font-family: var(--font-title);
  font-weight: 600;
}

.roi-disclaimer {
  font-size: 0.75rem;
  color: var(--color-text-muted-dark);
  line-height: 1.4;
  text-align: center;
  margin-top: auto;
}

/* Premium Lead Capture Form Section */
.lead-section {
  background: #051c3d;
  position: relative;
  overflow: hidden;
}

.lead-section::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 253, 170, 0.05) 0%, rgba(0, 253, 170, 0) 70%);
  filter: blur(60px);
  pointer-events: none;
}

.lead-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
  text-align: center !important;
}

.lead-info-col {
  z-index: 10;
}

.lead-info-col h2 {
  font-size: 2.8rem;
  line-height: 1.15;
  color: var(--color-text-light);
  margin-bottom: 20px;
}

.lead-info-col p {
  font-size: 1.125rem;
  margin-bottom: 36px;
}

.lead-bullet-list {
  list-style: none !important;
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
  width: 100% !important;
  margin-top: 40px !important;
  padding: 0 !important;
}

.lead-bullet-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lead-bullet-icon {
  width: 24px;
  height: 24px;
  background-color: rgba(0, 253, 170, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 253, 170, 0.3);
  flex-shrink: 0;
}

.lead-bullet-icon svg {
  width: 12px;
  height: 12px;
  fill: var(--color-accent);
}

.lead-bullet-text {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 300;
  color: var(--color-text-light);
}

/* Glassmorphic Contact Card & Form */
.form-container {
  background: #ffffff;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(27, 56, 96, 0.8);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 10;
  transition: all var(--transition-slow);
}

.form-title-area {
  margin-bottom: 24px;
}

.form-title-area h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: #000000;
}

.form-title-area p {
  font-size: 0.9rem;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-family: var(--font-title);
  color: #000000;
  font-weight: 500;
}

.form-control {
  background-color: #ffffff;
  border: 1.5px solid rgba(27, 56, 96, 0.8);
  border-radius: 8px;
  padding: 12px 16px;
  color: #000000;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  outline: none;
}

.form-control:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 10px rgba(0, 253, 170, 0.25);
  background-color: 0 0 8px rgba(0, 253, 170, 0.15);
}

.form-control::placeholder {
  color: var(--color-text-muted-dark);
}

/* Styled Infrastructure select boxes (Radios as boxes) */
.infra-option-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0;
}

.infra-radio-label {
  display: block;
  position: relative;
  cursor: pointer;
  user-select: none;
}

.infra-radio-label input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.infra-radio-label input[type="radio"] {
    display: none; /* Oculta el radio button nativo */
}

.infra-custom-box {
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%; /* Ocupa todo el label */
  box-sizing: border-box; /* El padding no aumentará el tamaño final */
  white-space: nowrap; /* Evita que "On-Premise" se parta en dos líneas */
  border: 1.5px solid rgba(27, 56, 96, 0.8);
  border-radius: 8px;
  height: 46px;
  padding: 0 12px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  color: #000000;
  transition: all var(--transition-fast);
}

.infra-radio-label input:checked~.infra-custom-box {
  border-color: var(--color-accent);
  color: #000000;
  background-color: rgba(0, 253, 170, 0.08);
  box-shadow: 0 0 8px rgba(0, 253, 170, 0.15);
}

.infra-radio-label:hover .infra-custom-box {
  border-color: rgba(0, 253, 170, 0.5);
  background-color: rgba(255, 255, 255, 0.02);
}

/* Form Checkbox and legality */
.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--color-text-muted-dark);
  cursor: pointer;
  line-height: 1.4;
}

.form-checkbox-label input {
  margin-top: 3px;
  accent-color: var(--color-accent);
}

.form-checkbox-label a {
  text-decoration: underline;
}

/* Submit state and success screen */
.btn-submit {
  width: 100%;
  padding: 14px;
  font-size: 1.05rem;
  margin-top: 10px;
}

.form-success-wrapper {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 0;
  animation: fadeIn var(--transition-slow);
}

.success-icon-box {
  width: 72px;
  height: 72px;
  background-color: rgba(0, 253, 170, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-accent);
  box-shadow: var(--shadow-accent);
  margin-bottom: 24px;
}

.success-icon-box svg {
  width: 36px;
  height: 36px;
  fill: var(--color-accent);
}

.form-success-wrapper h3 {
  font-size: 1.8rem;
  color: var(--color-text-light);
  margin-bottom: 12px;
}

.form-success-wrapper p {
  color: var(--color-text-muted-dark);
  font-size: 1rem;
  max-width: 380px;
  margin-bottom: 24px;
}

/* Footer Section */
footer {
  background-color: #03152e;
  color: var(--color-text-light);
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-info-col .logo-link {
  height: 32px;
  margin-bottom: 20px;
}

.footer-info-col p {
  font-size: 0.9rem;
  color: var(--color-text-muted-dark);
  max-width: 320px;
  margin-bottom: 20px;
}

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

.footer-social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-text-muted-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.footer-social-icon svg {
  width: 16px;
  height: 16px;
  fill: var(--color-text-muted-dark);
}

.footer-social-icon:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.footer-social-icon:hover svg {
  fill: var(--color-primary);
}

.footer-links-col h4 {
  font-size: 1rem;
  color: var(--color-text-light);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.footer-links a {
  font-size: 0.9rem;
  color: var(--color-text-muted-dark);
}

.footer-links a:hover {
  color: var(--color-accent);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--color-text-muted-dark);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: 0.8rem;
  color: var(--color-text-muted-dark);
}

.footer-bottom-links a:hover {
  color: var(--color-accent);
}

/* ==========================================================================
   Responsive & Tablet / Mobile Adaptations
   ========================================================================== */

@media (max-width: 1024px) {
  html {
    font-size: 15px;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-grid,
  .comparison-grid,
  .rag-grid,
  .roi-container,
  .lead-grid {
    gap: 30px;
  }
}

@media (max-width: 900px) {
  section {
    padding: 70px 0;
  }

  /* Show Mobile Navigation elements */
  .mobile-toggle {
    display: block;
    z-index: 1001;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--color-bg-dark);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    padding: 40px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.25);
    transition: right 0.4s ease;
    z-index: 1000;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-link {
    color: var(--color-text-light);
    font-size: 1.1rem;
  }

  header.sticky .nav-link {
    color: var(--color-text-light);
  }

  /* Transform Menu burger to X */
  .mobile-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  /* One column layout grids */
  .hero-grid,
  .comparison-grid,
  .como-funciona-section,
  .slide-grid,
  .casos-uso-grid,
  .roi-container,
  .lead-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 60px;
  }

  .hero-content {
    text-align: center;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    align-items: center;
    gap: 12px;
  }

  .hero-actions .btn {
    width: fit-content !important;
    max-width: 320px;
  }

  .hero-visual {
    margin-top: 20px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Stepper responsive stacking */
  .step-nav {
    flex-direction: column;
    border-radius: 20px;
    padding: 12px;
    gap: 6px;
  }

  .step-tab-btn {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.9rem;
    justify-content: flex-start;
  }

  .step-slide-card {
    padding: 30px 20px;
  }

  .slide-visual {
    min-height: 280px;
    padding: 20px;
  }

  .visual-ingesta-flow {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .conduit-panel {
    transform: rotate(90deg);
    padding: 10px 0;
    width: 100%;
  }

  .conduit-particles {
    display: none; /* Hide particles on vertical rotation to prevent overflow */
  }

  .blueprint-step {
    width: 100%;
  }

  .lead-info-col {
    text-align: center !important;
  }

  .lead-bullet-list {
    align-items: center !important;
    list-style: none !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    gap: 48px !important;
    width: 100% !important;
    margin-top: 40px !important;
    padding: 0 !important;
  }

  .lead-bullet-item {
    text-align: left;
    width: 100%;
    max-width: 400px;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    white-space: nowrap !important;
  }

  @media (max-width: 900px) {
    .lead-bullet-list {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        width: fit-content !important;
        margin: 32px auto 0 auto !important;
        gap: 16px !important;
    }
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-info-col p {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-socials {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 600px) {
  html {
    font-size: 14px;
  }

  .section-header h2 {
    font-size: 2.1rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .form-row-2col {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .form-container {
    padding: 25px;
  }

  /* Optimize CTA and Form Buttons to be 100% width on mobile */
  .btn-submit,
  .btn,
  #btn-success-reset {
    max-width: 100% !important;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .infra-option-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex-direction: column;
    width: 100%;
    gap: 6px;
  }

  .infra-radio-label {
    width: 100%;
  }

  .infra-custom-box {
    width: 100%;
    text-align: center;
    display: block;
  }
}