/* ============================================
   autoasistente Landing — Global Styles
   ============================================ */

:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: #3B82F6;
  --secondary: #10B981;
  --secondary-dark: #059669;
  --accent-purple: #7C3AED;
  --accent-orange: #F59E0B;
  --bg: #FFFFFF;
  --bg-alt: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F8FAFC;
  --white: #FFFFFF;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --text: #1A1A2E;
  --text-secondary: #4A5568;
  --border: #E2E8F0;
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 25px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.05);
  --shadow-xl: 0 20px 50px -12px rgba(0,0,0,.12);
  --transition: all 0.3s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-secondary);
  line-height: 1.6;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 700;
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.hidden { display: none !important; }

/* ── Container ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

@media (max-width: 768px) {
  .container { padding: 0 1rem; }
}

/* ============================================
   Navbar
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1px 12px rgba(0,0,0,.06);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo {
  height: 36px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.3));
}

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

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--gray-100);
  border-radius: 6px;
  padding: 2px;
}

.lang-btn {
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-500);
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
}

.lang-btn:hover { color: var(--text); }
.lang-btn.active { color: var(--white); background: var(--primary); }

/* Nav Buttons */
.nav-btn {
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.nav-btn-ghost {
  background: transparent;
  color: var(--gray-600);
  border: 1px solid var(--border);
}

.nav-btn-ghost:hover { color: var(--text); border-color: var(--gray-300); }

.nav-btn-primary {
  background: var(--primary);
  color: var(--white);
}

.nav-btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

@media (max-width: 968px) {
  .nav-toggle { display: flex; }

  .nav-links,
  .nav-right {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open,
  .nav-right.open {
    display: flex;
  }

  .nav-links a { font-size: 1.125rem; padding: 0.5rem 0; }
  .nav-right { align-items: stretch; }
  .nav-btn { text-align: center; padding: 12px; }
  .lang-switcher { justify-content: center; }
}

/* ============================================
   Buttons (Global)
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(0,102,255,.35);
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,102,255,.45);
}

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

.btn-secondary:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
  transform: translateY(-2px);
}

.btn-green {
  background: var(--secondary);
  color: var(--gray-900);
  box-shadow: 0 4px 14px rgba(0,230,118,.3);
}

.btn-green:hover {
  background: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,230,118,.4);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.125rem;
}

.btn-outline-white {
  background: var(--white);
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-outline-white:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
}

@media (max-width: 768px) {
  .btn-lg { padding: 0.875rem 1.5rem; font-size: 1rem; }
}

/* ============================================
   Sections
   ============================================ */

.section {
  padding: 6rem 0;
  position: relative;
}

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

.section-title {
  font-size: 2.75rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.125rem;
  text-align: center;
  color: var(--gray-500);
  max-width: 640px;
  margin: 0 auto 3.5rem;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .section { padding: 4rem 0; }
  .section-title { font-size: 2rem; }
  .section-subtitle { font-size: 1rem; margin-bottom: 2.5rem; }
}

/* ============================================
   Hero
   ============================================ */

.hero {
  padding: 8rem 0 5rem;
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(37,99,235,.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124,58,237,.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 6px 16px;
  background: rgba(37,99,235,.06);
  border: 1px solid rgba(37,99,235,.15);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.hero-badge i { font-size: 0.75rem; }

.brand-logo {
  width: min(280px, 70vw);
  height: auto;
  max-height: 64px;
  object-fit: contain;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.3));
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--gray-500);
  margin-bottom: 2rem;
  line-height: 1.7;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.hero-stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  font-family: 'Poppins', sans-serif;
}

.hero-stat-label {
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-top: 2px;
}

@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .hero-content { order: 1; }
  .hero-visual { order: 2; }
  .hero-title { font-size: 2.75rem; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-badge { margin-left: auto; margin-right: auto; }
}

@media (max-width: 768px) {
  .hero { padding: 6rem 0 3rem; min-height: auto; }
  .hero-title { font-size: 2.125rem; }
  .hero-subtitle { font-size: 1.0625rem; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
}

/* ============================================
   Benefits / Cards Grid
   ============================================ */

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

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--gray-300);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card-text {
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .cards-grid { grid-template-columns: 1fr; }
}

/* ============================================
   How It Works — Steps
   ============================================ */

.steps-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
}

.step-card {
  flex: 1;
  max-width: 340px;
  text-align: center;
  padding: 2rem 1.5rem;
}

.step-number {
  width: 56px;
  height: 56px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 14px rgba(0,102,255,.35);
  font-family: 'Poppins', sans-serif;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.step-text {
  color: var(--gray-500);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.step-icons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1rem;
  font-size: 1.5rem;
}

.step-icons i { color: var(--secondary); }

.step-arrow {
  display: flex;
  align-items: center;
  padding-top: 2rem;
  color: var(--gray-600);
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  .steps-row { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); padding: 0; }
  .step-card { max-width: 100%; }
}

/* ============================================
   Results / Stats
   ============================================ */

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

.stat-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.stat-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.stat-value {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-light);
  font-family: 'Poppins', sans-serif;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9375rem;
  color: var(--gray-500);
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .stat-value { font-size: 2.25rem; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================
   Testimonials
   ============================================ */

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

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: var(--gray-300);
  box-shadow: var(--shadow-lg);
}

.testimonial-stars {
  color: #FFB800;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 2px;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.author-name {
  font-weight: 600;
  color: var(--text);
  font-size: 0.9375rem;
}

.author-role {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

@media (max-width: 1024px) {
  .testimonials-grid { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
}

/* ============================================
   CTA Section
   ============================================ */

.cta-section {
  padding: 5rem 0;
  text-align: center;
  background: linear-gradient(135deg, rgba(37,99,235,.04) 0%, rgba(124,58,237,.03) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-section .section-title { margin-bottom: 0.75rem; }
.cta-section .section-subtitle { margin-bottom: 2rem; }

/* ============================================
   Pricing
   ============================================ */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--gray-300);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(37,99,235,.03) 0%, var(--white) 100%);
  box-shadow: 0 0 30px rgba(37,99,235,.08);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  padding: 4px 16px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.pricing-name {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.pricing-desc {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

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

.pricing-amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  line-height: 1;
}

.pricing-period {
  font-size: 1rem;
  color: var(--gray-500);
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.5;
}

.pricing-features li i {
  color: var(--secondary);
  margin-top: 3px;
  flex-shrink: 0;
}

.pricing-card .btn {
  width: 100%;
}

.pricing-guarantee {
  text-align: center;
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.pricing-guarantee i {
  color: var(--secondary);
  margin-right: 0.5rem;
}

.pricing-guarantee span {
  color: var(--gray-400);
  font-size: 0.9375rem;
}

@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
}

/* ============================================
   Features Page — Categories
   ============================================ */

.feature-category {
  margin-bottom: 4rem;
}

.feature-category:last-child { margin-bottom: 0; }

.feature-cat-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.feature-cat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--white);
}

.feature-cat-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 0.75rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.feature-item:hover {
  background: var(--gray-50);
  transform: translateX(4px);
  border-color: var(--gray-300);
}

.feature-item i {
  color: var(--secondary);
  font-size: 1rem;
  flex-shrink: 0;
}

.feature-item span {
  font-size: 0.9375rem;
  color: var(--gray-600);
}

@media (max-width: 640px) {
  .feature-list { grid-template-columns: 1fr; }
}

/* ============================================
   Contact Page
   ============================================ */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 2.5rem;
  border-radius: var(--radius-xl);
}

.contact-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.contact-form label {
  font-weight: 600;
  color: var(--gray-600);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-form label i {
  color: var(--primary);
  font-size: 0.8125rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  padding: 0.75rem 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--text);
  transition: var(--transition);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--gray-400);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.08);
}

.contact-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 2rem;
}

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

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

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  background: rgba(0,102,255,.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  font-size: 1.125rem;
  flex-shrink: 0;
}

.contact-info-label {
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-bottom: 2px;
}

.contact-info-value {
  font-weight: 600;
  color: var(--text);
  font-size: 0.9375rem;
}

.success-message {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--white);
  border: 1px solid rgba(16,185,129,.2);
  border-radius: var(--radius-xl);
}

.success-message i {
  font-size: 3rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.success-message h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.success-message p {
  color: var(--gray-400);
}

@media (max-width: 768px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-form { padding: 1.5rem; }
  .form-row-2 { grid-template-columns: 1fr; }
}

/* ============================================
   Demo Chat (shared across pages)
   ============================================ */

.demo-wrapper {
  max-width: 520px;
}

.demo-form-wrapper,
.demo-chat-wrapper {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.demo-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.demo-title i { color: var(--primary); }

.demo-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.demo-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.demo-form label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-600);
}

.demo-form label i {
  color: var(--primary);
  margin-right: 4px;
  font-size: 0.75rem;
}

.demo-form input,
.demo-form textarea {
  padding: 0.625rem 0.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--text);
  transition: var(--transition);
}

.demo-form input::placeholder,
.demo-form textarea::placeholder {
  color: var(--gray-400);
}

.demo-form input:focus,
.demo-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.08);
}

.demo-form textarea { resize: vertical; }

/* Demo Chat */
.demo-chat {
  background: #ECE5DD;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.chat-header {
  background: #075E54;
  color: var(--white);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.reset-button {
  background: transparent;
  border: none;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  padding: 0.375rem;
  transition: opacity 0.3s;
}

.reset-button:hover { opacity: 0.8; }

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex: 1;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.chat-name { font-weight: 600; font-size: 0.9375rem; }
.chat-status { font-size: 0.6875rem; opacity: 0.8; }

.chat-messages {
  padding: 1rem;
  min-height: 300px;
  max-height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.message {
  display: flex;
  flex-direction: column;
  max-width: 80%;
  padding: 0.625rem 0.75rem;
  border-radius: 8px;
  animation: msgSlide 0.3s ease;
}

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

.message p { margin: 0; font-size: 0.875rem; line-height: 1.5; color: #1a202c; }
.message p strong { font-weight: 600; color: #111827; }
.message p ul { margin: 6px 0 4px 0; padding-left: 0; list-style: none; }
.message p ul li { padding: 3px 0 3px 14px; position: relative; font-size: 0.8125rem; line-height: 1.4; }
.message p ul li::before { content: ''; position: absolute; left: 0; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--primary, #2563EB); }
.message p br + br { display: none; }
.message .time { font-size: 0.625rem; opacity: 0.5; text-align: right; margin-top: 2px; color: #4a5568; }
.bot-message { align-self: flex-start; background: var(--white); border: 1px solid #e2e8f0; }
.user-message { align-self: flex-end; background: #DCF8C6; }

.chat-input-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  padding: 0.625rem;
  background: #fff;
  border-top: 1px solid #e2e8f0;
}

.chat-input-wrap input {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: #1a202c;
  font-family: inherit;
}

.chat-input-wrap input:focus {
  outline: none;
  border-color: var(--primary);
}

.chat-input-wrap .btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

@media (max-width: 1024px) {
  .demo-wrapper { max-width: 100%; }
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background: var(--gray-900);
  border-top: 1px solid var(--border);
  padding: 4rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-brand-logo {
  height: 36px;
  width: auto;
  margin-bottom: 1rem;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.3));
}

.footer-text {
  color: var(--gray-500);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  transition: var(--transition);
  font-size: 0.9375rem;
}

.social-link:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-heading {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

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

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

.footer-links a {
  color: var(--gray-500);
  font-size: 0.9375rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

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

.footer-bottom p {
  color: var(--gray-600);
  font-size: 0.8125rem;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: var(--gray-600);
  font-size: 0.8125rem;
  transition: var(--transition);
}

.footer-legal a:hover { color: var(--white); }

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal { flex-wrap: wrap; justify-content: center; gap: 1rem; }
}

/* ============================================
   Animations (scroll-triggered)
   ============================================ */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger > .animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.stagger > .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.stagger > .animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.stagger > .animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.stagger > .animate-on-scroll:nth-child(5) { transition-delay: 0.4s; }
.stagger > .animate-on-scroll:nth-child(6) { transition-delay: 0.5s; }

/* ============================================
   Page header (for sub-pages)
   ============================================ */

.page-header {
  padding: 8rem 0 3rem;
  text-align: center;
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at top, rgba(37,99,235,.04) 0%, transparent 60%);
  pointer-events: none;
}

/* ============================================
   Utility
   ============================================ */

.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-md { max-width: 28rem; }
