/* ==========================================================================
   OPTICORE AI - DESIGN SYSTEM & STYLES (TECHNOLOGICAL REFINED)
   ========================================================================== */

/* Variables */
:root {
  /* Colors */
  --bg-color: hsl(220, 20%, 6%);
  --bg-card: hsl(220, 20%, 9%);
  --bg-card-hover: hsl(220, 20%, 12%);
  
  --primary-glow: hsla(185, 100%, 50%, 0.15);
  --secondary-glow: hsla(155, 100%, 50%, 0.15);
  
  --text-main: hsl(210, 15%, 90%);
  --text-muted: hsl(210, 10%, 65%);
  --text-inverse: hsl(220, 20%, 6%);
  
  --accent-cyan: hsl(185, 100%, 50%);
  --accent-mint: hsl(155, 100%, 50%);
  --accent-red: hsl(355, 100%, 60%);
  
  --border-color: hsla(210, 15%, 90%, 0.08);
  --border-glow: hsla(185, 100%, 50%, 0.3);
  
  /* Fonts */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  /* Layout */
  --container-max-width: 1200px;
  --header-height: 80px;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

html {
  font-size: 16px;
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-card);
  border: 2px solid var(--bg-color);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

/* Background Gradients & Grid */
.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -2;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.02) 1.5px, transparent 0);
  background-size: 32px 32px;
  opacity: 0.8;
}

.glow-bg {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  pointer-events: none;
  z-index: -3;
  filter: blur(140px);
  opacity: 0.35;
}

.glow-1 {
  top: -10%;
  right: -5%;
  background: radial-gradient(circle, var(--accent-cyan), transparent 70%);
}

.glow-2 {
  bottom: -15%;
  left: -10%;
  background: radial-gradient(circle, var(--accent-mint), transparent 70%);
}

#bg-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* Helper Utilities */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 100px 0;
}

.section-border-top {
  border-top: 1px solid var(--border-color);
}

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

.text-glow {
  text-shadow: 0 0 12px var(--accent-cyan);
}

.max-w-md {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.max-w-sm {
  max-width: 760px;
}

.align-center {
  align-items: center;
}

.gap-md {
  gap: 32px;
}

.gap-lg {
  gap: 64px;
}

.hidden-svg {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

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

/* Header & Nav */
.main-header {
  position: sticky;
  top: 0;
  width: 100%;
  height: var(--header-height);
  display: flex;
  align-items: center;
  z-index: 100;
  background: rgba(11, 12, 16, 0.7);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.logo-text .highlight {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-mint));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.desktop-nav {
  display: flex;
  gap: 24px;
}

.desktop-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.desktop-nav a:hover {
  color: var(--accent-cyan);
}

/* Mobile Nav Drawer */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  transition: all 0.3s ease;
}

.mobile-drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100vw;
  height: calc(100vh - var(--header-height));
  background: var(--bg-color);
  z-index: 99;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.77, 0.2, 0.05, 1);
  border-top: 1px solid var(--border-color);
  padding: 40px 24px;
}

.mobile-drawer.active {
  transform: translateX(0);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
  border: 1px solid var(--border-glow);
  background: rgba(0, 242, 254, 0.05);
  color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.05);
}

.badge-error {
  border-color: rgba(255, 0, 0, 0.3);
  background: rgba(255, 0, 0, 0.05);
  color: var(--accent-red);
}

.badge-success {
  border-color: rgba(5, 255, 195, 0.3);
  background: rgba(5, 255, 195, 0.05);
  color: var(--accent-mint);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-mint));
  color: var(--text-inverse);
  border: none;
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 242, 254, 0.35);
}

.btn-secondary-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary-outline:hover {
  border-color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.03);
}

/* Grids */
.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Card base */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 32px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.card:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 242, 254, 0.04);
}

.card:hover::before {
  transform: translateX(100%);
}

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

.section-title {
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
}

/* 1. Hero Section */
.hero-section {
  padding: calc(var(--header-height) + 40px) 0 80px;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}



.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-title {
  margin-bottom: 20px;
}

.hero-description {
  font-size: 1.15rem;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  width: 100%;
  margin-bottom: 40px;
}

.hero-trust {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Dashboard Mockup in Hero */
.dashboard-mockup {
  background: #0f1118;
  border: 1px solid rgba(0, 242, 254, 0.35);
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.12), 0 20px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  position: relative;
}

.mockup-header {
  background: #141822;
  border-bottom: 1px solid var(--border-color);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.mockup-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.mockup-body {
  padding: 24px;
}

.mockup-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-main);
}

.mockup-log {
  background: #06070a;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  font-family: monospace;
  font-size: 0.75rem;
  line-height: 1.8;
  height: 160px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.log-entry {
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.log-entry .time {
  color: var(--text-muted);
  opacity: 0.6;
}

.log-entry .tag {
  font-weight: bold;
}

.log-entry.success {
  color: var(--accent-mint);
}

.log-entry.info {
  color: var(--accent-cyan);
}

.log-entry.process {
  color: var(--text-main);
}

.mockup-pulse {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-mint);
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--accent-mint);
  animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(3.5); opacity: 0; }
}

/* 2. Qué Hacemos Section Styles */
.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.card-icon {
  background: rgba(0, 242, 254, 0.06);
  border: 1px solid var(--border-glow);
  color: var(--accent-cyan);
  width: 54px;
  height: 54px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-title {
  font-size: 1.25rem;
}

/* 3. Problema - Solución Styles */
.comparison-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comparison-intro {
  font-size: 1.05rem;
}

.comparison-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 10px;
}

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

.list-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.icon-error {
  background: rgba(255, 0, 0, 0.1);
  color: var(--accent-red);
  border: 1px solid rgba(255, 0, 0, 0.2);
}

.icon-success {
  background: rgba(5, 255, 195, 0.1);
  color: var(--accent-mint);
  border: 1px solid rgba(5, 255, 195, 0.2);
}

/* 4. Pricing / Offer Cards */
.pricing-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pricing-card.featured {
  border-color: var(--border-glow);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.05);
}

.pricing-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-cyan);
  letter-spacing: 0.05em;
}

.pricing-title {
  font-size: 1.5rem;
}

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

.pricing-divider {
  width: 100%;
  height: 1px;
  background: var(--border-color);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  gap: 12px;
  font-size: 0.95rem;
  align-items: flex-start;
}

.pricing-features .bullet {
  color: var(--accent-mint);
  font-weight: 700;
}

/* Target Profile inside Card */
.target-profile {
  background: rgba(0, 242, 254, 0.03);
  border: 1px solid rgba(0, 242, 254, 0.12);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.target-profile.profile-secondary {
  background: rgba(5, 255, 195, 0.03);
  border: 1px solid rgba(5, 255, 195, 0.12);
}

.profile-label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-cyan);
}

.profile-secondary .profile-label {
  color: var(--accent-mint);
}

.profile-text {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* Card Guarantee Box */
.card-guarantee-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto; /* Push guarantee and CTA down if needed */
}

.card-guarantee-box.guarantee-box-secondary {
  border-color: rgba(5, 255, 195, 0.1);
}

.guarantee-box-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-cyan);
}

.guarantee-box-secondary .guarantee-box-header {
  color: var(--accent-mint);
}

.guarantee-box-icon {
  flex-shrink: 0;
}

.guarantee-box-title {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.guarantee-box-text {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Card Urgency Badge */
.card-urgency {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 0, 0, 0.05);
  border: 1px solid rgba(255, 0, 0, 0.15);
  padding: 10px 14px;
  border-radius: 8px;
  margin-top: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  color: hsl(0, 100%, 75%);
}

.card-urgency.accent-mint-urgency {
  background: rgba(5, 255, 195, 0.04);
  border: 1px solid rgba(5, 255, 195, 0.15);
  color: var(--accent-mint);
}

.urgency-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-red);
  box-shadow: 0 0 8px var(--accent-red);
  animation: pulse-red-dot 1.5s infinite;
  flex-shrink: 0;
}

.accent-mint-urgency .urgency-dot {
  background-color: var(--accent-mint);
  box-shadow: 0 0 8px var(--accent-mint);
  animation: pulse-mint-dot 1.5s infinite;
}

@keyframes pulse-red-dot {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 6px rgba(255, 0, 0, 0);
  }
  100% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
  }
}

@keyframes pulse-mint-dot {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(5, 255, 195, 0.7);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 6px rgba(5, 255, 195, 0);
  }
  100% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(5, 255, 195, 0);
  }
}

/* 5. Cómo Funciona (Timeline) Styles */
.timeline-container {
  position: relative;
  max-width: 800px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.timeline-bar {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 30px;
  width: 2px;
  background: var(--border-color);
}

.timeline-progress {
  width: 100%;
  height: 0%;
  background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-mint));
  transition: height 0.5s ease;
}

.timeline-item {
  position: relative;
  padding-left: 80px;
  transition: opacity 0.5s ease;
}

.timeline-dot {
  position: absolute;
  left: 16px;
  top: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  z-index: 2;
  transition: all 0.3s ease;
}

.timeline-item.active .timeline-dot {
  background: var(--bg-color);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}

.timeline-item.completed .timeline-dot {
  background: var(--accent-mint);
  border-color: var(--accent-mint);
  color: var(--text-inverse);
}

.timeline-title {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

/* AI Inmobiliario Section */
.realestate-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 20px;
}

.realestate-copy {
  display: flex;
  flex-direction: column;
  gap: 28px;
  background: rgba(10, 12, 18, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 36px 32px;
}

.realestate-cta-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-ghost-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  border: 1px solid rgba(0, 242, 254, 0.25);
  color: var(--accent-cyan);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  text-align: center;
}

.btn-ghost-outline:hover {
  background: rgba(0, 242, 254, 0.06);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 18px rgba(0, 242, 254, 0.1);
}

.btn-ghost-outline svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.btn-ghost-outline:hover svg {
  transform: translate(2px, -2px);
}

.pain-block {
  background: rgba(255, 60, 60, 0.04);
  border: 1px solid rgba(255, 60, 60, 0.12);
  border-radius: 14px;
  padding: 24px 28px;
}

.copy-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 10px;
  line-height: 1.35;
}

.copy-body {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

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

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.benefit-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(0, 242, 254, 0.06);
  border: 1px solid rgba(0, 242, 254, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
  margin-top: 2px;
}

.benefit-item div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.benefit-item strong {
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 600;
}

.benefit-item span {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Chat demo */
.chat-demo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.chat-window {
  width: 100%;
  max-width: 440px;
  background: #0e1118;
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0, 242, 254, 0.07), 0 20px 60px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: #141924;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-mint));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b0c10;
  flex-shrink: 0;
}

.chat-agent-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.chat-agent-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.chat-agent-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--accent-mint);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-mint);
  animation: pulse-mint-dot 1.5s infinite;
}

.chat-messages {
  flex: 1;
  min-height: 320px;
  max-height: 380px;
  overflow-y: auto;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.chat-bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.875rem;
  line-height: 1.5;
  animation: bubbleIn 0.3s ease;
}

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

.chat-bubble.agent {
  background: rgba(0, 242, 254, 0.07);
  border: 1px solid rgba(0, 242, 254, 0.12);
  color: var(--text-main);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-bubble.user {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-muted);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  background: rgba(0, 242, 254, 0.05);
  border: 1px solid rgba(0, 242, 254, 0.1);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  width: fit-content;
}

.chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  opacity: 0.5;
  animation: typingDot 1.2s infinite ease-in-out;
}

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

@keyframes typingDot {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.4; }
  40%           { transform: scale(1);   opacity: 1; }
}

.chat-input-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: #141924;
}

.chat-input {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-body);
  outline: none;
  cursor: not-allowed;
}

.chat-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(0,242,254,0.1);
  border: 1px solid rgba(0,242,254,0.2);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: not-allowed;
  flex-shrink: 0;
}

.chat-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.6;
  text-align: center;
}

@media (max-width: 900px) {
  .realestate-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .chat-window {
    max-width: 100%;
  }
}

/* 6. Casos de Éxito Styles */
.case-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  padding: 30px;
}

.case-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.case-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.case-logo svg {
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.case-meta {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-cyan);
  text-transform: uppercase;
}

.case-title {
  font-size: 1.2rem;
}

.case-metric {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-mint));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.case-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.case-client {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  width: 100%;
  padding-top: 12px;
}

/* 7. Garantías Styles */
.guarantee-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  overflow: hidden;
  padding: 36px 32px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(15, 17, 24, 0.9), rgba(20, 24, 34, 0.9));
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.guarantee-card:hover {
  transform: translateY(-4px);
}

.guarantee-card.highlighted-guarantee {
  border: 1px solid rgba(0, 242, 254, 0.25);
  box-shadow: 0 10px 30px rgba(0, 242, 254, 0.03);
}

.guarantee-card.highlighted-guarantee:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 15px 40px rgba(0, 242, 254, 0.08);
}

.guarantee-card.highlighted-guarantee-secondary {
  border: 1px solid rgba(5, 255, 195, 0.25);
  box-shadow: 0 10px 30px rgba(5, 255, 195, 0.03);
}

.guarantee-card.highlighted-guarantee-secondary:hover {
  border-color: var(--accent-mint);
  box-shadow: 0 15px 40px rgba(5, 255, 195, 0.08);
}

.guarantee-header {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.guarantee-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--accent-cyan);
  border: 1px solid var(--border-color);
}

.highlighted-guarantee-secondary .guarantee-icon {
  color: var(--accent-mint);
}

.guarantee-badge {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

.highlighted-guarantee .guarantee-badge {
  border-color: rgba(0, 242, 254, 0.2);
  color: var(--accent-cyan);
}

.highlighted-guarantee-secondary .guarantee-badge {
  border-color: rgba(5, 255, 195, 0.2);
  color: var(--accent-mint);
}

.guarantee-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 6px;
}

.guarantee-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.guarantee-text strong {
  color: var(--text-main);
}

/* 8. FAQ Accordion Styles */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--border-glow);
}

.faq-question {
  width: 100%;
  padding: 24px;
  background: transparent;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  gap: 16px;
}

.faq-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  color: var(--text-muted);
}

.faq-item.active .faq-chevron {
  transform: rotate(-180deg);
  color: var(--accent-cyan);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.faq-answer p {
  padding: 0 24px 24px;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* 9. Final CTA & Footer */
.final-cta-section {
  position: relative;
  overflow: hidden;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 36px;
}

.main-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  background: #07080b;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand p {
  font-size: 0.85rem;
  margin-top: 8px;
}

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

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .desktop-nav, .nav-cta {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .section-padding {
    padding: 60px 0;
  }
  
  .hero-actions, .cta-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
  }
  
  .timeline-bar {
    left: 20px;
  }
  
  .timeline-dot {
    left: 6px;
  }
  
  .timeline-item {
    padding-left: 50px;
  }
  
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}
