/* demo.css — chrome de Emprende Galápagos para TODAS las demos (barra + modal de conversión).
   Autocontenido a propósito: las demos tienen su propio tema interno; este archivo solo
   viste lo que pertenece a EG. Acentos V2 "Puerto Claro": noche #0A1D33/#14304F,
   azul #2563EB acción, verde claro #4ADE80 de marca sobre oscuro. */

.egdemo-bar {
  position: sticky; top: 0; z-index: 900;
  background: linear-gradient(90deg, #0A1D33 0%, #14304F 60%, #1E3A5F 100%);
  color: #fff; font-family: 'Inter', system-ui, sans-serif;
  border-bottom: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 4px 18px rgba(11,36,64,.35);
}
.egdemo-bar .egdemo-fila {
  max-width: 1200px; margin: 0 auto; padding: 8px 16px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.egdemo-tag {
  background: #4ADE80; color: #052e12; font-weight: 800; font-size: .68rem;
  letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.egdemo-txt { font-size: .82rem; color: #A9BCD2; min-width: 0; }
.egdemo-txt b { color: #fff; }
.egdemo-cta {
  margin-left: auto; background: #2563EB; color: #fff; font-weight: 700; font-size: .85rem;
  padding: 9px 16px; min-height: 40px; border-radius: 999px; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, background .15s ease;
}
.egdemo-cta:hover { background: #1D4ED8; transform: translateY(-1px); }
.egdemo-controles { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.egdemo-controles button, .egdemo-controles select {
  background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px; padding: 6px 10px; font-size: .78rem; font-family: inherit; cursor: pointer;
  min-height: 34px;
}
.egdemo-controles select option { color: #0B2440; }
.egdemo-controles button:hover, .egdemo-controles select:hover { background: rgba(255,255,255,.18); }

@media (max-width: 680px) {
  .egdemo-bar .egdemo-fila { padding: 7px 12px; gap: 8px; }
  .egdemo-txt { display: none; }               /* en móvil: tag + controles + CTA, sin frase larga */
  .egdemo-cta { font-size: .78rem; padding: 8px 12px; }
}

/* ---- Modal de conversión (suave, no invasivo) ---- */
.egdemo-modal-fondo {
  position: fixed; inset: 0; z-index: 1200; background: rgba(4,12,24,.7);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; visibility: hidden; transition: opacity .3s ease;
}
.egdemo-modal-fondo.abierto { opacity: 1; visibility: visible; }
.egdemo-modal {
  background: linear-gradient(160deg, #0A1D33, #14304F); color: #fff;
  border: 1px solid rgba(255,255,255,.12); border-radius: 20px;
  max-width: 440px; width: 100%; padding: 32px 28px; text-align: center;
  font-family: 'Inter', system-ui, sans-serif;
  box-shadow: 0 30px 80px rgba(4,12,24,.5);
  transform: translateY(14px); transition: transform .3s ease;
}
.egdemo-modal-fondo.abierto .egdemo-modal { transform: none; }
.egdemo-modal .em-emoji { font-size: 2.4rem; margin-bottom: 10px; }
.egdemo-modal h3 { font-family: 'Inter', system-ui, sans-serif; font-weight: 800; font-size: 1.25rem; margin: 0 0 8px; }
.egdemo-modal p { color: #A9BCD2; font-size: .93rem; margin: 0 0 20px; line-height: 1.55; }
.egdemo-modal .em-btns { display: flex; flex-direction: column; gap: 10px; }
.egdemo-modal a.em-primario {
  background: #2563EB; color: #fff; font-weight: 700; padding: 13px 20px; border-radius: 999px;
  text-decoration: none; transition: background .15s ease;
}
.egdemo-modal a.em-primario:hover { background: #1D4ED8; }
.egdemo-modal button.em-secundario {
  background: none; border: none; color: #93a2b8; font-size: .88rem; cursor: pointer; padding: 8px;
  font-family: inherit;
}
.egdemo-modal button.em-secundario:hover { color: #fff; }
