/* ============================================================
   COMUNCYBER HOME v2 — diseño 2026 (22/08, orden de Juan)
   Hero gigante · marquee · reveal · casos con números · FAQ · form
   ============================================================ */

/* ---- Hero gigante con animación ---- */
.hero-v2 {
  position: relative;
  padding: 5.5rem 0 2.8rem;
  overflow: hidden;
}
/* Flecha de scroll: invita a bajar (24/08/2026, orden de Juan) */
.hero-v2__scroll {
  position: absolute;
  bottom: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(167, 139, 250, 0.6);
  border-radius: 999px;
  z-index: 5;
  pointer-events: none;
}
.hero-v2__scroll::after {
  content: '';
  position: absolute;
  top: 7px;
  left: 50%;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  background: #c4b5fd;
  border-radius: 50%;
  animation: scrollPulse 1.8s infinite;
}
@keyframes scrollPulse {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(16px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}
@media (max-width: 768px) {
  .hero-v2__scroll { display: none; }
}
.hero-v2__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 42% at 78% 22%, rgba(113, 112, 255, 0.22), transparent),
    radial-gradient(38% 38% at 12% 85%, rgba(34, 211, 238, 0.12), transparent),
    linear-gradient(180deg, #08090a, #0d0e12);
}
.hero-v2__badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(113, 112, 255, 0.14);
  border: 1px solid rgba(113, 112, 255, 0.45);
  color: #a5a4ff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
}
.hero-v2__title {
  font-size: clamp(2.6rem, 7.2vw, 5.4rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 900px;
  margin-bottom: 1.3rem;
}
.hero-v2__title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em);
  animation: wordIn 0.7s ease forwards;
}
.hero-v2__title .hl {
  background: linear-gradient(90deg, #7170ff, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@keyframes wordIn {
  to { opacity: 1; transform: none; }
}
.hero-v2__sub {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: #9ca3af;
  max-width: 620px;
  margin-bottom: 2rem;
}
.hero-v2__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.hero-v2__note { color: #6b7280; font-size: 0.85rem; }

/* ---- Marquee (cinta infinita) ---- */
.marquee {
  overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 0;
  background: #0b0c10;
  white-space: nowrap;
}
.marquee__track {
  display: inline-block;
  animation: marquee 26s linear infinite;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7280;
}
.marquee__track span { margin: 0 1.2rem; }
.marquee__track .hl2 { color: #a5a4ff; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---- Reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---- Bento (beneficios + stats) ---- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.2rem; }
.bento__card {
  grid-column: span 2;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  padding: 1.8rem;
  transition: transform 0.2s, border-color 0.2s;
}
.bento__card:hover { transform: translateY(-4px); border-color: rgba(113, 112, 255, 0.5); }
.bento__card--wide { grid-column: span 3; }
.bento__icon { font-size: 1.9rem; margin-bottom: 0.8rem; }
.bento__title { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.4rem; }
.bento__text { color: #9ca3af; font-size: 0.94rem; }
.bento__stat {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  background: linear-gradient(90deg, #7170ff, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 0.4rem;
}

/* ---- Proceso 4 pasos ---- */
.proceso { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; }
.paso {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 1.6rem;
  position: relative;
}
.paso__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: #7170ff;
  border: 1px solid rgba(113, 112, 255, 0.4);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 0.9rem;
}
.paso__time {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.75rem;
  color: #22d3ee;
  border: 1px solid rgba(34, 211, 238, 0.35);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
}
.paso__title { font-size: 1.08rem; font-weight: 700; margin-bottom: 0.35rem; }
.paso__text { color: #9ca3af; font-size: 0.9rem; }

/* ---- Casos con números ---- */
.casos { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; }
.caso {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  padding: 1.8rem;
  transition: transform 0.2s, border-color 0.2s;
}
.caso:hover { transform: translateY(-4px); border-color: rgba(113, 112, 255, 0.5); }
.caso__rubro {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #22d3ee;
  margin-bottom: 0.5rem;
}
.caso__negocio { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.6rem; }
.caso__resultado {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(90deg, #7170ff, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
}
.caso__detalle { color: #9ca3af; font-size: 0.92rem; }

/* ---- Testimonios ---- */
.testimonios { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; }
.testimonio {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 1.6rem;
}
.testimonio__texto { font-size: 0.98rem; line-height: 1.6; margin-bottom: 1.2rem; font-style: italic; }
.testimonio__autor { display: flex; align-items: center; gap: 0.8rem; }
.testimonio__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, #7170ff, #22d3ee);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.95rem; color: #fff;
}
.testimonio__nombre { font-weight: 700; font-size: 0.92rem; }
.testimonio__negocio { color: #6b7280; font-size: 0.8rem; }

/* ---- FAQ acordeón ---- */
.faq { max-width: 760px; margin: 0 auto; }
.faq__item {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  margin-bottom: 0.8rem;
  overflow: hidden;
}
.faq__q {
  width: 100%;
  background: none;
  border: 0;
  color: #e5e7eb;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  padding: 1.1rem 1.4rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: inherit;
}
.faq__q::after { content: '+'; font-size: 1.4rem; color: #7170ff; transition: transform 0.25s; }
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__a { padding: 0 1.4rem 1.2rem; color: #9ca3af; font-size: 0.94rem; line-height: 1.6; }

/* ---- Formulario corto ---- */
.form-v2 {
  max-width: 560px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
}
.form-v2 input, .form-v2 textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  color: #f3f4f6;
  padding: 0.9rem 1rem;
  font-size: 0.96rem;
  font-family: inherit;
  margin-bottom: 0.9rem;
}
.form-v2 input:focus, .form-v2 textarea:focus { outline: 2px solid #7170ff; border-color: transparent; }
.form-v2__micro { text-align: center; color: #22d3ee; font-size: 0.85rem; margin-top: 0.9rem; }

/* ---- CTA sticky + WhatsApp flotante ---- */
.cta-sticky {
  position: fixed;
  bottom: 1.2rem;
  left: 50%;
  transform: translate(-50%, 120px);
  background: linear-gradient(135deg, #7170ff, #6366f1);
  color: #fff;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 14px 40px rgba(113, 112, 255, 0.45);
  transition: transform 0.35s ease;
  z-index: 70;
  white-space: nowrap;
}
.cta-sticky.is-visible { transform: translate(-50%, 0); }
.wa-float-v2 {
  position: fixed;
  right: 1.2rem;
  bottom: 5.6rem;  /* por encima del FAB del chat (56px + separación) */
  z-index: 71;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
}

@media (max-width: 820px) {
  .bento__card, .bento__card--wide { grid-column: span 6; }
  .hero-v2 { padding: 2.8rem 0 0.8rem; }
  .marquee { margin-top: -1rem; }
  .cta-sticky { display: none; }
}

/* ---- Fix: botón "Cotizar" visible y llamativo en el menú (22/08/2026) ---- */
.site-nav a.btn-primary {
  color: #fff !important;
  background: linear-gradient(135deg, #7170ff, #6366f1);
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(113, 112, 255, 0.45);
  text-align: center;
  white-space: nowrap;
}
.site-nav a.btn-primary:hover,
.site-nav a.btn-primary:focus-visible {
  color: #fff !important;
  background: linear-gradient(135deg, #6366f1, #5252e8);
}
@media (max-width: 768px) {
  .site-nav a.btn-primary {
    width: 100%;
    display: block;
    margin-top: 0.7rem;
    font-size: 1rem;
  }
}

/* Alineación móvil del WhatsApp flotante con el chat (23/08/2026, orden de Juan) */
@media (max-width: 640px) {
  .wa-float-v2 {
    right: 0.65rem;   /* mismo margen que el FAB del chat en móvil */
    bottom: 4.6rem;   /* justo encima del chat (10px + 52px + 10px) */
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }
}

/* Botón flotante PROGRAMA DE AFILIACIÓN (23/08/2026, orden de Juan) */
.afi-float {
  position: fixed;
  top: 5.1rem;    /* debajo del header (73px + separación) — fuera de la caja del logo */
  left: 50%;
  transform: translateX(-50%);
  z-index: 70;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(167, 139, 250, 0.55);
  color: #c4b5fd;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.5rem 1.3rem;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.afi-float:hover {
  background: rgba(113, 112, 255, 0.85);
  color: #fff;
  transform: translateX(-50%) translateY(-2px);
}
@media (max-width: 768px) {
  .afi-float { font-size: 0.68rem; padding: 0.4rem 1rem; top: 4.8rem; }
}
