/* Arkadium88 — Publicidad y consentimiento legal (UI limpia, sin saturación) */

/* ── Ad slots: altura fija, sin scroll infinito ── */
.ark-ad-slot {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  width: 100%;
  max-width: 320px;
  min-height: 0;
  overflow: hidden;
  flex-shrink: 0;
}
.ark-ad-slot:not(.ark-ad-slot--empty) {
  min-height: 120px;
}
.ark-ad-slot--empty {
  display: none;
  margin: 0;
  min-height: 0;
}

.ark-ad {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(100%, var(--ad-w, 300px));
  min-height: var(--ad-h, 120px);
  height: var(--ad-h, 120px);
  max-height: var(--ad-h, 120px);
  padding: 8px 10px;
  border-radius: 12px;
  text-decoration: none;
  color: #f4f4f5;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

/* Icono + texto (banner estándar) */
.ark-ad--compact {
  flex-direction: row;
}
.ark-ad--compact .ark-ad-media {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  overflow: hidden;
}
.ark-ad--compact .ark-ad-media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Creativo completo (logo + texto en imagen) */
.ark-ad--creative {
  flex-direction: column;
  justify-content: center;
  padding: 6px 8px;
  gap: 4px;
}
.ark-ad--creative .ark-ad-media {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ark-ad--creative .ark-ad-media img {
  width: 100%;
  height: 100%;
  max-height: calc(var(--ad-h, 120px) - 16px);
  object-fit: contain;
  object-position: center center;
}

.ark-ad:hover {
  border-color: rgba(0, 210, 255, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.ark-ad-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.25;
  overflow: hidden;
}
.ark-ad-copy strong {
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ark-ad-copy small {
  font-size: 0.68rem;
  color: #9ca3af;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ark-ad-copy--overlay {
  flex: 0 0 auto;
  width: 100%;
  text-align: center;
}
.ark-ad-tag {
  font-size: 0.58rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #9ca3af;
}
.ark-ad--featured {
  border-color: rgba(232, 185, 35, 0.45);
  background: linear-gradient(135deg, rgba(232, 185, 35, 0.12), rgba(139, 92, 246, 0.08));
}
.ark-ad--featured .ark-ad-tag {
  color: #e8b923;
}

.ark-ad-placeholder {
  font-size: 0.72rem;
  color: #6b7280;
  padding: 12px;
}

/* App taxista: columna fija (DESTACADO arriba, PATROCINADO abajo) */
.ark-ads-stack {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: calc(168px + env(safe-area-inset-bottom));
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  max-width: 456px;
  margin: 0 auto;
  pointer-events: none;
}
.ark-ads-stack .ark-ad-slot {
  pointer-events: auto;
  margin: 0;
  max-width: none;
  width: 100%;
}
.ark-ads-stack .ark-ad-slot:not(.ark-ad-slot--empty) {
  min-height: 120px;
}
.ark-ads-stack .ark-ad-slot--empty {
  display: none;
  min-height: 0;
}

/* ── Modal consentimiento legal (aislado de estilos globales label {}) ── */
.ark-legal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(4px);
  box-sizing: border-box;
}
.ark-legal-overlay *,
.ark-legal-overlay *::before,
.ark-legal-overlay *::after {
  box-sizing: border-box;
}
.ark-legal-modal {
  width: 100%;
  max-width: 420px;
  max-height: min(90vh, 640px);
  overflow: auto;
  background: #120a1f;
  border: 1px solid rgba(139, 92, 246, 0.45);
  border-radius: 18px;
  padding: 20px 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.ark-legal-modal h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  margin: 0 0 8px;
  color: #f4f4f5;
  text-transform: none;
  letter-spacing: normal;
}
.ark-legal-intro {
  font-size: 0.82rem;
  color: #9ca3af;
  margin: 0 0 14px;
  line-height: 1.45;
  text-transform: none;
  letter-spacing: normal;
}
.ark-legal-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
  width: 100%;
}
.ark-legal-check {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
}
.ark-legal-check input[type="checkbox"] {
  margin: 3px 0 0;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #00d2ff;
}
.ark-legal-check-text {
  flex: 1 1 auto;
  min-width: 0;
  text-transform: none !important;
  letter-spacing: normal !important;
  text-align: left;
}
.ark-legal-check-text strong {
  display: block;
  color: #f4f4f5;
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  margin: 0 0 6px;
  text-transform: none !important;
  letter-spacing: normal !important;
}
.ark-legal-check-text p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #cbd5e1;
  text-transform: none !important;
  letter-spacing: normal !important;
  overflow-wrap: anywhere;
  word-break: normal;
}
.ark-legal-btn {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  background: linear-gradient(135deg, #00d2ff, #0099cc);
  color: #0a0612;
  cursor: pointer;
  text-transform: none;
  letter-spacing: normal;
}
.ark-legal-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ── POI contextual overlay (banderita en ruta) ── */
.ark-poi-overlay {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 99990;
  max-width: 420px;
  margin: 0 auto;
  pointer-events: auto;
}
.ark-poi-flag {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(18, 10, 31, 0.96);
  border: 1px solid rgba(0, 210, 255, 0.35);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  position: relative;
}
.ark-poi-overlay--destacado .ark-poi-flag {
  border-color: rgba(232, 185, 35, 0.55);
  background: linear-gradient(135deg, rgba(18, 10, 31, 0.98), rgba(40, 25, 60, 0.98));
}
.ark-poi-close {
  position: absolute;
  top: 6px;
  right: 8px;
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
}
.ark-poi-flag-img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}
.ark-poi-flag-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.ark-poi-flag-body {
  flex: 1;
  min-width: 0;
  padding-right: 18px;
}
.ark-poi-flag-body strong {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  margin-bottom: 2px;
}
.ark-poi-flag-body small {
  display: block;
  font-size: 0.68rem;
  color: #9ca3af;
  line-height: 1.35;
}
.ark-poi-flag-tag {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #00d2ff;
  display: block;
  margin-bottom: 4px;
}
.ark-poi-dist {
  color: #e8b923 !important;
  margin-top: 2px;
}
.ark-poi-actions {
  margin-top: 8px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.ark-poi-btn {
  border: none;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.ark-poi-btn--web {
  background: rgba(0, 210, 255, 0.2);
  color: #7dd3fc;
  border: 1px solid rgba(0, 210, 255, 0.35);
}
.ark-poi-btn--lead {
  background: rgba(232, 185, 35, 0.2);
  color: #fde68a;
  border: 1px solid rgba(232, 185, 35, 0.4);
}
.ark-poi-lead-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.ark-poi-lead-box {
  width: 100%;
  max-width: 400px;
  background: #120a1f;
  border: 1px solid rgba(139, 92, 246, 0.45);
  border-radius: 16px;
  padding: 18px;
}
.ark-poi-lead-box h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  margin: 0 0 8px;
}
.ark-poi-lead-box p {
  font-size: 0.8rem;
  color: #9ca3af;
  margin: 0 0 12px;
  line-height: 1.45;
}
.ark-poi-lead-box input,
.ark-poi-lead-box textarea {
  width: 100%;
  margin-bottom: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #f4f4f5;
  font-size: 0.85rem;
  box-sizing: border-box;
}
.ark-poi-lead-send {
  width: 100%;
  margin-top: 4px;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #e8b923, #d97706);
  color: #111;
  font-weight: 700;
  cursor: pointer;
}
.ark-poi-lead-cancel {
  width: 100%;
  margin-top: 8px;
  padding: 10px;
  border: none;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
}
