/* =====================================================
   ESCÁNER CUÁNTICO BIOELÉCTRICO — Team Dharma
   styles.css — Hoja de estilos global
   Afecta TODAS las landings de anfitriones
   ===================================================== */

:root {
  --verde-principal: #3BA71F;
  --verde-oscuro:    #297016;
  --verde-lima:      #BAF957;
  --verde-gris:      #5a6650;
  --verde-gris-mid:  #7a8a70;
  --fondo-claro:     #DEE9C6;
  --negro:           #131314;
  --blanco:          #ffffff;
  --font: 'Montserrat', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--fondo-claro);
  color: var(--negro);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== BOTONES ===== */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--verde-oscuro);
  color: var(--blanco);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 800;
  padding: 18px 32px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(59,167,31,0.35);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  width: 100%;
  max-width: 420px;
}
.btn-cta:hover {
  background: #1e5210;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(59,167,31,0.45);
}
.btn-cta-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--negro);
  color: var(--verde-lima);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 800;
  padding: 18px 32px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
}
.btn-cta-dark:hover { background: #000; transform: translateY(-2px); }

@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(59,167,31,0.5); }
  70%  { box-shadow: 0 0 0 14px rgba(59,167,31,0); }
  100% { box-shadow: 0 0 0 0 rgba(59,167,31,0); }
}
.btn-pulse { animation: pulse-ring 2.2s ease-out infinite; }

/* ===== SECTION HEADERS ===== */
.section-label {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--verde-gris);
  margin-bottom: 10px;
}
.section-title {
  text-align: center;
  font-size: clamp(22px, 6vw, 34px);
  font-weight: 900;
  color: var(--negro);
  line-height: 1.15;
  margin-bottom: 10px;
}
.section-title .accent { color: var(--verde-oscuro); }
.section-sub {
  text-align: center;
  font-size: 14px;
  color: var(--verde-gris);
  font-weight: 500;
  margin-bottom: 36px;
  line-height: 1.6;
}

/* ===== FADE UP ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { opacity: 0; animation: fadeUp 0.6s ease forwards; }
.fade-up:nth-child(1) { animation-delay: 0.05s; }
.fade-up:nth-child(2) { animation-delay: 0.15s; }
.fade-up:nth-child(3) { animation-delay: 0.25s; }
.fade-up:nth-child(4) { animation-delay: 0.35s; }

/* ===== 1. PLECA URGENCIA CON TIMER ===== */
.urgencia-pleca {
  background: linear-gradient(135deg, var(--verde-oscuro) 0%, var(--verde-principal) 60%, #4fcf28 100%);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(41,112,22,0.45);
}
/* Oculta la pleca si no hay descuento */
.urgencia-pleca.hidden { display: none; }

.urgencia-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding: 12px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.urgencia-texto {
  font-size: 13px;
  font-weight: 700;
  color: var(--blanco);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.urgencia-texto span {
  background: var(--negro);
  color: var(--verde-lima);
  padding: 2px 8px;
  border-radius: 4px;
  margin: 0 3px;
  font-weight: 900;
}
.urgencia-divider {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.3);
  flex-shrink: 0;
}
.countdown {
  display: flex;
  align-items: center;
  gap: 4px;
}
.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0,0,0,0.25);
  border-radius: 6px;
  padding: 4px 8px;
  min-width: 44px;
}
.countdown-unit .num {
  font-size: 20px;
  font-weight: 900;
  color: var(--verde-lima);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown-unit .label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.75);
  margin-top: 2px;
}
.countdown-sep {
  font-size: 18px;
  font-weight: 900;
  color: var(--verde-lima);
  margin-bottom: 8px;
  opacity: 0.7;
}

/* ===== 2. HERO ===== */
.hero {
  background: var(--negro);
  text-align: center;
  padding: 44px 20px 36px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -80px; left: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(59,167,31,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(186,249,87,0.12);
  border: 1px solid rgba(186,249,87,0.3);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--verde-lima);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 22px;
}
.hero-badge::before { content: '✦'; font-size: 10px; }

/* Nombre del anfitrión bajo el badge */
.hero-anfitrion {
  font-size: 14px;
  font-weight: 600;
  color: rgba(186,249,87,0.7);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}
.hero-anfitrion strong {
  color: var(--verde-lima);
  font-weight: 800;
}

.hero h1 {
  font-size: clamp(26px, 7vw, 48px);
  font-weight: 900;
  color: var(--blanco);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.hero h1 .accent { color: var(--verde-lima); }
.hero-sub {
  font-size: 15px;
  font-weight: 500;
  color: #b0b8a0;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto 30px;
}
.hero-sub strong { color: var(--blanco); font-weight: 700; }
.hero-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0;
}
.btn-cta-sub {
  font-size: 12px;
  font-weight: 600;
  color: #8a9a80;
  margin-top: 10px;
}
.hero-img-fullwidth {
  width: 100%;
  margin-top: 36px;
  position: relative;
  overflow: hidden;
}
.hero-img-fullwidth img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ===== 3. PILLS BENEFICIOS ===== */
.beneficios {
  background: var(--blanco);
  padding: 48px 20px;
}
.beneficios-titulo {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--verde-gris);
  margin-bottom: 28px;
}
.pills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 680px;
  margin: 0 auto;
}
.pill {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--fondo-claro);
  border-radius: 16px;
  padding: 16px 18px;
  border-left: 4px solid var(--verde-principal);
  transition: transform 0.18s, box-shadow 0.18s;
}
.pill:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(59,167,31,0.15);
}
.pill-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--verde-principal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-top: 1px;
}
.pill-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--negro);
  line-height: 1.4;
}
.pill-text span { color: var(--verde-oscuro); }

/* ===== 4. SISTEMAS EVALUADOS ===== */
.sistemas {
  background: var(--negro);
  padding: 52px 20px;
}
.sistemas .section-title { color: var(--blanco); }
.sistemas .section-title .accent { color: var(--verde-lima); }
.sistemas .section-sub { color: #8a9a80; }
.sistemas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 680px;
  margin: 0 auto 36px;
}
.sistema-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(186,249,87,0.12);
  border-radius: 16px;
  padding: 20px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: border-color 0.2s, background 0.2s;
}
.sistema-card:hover {
  border-color: rgba(186,249,87,0.3);
  background: rgba(255,255,255,0.08);
}
.sistema-icon {
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}
.sistema-info h4 {
  font-size: 13px;
  font-weight: 800;
  color: var(--blanco);
  margin-bottom: 4px;
  line-height: 1.3;
}
.sistema-info p {
  font-size: 12px;
  font-weight: 500;
  color: #8a9a80;
  line-height: 1.5;
}

/* ===== 5. VIDEO ===== */
.video-section {
  background: var(--negro);
  padding: 52px 20px;
  text-align: center;
}
.video-section .section-title { color: var(--blanco); }
.video-section .section-title .accent { color: var(--verde-lima); }
.video-section .section-sub { color: #8a9a80; }
.video-wrap {
  position: relative;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 2px solid rgba(186,249,87,0.15);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== 6. CÓMO FUNCIONA ===== */
.como-funciona {
  padding: 52px 20px;
  background: var(--fondo-claro);
}
.pasos {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 560px;
  margin: 0 auto;
}
.paso {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding-bottom: 28px;
}
.paso:last-child { padding-bottom: 0; }
.paso-line-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 44px;
}
.paso-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--verde-principal);
  color: var(--blanco);
  font-size: 18px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(59,167,31,0.3);
  position: relative;
  z-index: 1;
}
.paso-connector {
  width: 2px;
  flex: 1;
  background: linear-gradient(to bottom, var(--verde-principal), rgba(59,167,31,0.1));
  margin-top: 4px;
  min-height: 28px;
}
.paso:last-child .paso-connector { display: none; }
.paso-body { padding-top: 8px; flex: 1; }
.paso-body h3 { font-size: 16px; font-weight: 800; color: var(--negro); margin-bottom: 5px; }
.paso-body p { font-size: 13px; color: var(--verde-gris); line-height: 1.6; font-weight: 500; }

/* ===== 7. EVENTOS ===== */
.eventos {
  background: var(--blanco);
  padding: 52px 20px;
}
.eventos .section-title .accent { color: var(--verde-oscuro); }
.eventos-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 680px;
  margin: 0 auto 36px;
}
.evento-card {
  background: var(--fondo-claro);
  border-radius: 16px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-left: 4px solid var(--verde-principal);
  flex-wrap: wrap;
  transition: transform 0.18s, box-shadow 0.18s;
}
.evento-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59,167,31,0.15);
}
.evento-info { flex: 1; min-width: 180px; }
.evento-ciudad {
  font-size: 16px;
  font-weight: 900;
  color: var(--negro);
  margin-bottom: 4px;
}
.evento-fecha {
  font-size: 13px;
  font-weight: 600;
  color: var(--verde-gris);
  display: flex;
  align-items: center;
  gap: 5px;
}
.evento-fecha::before { content: '📅'; font-size: 12px; }
.evento-precio {
  font-size: 13px;
  font-weight: 700;
  color: var(--verde-oscuro);
  margin-top: 4px;
}
.evento-precio .precio-tachado {
  text-decoration: line-through;
  color: var(--verde-gris);
  font-weight: 500;
  margin-right: 4px;
}
.evento-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--verde-oscuro);
  color: var(--blanco);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 800;
  padding: 12px 20px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.evento-btn:hover {
  background: #1e5210;
  transform: translateY(-1px);
}

/* Estado vacío de eventos */
.eventos-empty {
  text-align: center;
  padding: 36px 20px;
  color: var(--verde-gris);
  font-size: 14px;
  font-weight: 500;
}

/* Estado cargando */
.eventos-loading {
  text-align: center;
  padding: 36px 20px;
  color: var(--verde-gris);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.spinner {
  width: 20px; height: 20px;
  border: 3px solid rgba(59,167,31,0.2);
  border-top-color: var(--verde-principal);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== 8. TESTIMONIALES ===== */
.testimoniales {
  background: var(--blanco);
  padding: 52px 20px;
}
.testi-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 680px;
  margin: 0 auto;
}
.testi-card {
  background: var(--fondo-claro);
  border-radius: 18px;
  padding: 22px 20px;
  position: relative;
  border-top: 3px solid var(--verde-principal);
}
.testi-stars { color: #f5a623; font-size: 15px; letter-spacing: 2px; margin-bottom: 12px; }
.testi-content {
  font-size: 14px;
  font-weight: 500;
  color: #3a3a3a;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 16px;
}
.testi-content::before { content: '"'; color: var(--verde-principal); font-size: 18px; font-weight: 900; font-style: normal; }
.testi-content::after  { content: '"'; color: var(--verde-principal); font-size: 18px; font-weight: 900; font-style: normal; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--verde-principal);
  flex-shrink: 0;
  background: var(--verde-gris);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--blanco); font-weight: 800;
}
.testi-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testi-name { font-size: 14px; font-weight: 800; color: var(--negro); }
.testi-role { font-size: 11px; font-weight: 700; color: var(--verde-gris); text-transform: uppercase; letter-spacing: 0.08em; }
.testi-date { font-size: 11px; color: #b0b8a8; margin-top: 2px; }
.testi-quote-mark {
  position: absolute; top: 14px; right: 18px;
  font-size: 52px; color: rgba(59,167,31,0.1); font-weight: 900; line-height: 1;
  font-family: Georgia, serif; user-select: none;
}

/* ===== 9. CTA FINAL ===== */
.cta-final {
  background: var(--verde-principal);
  padding: 52px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: '';
  position: absolute; top: -80px; right: -80px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(186,249,87,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.cta-final h2 {
  font-size: clamp(20px, 5.5vw, 30px);
  font-weight: 900;
  color: var(--blanco);
  line-height: 1.2;
  margin-bottom: 24px;
  position: relative; z-index: 1;
}
.precio-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}
.precio-original {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  text-decoration: line-through;
  letter-spacing: 0.04em;
}
.precio-oferta {
  font-size: 38px;
  font-weight: 900;
  color: var(--verde-lima);
  line-height: 1;
  letter-spacing: -0.02em;
}
.precio-badge {
  display: inline-block;
  background: var(--negro);
  color: var(--verde-lima);
  font-size: 11px;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
/* Sin descuento: precio único sin tachado */
.precio-unico {
  font-size: 38px;
  font-weight: 900;
  color: var(--verde-lima);
  line-height: 1;
  letter-spacing: -0.02em;
}

/* ===== 10. FAQ ===== */
.faq { background: var(--fondo-claro); padding: 52px 20px; }
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 680px;
  margin: 0 auto;
}
.faq-item {
  background: var(--blanco);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(59,167,31,0.12);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  color: var(--negro);
  text-align: left;
  line-height: 1.4;
}
.faq-question:hover { background: rgba(59,167,31,0.04); }
.faq-chevron {
  width: 26px; height: 26px; min-width: 26px;
  border-radius: 50%;
  background: var(--fondo-claro);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.25s, background 0.2s;
  font-size: 16px;
  color: var(--verde-principal);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); background: var(--verde-principal); color: var(--blanco); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; padding: 0 20px; }
.faq-item.open .faq-answer { max-height: 200px; padding: 0 20px 18px; }
.faq-answer p {
  font-size: 13px; font-weight: 500; color: #333; line-height: 1.7;
  border-top: 1px solid rgba(59,167,31,0.1); padding-top: 14px;
}

/* ===== SOCIAL PROOF BAR ===== */
.social-proof-bar {
  background: var(--verde-oscuro);
  padding: 16px 20px;
  text-align: center;
}
.social-proof-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 24px;
  max-width: 680px;
  margin: 0 auto;
}
.sp-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--blanco);
}
.sp-item .sp-num {
  color: var(--verde-lima);
  font-size: 16px;
  font-weight: 900;
}
.sp-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
}

/* ===== FOOTER ===== */
footer { background: var(--negro); padding: 36px 20px; text-align: center; }
.footer-logo-text { font-size: 18px; font-weight: 900; color: var(--blanco); letter-spacing: 0.05em; margin-bottom: 14px; }
.footer-logo-text span { color: var(--verde-lima); }
.footer-copy { font-size: 12px; color: #888; margin-bottom: 10px; font-weight: 500; }
.footer-disclaimer { font-size: 11px; color: #777; line-height: 1.6; max-width: 560px; margin: 0 auto; }

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  .urgencia-inner { flex-direction: column; gap: 8px; }
  .urgencia-divider { display: none; }
  .pills-grid { grid-template-columns: 1fr; }
  .sistemas-grid { grid-template-columns: 1fr; }
  .social-proof-inner { gap: 6px 12px; }
  .sp-dot { display: none; }
  .evento-card { flex-direction: column; align-items: flex-start; }
  .evento-btn { width: 100%; justify-content: center; }
}
@media (min-width: 640px) {
  .testi-grid { display: grid; grid-template-columns: 1fr 1fr; }
  .testi-grid .testi-card:last-child { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .testi-grid { grid-template-columns: repeat(3, 1fr); }
  .testi-grid .testi-card:last-child { grid-column: auto; }
}
