/* =========================================================
   HEADER / NAV
   ========================================================= */

.header{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  z-index:20;
  padding:18px 0;
  pointer-events:none;
}

.header-inner{
  pointer-events:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:12px 18px;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(7,10,15,.40);
  backdrop-filter:blur(12px);
}

/* LOGO */
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:220px;
}

.brand img{
  width:38px;
  height:38px;
  border-radius:14px;
  background:rgba(255,255,255,.06);
  padding:6px;
}

.brand .name{
  font-weight:900;
  letter-spacing:-.02em;
  line-height:1.1;
  white-space:nowrap;
  color:#fff;
}

.brand .sub{
  font-size:12px;
  color:rgba(232,237,247,.76);
}

/* LINKS */
.nav{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  flex:1;
  max-width:620px;
}

.nav a{
  padding:10px 12px;
  border-radius:14px;
  font-weight:800;
  font-size:14px;
  color:#f5faff;
  border:1px solid transparent;
  transition:.2s ease;
}

.nav a:hover{
  background:rgba(0,0,0,.35);
  border-color:rgba(255,255,255,.2);
  transform:translateY(-1px);
}

.nav .cta{
  padding:12px 14px;
  border-radius:16px;
  font-weight:900;
  white-space:nowrap;
}

/* MENU BTN */
.menu-btn{
  display:none;
  padding:11px 14px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.08);
  color:#fff;
  font-weight:900;
  cursor:pointer;
}

@keyframes navDrop{
  from{opacity:0;transform:translateY(-8px) scale(.98);}
  to{opacity:1;transform:translateY(0) scale(1);}
}

@media (max-width:980px){

  .menu-btn{display:inline-flex;}

  .nav{
    position:absolute;
    top:88px;
    left:18px;
    right:18px;
    display:none;
    flex-direction:column;
    padding:14px;
    border-radius:20px;
    border:1px solid rgba(255,255,255,.14);
    background:rgba(7,10,15,.82);
    backdrop-filter:blur(14px);
    animation:navDrop .18s ease-out;
  }

  .nav.open{display:flex;}

  .nav a{
    width:100%;
    text-align:center;
  }

}

/* =========================================================
   FOOTER
   ========================================================= */

footer{
  border-top:1px solid rgba(148,163,184,.14);
  background:rgba(2,6,23,.95);
  padding:2.4rem 0 2.6rem;
  font-size:.82rem;
  color:rgba(220,226,252,.92);
}

.footer-layout{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:2.4rem;
}

.footer-column-title{
  font-size:.82rem;
  font-weight:600;
  margin-bottom:.6rem;
  color:#fff;
  letter-spacing:.3px;
}

.footer-links,
.footer-legal,
.footer-social{
  display:flex;
  flex-direction:column;
  gap:.45rem;
}

.footer-brand{
  max-width:340px;
}

.footer-brand-title{
  font-size:.95rem;
  font-weight:600;
  margin-bottom:.4rem;
  color:#fff;
}

.footer-brand-sub{
  font-size:.8rem;
  line-height:1.6;
  opacity:.85;
}

.footer-link{
  cursor:pointer;
  transition:.18s ease;
}

.footer-link:hover{
  opacity:1;
  color:#9aa7ff;
}

.footer-social-row{
  display:flex;
  flex-wrap:wrap;
  gap:.5rem;
  margin-top:.5rem;
}

/* REDES */
.social-btn{
  width:34px;
  height:34px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.16);
  background:#020617;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:.2s ease;
}

.social-btn:hover{
  transform:translateY(-2px);
  border-color:#9aa7ff;
  color:#9aa7ff;
}

footer .wrapper > div:last-child{
  margin-top:1.6rem;
  padding-top:1rem;
  border-top:1px solid rgba(148,163,184,.12);
  text-align:center;
  font-size:.75rem;
  opacity:.75;
}

/* =========================================================
   PANEL FLOTANTE / BOTON
   ========================================================= */

.support-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.45);
  opacity:0;
  pointer-events:none;
  transition: opacity .25s ease;
  z-index:9997;
}
.support-overlay.is-open{ opacity:1; pointer-events:auto; }

.support-fab{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:9999;
  width:54px;
  height:54px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background:linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.06));
  backdrop-filter: blur(10px);
  display:grid;
  place-items:center;
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
  cursor:pointer;
  transition:.25s ease;
}
.support-fab:hover{
  transform:translateY(-2px);
  border-color: rgba(255,255,255,.28);
}

.support-panel{
  position:fixed;
  right:18px;
  bottom:82px;
  z-index:9998;
  width:min(320px, calc(100vw - 36px));
  border-radius:18px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(18,18,24,.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
  padding:14px;
  opacity:0;
  pointer-events:none;
  transform: translateY(8px) scale(.98);
  transition:.25s ease;
}
.support-panel.is-open{
  opacity:1;
  pointer-events:auto;
  transform: translateY(0) scale(1);
}

/* =========================================================
   FAB BOTONES
   ========================================================= */

.fab{
  position:fixed;
  right:16px;
  bottom:16px;
  z-index:50;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.fab a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(7,10,15,.55);
  backdrop-filter:blur(10px);
  color:rgba(232,237,247,.92);
  font-weight:900;
  transition:.2s ease;
}

.fab a:hover{
  transform:translateY(-2px);
  background:rgba(7,10,15,.68);
}
/* =========================================================
   FIX COLISION SOCIAL BUTTONS
   (footer vs panel flotante)
   ========================================================= */

/* ---------- PANEL FLOTANTE (RECTANGULARES) ---------- */
.support-panel .social-btn{
  width:auto;
  height:auto;
  border-radius:16px;
  padding:12px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  background:rgba(255,255,255,.05);
  color:#fff;
  font-weight:700;
  transition:all .25s ease;
}

.support-panel .social-btn:hover{
  transform:translateY(-3px);
  background:rgba(255,255,255,.10);
  box-shadow:0 12px 30px rgba(0,0,0,.40);
}

/* iconos dentro del panel */
.support-panel .social-btn svg{
  width:22px;
  height:22px;
  flex-shrink:0;
}

/* textos dentro del boton */
.support-panel .meta{
  display:flex;
  flex-direction:column;
  line-height:1.15;
}

.support-panel .label{
  font-size:14px;
  font-weight:800;
}

.support-panel .sub{
  font-size:12px;
  opacity:.7;
}

/* ---------- FOOTER (CIRCULARES) ---------- */
.footer-social-row .social-btn{
  width:34px;
  height:34px;
  border-radius:50%;
  padding:0;
}

.footer-social-row .social-btn:hover{
  transform:translateY(-2px) scale(1.08);
  border-color:#9aa7ff;
  color:#9aa7ff;
}

/* ---------- COLORES REDES PANEL ---------- */
.support-panel .is-wa{ color:#22c55e; }
.support-panel .is-fb{ color:#60a5fa; }
.support-panel .is-ig{ color:#f472b6; }
.support-panel .is-assistant{ color:#a78bfa; }



/* =========================================================
   SUPPORT OVERLAY
   ========================================================= */
.support-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.45);
  opacity:0;
  pointer-events:none;
  transition: opacity .25s ease;
  z-index:9997;
}
.support-overlay.is-open{ opacity:1; pointer-events:auto; }

/* =========================================================
   PANEL
   ========================================================= */
.support-panel{
  position:fixed;
  right:18px;
  bottom:82px;
  z-index:9998;
  width:min(320px, calc(100vw - 36px));
  border-radius:18px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(18,18,24,.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
  padding:14px;
  transform: translateY(8px) scale(.98);
  opacity:0;
  pointer-events:none;
  transition: opacity .25s ease, transform .25s ease;
}
.support-panel.is-open{
  opacity:1;
  pointer-events:auto;
  transform: translateY(0) scale(1);
}

.support-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:12px;
}

.support-title{
  font-weight:800;
  letter-spacing:.2px;
  color:#fff;
  font-size:14px;
}

.support-close{
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255, 255, 255, 0.685);
  border-radius:10px;
  padding:8px 10px;
  cursor:pointer;
  transition:.2s ease;
}
.support-close:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.22);
}

/* =========================================================
   BOTONES REDES
   ========================================================= */
.support-actions{ display:grid; gap:10px; }

.social-btn{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.05);
  color:#fff;
  text-decoration:none;
  font-weight:700;
  transition:.2s ease;
}
.social-btn:hover{
  transform:translateY(-2px);
  background:rgba(255,255,255,.09);
}

.social-btn .left{
  display:flex;
  align-items:center;
  gap:12px;
}

.social-btn svg{
  width:22px;
  height:22px;
  fill:currentColor;
}

.meta{ display:flex; flex-direction:column; }
.label{ font-size:14px; }
.sub{ font-size:12px; opacity:.7; }

/* colores redes */
.is-wa{ color:#22c55e; }
.is-fb{ color:#60a5fa; }
.is-ig{ color:#f472b6; }
.is-assistant{ color:#a78bfa; }

/* =========================================================
   FAB INTERNO
   ========================================================= */
.fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fab a,
.fab button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(7,10,15,.55);
  backdrop-filter:blur(10px);
  color:rgba(232,237,247,.92);
  font-weight:900;
  transition:.2s ease;
  box-shadow:0 16px 36px rgba(0,0,0,.40);
  min-width:140px;
  cursor:pointer;
}
.fab a:hover,
.fab button:hover{
  transform:translateY(-2px);
  background:rgba(7,10,15,.68);
}

/* =========================================================
   ASSISTANT OVERLAY
   ========================================================= */
.assistant-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 20, 0.65);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
  z-index: 9998;
}
.assistant-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* =========================================================
   MODAL
   ========================================================= */
#assistantModal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: scale(.92) translateY(20px);
  transition: opacity .35s ease, transform .35s ease;
  z-index: 9999;
}
#assistantModal.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1) translateY(0);
}

#assistantModal .box{
  width:100%;
  max-width:480px;
  margin:0 14px;
  background:linear-gradient(180deg,#0c1324,#070b16);
  border-radius:16px;
  box-shadow:0 30px 80px rgba(0,0,0,.6);
  overflow:hidden;
}

/* =========================================================
   HEADER MODAL
   ========================================================= */
#assistantModal .top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 18px;
  background:rgba(255,255,255,.03);
  border-bottom:1px solid rgba(255,255,255,.08);
}
#assistantModal .top b{ color:#fff; font-size:15px; }

#closeAssistant{
  background:rgba(255,255,255,.08);
  border:0;
  color:#fff;
  padding:6px 12px;
  border-radius:10px;
  cursor:pointer;
}
#closeAssistant:hover{ background:rgba(255,255,255,.16); }

/* =========================================================
   FORM
   ========================================================= */
#assistantForm .field{ margin-bottom:14px; }

#assistantForm label{
  display:block;
  font-size:13px;
  color:#cbd5f5;
  margin-bottom:6px;
}

#assistantForm input,
#assistantForm select,
#assistantForm textarea{
  width:100%;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  color:#fff;
  font-size:14px;
  outline:none;
  transition:border .25s ease, box-shadow .25s ease;
}
#assistantForm textarea{
  resize:none;
  min-height:90px;
}

/* validaciones */
#assistantForm .is-error{
  border-color:#ef4444 !important;
  box-shadow:0 0 0 1px rgba(239,68,68,.4);
}
#assistantForm .is-valid{
  border-color:#22c55e !important;
  box-shadow:0 0 0 1px rgba(34,197,94,.4);
}

/* contador */
#charCount{
  font-size:12px;
  color:#94a3b8;
  text-align:right;
  margin-top:4px;
}

/* =========================================================
   BOTONES FORM
   ========================================================= */
.form-actions{
  display:flex;
  gap:10px;
  margin-top:16px;
}

.form-actions .btn-primary{
  flex:1;
  background:#16a34a;
  border:none;
  color:#fff;
  padding:12px;
  border-radius:12px;
  font-size:14px;
  cursor:pointer;
}
.form-actions .btn-primary:disabled{
  background:#1f2937;
  color:#9ca3af;
  cursor:not-allowed;
  opacity:.6;
}
.form-actions .btn-primary:not(:disabled):hover{
  background:#22c55e;
}

.form-actions .btn-outline{
  flex:1;
  text-align:center;
  padding:12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.18);
  color:#cbd5f5;
  text-decoration:none;
}
.form-actions .btn-outline:hover{
  background:rgba(255,255,255,.06);
}

#formMsg{
  margin-top:12px;
  font-size:13px;
}

/* responsive */
@media (max-width:420px){
  #assistantModal .box{ max-width:100%; }
  .form-actions{ flex-direction:column; }
}










