/* ==========================================================================
   VENDECHAT — /REGISTRO PREMIUM HERO
   Theme: Dark navy futurista · Verde neón + Azul eléctrico · Desktop first
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #06111B;
  --card: #0B1725;
  --card-soft: #0E1D2E;
  --green: #32E96B;
  --green-glow: rgba(50, 233, 107, 0.35);
  --blue: #2563FF;
  --blue-glow: rgba(37, 99, 255, 0.4);
  --text-main: #F8FAFC;
  --text-muted: #B7C2D0;
  --border-header: rgba(255, 255, 255, 0.06);
  --border-card: rgba(255, 255, 255, 0.08);
  --font-heading: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 18px;
  --radius-lg: 22px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

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

/* Dot/star texture overlay */
.bg-texture {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    radial-gradient(circle, rgba(50, 233, 107, 0.04) 1px, transparent 1px),
    radial-gradient(circle, rgba(37, 99, 255, 0.05) 1px, transparent 1px);
  background-size: 34px 34px, 54px 54px, 22px 22px;
  background-position: 0 0, 8px 18px, 30px 4px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 40%, transparent 100%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 15% -10%, rgba(37, 99, 255, 0.14), transparent 60%),
    radial-gradient(ellipse 60% 45% at 90% 0%, rgba(50, 233, 107, 0.09), transparent 60%);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 17, 27, 0.8);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-header);
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 1rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo-robot {
  filter: drop-shadow(0 0 10px var(--green-glow));
}

.brand-text {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.3px;
}

.brand-chat {
  color: var(--green);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.main-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
}

.main-nav a:hover {
  color: var(--green);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-heading);
  font-weight: 700;
  text-decoration: none;
  border-radius: 14px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
  padding: 0.85rem 1.6rem;
}

.btn-blue {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 8px 28px var(--blue-glow);
}

.btn-blue:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(37, 99, 255, 0.55);
}

.btn-sm {
  padding: 0.6rem 1.3rem;
  font-size: 0.92rem;
}

.btn-dark {
  background: rgba(11, 23, 37, 0.7);
  border: 1px solid var(--border-card);
  color: var(--text-main);
  font-weight: 600;
}

.btn-dark:hover {
  border-color: rgba(50, 233, 107, 0.5);
  box-shadow: 0 0 20px var(--green-glow);
  transform: translateY(-2px);
}

.play-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green);
  color: #06111B;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 12px var(--green-glow);
}

.burger-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.burger-menu span {
  width: 22px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: var(--transition);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  z-index: 1;
  padding: 5.5rem 0 6rem;
}

.hero-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 4rem;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(50, 233, 107, 0.08);
  border: 1px solid rgba(50, 233, 107, 0.3);
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.8rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  position: relative;
  flex-shrink: 0;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--green);
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 4.4vw, 3.9rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.5px;
  color: var(--text-main);
  margin-bottom: 1.4rem;
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-muted);
  margin-bottom: 2.4rem;
}

.hero-subtitle .accent {
  color: var(--green);
  font-weight: 800;
  text-shadow: 0 0 24px var(--green-glow);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   PRODUCT CARD (Chat + Pipeline)
   ========================================================================== */
.hero-visual {
  position: relative;
}

.product-card {
  background: linear-gradient(160deg, var(--card-soft) 0%, var(--card) 60%);
  border: 1px solid rgba(50, 233, 107, 0.28);
  border-radius: var(--radius-lg);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.5),
    0 0 45px rgba(37, 99, 255, 0.12),
    0 0 30px rgba(50, 233, 107, 0.08);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  overflow: hidden;
}

.pc-chat {
  padding: 1.6rem;
  border-right: 1px solid var(--border-header);
  display: flex;
  flex-direction: column;
}

.pc-pipeline {
  padding: 1.6rem;
  background: rgba(6, 17, 27, 0.45);
  display: flex;
  flex-direction: column;
}

.pc-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.pc-head svg {
  flex-shrink: 0;
}

/* Chat messages */
.chat-body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex-grow: 1;
}

.msg {
  max-width: 88%;
  padding: 0.65rem 0.95rem;
  border-radius: 14px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.msg-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.2rem;
  opacity: 0.75;
}

.msg.incoming {
  align-self: flex-start;
  background: rgba(11, 23, 37, 0.9);
  border: 1px solid var(--border-card);
  border-bottom-left-radius: 4px;
  color: var(--text-main);
}

.msg.incoming .msg-label { color: var(--text-muted); }

.msg.outgoing {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(50, 233, 107, 0.92), rgba(34, 197, 94, 0.92));
  color: #06111B;
  border-bottom-right-radius: 4px;
  font-weight: 500;
}

.msg.outgoing .msg-label { color: rgba(6, 17, 27, 0.65); }

.msg-final {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.4rem;
  background: rgba(50, 233, 107, 0.1);
  border: 1px solid rgba(50, 233, 107, 0.35);
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(50, 233, 107, 0.15);
}

/* Chat AI robot footer */
.chat-bot {
  margin-top: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.85rem;
  background: rgba(50, 233, 107, 0.07);
  border: 1px solid rgba(50, 233, 107, 0.22);
  border-radius: 14px;
}

.bot-3d {
  filter: drop-shadow(0 6px 14px rgba(50, 233, 107, 0.4));
  flex-shrink: 0;
}

.chat-bot-info {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  flex-grow: 1;
}

.chat-bot-info strong {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--text-main);
}

.chat-bot-info span {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.bot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green-glow);
  flex-shrink: 0;
}

/* Pipeline list */
.pipeline-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
}

.pipe-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(11, 23, 37, 0.85);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 0.75rem 0.85rem;
  transition: var(--transition);
}

.pipe-card:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 2.35rem;
  bottom: -0.75rem;
  width: 2px;
  height: 0.75rem;
  background: linear-gradient(180deg, rgba(50, 233, 107, 0.4), rgba(50, 233, 107, 0.1));
}

.pipe-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pipe-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  flex-grow: 1;
}

.pipe-text strong {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.pipe-text span {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.pipe-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(50, 233, 107, 0.12);
  border: 1px solid rgba(50, 233, 107, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pipe-card.won {
  background: linear-gradient(135deg, rgba(50, 233, 107, 0.16) 0%, rgba(11, 23, 37, 0.9) 55%);
  border-color: rgba(50, 233, 107, 0.6);
  box-shadow: 0 0 26px rgba(50, 233, 107, 0.25);
}

.pipe-card.won .pipe-icon {
  border-color: rgba(50, 233, 107, 0.5);
  background: rgba(50, 233, 107, 0.12);
}

.pipe-card.won .pipe-check {
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 12px var(--green-glow);
}

.pipe-card.won .pipe-text strong {
  color: var(--green);
}

/* ==========================================================================
   BENEFITS
   ========================================================================== */
.benefits {
  position: relative;
  z-index: 1;
  padding: 0 0 6rem;
}

.benefits-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.benefit-card {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  background: var(--card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  transition: var(--transition);
}

.benefit-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 255, 0.35);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35), 0 0 24px rgba(37, 99, 255, 0.08);
}

.benefit-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: rgba(37, 99, 255, 0.1);
  border: 1px solid rgba(37, 99, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benefit-text h3 {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.3rem;
}

.benefit-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-header);
  padding: 2rem 0;
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVE (Desktop first)
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-top: 3rem;
  }

  .hero-copy {
    align-items: center;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(6, 17, 27, 0.97);
    border-bottom: 1px solid var(--border-header);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
  }

  .main-nav.open {
    max-height: 320px;
    padding: 1rem 2rem 1.4rem;
  }

  .main-nav a {
    padding: 0.75rem 0;
    width: 100%;
    border-bottom: 1px solid var(--border-header);
  }

  .main-nav a:last-child {
    border-bottom: none;
  }

  .burger-menu {
    display: flex;
  }

  .benefits-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .header-inner,
  .hero-container,
  .benefits-container,
  .footer-inner {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .header-actions .btn-sm {
    display: none;
  }

  .product-card {
    grid-template-columns: 1fr;
  }

  .pc-chat {
    border-right: none;
    border-bottom: 1px solid var(--border-header);
  }

  .hero-title {
    font-size: 2.4rem;
    letter-spacing: -1px;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }
}
