/* ==========================================================================
   BitOink - Sistema de Diseño y Estilos de la Nueva Landing Page
   ========================================================================== */

:root {
  --primary: #059669;
  --primary-hover: #047857;
  --primary-light: #d1fae5;
  --secondary: #0d9488;
  --accent: #10b981;
  
  --dark-bg: #0f172a;
  --dark-card: #1e293b;
  --dark-border: #334155;
  
  --light-bg: #f8fafc;
  --light-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  
  --telegram-blue: #0088cc;
  --telegram-bg: #e7f3f9;
  
  --font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 0 25px rgba(16, 185, 129, 0.2);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

a:hover {
  color: var(--primary-hover);
}

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

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

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e2e8f0;
  transition: var(--transition);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-bg);
}

.logo strong {
  color: var(--primary);
}

.logo-badge {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}

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

.nav-link {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.45);
  color: #ffffff;
}

.btn-telegram {
  background: linear-gradient(135deg, #0088cc 0%, #00a0e9 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 136, 204, 0.35);
}

.btn-telegram:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 136, 204, 0.45);
  color: #ffffff;
}

.btn-outline {
  background: transparent;
  border: 2px solid #cbd5e1;
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

/* Hero Section */
.hero-section {
  padding: 5rem 0 4rem;
  background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.08), transparent 50%),
              radial-gradient(circle at bottom left, rgba(13, 148, 136, 0.05), transparent 50%);
  text-align: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 0.4rem 1rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--dark-bg);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-title strong {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.hero-mockup-wrapper {
  position: relative;
  max-width: 950px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.2);
  border: 8px solid #ffffff;
  background: #ffffff;
}

.hero-mockup-wrapper img {
  width: 100%;
  border-radius: var(--radius-md);
}

/* Feature Grid & Cards */
.section {
  padding: 6rem 0;
}

.section-alt {
  background-color: #ffffff;
}

.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 4rem;
}

.section-subtitle {
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--dark-bg);
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Telegram IA Section (NEW DESTACADA) */
.telegram-ia-section {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.telegram-ia-section .section-subtitle {
  color: #38bdf8;
}

.telegram-ia-section .section-title {
  color: #ffffff;
}

.telegram-ia-section .section-description {
  color: #94a3b8;
}

.telegram-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.telegram-demo-card {
  background: #1e293b;
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 20px 30px rgba(0,0,0,0.3);
}

.telegram-chat-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--dark-border);
  margin-bottom: 1.5rem;
}

.telegram-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--telegram-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.25rem;
}

.telegram-title {
  font-weight: 700;
  font-size: 1.1rem;
}

.telegram-status {
  font-size: 0.8rem;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.telegram-status::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #38bdf8;
  border-radius: 50%;
  display: inline-block;
}

/* Chat Messages */
.chat-window {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.chat-bubble {
  max-width: 85%;
  padding: 0.9rem 1.2rem;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.chat-user {
  align-self: flex-end;
  background: #0284c7;
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.chat-bot {
  align-self: flex-start;
  background: #334155;
  color: #f1f5f9;
  border-bottom-left-radius: 4px;
  border: 1px solid #475569;
}

.chat-json-badge {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  padding: 0.6rem;
  border-radius: 8px;
  font-family: monospace;
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

/* Interactive Tabs / Cards for Telegram Features */
.ia-features-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ia-feature-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
  cursor: pointer;
}

.ia-feature-card:hover, .ia-feature-card.active {
  background: rgba(255, 255, 255, 0.1);
  border-color: #38bdf8;
  transform: translateX(5px);
}

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

.ia-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0284c7, #0d9488);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #ffffff;
}

.ia-feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
}

.ia-feature-desc {
  font-size: 0.9rem;
  color: #94a3b8;
}

/* Classic Features Layout */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 5rem;
}

.feature-row.reverse {
  direction: rtl;
}

.feature-row.reverse > * {
  direction: ltr;
}

.feature-img-box {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid #e2e8f0;
}

.feature-info h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark-bg);
  margin-bottom: 1rem;
}

.feature-info p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.feature-item-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-item-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: bold;
}

.feature-item-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark-bg);
  margin-bottom: 0.25rem;
}

.feature-item-content p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Grid Section for All Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.grid-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 2rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.grid-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.grid-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-light), #ccfbf1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.grid-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--dark-bg);
}

.grid-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #ffffff;
  padding: 5rem 0;
  text-align: center;
}

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

.cta-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 2.5rem;
}

/* Footer */
.footer {
  background-color: var(--dark-bg);
  color: #94a3b8;
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--dark-border);
}

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

.footer-brand .logo {
  color: #ffffff;
  margin-bottom: 1rem;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-heading {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

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

.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid var(--dark-border);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .telegram-grid {
    grid-template-columns: 1fr;
  }
  .feature-row, .feature-row.reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 2rem;
  }
  .nav-links {
    display: none;
  }
  .hero-actions {
    flex-direction: column;
  }
}
