/* LIVERUM • POPUP IA (Urbanist minimal + kerning) */
:root{
  --ui-bg: #ffffff;
  --ui-text: #161616;
  --ui-sub: #666;
  --ui-border: #eaeaea;
  --ui-overlay: rgba(0,0,0,.55);
  --brand: #B00020;
  --radius: 14px;
}

#lvAiOverlay.lv-ai-overlay{
  position:fixed; inset:0; background:var(--ui-overlay);
  display:none; z-index:999999;
  font-family:'Urbanist', system-ui, -apple-system, Segoe UI, Roboto;
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
}

.lv-ai-modal{
  position:relative; width:min(820px,96vw); margin:4vh auto;
  background:var(--ui-bg); border:1px solid var(--ui-border);
  border-radius:var(--radius); max-height:92vh;
  display:flex; flex-direction:column; overflow:hidden;
}

/* Header */
.lv-ai-header{
  display:flex; align-items:center; gap:.75rem;
  padding:12px 16px; border-bottom:1px solid var(--ui-border);
  background:#fff;
}
.lv-ai-logo{ height:22px; width:auto; display:block }
.lv-ai-title{
  margin:0; color:var(--ui-text);
  font-family:'Urbanist', system-ui, -apple-system, Segoe UI, Roboto;
  font-weight:700; font-size:16px; line-height:1.2;
  letter-spacing:.35px;      /* kerning */
  text-transform:uppercase;  /* MAYÚSCULAS */
}
.lv-ai-close{
  margin-left:auto; border:1px solid var(--ui-border); background:#fff; color:var(--ui-text);
  border-radius:10px; padding:6px 10px; font:700 13px/1 'Urbanist',system-ui; cursor:pointer;
  letter-spacing:.2px;
}
.lv-ai-close:hover{ background:#f7f7f7 }

/* Body */
.lv-ai-body{
  padding:14px; overflow:auto; display:flex; flex-direction:column; align-items:center; gap:12px; flex:1 1 auto;
  background:#fff;
}

/* Video */
.lv-ai-vid-wrap{
  position:relative; width:min(560px,92vw); aspect-ratio:4/5;
  background:#000; border-radius:12px; overflow:hidden; flex:0 0 auto;
  max-height:64vh; border:1px solid var(--ui-border);
}
@supports not (aspect-ratio: 4 / 5){
  .lv-ai-vid-wrap{ padding-top:125%; height:0; }
  .lv-ai-vid{ position:absolute; inset:0; }
}
.lv-ai-vid{ width:100%; height:100%; object-fit:cover; display:block; background:#000 }

.lv-ai-progress{ position:absolute; top:0; left:0; height:2px; background:var(--brand); width:0%; z-index:3 }

.lv-ai-pill{
  position:absolute; top:10px; left:10px; z-index:5; display:flex; gap:8px; align-items:center;
  background:rgba(22,22,22,.7); color:#fff; border-radius:999px; padding:6px 10px;
  font:600 12px/1 'Urbanist',system-ui;
}
.lv-ai-pill small{ opacity:.9; font-weight:600 }

.lv-ai-tap{ position:absolute; inset:0; display:none; align-items:center; justify-content:center; z-index:4 }
.lv-ai-tap-btn{
  border:1px solid #fff; background:rgba(0,0,0,.55); color:#fff;
  border-radius:999px; padding:10px 14px; font:700 14px/1 'Urbanist',system-ui; cursor:pointer;
  letter-spacing:.25px;
}

/* Botones */
.lv-ai-choices{ display:flex; gap:10px; flex-wrap:wrap; justify-content:center; margin-top:2px; max-width:640px }
.lv-ai-btn{
  flex:1; min-width:180px; border:1px solid var(--ui-border); background:#fff; color:var(--ui-text);
  border-radius:12px; padding:11px 14px; font-family:'Urbanist',system-ui;
  font-weight:600; font-size:14px; line-height:1; letter-spacing:.3px; cursor:pointer;
  box-shadow:0 1px 0 rgba(0,0,0,.02); transition:transform .06s ease, box-shadow .2s ease, background .2s ease;
}
.lv-ai-btn:hover{ background:#fafafa; transform:translateY(-1px); box-shadow:0 6px 18px rgba(0,0,0,.06); }

.lv-ai-cta{ display:flex; gap:10px; justify-content:center; margin-top:4px; flex-wrap:wrap }
.lv-ai-primary{
  border:1px solid var(--brand); background:var(--brand); color:#fff;
  letter-spacing:.35px;
}
.lv-ai-primary:hover{ filter:brightness(.98) }

.lv-ai-status{ font:400 13px/1.4 'Urbanist',system-ui; color:var(--ui-sub); margin-top:6px; min-height:20px; text-align:center }
.lv-ai-caption{ font:400 12px/1.35 'Urbanist',system-ui; color:#8a8a8a; margin:0; text-align:center }

/* Viewport bajos: mantener botones visibles */
@media (max-height: 900px){
  .lv-ai-modal{ margin:2vh auto; max-height:96vh; }
  .lv-ai-vid-wrap{ max-height:58vh }
}
@media (max-height: 720px){
  .lv-ai-modal{ margin:1.5vh auto; max-height:97vh; }
  .lv-ai-vid-wrap{ max-height:54vh }
}
