/* 
RESUMEN DE CAMBIOS (BASE INICIAL):
- Estilo responsivo con tipografía Inter
- Paleta: azul marino + grises claros + celeste claro
- Burbujas redondeadas tipo chat para ponente/usuario
*/

:root{
  --navy:#0b2a4a;
  --sky:#d9f1ff;
  --gray:#f2f4f7;
  --bg:#ffffff;
  --line:#e6eaf0;
  --shadow: 0 14px 40px rgba(8, 18, 30, 0.08);
  --radius: 18px;
  --radius2: 22px;
}

*{ box-sizing:border-box; }
html, body{ height:100%; }
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--navy);
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(217,241,255,0.75), transparent 60%),
    radial-gradient(800px 500px at 90% 10%, rgba(242,244,247,0.9), transparent 55%),
    var(--bg);
}

.page{
  width: min(1120px, 94vw);
  margin: 0 auto;
  padding: 18px 0 28px;
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 14px 14px;
  border:1px solid var(--line);
  border-radius: var(--radius2);
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 0;
}

.logo{
  width: 54px;
  height: 54px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brandText{ min-width:0; }
.brandTitle{
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 18px;
  line-height: 1.2;
}
.brandSubtitle{
  font-size: 13px;
  opacity: 0.8;
}

.rightTools{ display:flex; align-items:center; gap: 10px; }

.pillLink{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration:none;
  color: var(--navy);
  background: rgba(242,244,247,0.65);
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}

.pillStat{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}
.pillStat.ok{ background: rgba(217,241,255,0.8); }
.pillStat.err{ background: rgba(255, 228, 228, 0.8); }

.grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.card{
  border:1px solid var(--line);
  border-radius: var(--radius2);
  background: rgba(255,255,255,0.9);
  box-shadow: var(--shadow);
  padding: 18px;
}

.cardHeaderRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}

.h1{
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.h2{
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}
.muted{
  margin: 0 0 12px;
  opacity: 0.78;
}
.small{ font-size: 12px; }

.formRow{ margin-top: 14px; }
.label{
  display:block;
  font-weight: 700;
  margin-bottom: 8px;
}
.input, .textarea{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  outline: none;
  font-size: 14px;
  color: var(--navy);
  background: #fff;
}
.textarea{ resize: vertical; min-height: 110px; }
.input:focus, .textarea:focus{
  border-color: rgba(11,42,74,0.35);
  box-shadow: 0 0 0 4px rgba(217,241,255,0.9);
}
.hint{
  margin-top: 8px;
  font-size: 12px;
  opacity: 0.72;
  display:flex;
  justify-content: space-between;
}

.actions{
  margin-top: 14px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btnPrimary{
  border: none;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  cursor:pointer;
}
.btnPrimary:disabled{ opacity:0.6; cursor: not-allowed; }

.btnGhost{
  border: 1px solid var(--line);
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(242,244,247,0.8);
  color: var(--navy);
  font-weight: 800;
  cursor:pointer;
}

.btnMini, .btnMiniDanger{
  border: 1px solid var(--line);
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(242,244,247,0.8);
  color: var(--navy);
  font-weight: 800;
  cursor:pointer;
  font-size: 12px;
}
.btnMiniDanger{
  background: rgba(255, 228, 228, 0.85);
  border-color: rgba(255, 199, 199, 0.9);
}

.status{
  margin-top: 14px;
  font-weight: 700;
  font-size: 13px;
  min-height: 18px;
}
.status.ok{ color: #0a6b2f; }
.status.warn{ color: #8a5a00; }
.status.err{ color: #8a1020; }

.bubbleList{
  display:flex;
  flex-direction: column;
  gap: 12px;
  max-height: 65vh;
  overflow:auto;
  padding-right: 6px;
}

.bubble{
  border-radius: 18px;
  padding: 12px 12px;
  border: 1px solid var(--line);
}

.bubble.presenter.gray{ background: var(--gray); }
.bubble.presenter.sky{ background: var(--sky); }

.bubble.mine{
  background: rgba(217,241,255,0.55);
}

.bubbleTop{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.bubbleName{
  font-weight: 800;
  font-size: 13px;
}
.bubbleTime{
  font-size: 12px;
  opacity: 0.72;
  white-space: nowrap;
}

.bubbleText{
  font-size: 14px;
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-word;
}

.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  margin-left: 8px;
  border: 1px solid var(--line);
}
.badge.pending{ background: rgba(242,244,247,0.9); }
.badge.answered{ background: rgba(217,241,255,0.9); }

.bubbleActions{
  margin-top: 10px;
  display:flex;
  justify-content:flex-end;
}

.empty{
  opacity: 0.75;
  font-size: 14px;
  padding: 14px;
  border: 1px dashed rgba(11,42,74,0.25);
  border-radius: 16px;
  background: rgba(242,244,247,0.55);
}

.footer{
  margin-top: 14px;
  text-align:center;
  font-size: 12px;
  opacity: 0.7;
}

/* Responsivo */
@media (max-width: 860px){
  .grid{ grid-template-columns: 1fr; }
  .bubbleList{ max-height: 58vh; }
}

@media (max-width: 420px){
  .logo{ width: 44px; height: 44px; }
  .brandTitle{ font-size: 16px; }
  .card{ padding: 14px; }
}
