/* ===================================================================
   Central de Mensajes — Marketing Site Custom Styles
   Brand: #006D77 (primary) · #83C5BE (light) · #4A444A (dark)
   =================================================================== */

:root {
  --primary: #006D77;
  --primary-light: #83C5BE;
  --primary-50: #EDF6F9;
  --dark: #4A444A;
  --wa-green: #25D366;
  --fb-blue: #1877F2;
  --ig-pink: #E1306C;
}

/* ── Scroll & Selection ──────────────────────────────────── */
html { scroll-behavior: smooth; }
::selection { background: var(--primary-light); color: #fff; }
[x-cloak] { display: none !important; }

/* ── Navbar ──────────────────────────────────────────────── */
#navbar { background: transparent; }
#navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}
#navbar.scrolled .nav-link { color: var(--dark); }
/* Single logo, filtered white on dark, full color on light */
#navbar .nav-logo { filter: brightness(0) invert(1); }
#navbar.scrolled .nav-logo { filter: none; }

.nav-link {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s;
  text-decoration: none;
}
.nav-link:hover { color: #fff; }
#navbar.scrolled .nav-link:hover { color: var(--primary); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--primary); color: #fff;
  padding: 0.7rem 1.5rem; border-radius: 9999px;
  font-weight: 600; font-size: 0.9rem;
  text-decoration: none; transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(0,109,119,0.3);
}
.btn-primary:hover { background: #005a63; transform: translateY(-1px); }

.btn-primary-lg {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: #fff; color: var(--primary);
  padding: 0.9rem 2rem; border-radius: 9999px;
  font-weight: 700; font-size: 1rem;
  text-decoration: none; transition: all 0.2s;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.btn-primary-lg:hover { background: #f0fffe; transform: translateY(-2px); }

.btn-wa {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--wa-green); color: #fff;
  padding: 0.9rem 2rem; border-radius: 9999px;
  font-weight: 700; font-size: 1rem;
  text-decoration: none; transition: all 0.2s;
  box-shadow: 0 6px 20px rgba(37,211,102,0.35);
}
.btn-wa:hover { background: #1da851; transform: translateY(-2px); }

.btn-wa-sm {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--wa-green); color: #fff;
  padding: 0.55rem 1.2rem; border-radius: 9999px;
  font-weight: 600; font-size: 0.85rem;
  text-decoration: none; transition: all 0.2s;
}
.btn-wa-sm:hover { background: #1da851; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent; color: rgba(255,255,255,0.9);
  padding: 0.7rem 1.5rem; border-radius: 9999px;
  font-weight: 600; font-size: 0.9rem;
  text-decoration: none; transition: all 0.2s;
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.1); }

/* ── Hero Gradient ───────────────────────────────────────── */
.hero-gradient {
  background: linear-gradient(135deg, #003d44 0%, #006D77 45%, #0a8a96 100%);
}

/* ── Section alternating backgrounds ─────────────────────── */
.section-light { background: var(--primary-50); }

/* ── Phone Mockup ────────────────────────────────────────── */
.phone-wrap {
  position: relative;
  display: inline-block;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.4));
}
.phone-frame {
  width: 260px;
  background: #0f172a;
  border-radius: 38px;
  border: 8px solid #1e2940;
  overflow: hidden;
  position: relative;
}
.phone-frame::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 90px; height: 24px;
  background: #0f172a;
  border-radius: 0 0 16px 16px;
  z-index: 10;
}
.phone-status {
  background: #0f172a;
  padding: 28px 16px 6px;
  display: flex; justify-content: space-between; align-items: center;
}
.phone-status span { color: #9ca3af; font-size: 10px; font-weight: 600; }

.app-topbar {
  background: var(--primary);
  padding: 10px 14px;
  display: flex; justify-content: space-between; align-items: center;
}
.app-topbar-title { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0.02em; }
.notif-badge {
  background: #ef4444; color: #fff;
  font-size: 9px; font-weight: 700;
  padding: 2px 5px; border-radius: 999px;
}

.conv-list { background: #fff; }
.conv-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: background 0.15s;
}
.conv-item:hover { background: #f8fafc; }
.conv-item.active { background: var(--primary-50); }

.ch-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff;
  flex-shrink: 0; position: relative;
}
.ch-avatar .ch-badge {
  position: absolute; bottom: -1px; right: -1px;
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 6px; font-weight: 900; color: #fff;
}
.ch-avatar.wa { background: linear-gradient(135deg, #1aad5f, #25d366); }
.ch-avatar .ch-badge.wa { background: #25d366; }
.ch-avatar.ig { background: linear-gradient(135deg, #f58529, #dd2a7b, #515bd4); }
.ch-avatar .ch-badge.ig { background: #e1306c; }
.ch-avatar.fb { background: linear-gradient(135deg, #1665d8, #1877f2); }
.ch-avatar .ch-badge.fb { background: #1877f2; }

.conv-info { flex: 1; min-width: 0; }
.conv-name { font-size: 11px; font-weight: 700; color: #1e293b; }
.conv-preview {
  font-size: 10px; color: #64748b;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 140px;
}
.conv-preview.ai { color: var(--primary); font-style: italic; }
.conv-time { font-size: 9px; color: #94a3b8; flex-shrink: 0; }
.conv-unread {
  background: var(--primary); color: #fff;
  font-size: 9px; font-weight: 700;
  padding: 2px 5px; border-radius: 999px;
  flex-shrink: 0;
}

.phone-tabbar {
  background: #fff;
  border-top: 1px solid #e2e8f0;
  display: flex; justify-content: space-around;
  padding: 8px 0;
}
.tab-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 8px; color: #94a3b8; cursor: pointer;
}
.tab-btn.active { color: var(--primary); }
.tab-icon { font-size: 14px; }

/* ── Tablet Mockup ───────────────────────────────────────── */
.tablet-frame {
  width: 420px;
  background: #0f172a;
  border-radius: 20px;
  border: 8px solid #1e2940;
  overflow: hidden;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
}
.tablet-topbar {
  background: #1e293b;
  padding: 6px 14px;
  display: flex; align-items: center; gap: 6px;
}
.tablet-dot { width: 8px; height: 8px; border-radius: 50%; }

.dash-layout { display: flex; background: #fff; }
.dash-sidebar {
  width: 48px; background: var(--primary);
  display: flex; flex-direction: column; align-items: center;
  padding: 10px 0; gap: 12px;
}
.dash-sidebar-icon {
  width: 30px; height: 30px; border-radius: 8px;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; cursor: pointer;
  transition: background 0.15s;
}
.dash-sidebar-icon.active { background: rgba(255,255,255,0.3); }

.dash-list {
  width: 150px; border-right: 1px solid #e2e8f0;
  background: #f8fafc;
}
.dash-list-header {
  padding: 8px 10px;
  font-size: 10px; font-weight: 700; color: #64748b;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
}
.dash-list-item {
  padding: 8px 10px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
}
.dash-list-item.active { background: var(--primary-50); border-left: 3px solid var(--primary); }
.dash-item-name { font-size: 10px; font-weight: 600; color: #1e293b; }
.dash-item-preview { font-size: 9px; color: #64748b; }

.dash-thread { flex: 1; display: flex; flex-direction: column; }
.dash-thread-header {
  padding: 8px 12px; border-bottom: 1px solid #e2e8f0;
  background: #fff; display: flex; align-items: center; gap: 8px;
}
.dash-thread-body {
  flex: 1; padding: 10px; display: flex; flex-direction: column;
  gap: 6px; overflow: hidden; background: #f8fafc;
  min-height: 120px;
}
.dash-msg {
  max-width: 70%; padding: 5px 8px; border-radius: 10px;
  font-size: 9px; line-height: 1.4;
}
.dash-msg.in { background: #fff; color: #374151; border: 1px solid #e5e7eb; align-self: flex-start; }
.dash-msg.out { background: var(--primary); color: #fff; align-self: flex-end; }
.dash-msg.out.ai { position: relative; }
.dash-msg.out.ai::before {
  content: '🤖';
  position: absolute; top: -8px; left: 4px; font-size: 10px;
}
.dash-thread-input {
  padding: 8px 10px; border-top: 1px solid #e2e8f0;
  background: #fff; display: flex; gap: 6px; align-items: center;
}
.dash-input-field {
  flex: 1; background: #f1f5f9; border-radius: 999px;
  padding: 4px 10px; font-size: 9px; color: #94a3b8;
}
.dash-send-btn {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--primary); display: flex; align-items: center; justify-content: center;
}

/* ── Floating Notification Cards ─────────────────────────── */
@keyframes float-up {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}
@keyframes float-down {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(8px); }
}
@keyframes fadeInSlide {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.float-card {
  background: #fff;
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04);
  font-size: 11px;
  animation: float-up 4s ease-in-out infinite;
}
.float-card-2 { animation: float-down 5s ease-in-out 1s infinite; }
.float-card-3 { animation: float-up 6s ease-in-out 2s infinite; }

/* ── Feature Cards ───────────────────────────────────────── */
.feature-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 1.75rem;
  transition: all 0.25s;
  text-align: center;
}
.feature-card:hover {
  border-color: var(--primary-light);
  box-shadow: 0 8px 30px rgba(0,109,119,0.1);
  transform: translateY(-3px);
}
.feature-icon {
  width: 72px; height: 72px; border-radius: 18px;
  background: var(--primary-50);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; margin: 0 auto 1.25rem;
  color: var(--primary);
}
.feature-icon img { width: 36px; height: 36px; }
.feature-icon svg { width: 36px; height: 36px; }

/* ── Testimonial Cards ───────────────────────────────────── */
.testimonial-card {
  background: #fff;
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  border: 1px solid #f1f5f9;
}

/* ── Channel Logos Bar ───────────────────────────────────── */
.channel-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  padding: 8px 18px;
  font-size: 0.875rem; font-weight: 600;
  color: var(--dark);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* ── Stats ───────────────────────────────────────────────── */
.stat-card {
  text-align: center;
  padding: 2rem;
}
.stat-number {
  font-size: 3rem; font-weight: 900;
  background: linear-gradient(135deg, #fff, var(--primary-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

/* ── Steps ───────────────────────────────────────────────── */
.step-number {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary);
  color: #fff; font-size: 1.25rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 14px rgba(0,109,119,0.4);
}
.step-connector {
  position: absolute; top: 24px; left: 50%;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--primary-light), transparent);
}

/* ── Case Study Card ─────────────────────────────────────── */
.case-card {
  border-radius: 20px; overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #fff;
  transition: all 0.25s;
  text-decoration: none;
  display: flex; flex-direction: column;
}
.case-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  transform: translateY(-4px);
  border-color: var(--primary-light);
}
.case-img-wrap { aspect-ratio: 16/9; overflow: hidden; background: var(--primary-50); }
.case-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s;
}
.case-card:hover .case-img-wrap img { transform: scale(1.05); }

/* ── Badge / Pills ───────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 6px; }
.badge-new {
  background: rgba(255,255,255,0.15);
  color: #fff; border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px; padding: 4px 14px;
  font-size: 0.8rem; font-weight: 600;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--primary-light);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ── CTA section ─────────────────────────────────────────── */
.cta-gradient {
  background: linear-gradient(135deg, #003d44 0%, #006D77 50%, #0a8a96 100%);
}

/* ── Footer ──────────────────────────────────────────────── */
footer a { color: #9ca3af; transition: color 0.2s; }
footer a:hover { color: #fff; }

/* ── Responsive helpers ──────────────────────────────────── */
@media (max-width: 768px) {
  .phone-frame { width: 220px; }
  .tablet-frame { width: 100%; }
}

/* ── Hero image background overlay ──────────────────────── */
.hero-image-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,61,68,0.92) 0%, rgba(0,109,119,0.8) 100%);
}
