/* ============================================================
   ZUVEXA TECH — styles.css
   CSS compartido: variables, reset, nav, footer, botones,
   tipografía, chatbot, aurora premium, formularios lista espera
   ============================================================ */

/* ── Google Fonts (referencia) ─────────────────────────────
   Cada HTML incluye la etiqueta <link> de Google Fonts.
   Este comentario documenta las familias usadas:
   Syne:wght@400;600;700;800  |  Inter:wght@300;400;500;600
   ──────────────────────────────────────────────────────── */

/* ══════════════════════════════════════════════════════════
   1. VARIABLES CSS
   ══════════════════════════════════════════════════════════ */
:root {
  --p1: #5B2C87;
  --p2: #7A3FD1;
  --p3: #9B6EE8;
  --p4: #C4A8F5;
  --p5: #EDE5FB;
  --bg:     #F8F9FB;
  --bg2:    #FFFFFF;
  --dark:   #1F1F1F;
  --muted:  #6B7280;
  --border: #E5E0F5;
  --white:  #FFFFFF;
}

/* ══════════════════════════════════════════════════════════
   2. RESET Y BASE
   ══════════════════════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html  { scroll-behavior: smooth; }
body  {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--dark);
  overflow-x: hidden;
  animation: pgIn .4s ease;
}

/* ══════════════════════════════════════════════════════════
   3. TIPOGRAFÍA GLOBAL
   ══════════════════════════════════════════════════════════ */
h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -2px;
  margin-bottom: 16px;
  color: var(--dark);
  animation: slideUp .7s cubic-bezier(.22, 1, .36, 1) both;
}
h1 em { font-style: normal; color: var(--p2); }

h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -.8px;
  line-height: 1.2;
  margin-bottom: 14px;
  color: var(--dark);
}
h3 {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 14px;
}

/* Etiqueta supratítulo */
.stag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--p2);
  margin-bottom: 12px;
}
.page-sub {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 560px;
  font-weight: 300;
}

/* Contenedor centrado */
.inner { max-width: 1100px; margin: 0 auto; }

/* Scroll reveal */
.reveal     { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in  { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════════════════════════
   4. NAVEGACIÓN
   ══════════════════════════════════════════════════════════ */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 300;
  padding: 14px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Base override by premium layer below */
  background: rgba(248,249,251,0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(91,44,135,0.08), 0 4px 24px rgba(91,44,135,0.04);
}
.logo-wrap  { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-text  { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 19px; color: var(--dark); }
.logo-text span { color: var(--p2); }
.nav-links  { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav-links a { font-size: 14px; color: var(--muted); text-decoration: none; transition: color .2s; font-weight: 400; }
.nav-links a:hover, .nav-links a.active { color: var(--p2); font-weight: 500; }
.nav-wa  { background: var(--p2); color: var(--white) !important; padding: 9px 20px; border-radius: 8px; font-weight: 500 !important; }
.nav-wa:hover { background: var(--p1) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { width: 22px; height: 2px; background: var(--dark); border-radius: 2px; }
.mob-menu {
  display: none;
  position: fixed;
  top: 65px; left: 0; right: 0;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  flex-direction: column;
  gap: 14px;
  z-index: 299;
}
.mob-menu a   { font-size: 15px; color: var(--dark); text-decoration: none; padding: 8px 0; border-bottom: 1px solid var(--border); }
.mob-menu .mwa { background: var(--p2); color: var(--white) !important; padding: 12px 20px; border-radius: 8px; text-align: center; border: none !important; margin-top: 4px; }

/* ══════════════════════════════════════════════════════════
   5. PAGE HERO (servicios, casos, nosotros, contacto)
   ══════════════════════════════════════════════════════════ */
.page-hero {
  padding: 140px 64px 80px;
  background: linear-gradient(160deg, #FDFCFF, #F8F5FF, #F3EDFF);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122,63,209,0.1), transparent 70%);
  pointer-events: none;
}
.ph-inner { max-width: 1100px; margin: 0 auto; }

/* ══════════════════════════════════════════════════════════
   6. BOTONES
   ══════════════════════════════════════════════════════════ */
.btn-p {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--p2);
  color: var(--white);
  padding: 13px 26px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: transform .2s, background .2s;
  box-shadow: 0 4px 16px rgba(122,63,209,0.3), 0 1px 4px rgba(0,0,0,0.07);
}
.btn-p:hover {
  background: var(--p1);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(122,63,209,0.42), 0 2px 8px rgba(0,0,0,0.1);
}
.btn-p svg { width: 18px; height: 18px; fill: currentColor; }

.btn-o {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--p3);
  color: var(--p2);
  padding: 13px 26px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.btn-o:hover { background: var(--p5); transform: translateY(-2px); }

.btn-white {
  background: white;
  color: var(--p2);
  padding: 13px 26px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }

.btn-ghost {
  border: 2px solid rgba(255,255,255,.4);
  color: white;
  padding: 13px 26px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-ghost:hover { background: rgba(255,255,255,.12); }

/* ══════════════════════════════════════════════════════════
   7. CTA BANNER (servicios, casos, nosotros, contacto)
   ══════════════════════════════════════════════════════════ */
.cta-banner {
  background: linear-gradient(145deg, #3D1A6E, #7A3FD1);
  padding: 80px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 250px; height: 250px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
}
.cta-banner h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  color: white;
  margin-bottom: 14px;
  letter-spacing: -1px;
  position: relative;
}
.cta-banner p  { font-size: 16px; color: rgba(255,255,255,.75); margin-bottom: 32px; position: relative; }
.cta-btns      { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ══════════════════════════════════════════════════════════
   8. FORMULARIO LISTA DE ESPERA
      (compartido entre index.html y servicios.html)
   ══════════════════════════════════════════════════════════ */
.le-inner       { max-width: 760px; margin: 0 auto; position: relative; z-index: 1; }
.le-header      { text-align: center; margin-bottom: 40px; }
.le-stag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--p5);
  border: 1px solid var(--p4);
  color: var(--p2);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.le-header h2   { font-family: 'Syne', sans-serif; font-size: clamp(26px,3.5vw,38px); font-weight: 800; color: var(--dark); letter-spacing: -1px; margin-bottom: 12px; }
.le-header p    { font-size: 15px; color: var(--muted); line-height: 1.7; max-width: 540px; margin: 0 auto; }
.le-form-wrap   { background: var(--bg2); border: 1px solid var(--border); border-radius: 22px; padding: 44px; box-shadow: 0 4px 32px rgba(91,44,135,0.1), 0 1px 6px rgba(0,0,0,0.04); }
.le-form        { display: flex; flex-direction: column; gap: 16px; }
.le-row         { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.le-field       { display: flex; flex-direction: column; gap: 6px; }
.le-label       { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .7px; }
.le-input, .le-select, .le-textarea {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--dark);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.le-input:focus, .le-select:focus, .le-textarea:focus { border-color: var(--p3); box-shadow: 0 0 0 3px rgba(155,110,232,.1); }
.le-input::placeholder, .le-textarea::placeholder     { color: #B0BAC9; }
.le-textarea    { resize: vertical; min-height: 90px; }
.le-submit {
  background: linear-gradient(135deg, var(--p2), var(--p1));
  color: white;
  padding: 15px 28px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-family: 'Inter', sans-serif;
  transition: transform .2s, box-shadow .2s;
  width: 100%;
  margin-top: 4px;
  letter-spacing: -.2px;
}
.le-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(91,44,135,0.3); }
.le-note        { font-size: 12px; color: var(--muted); text-align: center; margin-top: 10px; }
.le-perks       { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px; }
.le-perk        { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); font-weight: 500; }
.le-perk::before { content: '✓'; color: var(--p2); font-weight: 700; }

/* ══════════════════════════════════════════════════════════
   9. FOOTER
   ══════════════════════════════════════════════════════════ */
footer {
  background: linear-gradient(160deg, #0A0314, #1A0838, #0F0520);
  color: #9CA3AF;
  padding: 36px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.f-logo-wrap { display: flex; align-items: center; gap: 8px; }
.f-logo-text { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 17px; color: var(--white); }
.f-logo-text span { color: var(--p3); }
.f-links     { display: flex; gap: 24px; flex-wrap: wrap; }
.f-links a   { font-size: 13px; color: #9CA3AF; text-decoration: none; transition: color .2s; }
.f-links a:hover { color: var(--white); }
footer p     { font-size: 13px; }
.f-ig        { font-size: 13px; color: var(--p4); }

/* ══════════════════════════════════════════════════════════
   10. CHATBOT (solo index.html)
   ══════════════════════════════════════════════════════════ */
#zt-chat-btn {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 1000;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5B2C87, #7A3FD1);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s, box-shadow .25s;
  animation: glowPulse 3s ease-in-out infinite;
}
#zt-chat-btn:hover  { transform: scale(1.1); }
#zt-chat-btn svg    { width: 26px; height: 26px; fill: white; }
#zt-notif {
  position: absolute;
  top: -2px; right: -2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #EF4444;
  border: 2px solid white;
  font-size: 10px;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  animation: breathe 2s ease-in-out infinite;
}
#zt-chat-btn .zt-close-icon          { display: none; }
#zt-chat-btn.open .zt-chat-icon      { display: none; }
#zt-chat-btn.open .zt-close-icon     { display: block; }
#zt-chat-window {
  position: fixed;
  bottom: 100px; right: 28px;
  z-index: 999;
  width: 360px;
  max-width: calc(100vw - 40px);
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(91,44,135,0.18), 0 2px 8px rgba(0,0,0,.08);
  border: 1px solid #E5E0F5;
  display: none;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  transform: translateY(12px);
  opacity: 0;
  transition: transform .3s, opacity .3s;
}
#zt-chat-window.visible { transform: translateY(0); opacity: 1; }
.zt-header {
  background: linear-gradient(135deg, #5B2C87, #7A3FD1);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.zt-avatar      { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.zt-avatar svg  { width: 22px; height: 22px; fill: white; }
.zt-header-name { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 15px; color: white; }
.zt-header-status { font-size: 11px; color: rgba(255,255,255,.75); display: flex; align-items: center; gap: 5px; margin-top: 1px; }
.zt-dot         { width: 6px; height: 6px; border-radius: 50%; background: #4ADE80; display: inline-block; }
.zt-messages {
  padding: 16px;
  height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #F8F9FB;
  scroll-behavior: smooth;
}
.zt-messages::-webkit-scrollbar       { width: 4px; }
.zt-messages::-webkit-scrollbar-thumb { background: #C4A8F5; border-radius: 4px; }
.zt-msg-bot     { display: flex; align-items: flex-end; gap: 8px; animation: ztFadeIn .3s ease; }
.zt-bot-icon    { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(135deg, #5B2C87, #7A3FD1); display: flex; align-items: center; justify-content: center; }
.zt-bot-icon svg { width: 14px; height: 14px; fill: white; }
.zt-bubble-bot  { background: white; border: 1px solid #E5E0F5; border-radius: 16px 16px 16px 4px; padding: 10px 14px; font-size: 13.5px; color: #1F1F1F; line-height: 1.6; max-width: 260px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.zt-msg-user    { display: flex; justify-content: flex-end; animation: ztFadeIn .3s ease; }
.zt-bubble-user { background: linear-gradient(135deg, #7A3FD1, #5B2C87); border-radius: 16px 16px 4px 16px; padding: 10px 14px; font-size: 13.5px; color: white; line-height: 1.6; max-width: 260px; }
.zt-typing      { display: flex; align-items: flex-end; gap: 8px; animation: ztFadeIn .3s ease; }
.zt-typing-dots { background: white; border: 1px solid #E5E0F5; border-radius: 16px 16px 16px 4px; padding: 12px 16px; display: flex; gap: 4px; align-items: center; }
.zt-typing-dots span              { width: 6px; height: 6px; border-radius: 50%; background: #C4A8F5; animation: ztDot 1.2s infinite; }
.zt-typing-dots span:nth-child(2) { animation-delay: .2s; }
.zt-typing-dots span:nth-child(3) { animation-delay: .4s; }
.zt-options     { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; animation: ztFadeIn .3s ease; }
.zt-opt-btn {
  background: white;
  border: 1.5px solid #C4A8F5;
  color: #7A3FD1;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background .2s, color .2s;
  line-height: 1.3;
  text-align: left;
}
.zt-opt-btn:hover { background: #7A3FD1; color: white; border-color: #7A3FD1; }
.zt-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #16A34A;
  color: white;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 8px;
  transition: background .2s;
  font-family: 'Inter', sans-serif;
}
.zt-wa-btn:hover { background: #15803D; }
.zt-wa-btn svg  { width: 14px; height: 14px; fill: white; }
.zt-input-area  { padding: 12px 14px; border-top: 1px solid #E5E0F5; background: white; display: flex; gap: 8px; align-items: flex-end; }
#zt-input {
  flex: 1;
  border: 1.5px solid #E5E0F5;
  border-radius: 12px;
  padding: 9px 13px;
  font-size: 13.5px;
  font-family: 'Inter', sans-serif;
  color: #1F1F1F;
  resize: none;
  outline: none;
  min-height: 40px;
  max-height: 90px;
  transition: border-color .2s;
  line-height: 1.5;
  background: #F8F9FB;
}
#zt-input:focus       { border-color: #9B6EE8; }
#zt-input::placeholder { color: #B0BAC9; }
#zt-send-btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #5B2C87, #7A3FD1);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s;
}
#zt-send-btn:hover { transform: scale(1.08); }
#zt-send-btn svg   { width: 16px; height: 16px; fill: white; }
.zt-footer          { padding: 6px 14px 10px; text-align: center; font-size: 10.5px; color: #9CA3AF; background: white; }
.zt-footer span     { color: #7A3FD1; font-weight: 500; }

/* ══════════════════════════════════════════════════════════
   11. AURORA PREMIUM — orbs animados de fondo
   ══════════════════════════════════════════════════════════ */
body::before {
  content: '';
  position: fixed;
  top: -30%; left: -20%;
  width: 70%; height: 70%;
  background: radial-gradient(ellipse, rgba(122,63,209,0.07) 0%, transparent 70%);
  border-radius: 50%;
  animation: aurora1 18s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  bottom: -20%; right: -15%;
  width: 60%; height: 60%;
  background: radial-gradient(ellipse, rgba(91,44,135,0.05) 0%, transparent 70%);
  border-radius: 50%;
  animation: aurora2 22s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
