/* ===========================================================
   Canvas de charlas — Destí
   Paleta y tipografía de plantillas/MARCA.md
   =========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700;900&display=swap');

:root {
  --azul:      #006DFF;
  --azul-osc:  #0056c9;
  --magenta:   #E21776;
  --amarillo:  #FDC82F;
  --verde:     #007934;
  --gris:      #404545;
  --gris-cl:   #888888;
  --gris-bg:   #f4f6f8;
  --linea:     #e2e6ea;
  --negro:     #000000;
  --blanco:    #ffffff;
  --sombra:    0 2px 10px rgba(0,0,0,.06);
  --radio:     12px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  font-family: 'Roboto', system-ui, -apple-system, Segoe UI, sans-serif;
  font-weight: 300;
  color: var(--gris);
  background: var(--gris-bg);
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 { font-weight: 900; color: var(--negro); margin: 0; }

.logo-desti {
  font-weight: 900;
  color: var(--azul);
  letter-spacing: -.02em;
  font-size: 2rem;
}
.logo-desti.chico { font-size: 1.25rem; }

/* ----- Botones ----- */
.boton {
  display: inline-block;
  background: var(--azul);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: .7rem 1.2rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s;
}
.boton:hover { background: var(--azul-osc); }
.boton.chico { padding: .45rem .8rem; font-size: .85rem; }
.boton.secundario { background: var(--gris); }
.boton.secundario:hover { background: #2c2f2f; }
.boton.fantasma {
  background: transparent; color: var(--azul);
  box-shadow: inset 0 0 0 2px var(--azul);
}
.boton.fantasma:hover { background: rgba(0,109,255,.08); }

/* ----- Avisos ----- */
.aviso { padding: .7rem .9rem; border-radius: 8px; font-weight: 400; }
.aviso.error { background: #fdecef; color: #b3123f; }
.aviso.ok    { background: #eafaf0; color: var(--verde); }
.nota { color: var(--gris-cl); font-size: .82rem; line-height: 1.4; }
code { background: #eef1f4; padding: .1em .35em; border-radius: 4px; }

/* ===========================================================
   Pantallas centradas (ingreso, instalación)
   =========================================================== */
.pantalla-centro {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.tarjeta {
  background: #fff;
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  padding: 2rem;
  width: 100%; max-width: 420px;
  display: flex; flex-direction: column; gap: 1rem;
}
.tarjeta h2 { font-size: 1.35rem; }
.fecha-charla { color: var(--azul); font-weight: 700; margin: -.6rem 0 0; }

.form-vertical { display: flex; flex-direction: column; gap: 1rem; }
.form-vertical label { display: flex; flex-direction: column; gap: .35rem;
  font-weight: 700; color: var(--gris); font-size: .9rem; }
.form-vertical input {
  font: inherit; font-weight: 400;
  padding: .7rem .8rem;
  border: 1.5px solid var(--linea); border-radius: 8px;
  background: #fff;
}
.form-vertical input:focus { outline: none; border-color: var(--azul); }

.lista-charlas { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.lista-charlas a {
  display: flex; justify-content: space-between; align-items: center;
  padding: .9rem 1rem; border: 1.5px solid var(--linea); border-radius: 8px;
  text-decoration: none; color: var(--negro);
}
.lista-charlas a:hover { border-color: var(--azul); }
.lista-charlas span { color: var(--gris-cl); font-size: .85rem; }

/* ===========================================================
   Canvas
   =========================================================== */
.pantalla-canvas { min-height: 100vh; display: flex; flex-direction: column; }

.barra {
  position: sticky; top: 0; z-index: 10;
  background: #fff; border-bottom: 1px solid var(--linea);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  /* Fondo full-width, pero contenido alineado con las columnas (máx 1400) */
  padding: .6rem max(1rem, calc((100% - 1400px) / 2 + 1rem));
}
.barra-izq { display: flex; align-items: center; gap: .9rem; }
.barra-charla { display: flex; flex-direction: column; line-height: 1.2; }
.barra-charla strong { color: var(--negro); font-size: .95rem; }
.barra-charla span { color: var(--gris-cl); font-size: .78rem; }
.barra-der { display: flex; align-items: center; gap: .5rem; }

.estado { font-size: .8rem; font-weight: 700; color: var(--gris-cl); min-width: 5.5rem; text-align: right; }
.estado.ok { color: var(--verde); }
.estado.guardando, .estado.editando { color: var(--azul); }
.estado.error { color: var(--magenta); }

.tablero {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1rem;
  align-items: start;
  max-width: 1400px; width: 100%; margin: 0 auto;
}

.intro-canvas {
  max-width: 1400px; width: 100%; margin: 16px auto 20px;
  padding: 4px 1rem; font-size: 1.02rem; font-weight: 400; color: var(--gris);
  border-left: 4px solid var(--azul); padding-left: .9rem;
}
@media (min-width: 821px) { .intro-canvas { padding-left: 1.9rem; } }

.columna {
  background: #fff;
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  border-top: 6px solid var(--col);
  padding: 1rem 1rem 1.2rem;
  display: flex; flex-direction: column; gap: .6rem;
}
.col-cambiar   { --col: var(--magenta); }
.col-activar   { --col: var(--amarillo); }
.col-potenciar { --col: var(--verde); }

.col-cabecera { display: flex; align-items: center; gap: .5rem; }
.col-punto { width: 14px; height: 14px; border-radius: 50%; background: var(--col); flex: none; }
.col-cabecera h2 { font-size: 1.05rem; }
.col-bajada { margin: 0; font-size: .85rem; color: var(--gris); font-weight: 400; }

.col-guias { font-size: .82rem; }
.col-guias summary { cursor: pointer; color: var(--azul); font-weight: 700; }
.col-guias ul { margin: .5rem 0 0; padding-left: 1.1rem; color: var(--gris-cl); }
.col-guias li { margin-bottom: .25rem; }

.lista-ideas { display: flex; flex-direction: column; gap: .5rem; margin-top: .3rem; }
.idea { display: flex; gap: .4rem; align-items: flex-start; }
.idea-texto {
  flex: 1; font: inherit; font-weight: 400;
  border: 1.5px solid var(--linea); border-radius: 8px;
  padding: .55rem .65rem; resize: none; overflow: hidden;
  line-height: 1.35; min-height: 2.4rem;
}
.idea-texto:focus { outline: none; border-color: var(--col); }
.idea-borrar {
  flex: none; width: 2rem; height: 2rem; border: 0; border-radius: 8px;
  background: var(--gris-bg); color: var(--gris-cl);
  font-size: 1.2rem; line-height: 1; cursor: pointer;
}
.idea-borrar:hover { background: #fdecef; color: var(--magenta); }

.agregar-idea {
  margin-top: .3rem; border: 1.5px dashed var(--col);
  background: transparent; color: var(--col);
  border-radius: 8px; padding: .55rem; font: inherit; font-weight: 700;
  cursor: pointer;
}
.agregar-idea:hover { background: rgba(0,0,0,.03); }

/* Responsive: en teléfono, columnas apiladas */
@media (max-width: 820px) {
  /* Flex column en vez de grid: evita que las filas se estiren y deja
     un espacio parejo entre columnas apiladas. */
  .tablero { display: flex; flex-direction: column; align-items: stretch;
    gap: 1.1rem; flex: none; }
  .barra { padding: .5rem .7rem; }
  .estado { min-width: auto; }
}

/* ===========================================================
   Exportar / imprimir
   =========================================================== */
.pantalla-export { background: var(--gris-bg); padding: 1.5rem; }
.export-acciones { display: flex; gap: .6rem; justify-content: center; margin-bottom: 1.2rem; }

.hoja {
  background: #fff; max-width: 900px; margin: 0 auto;
  padding: 2rem; border-radius: var(--radio); box-shadow: var(--sombra);
}
.hoja-cab { display: flex; align-items: center; gap: 1rem; border-bottom: 3px solid var(--azul);
  padding-bottom: 1rem; margin-bottom: 1.5rem; }
.hoja-cab h1 { font-size: 1.5rem; }
.hoja-cab p { margin: .2rem 0 0; color: var(--gris-cl); }

.hoja-col { margin-bottom: 1.5rem; border-left: 5px solid var(--col); padding-left: 1rem; }
.hoja-col h2 { display: flex; align-items: center; gap: .5rem; font-size: 1.1rem; margin-bottom: .5rem; }
.hoja-col ul { margin: 0; padding-left: 1.2rem; font-weight: 400; }
.hoja-col li { margin-bottom: .35rem; line-height: 1.4; }
.hoja-vacio { color: var(--gris-cl); font-weight: 400; }

.hoja-footer {
  margin-top: 2rem; padding-top: 1.3rem; border-top: 1px solid var(--linea);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.2rem; flex-wrap: wrap;
}
.footer-desti { flex: 1; min-width: 260px; }
.footer-desti .logo-desti { display: block; font-size: 1.2rem; margin-bottom: .35rem; }
.footer-desti p { margin: 0; font-size: .82rem; font-weight: 400; color: var(--gris);
  line-height: 1.45; max-width: 46ch; }
.footer-cta { white-space: nowrap; }

@media print {
  .no-print { display: none !important; }
  body, .pantalla-export { background: #fff; padding: 0; }
  .hoja { box-shadow: none; border-radius: 0; max-width: none; padding: 1rem; }
  .hoja-col { break-inside: avoid; }
  .hoja-footer { break-inside: avoid; }
  .footer-cta { background: transparent !important; color: var(--azul) !important;
    box-shadow: inset 0 0 0 1.5px var(--azul); }
}

/* ===========================================================
   Panel de admin
   =========================================================== */
.pantalla-admin { min-height: 100vh; }
.admin-barra {
  background: var(--negro); color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  padding: .8rem 1.4rem;
}
.admin-barra .logo-desti { color: #fff; font-size: 1.3rem; }
.admin-barra a { color: #fff; text-decoration: none; font-weight: 700; font-size: .9rem; }
.admin-wrap { max-width: 1100px; margin: 0 auto; padding: 1.5rem; }
.admin-wrap h1 { margin-bottom: 1rem; }

.panel {
  background: #fff; border-radius: var(--radio); box-shadow: var(--sombra);
  padding: 1.4rem; margin-bottom: 1.4rem;
}
.panel h2 { font-size: 1.1rem; margin-bottom: 1rem; }

table.datos { width: 100%; border-collapse: collapse; font-weight: 400; }
table.datos th, table.datos td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--linea); font-size: .9rem; }
table.datos th { color: var(--gris-cl); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; }
table.datos tr:hover td { background: var(--gris-bg); }
.pill { display: inline-block; padding: .1rem .5rem; border-radius: 20px; font-size: .75rem; font-weight: 700; }
.pill.activa { background: #eafaf0; color: var(--verde); }
.pill.cerrada { background: #eef1f4; color: var(--gris-cl); }

.form-inline { display: flex; flex-wrap: wrap; gap: .8rem; align-items: end; }
.form-inline label { display: flex; flex-direction: column; gap: .3rem; font-weight: 700; font-size: .82rem; }
.form-inline input { font: inherit; font-weight: 400; padding: .55rem .7rem; border: 1.5px solid var(--linea); border-radius: 8px; }
.form-inline input:focus { outline: none; border-color: var(--azul); }

.link-charla { color: var(--azul); font-weight: 700; text-decoration: none; }
.link-charla:hover { text-decoration: underline; }

/* Resumen por participante */
.part { border: 1px solid var(--linea); border-radius: var(--radio); padding: 1rem 1.2rem; margin-bottom: 1rem; }
.part-cab { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin-bottom: .8rem; }
.part-cab strong { color: var(--negro); }
.part-cab span { color: var(--gris-cl); font-size: .82rem; }
.part-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.part-col h4 { display: flex; align-items: center; gap: .4rem; margin: 0 0 .4rem; font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; }
.part-col ul { margin: 0; padding-left: 1.1rem; font-weight: 400; font-size: .88rem; }
.part-col li { margin-bottom: .3rem; }
.part-col .vacio { color: var(--gris-cl); font-weight: 400; font-size: .85rem; }
@media (max-width: 820px) { .part-cols { grid-template-columns: 1fr; } }
.enlace-charla { display: block; background: var(--gris-bg); padding: .8rem 1rem; border-radius: 8px; font-family: ui-monospace, monospace; word-break: break-all; margin-bottom: .5rem; }
