/* ══════════════════════════════════════════════════════════
   HIMPULSA — por-que.css
   Va en: /assets/css/por-que.css
   Incluir en index.php: <link rel="stylesheet" href="/assets/css/por-que.css">
   ══════════════════════════════════════════════════════════ */

.porq {
  padding: 100px 24px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.porq::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  top: -200px; right: -200px;
  background: radial-gradient(circle, rgba(129,69,255,0.1) 0%, transparent 65%);
  pointer-events: none;
}

/* ── HEADER ── */
.porq-header {
  text-align: center;
  margin-bottom: 72px;
}
.porq-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lima);
  margin-bottom: 16px;
}
.porq-titulo {
  font-family: var(--font-titulo);
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 900;
  line-height: 1.15;
  color: var(--blanco);
}
.porq-titulo span { color: var(--lima); }

/* ── LAYOUT ── */
.porq-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

/* ── FEATURES ── */
.porq-features { display: flex; flex-direction: column; gap: 8px; }

.porq-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
  opacity: 0.45;
}
.porq-item:hover { opacity: 0.75; }
.porq-item.active {
  background: rgba(196,251,54,0.05);
  border-color: rgba(196,251,54,0.2);
  opacity: 1;
}

.porq-icon {
  width: 44px; height: 44px;
  min-width: 44px;
  border-radius: 10px;
  background: rgba(196,251,54,0.08);
  border: 1px solid rgba(196,251,54,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lima);
  transition: background 0.3s ease;
}
.porq-item.active .porq-icon {
  background: rgba(196,251,54,0.15);
  border-color: rgba(196,251,54,0.4);
}

.porq-item-titulo {
  font-size: 15px;
  font-weight: 700;
  color: var(--blanco);
  margin-bottom: 4px;
  line-height: 1.3;
}
.porq-item-desc {
  font-size: 13px;
  color: var(--gris);
  line-height: 1.6;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.35s ease;
  opacity: 0;
}
.porq-item.active .porq-item-desc {
  max-height: 80px;
  opacity: 1;
}

/* ── MOCKUP WRAP ── */
.porq-mockup-wrap {
  display: flex;
  justify-content: center;
  position: relative;
}
.porq-mockup {
  position: relative;
  display: flex;
  justify-content: center;
}

/* ── TELÉFONO ── */
.porq-phone {
  width: 240px;
  background: #0f0f16;
  border-radius: 36px;
  border: 2px solid rgba(255,255,255,0.12);
  box-shadow:
    0 40px 80px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.08);
  padding: 14px 10px 20px;
  position: relative;
  z-index: 2;
}
.porq-phone-inner {
  border-radius: 26px;
  overflow: hidden;
  background: var(--bg);
  position: relative;
  height: 440px;
}
.porq-phone-bar {
  display: flex;
  gap: 5px;
  padding: 10px 14px 8px;
  background: rgba(255,255,255,0.03);
  border-bottom: 0.5px solid rgba(255,255,255,0.06);
}
.porq-phone-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.porq-phone-dot:first-child { background: rgba(255,100,100,0.5); }
.porq-phone-dot:nth-child(2) { background: rgba(255,200,0,0.4); }
.porq-phone-dot:nth-child(3) { background: rgba(100,200,100,0.4); }

/* ── PANTALLAS ── */
.porq-screen {
  position: absolute;
  top: 38px; left: 0; right: 0; bottom: 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}
.porq-screen.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.porq-screen-hero {
  height: 100%;
  background: linear-gradient(135deg, rgba(129,69,255,0.15), rgba(9,9,14,0.95));
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.porq-screen-logo {
  font-family: var(--font-titulo);
  font-size: 18px;
  font-weight: 900;
  color: var(--blanco);
}
.porq-screen-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  color: var(--lima);
  background: rgba(196,251,54,0.1);
  border: 0.5px solid rgba(196,251,54,0.3);
  padding: 4px 10px;
  border-radius: 20px;
  width: fit-content;
}
.porq-screen-h {
  font-family: var(--font-titulo);
  font-size: 16px;
  font-weight: 800;
  color: var(--blanco);
  margin: 0;
  line-height: 1.25;
}
.porq-screen-sub {
  font-size: 11px;
  color: var(--gris);
  margin: 0;
}
.porq-screen-btn {
  background: var(--morado);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 20px;
  width: fit-content;
}

/* Timeline (screen 1) */
.porq-screen-timeline { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.porq-tl-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; color: rgba(255,255,255,0.4);
}
.porq-tl-item.done { color: var(--lima); }
.porq-tl-item.active { color: var(--blanco); font-weight: 600; }
.porq-tl-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.2);
  flex-shrink: 0;
}
.porq-tl-item.done .porq-tl-dot { background: var(--lima); border-color: var(--lima); }
.porq-tl-item.active .porq-tl-dot { background: var(--morado); border-color: var(--morado); }

/* SEO screen (screen 2) */
.porq-screen-seo { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.porq-seo-row {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 10px;
}
.porq-seo-pos {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--lima);
  color: #09090E;
  font-weight: 800;
  font-size: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.porq-seo-kw { color: var(--gris); }

/* Stats screen (screen 3) */
.porq-screen-stats { display: flex; gap: 8px; margin-top: 8px; }
.porq-stat-mini {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
}
.porq-stat-num { font-size: 16px; font-weight: 800; color: var(--lima); }
.porq-stat-lbl { font-size: 9px; color: var(--gris); margin-top: 2px; }

/* Chat screen (screen 4) */
.porq-screen-chat { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.porq-chat-burbuja {
  max-width: 85%;
  padding: 7px 10px;
  border-radius: 12px;
  font-size: 10px;
  line-height: 1.4;
}
.porq-chat-burbuja.in {
  background: rgba(255,255,255,0.08);
  color: var(--gris);
  align-self: flex-start;
  border-bottom-left-radius: 3px;
}
.porq-chat-burbuja.out {
  background: rgba(37,211,102,0.18);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 3px;
}

/* Includes screen (screen 5) */
.porq-screen-includes { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.porq-inc-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; color: var(--gris);
}
.porq-inc-check { color: var(--lima); font-weight: 700; }

/* ── STATS FLOTANTES ── */
.porq-float {
  position: absolute;
  background: rgba(17,17,24,0.95);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  backdrop-filter: blur(12px);
  z-index: 3;
  animation: floatBob 4s ease-in-out infinite;
}
.porq-float-1 {
  top: 30px;
  right: -20px;
  animation-delay: 0s;
}
.porq-float-2 {
  bottom: 60px;
  left: -28px;
  animation-delay: 1.5s;
  flex-direction: row;
  gap: 8px;
  align-items: center;
}
.porq-float-num {
  font-family: var(--font-titulo);
  font-size: 20px;
  font-weight: 900;
  color: var(--lima);
}
.porq-float-lbl { font-size: 10px; color: var(--gris); }
.porq-float-icon { font-size: 16px; }

@keyframes floatBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .porq-wrap {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .porq-mockup-wrap { order: -1; }
  .porq-phone { width: 200px; }
  .porq-phone-inner { height: 370px; }
  .porq-float-1 { right: 0; }
  .porq-float-2 { left: 0; }
}
@media (max-width: 480px) {
  .porq { padding: 64px 16px; }
  .porq-header { margin-bottom: 40px; }
  .porq-phone { width: 180px; }
  .porq-phone-inner { height: 340px; }
}