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

/* ==========================================================================
   DESIGN TOKENS & SYSTEM VARIABLES
   Deep-Atmosphere Glass-Modernism for "Mi Conjunto"
   ========================================================================== */

:root {
  /* Typography */
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Brand Primary Accents */
  --blue: #2563EB;
  --blue-light: #3B82F6;
  --blue-dark: #1D4ED8;
  --blue-glow: rgba(37, 99, 235, 0.35);
  
  --cyan: #06B6D4;
  --cyan-light: #38BDF8;
  --cyan-glow: rgba(56, 189, 248, 0.35);

  --orange: #FF6B35;
  --orange-light: #FF8C00;
  --orange-dark: #EA580C;
  --orange-glow: rgba(255, 107, 53, 0.35);

  --green: #10B981;
  --green-glow: rgba(16, 185, 129, 0.3);
  --amber: #F59E0B;
  --ruby: #EF4444;
  --whatsapp: #25D366;

  /* LIGHT THEME PALETTE */
  --bg-canvas: #F8FAFC;
  --bg-subtle: #F1F5F9;
  --bg-card: #FFFFFF;
  --bg-card-elevated: #FFFFFF;
  --bg-card-hover: #F8FAFC;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-glass-heavy: rgba(255, 255, 255, 0.95);
  --border-subtle: #E2E8F0;
  --border-medium: #CBD5E1;
  --border-highlight: rgba(37, 99, 235, 0.16);
  --border-glass: rgba(255, 255, 255, 0.6);

  --text-primary: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --text-light: #94A3B8;

  --shadow-sm: 0 2px 8px -1px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 45px -10px rgba(15, 23, 42, 0.12);
  --shadow-glow-blue: 0 0 35px -5px rgba(37, 99, 235, 0.25);
  --shadow-glow-orange: 0 0 35px -5px rgba(255, 107, 53, 0.25);

  /* Legacy variables for full compatibility */
  --slate-900: #0F172A;
  --slate-800: #1E293B;
  --slate-600: #475569;
  --slate-400: #94A3B8;
  --slate-100: #F1F5F9;
  --white: #FFFFFF;
}

[data-theme="dark"] {
  /* DARK THEME: Deep-Atmosphere Obsidian Navy */
  --bg-canvas: #0B0F19;
  --bg-subtle: #101726;
  --bg-card: #0F172A;
  --bg-card-elevated: #162035;
  --bg-card-hover: #1E293B;
  --bg-glass: rgba(15, 23, 42, 0.82);
  --bg-glass-heavy: rgba(11, 15, 25, 0.92);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-highlight: rgba(56, 189, 248, 0.25);
  --border-glass: rgba(255, 255, 255, 0.12);

  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --text-light: #64748B;

  --shadow-sm: 0 2px 8px -1px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 25px -4px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 60px -12px rgba(0, 0, 0, 0.7);
  --shadow-glow-blue: 0 0 40px -5px rgba(37, 99, 235, 0.4);
  --shadow-glow-orange: 0 0 40px -5px rgba(255, 107, 53, 0.4);

  /* Legacy variables */
  --slate-900: #F8FAFC;
  --slate-800: #CBD5E1;
  --slate-600: #94A3B8;
  --slate-400: #64748B;
  --slate-100: #162035;
  --white: #0F172A;
}

/* ==========================================================================
   GLOBAL RESETS & ACCESSIBILITY
   ========================================================================== */

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

html, body {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-canvas);
  color: var(--text-secondary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.4s ease, color 0.4s ease;
  position: relative;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Scroll Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--cyan-light), var(--orange));
  z-index: 10001;
  border-radius: 0 2px 2px 0;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.7);
}

/* ==========================================================================
   PRELOADER
   ========================================================================== */

#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg-canvas);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-logo {
  animation: pulseScale 1.6s ease-in-out infinite;
}

@keyframes pulseScale {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 4px 12px rgba(37,99,235,0.15)); }
  50% { transform: scale(1.08); filter: drop-shadow(0 8px 24px rgba(255,107,53,0.3)); }
}

.preloader-bar {
  width: 140px;
  height: 4px;
  background: var(--border-subtle);
  border-radius: 99px;
  overflow: hidden;
  margin: 18px auto 0;
}

.preloader-bar-inner {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  border-radius: 99px;
  animation: loadBar 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes loadBar {
  to { width: 100%; }
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 18px 0;
}

header.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-link img {
  height: 42px;
  width: auto;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo-link:hover img {
  transform: scale(1.06) rotate(-2deg);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.1;
  letter-spacing: -0.02em;
  transition: color 0.3s;
}

.brand-sub {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s;
}

header.scrolled .brand-name {
  color: var(--text-primary);
}

header.scrolled .brand-sub {
  color: var(--text-muted);
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.25s ease;
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), #FFA07A);
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

header.scrolled .nav-link {
  color: var(--text-secondary);
}

header.scrolled .nav-link:hover {
  color: var(--blue);
}

header.scrolled .nav-link:hover::after {
  background: linear-gradient(90deg, var(--blue), var(--cyan-light));
}

.nav-badge {
  background: linear-gradient(135deg, var(--orange), #FF8C00);
  color: white;
  font-size: 0.58rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-left: 5px;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
  display: inline-flex;
  align-items: center;
}

.btn-theme-toggle {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(8px);
}

.btn-theme-toggle:hover {
  transform: rotate(20deg) scale(1.08);
  background: rgba(255, 255, 255, 0.25);
  color: var(--orange);
}

header.scrolled .btn-theme-toggle {
  background: var(--bg-subtle);
  border-color: var(--border-subtle);
  color: var(--text-secondary);
}

header.scrolled .btn-theme-toggle:hover {
  color: var(--orange);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.btn-demo {
  background: linear-gradient(135deg, var(--orange), #FF8C00);
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 22px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 18px rgba(255, 107, 53, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.btn-demo::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 0.6s ease;
}

.btn-demo:hover::before {
  left: 100%;
}

.btn-demo:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.55);
}

.btn-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: white;
  padding: 6px;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.btn-hamburger svg {
  pointer-events: none;
}

header.scrolled .btn-hamburger {
  color: var(--blue);
}

#mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-glass-heavy);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow: var(--shadow-lg);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 0;
  animation: slideDownMenu 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDownMenu {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

#mobile-menu.open {
  display: block;
}

#mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.2s;
}

#mobile-menu a:last-child {
  border-bottom: none;
}

#mobile-menu a:hover {
  color: var(--orange);
  background: var(--bg-subtle);
  padding-left: 28px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

#inicio {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0B0F19;
  padding: 140px 24px 80px;
}

#inicio video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(37, 99, 235, 0.15) 0%, transparent 60%),
              linear-gradient(180deg, rgba(11, 15, 25, 0.45) 0%, rgba(11, 15, 25, 0.25) 50%, rgba(11, 15, 25, 0.75) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1040px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  animation: fadeDown 0.8s ease forwards;
}

.hero-badge span {
  color: #F8FAFC;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-badge .badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 10px #10B981;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.flag-co {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(to bottom, #FCD116 0% 50%, #003893 50% 75%, #CE1126 75% 100%);
  display: inline-block;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

h1.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6.5vw, 5.2rem);
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
  animation: fadeUp 0.9s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.7);
}

h1.hero-title .accent {
  background: linear-gradient(90deg, #FF6B35 0%, #FFA25B 45%, #FF6B35 90%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(248, 250, 252, 0.92);
  max-width: 720px;
  margin: 0 auto 36px;
  line-height: 1.7;
  font-weight: 400;
  animation: fadeUp 0.9s 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75);
}

.hero-subtitle strong {
  color: #FFFFFF;
  font-weight: 600;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.9s 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
  margin-bottom: 48px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange), #FF8C00);
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1rem;
  box-shadow: 0 10px 35px rgba(255, 107, 53, 0.45);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 50px rgba(255, 107, 53, 0.6);
  color: white;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 16px 36px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1rem;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-3px);
  color: white;
}

/* Hero Live Cockpit Preview Card */
.hero-cockpit {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 24px;
  padding: 24px 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 50px rgba(37, 99, 235, 0.15);
  animation: fadeUp 1s 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
  text-align: left;
}

.cockpit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.cockpit-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cockpit-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
}

.cockpit-property-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
}

.cockpit-property-meta {
  font-size: 0.75rem;
  color: rgba(248, 250, 252, 0.6);
}

.cockpit-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #34D399;
}

.cockpit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cockpit-tile {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 16px;
  transition: all 0.3s ease;
}

.cockpit-tile:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateY(-2px);
}

.cockpit-tile-label {
  font-size: 0.72rem;
  color: rgba(248, 250, 252, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cockpit-tile-value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
}

.cockpit-tile-meta {
  font-size: 0.7rem;
  color: #34D399;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.cockpit-tile-meta.amber {
  color: var(--orange-light);
}

/* ==========================================================================
   STATS STRIP
   ========================================================================== */

.stats-strip {
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 36px 24px;
  position: relative;
  z-index: 10;
  box-shadow: var(--shadow-sm);
}

.stats-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-item {
  padding: 16px 20px;
  text-align: center;
  position: relative;
  transition: transform 0.3s ease;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border-subtle);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  display: block;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.stat-item:nth-child(2) .stat-number {
  background: linear-gradient(135deg, var(--orange), #FF8C00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ==========================================================================
   COMMON SECTION STYLES
   ========================================================================== */

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

.container {
  max-width: 1240px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, 0.08);
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid rgba(37, 99, 235, 0.15);
}

[data-theme="dark"] .section-label {
  background: rgba(56, 189, 248, 0.1);
  color: var(--cyan-light);
  border-color: rgba(56, 189, 248, 0.2);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.section-title .accent {
  color: var(--orange);
  background: linear-gradient(135deg, var(--orange), #FF8C00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.12rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 640px;
}

/* ==========================================================================
   OTTO AI COPILOT SECTION
   ========================================================================== */

#otto {
  background: linear-gradient(180deg, var(--bg-canvas) 0%, var(--bg-subtle) 100%);
  position: relative;
  overflow: hidden;
}

#otto::before {
  content: '';
  position: absolute;
  top: 10%;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

#otto::after {
  content: '';
  position: absolute;
  bottom: 10%;
  right: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.otto-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Otto Interactive AI Simulator Card */
.otto-chat-card {
  background: var(--bg-card);
  border-radius: 28px;
  box-shadow: var(--shadow-lg), var(--shadow-glow-blue);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-top: 1px solid var(--border-highlight);
  position: relative;
  transition: all 0.4s ease;
}

.otto-card-topbar {
  background: linear-gradient(135deg, #1E293B, #0F172A);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.otto-identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.otto-avatar-halo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.5);
}

.otto-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #0B0F19;
}

.otto-header-name {
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}

.otto-header-status {
  color: #38BDF8;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.otto-header-status .status-dot {
  width: 7px;
  height: 7px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10B981;
  animation: pulse 2s infinite;
}

.otto-preset-prompts {
  padding: 16px 20px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.otto-preset-prompts::-webkit-scrollbar {
  display: none;
}

.prompt-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 50px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.prompt-chip:hover, .prompt-chip.active {
  background: var(--blue);
  color: #FFFFFF;
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.chat-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 250px;
  background: var(--bg-card);
}

.msg {
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 88%;
  animation: fadeUp 0.3s ease;
}

.msg-user {
  background: var(--bg-subtle);
  color: var(--text-primary);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  font-weight: 500;
  border: 1px solid var(--border-subtle);
}

.msg-otto {
  background: linear-gradient(135deg, var(--blue), #1E40AF);
  color: #FFFFFF;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.25);
}

.msg-otto strong {
  color: #93C5FD;
}

.legal-cite-box {
  background: rgba(255, 255, 255, 0.1);
  border-left: 3px solid #38BDF8;
  padding: 8px 12px;
  border-radius: 6px;
  margin-top: 8px;
  font-size: 0.8rem;
  color: #E0F2FE;
}

.chat-tags {
  padding: 16px 24px 20px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-subtle);
}

.tag {
  background: rgba(37, 99, 235, 0.1);
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid rgba(37, 99, 235, 0.15);
}

[data-theme="dark"] .tag {
  background: rgba(56, 189, 248, 0.12);
  color: var(--cyan-light);
  border-color: rgba(56, 189, 248, 0.25);
}

/* Otto Feature Cards on Right */
.otto-feature-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-card);
  padding: 20px 22px;
  border-radius: 18px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  margin-bottom: 14px;
}

.otto-feature-card:hover {
  transform: translateX(6px);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-md);
}

.otto-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.otto-feature-icon.blue {
  background: rgba(37, 99, 235, 0.1);
  color: var(--blue);
}

.otto-feature-icon.orange {
  background: rgba(255, 107, 53, 0.1);
  color: var(--orange);
}

.otto-feature-icon.green {
  background: rgba(16, 185, 129, 0.1);
  color: var(--green);
}

.otto-feature-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.otto-feature-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   MODULES (19 MÓDULOS) & BENTO GRID
   ========================================================================== */

#funcionalidades {
  background: var(--bg-canvas);
  position: relative;
}

.modules-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 40px auto 30px;
  max-width: 900px;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}

.filter-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--blue);
  color: #FFFFFF;
  border-color: var(--blue);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
}

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

/* Base Module Card */
.module-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 22px;
  padding: 28px 24px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.module-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.module-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-md), 0 0 25px rgba(37, 99, 235, 0.08);
}

.module-card:hover::before {
  opacity: 1;
}

.module-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.module-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(6, 182, 212, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.module-card:hover .module-icon {
  background: linear-gradient(135deg, var(--orange), #FF8C00);
  color: white;
  transform: scale(1.1) rotate(-6deg);
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.35);
}

.module-num {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--bg-subtle);
  padding: 4px 10px;
  border-radius: 50px;
  border: 1px solid var(--border-subtle);
}

.module-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.module-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 16px;
  flex-grow: 1;
}

.module-action-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  transition: gap 0.2s ease;
}

.module-card:hover .module-action-link {
  color: var(--orange);
  gap: 10px;
}

/* Flagship Hero Modules (Cards 1, 2, 3) */
.module-card.flagship {
  border-color: rgba(37, 99, 235, 0.25);
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-subtle) 100%);
  position: relative;
}

.flagship-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, var(--orange), #FF8C00);
  color: white;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

/* ==========================================================================
   PROMO VIDEO / DEMO SECTION
   ========================================================================== */

.promo-section {
  background: var(--bg-subtle);
  padding: 110px 24px;
  position: relative;
}

.video-frame-container {
  max-width: 1020px;
  margin: 0 auto;
  border-radius: 28px;
  background: #0B0F19;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.4), var(--shadow-glow-blue);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.video-frame-container:hover {
  transform: translateY(-6px);
  box-shadow: 0 45px 110px rgba(0, 0, 0, 0.5), 0 0 50px rgba(255, 107, 53, 0.25);
}

.mac-titlebar {
  background: #162035;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mac-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mac-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.mac-dot.red { background: #FF5F56; }
.mac-dot.yellow { background: #FFBD2E; }
.mac-dot.green { background: #27C93F; }

.mac-url-bar {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 4px 20px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.02em;
}

.promo-video-player {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  background: #000;
}

/* Video Value Highlights Beneath Player */
.video-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
  max-width: 1020px;
  margin-left: auto;
  margin-right: auto;
}

.highlight-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.highlight-box h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.highlight-box p {
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* ==========================================================================
   VALUE PROPOSITION CARDS (CAPACITACIÓN & MÓDULO WEB)
   ========================================================================== */

.value-section {
  background: var(--bg-canvas);
  padding: 80px 24px;
}

.value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.value-card {
  background: var(--bg-card);
  border-radius: 28px;
  padding: 48px 40px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.value-card.orange::before {
  background: linear-gradient(90deg, var(--orange), #FF8C00);
}

.value-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-md);
}

.value-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.value-icon-box.orange {
  background: rgba(255, 107, 53, 0.1);
  color: var(--orange);
}

.value-icon-box.blue {
  background: rgba(37, 99, 235, 0.1);
  color: var(--blue);
}

.value-card h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 14px;
  line-height: 1.25;
}

.value-card h2 span {
  color: var(--blue);
}

.value-card h2 span.orange {
  color: var(--orange);
}

.value-card p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 32px;
  flex-grow: 1;
}

.btn-solid {
  background: var(--blue);
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 14px 34px;
  border-radius: 50px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  font-size: 0.92rem;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.btn-solid:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.45);
  color: white;
}

.btn-solid.orange {
  background: linear-gradient(135deg, var(--orange), #FF8C00);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

.btn-solid.orange:hover {
  box-shadow: 0 10px 25px rgba(255, 107, 53, 0.45);
}

.btn-outline {
  border: 2px solid var(--blue);
  color: var(--blue);
  font-family: var(--font-display);
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 50px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  font-size: 0.92rem;
}

.btn-outline:hover {
  background: var(--blue);
  color: white;
  transform: translateY(-2px);
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */

.testimonials-section {
  background: var(--bg-subtle);
  padding: 110px 24px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.testimonial-card {
  background: var(--bg-card);
  border-radius: 24px;
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border-subtle);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-md);
}

.stars {
  color: #F59E0B;
  font-size: 0.95rem;
  margin-bottom: 16px;
  display: flex;
  gap: 4px;
}

.testimonial-text {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 28px;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
}

.testimonial-author img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--blue);
}

.testimonial-author h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.testimonial-author p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   CONTACT & DEMO FORM SECTION
   ========================================================================== */

#contacto {
  background: linear-gradient(135deg, #0B0F19 0%, #0F172A 50%, #172554 100%);
  position: relative;
  overflow: hidden;
  padding: 140px 24px;
}

#contacto::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

#contacto::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 70px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.contact-left h2 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}

.contact-left h2 span {
  color: var(--orange);
}

.contact-left p {
  color: rgba(248, 250, 252, 0.8);
  font-size: 1.12rem;
  line-height: 1.7;
  margin-bottom: 36px;
}

.contact-perks-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

.contact-perk-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.95rem;
}

.perk-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.contact-info-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 24px;
}

.contact-info-box strong {
  color: #FFFFFF;
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
  font-family: var(--font-display);
}

.contact-info-box p {
  color: rgba(248, 250, 252, 0.65);
  font-size: 0.88rem;
  margin: 0;
}

.contact-form-card {
  background: var(--bg-card);
  border-radius: 32px;
  padding: 48px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-subtle);
  position: relative;
}

.contact-form-card h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.contact-form-card .form-sub {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-group input, .form-group select {
  width: 100%;
  padding: 15px 18px;
  background: var(--bg-subtle);
  border: 1.5px solid var(--border-subtle);
  border-radius: 14px;
  font-size: 0.96rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 500;
  transition: all 0.25s ease;
  outline: none;
}

.form-group input::placeholder {
  color: var(--text-light);
}

.form-group input:focus, .form-group select:focus {
  border-color: var(--blue);
  background: var(--bg-card);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.btn-submit {
  width: 100%;
  padding: 18px;
  margin-top: 12px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: white;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(37, 99, 235, 0.55);
}

.btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

#form-status {
  margin-top: 16px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  min-height: 22px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-subtle);
  padding: 100px 24px 36px;
}

.footer-grid {
  max-width: 1240px;
  margin: 0 auto 50px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand img {
  height: 48px;
  width: auto;
  margin-bottom: 18px;
}

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

.msm-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  background: var(--bg-card);
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

.msm-badge img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  margin: 0;
}

.msm-badge span {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 22px;
}

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

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s;
  display: inline-block;
}

.footer-col a:hover {
  color: var(--orange);
  transform: translateX(3px);
}

.footer-contact-item {
  font-size: 0.9rem;
  color: var(--blue);
  font-weight: 600;
}

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

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

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

.social-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--border-subtle);
}

.social-icon:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.social-instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: white; border-color: transparent; }
.social-facebook:hover { background: #1877F2; color: white; border-color: #1877F2; }
.social-linkedin:hover { background: #0A66C2; color: white; border-color: #0A66C2; }
.social-tiktok:hover { background: #111111; color: white; border-color: #111111; }

/* ==========================================================================
   WHATSAPP & FLOATING ASSISTANT
   ========================================================================== */

.wa-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
}

.wa-btn:hover {
  transform: scale(1.1) translateY(-4px);
  box-shadow: 0 16px 40px rgba(37, 211, 102, 0.55);
}

/* ==========================================================================
   SCROLL REVEAL & ANIMATIONS
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   TOASTS & NOTIFICATIONS
   ========================================================================== */

#toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 10002;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 16px 22px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  transform: translateX(-120%);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--blue);
}

.toast.toast-success {
  border-left-color: #10B981;
}

.toast.toast-success i {
  color: #10B981;
}

.toast.toast-error {
  border-left-color: #EF4444;
}

.toast.toast-error i {
  color: #EF4444;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

@media (max-width: 1024px) {
  nav { display: none; }
  .btn-hamburger { display: block; }
  .otto-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat-item:nth-child(2)::after { display: none; }
  .cockpit-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .video-highlights { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  section { padding: 60px 16px; }
  #inicio { padding: 100px 16px 40px; }
  
  /* Header Mobile Optimization */
  header .btn-demo { display: none !important; }
  .nav-container { padding: 0 14px; }
  .brand-name { font-size: 1rem; }
  .brand-sub { font-size: 0.55rem; }

  /* Hero & Cockpit Mobile Optimization */
  .hero-badge { padding: 6px 14px; margin-bottom: 20px; font-size: 0.72rem; }
  .hero-badge span { font-size: 0.72rem; }
  .hero-ctas { flex-direction: column; width: 100%; max-width: 320px; margin-left: auto; margin-right: auto; gap: 10px; margin-bottom: 28px; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; padding: 13px 20px; font-size: 0.92rem; }
  .hero-cockpit { padding: 16px 14px; border-radius: 18px; }
  .cockpit-header { margin-bottom: 12px; padding-bottom: 10px; gap: 8px; }
  .cockpit-property-name { font-size: 0.86rem; }
  .cockpit-status-tag { font-size: 0.68rem; padding: 4px 8px; }
  .cockpit-grid { grid-template-columns: 1fr; gap: 8px; }
  .cockpit-tile { padding: 10px 12px; }
  .cockpit-tile-value { font-size: 1.1rem; }

  /* OTTO AI SECTION MOBILE PERFECTION */
  #otto { padding: 50px 0; overflow: hidden; }
  .otto-grid { grid-template-columns: 1fr; gap: 28px; width: 100%; max-width: 100%; }
  .otto-chat-card {
    border-radius: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  .otto-card-topbar {
    padding: 12px 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
    align-items: center;
  }
  .otto-identity { gap: 10px; flex: 1 1 auto; min-width: 160px; }
  .otto-avatar-halo { width: 34px; height: 34px; flex-shrink: 0; }
  .otto-header-name { font-size: 0.84rem; line-height: 1.3; }
  .otto-header-status { font-size: 0.68rem; }
  .otto-card-topbar .tag { font-size: 0.64rem; padding: 3px 8px; white-space: nowrap; }
  
  .otto-preset-prompts {
    padding: 10px 12px;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .prompt-chip {
    padding: 6px 12px;
    font-size: 0.74rem;
    flex-shrink: 0;
    scroll-snap-align: start;
    white-space: nowrap;
  }
  
  .chat-body {
    padding: 14px 12px;
    min-height: auto;
    gap: 12px;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
  }
  .msg {
    max-width: 90% !important;
    padding: 12px 14px !important;
    font-size: 0.86rem !important;
    line-height: 1.5 !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
  }
  .legal-cite-box {
    font-size: 0.74rem !important;
    padding: 6px 10px !important;
    margin-top: 6px !important;
    line-height: 1.4 !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
  }
  
  .chat-tags {
    padding: 10px 12px 14px;
    gap: 6px;
    display: flex !important;
    flex-wrap: wrap !important;
  }
  .chat-tags .tag {
    font-size: 0.66rem;
    padding: 4px 8px;
    white-space: normal;
  }

  .otto-feature-card {
    padding: 14px;
    gap: 12px;
    border-radius: 14px;
    margin-bottom: 10px;
  }
  .otto-feature-icon {
    width: 36px;
    height: 36px;
    font-size: 0.92rem;
    border-radius: 10px;
  }
  .otto-feature-title { font-size: 0.9rem; margin-bottom: 2px; }
  .otto-feature-desc { font-size: 0.8rem; line-height: 1.45; }

  /* Modules & Grids */
  .modules-grid { grid-template-columns: 1fr; gap: 12px; }
  .modules-filter-bar { gap: 6px; margin: 20px auto 16px; }
  .filter-btn { padding: 7px 12px; font-size: 0.75rem; }
  .value-grid { grid-template-columns: 1fr; gap: 14px; }
  .value-card { padding: 28px 18px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact-form-card { padding: 24px 16px; border-radius: 20px; }
  
  /* Footer & Floating Widgets */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 14px; }
  .wa-btn { bottom: 16px; right: 16px; width: 48px; height: 48px; }
  #mini-chat-widget { bottom: 74px; right: 16px; }
  #chat-toggle-btn { width: 48px; height: 48px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; gap: 10px; }
  .stat-item { padding: 12px 8px; }
  .stat-item::after { display: none; }
  .stat-number { font-size: 2.1rem; }
}
