:root {
  --bg-color: #030712;
  --panel-bg: rgba(15, 23, 42, 0.8);
  --primary: #38bdf8;
  --primary-glow: rgba(56, 189, 248, 0.4);
  --accent: #a855f7;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: rgba(56, 189, 248, 0.2);
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(56, 189, 248, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.05) 0%, transparent 40%);
}

header {
  width: 100%;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(3, 7, 18, 0.85);
}

.logo {
  font-size: 20px;
  font-weight: bold;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
}

.main-container {
  max-width: 1200px;
  width: 100%;
  margin: 40px 20px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 900px) {
  .main-container { grid-template-columns: 1fr; }
}

.hero-content h1 {
  font-size: 40px;
  line-height: 1.2;
  margin-bottom: 20px;
  font-weight: 800;
}

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

.hero-content p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 30px;
}

.chat-container {
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  backdrop-filter: blur(16px);
  box-shadow: 0 0 30px var(--primary-glow);
  display: flex;
  flex-direction: column;
  height: 500px;
  overflow: hidden;
}

.chat-header {
  background: rgba(15, 23, 42, 0.9);
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  width: 10px;
  height: 10px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
}

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

.message {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
}

.message.bot {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.message.user {
  background: linear-gradient(135deg, var(--primary), #0284c7);
  color: #000;
  font-weight: 500;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.chat-input-area {
  padding: 12px;
  background: rgba(15, 23, 42, 0.9);
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 8px;
}

.chat-input-area input {
  flex: 1;
  background: rgba(3, 7, 18, 0.6);
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text-main);
  outline: none;
  font-size: 14px;
}

.chat-input-area input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 8px var(--primary-glow);
}

.chat-input-area button {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none;
  padding: 0 18px;
  border-radius: 8px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.2s;
}

.chat-input-area button:hover { 
  opacity: 0.9; 
}

.section-title {
  text-align: center;
  margin: 60px 0 30px;
  font-size: 28px;
  font-weight: 700;
}

.section-title span { 
  color: var(--primary); 
}

.grid-nichos {
  max-width: 1200px;
  width: 100%;
  margin: 0 20px 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card-nicho {
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card-nicho:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px var(--primary-glow);
}

.card-nicho img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.card-nicho-content {
  padding: 15px;
  text-align: center;
}

.card-nicho-content h3 { 
  font-size: 16px; 
  margin-bottom: 5px; 
  color: var(--text-main); 
}

.card-nicho-content p { 
  font-size: 13px; 
  color: var(--text-muted); 
}

.grid-videos {
  max-width: 1200px;
  width: 100%;
  margin: 0 20px 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
}

.wa-simulation-box {
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.wa-header {
  background: #075e54;
  color: #fff;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wa-header small { 
  font-size: 11px; 
  color: #a1d9d0; 
  font-weight: normal; 
}

.wa-chat-body {
  background-color: #efeae2;
  background-image: radial-gradient(#d1cbc2 0.75px, transparent 0.75px);
  background-size: 15px 15px;
  height: 420px;
  padding: 15px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wa-bubble {
  max-width: 90%;
  width: fit-content;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.4;
  position: relative;
  box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
  animation: fadeIn 0.4s ease-in-out;
}

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

.wa-bubble.incoming {
  background: #ffffff;
  color: #303030;
  align-self: flex-start;
  border-top-left-radius: 0;
}

.wa-bubble.outgoing {
  background: #dcf8c6;
  color: #303030;
  align-self: flex-end;
  border-top-right-radius: 0;
}

.wa-timestamp {
  font-size: 9px;
  color: #888;
  float: right;
  margin-left: 8px;
  margin-top: 4px;
}

footer {
  width: 100%;
  text-align: center;
  padding: 25px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 14px;
}
