/* ============================================
   Fast Data Systems — Paleta Azul/Teal
   ============================================ */
:root {
  --primary: #0a4b6e;        /* Azul profundo */
  --primary-dark: #072f4a;   /* Azul más oscuro */
  --primary-light: #1a6b96;  /* Azul medio */
  --secondary: #0d9488;      /* Teal principal */
  --secondary-light: #14b8a6; /* Teal claro */
  --secondary-dark: #0f766e;  /* Teal oscuro */
  --accent: #2dd4bf;         /* Teal brillante para acentos */
  --bg-dark: #0f172a;        /* Fondo oscuro (slate-900) */
  --bg-card: #1e293b;        /* Fondo tarjetas (slate-800) */
  --text-light: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dark: #0f172a;
  --gradient-hero: linear-gradient(135deg, #072f4a 0%, #0d9488 100%);
  --gradient-card: linear-gradient(135deg, #0a4b6e 0%, #0d9488 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==================== NAVBAR ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(13, 148, 136, 0.15);
  transition: all 0.3s;
}

.navbar.scrolled {
  background: rgba(15, 23, 42, 0.98);
  border-bottom-color: rgba(13, 148, 136, 0.3);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-light);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 1px;
}

.logo-icon {
  width: 32px;
  height: 32px;
}

.logo-text {
  font-weight: 800;
}

.logo-accent {
  color: var(--secondary);
}

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

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

.nav-links a:hover {
  color: var(--secondary-light);
}

.btn-nav {
  background: var(--secondary) !important;
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}

.btn-nav:hover {
  background: var(--secondary-dark) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-light);
  border-radius: 2px;
  transition: 0.3s;
}

/* ==================== HERO ==================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 70px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(45, 212, 191, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(13, 148, 136, 0.08) 0%, transparent 50%);
}

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

.hero-badge {
  display: inline-block;
  background: rgba(13, 148, 136, 0.15);
  border: 1px solid rgba(13, 148, 136, 0.3);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--secondary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(241, 245, 249, 0.8);
  max-width: 650px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn-primary {
  display: inline-block;
  background: var(--secondary);
  color: #fff;
  padding: 14px 32px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

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

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--text-light);
  padding: 14px 32px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid rgba(241, 245, 249, 0.2);
  transition: all 0.2s;
}

.btn-secondary:hover {
  border-color: var(--secondary-light);
  color: var(--secondary-light);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

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

/* ==================== SECTIONS ==================== */
.section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-light);
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 48px;
}

/* ==================== CARDS SERVICE ==================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid rgba(13, 148, 136, 0.1);
  border-radius: 16px;
  padding: 32px 24px;
  transition: all 0.3s;
}

.card:hover {
  border-color: rgba(13, 148, 136, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(13, 148, 136, 0.1);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-light);
}

.card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.card-features {
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.card-features li {
  margin-bottom: 6px;
}

/* ==================== PLANS ==================== */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: start;
}

.plan-card {
  background: var(--bg-card);
  border: 1px solid rgba(13, 148, 136, 0.1);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  position: relative;
  transition: all 0.3s;
}

.plan-card:hover {
  border-color: rgba(13, 148, 136, 0.3);
  transform: translateY(-4px);
}

.plan-featured {
  border-color: var(--secondary) !important;
  box-shadow: 0 0 30px rgba(13, 148, 136, 0.15);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-card);
  color: #fff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.plan-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-light);
}

.plan-price {
  margin-bottom: 12px;
}

.plan-price .price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
}

.plan-price .period {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.plan-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 24px;
}

.plan-features {
  list-style: none;
  text-align: left;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.plan-features li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.plan-features li:last-child {
  border-bottom: none;
}

.btn-plan {
  display: inline-block;
  width: 100%;
  padding: 12px;
  background: var(--bg-dark);
  color: var(--text-light);
  border: 1px solid rgba(13, 148, 136, 0.3);
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.btn-plan:hover {
  background: var(--secondary);
  border-color: var(--secondary);
}

.btn-plan-featured {
  background: var(--secondary) !important;
  border-color: var(--secondary) !important;
}

.btn-plan-featured:hover {
  background: var(--secondary-dark) !important;
}

/* ==================== STEPS ==================== */
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.step {
  text-align: center;
  max-width: 240px;
}

.step-num {
  width: 48px;
  height: 48px;
  background: var(--gradient-card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 auto 16px;
}

.step h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-light);
}

.step p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.step-arrow {
  font-size: 1.5rem;
  color: var(--secondary);
  font-weight: 300;
}

/* ==================== FAQ ==================== */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid rgba(13, 148, 136, 0.1);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: var(--bg-card);
  border: none;
  color: var(--text-light);
  padding: 18px 20px;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.faq-question:hover {
  background: rgba(13, 148, 136, 0.08);
}

.faq-question span {
  font-size: 1.3rem;
  color: var(--secondary);
  transition: transform 0.3s;
}

.faq-item.active .faq-question span {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--bg-dark);
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ==================== CONTACT ==================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid rgba(13, 148, 136, 0.15);
  border-radius: 10px;
  color: var(--text-light);
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--secondary);
}

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

.contact-form select option {
  background: var(--bg-card);
  color: var(--text-light);
}

.btn-full {
  width: 100%;
  text-align: center;
}

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

.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-info-item span {
  font-size: 1.3rem;
  line-height: 1;
}

.contact-info-item strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 2px;
  color: var(--text-light);
}

.contact-info-item div {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==================== FOOTER ==================== */
.footer {
  border-top: 1px solid rgba(13, 148, 136, 0.1);
  padding: 48px 0;
}

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

.footer-brand strong {
  font-size: 1rem;
  color: var(--text-light);
  letter-spacing: 1px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 8px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 24px 0;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

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

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

/* ==================== CHATBOT ==================== */
.chat-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-card);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(13, 148, 136, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 999;
  transition: transform 0.2s;
}

.chat-btn:hover {
  transform: scale(1.1);
}

.chat-window {
  position: fixed;
  bottom: 92px;
  right: 24px;
  width: 360px;
  max-width: calc(100vw - 48px);
  height: 520px;
  max-height: calc(100vh - 120px);
  background: var(--bg-card);
  border: 1px solid rgba(13, 148, 136, 0.2);
  border-radius: 16px;
  display: none;
  flex-direction: column;
  z-index: 999;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.chat-window.open {
  display: flex;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: var(--gradient-card);
}

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

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
}

.chat-header-title {
  font-weight: 600;
  font-size: 0.9rem;
}

.chat-header-status {
  font-size: 0.75rem;
  opacity: 0.8;
}

.chat-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.chat-close:hover {
  opacity: 1;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 3px;
}

.chat-msg {
  max-width: 85%;
}

.chat-msg.bot {
  align-self: flex-start;
}

.chat-msg.user {
  align-self: flex-end;
}

.msg-bubble {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.85rem;
  line-height: 1.5;
}

.chat-msg.bot .msg-bubble {
  background: var(--bg-dark);
  border: 1px solid rgba(13, 148, 136, 0.15);
  border-bottom-left-radius: 4px;
}

.chat-msg.user .msg-bubble {
  background: var(--secondary);
  border-bottom-right-radius: 4px;
}

.chat-suggestions {
  display: flex;
  gap: 8px;
  padding: 0 16px 12px;
  flex-wrap: wrap;
}

.suggestion-chip {
  padding: 6px 14px;
  background: rgba(13, 148, 136, 0.1);
  border: 1px solid rgba(13, 148, 136, 0.2);
  border-radius: 20px;
  color: var(--secondary-light);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.suggestion-chip:hover {
  background: var(--secondary);
  color: #fff;
}

.chat-input-area {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid rgba(13, 148, 136, 0.1);
}

.chat-input {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg-dark);
  border: 1px solid rgba(13, 148, 136, 0.15);
  border-radius: 24px;
  color: var(--text-light);
  font-family: inherit;
  font-size: 0.85rem;
}

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

.chat-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--secondary);
  border: none;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.chat-send:hover {
  background: var(--secondary-dark);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(13, 148, 136, 0.15);
  }

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

  .nav-toggle {
    display: flex;
  }

  .hero-stats {
    gap: 24px;
  }

  .steps {
    flex-direction: column;
  }

  .step-arrow {
    transform: rotate(90deg);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .chat-window {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: 80px;
  }
}
