/* Estilo alineado con sinergiadiversa.com
   Tipografía: Avigea (títulos, 800) + Poppins (texto, 300/400/600/700)
   Colores de marca: azul #124c94 · cian #3cd6ff · cian suave #b3f5ff · marino #11153d · oscuro #0b0d26 · teal #13797f */

@font-face {
  font-family: "Avigea";
  src: url("assets/avigea.woff2") format("woff2");
  font-display: swap;
}

:root {
  --blue: #124c94;
  --cyan: #3cd6ff;
  --cyan-soft: #b3f5ff;
  --dark: #11153d;
  --darker: #0b0d26;
  --gray: #d9d8d8;
  --teal: #13797f;
  --danger: #ff8a8a;
  --ok: #7cf0c0;
  --font-title: "Avigea", "Poppins", sans-serif;
  --font-body: "Poppins", system-ui, sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --white-10: rgba(255, 255, 255, 0.10);
  --white-15: rgba(255, 255, 255, 0.15);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 300;
  color: #f3f4f6;
  background-color: var(--blue);
  /* capa oscura muy sutil sobre la imagen de marca para que el texto cian se lea mejor */
  background-image: linear-gradient(rgba(11, 13, 38, 0.2), rgba(11, 13, 38, 0.2)), url("assets/fondo.png");
  background-size: cover; background-position: center; background-repeat: no-repeat; background-attachment: fixed;
  line-height: 1.6;
}
.eyebrow, h1, h2, .lead, #intro p, .stat { text-shadow: 0 2px 14px rgba(7, 9, 30, 0.35); }
.card h2, .card .eyebrow, .card .lead, .modal h2, .modal .eyebrow { text-shadow: none; }
@media (max-width: 760px) { body { background-attachment: scroll; } }

/* ---------- cabecera ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  min-height: 72px;
  background: rgba(11, 13, 38, 0.85);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--white-10);
  padding: 12px 24px;
  display: flex; align-items: center; gap: 14px;
}
.topbar img { height: 36px; width: auto; object-fit: contain; filter: brightness(0) invert(1); }
@media (min-width: 640px) { .topbar img { height: 48px; } }
.topbar img + .wordmark { display: none; }   /* si el logo carga, no se muestra el texto */
.wordmark { font-family: var(--font-title); font-weight: 800; font-size: 1.35rem; line-height: 1; letter-spacing: -0.02em; }
.topbar .tag { margin-left: auto; font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); }

.wrap { max-width: 820px; margin: 0 auto; padding: 48px 20px 96px; }
.wrap.wide { max-width: 1200px; }

/* ---------- títulos y texto ---------- */
.eyebrow { color: var(--cyan); font-size: .95rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 12px; }
h1 {
  font-family: var(--font-title); font-weight: 800; color: #fff;
  font-size: clamp(2.1rem, 6.2vw, 3.75rem); line-height: 1.25; letter-spacing: -0.025em;
  margin: 0 0 14px;
}
h1 em { font-style: normal; color: var(--cyan); }
h2 { font-family: var(--font-title); font-weight: 800; color: #fff; font-size: clamp(1.6rem, 4vw, 2.25rem); line-height: 1.25; letter-spacing: -0.025em; margin: 0 0 6px; }
.lead { font-size: 1.15rem; font-weight: 300; line-height: 1.65; color: rgba(255, 255, 255, 0.82); max-width: 62ch; margin: 0 0 28px; }

/* ---------- tarjetas ---------- */
.card {
  background: linear-gradient(to bottom right, rgba(11, 13, 38, 0.92) 0%, rgba(18, 76, 148, 0.62) 50%, rgba(17, 21, 61, 0.84) 100%);
  border: 1px solid var(--white-15);
  border-radius: 24px;
  padding: 40px;
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
@media (max-width: 640px) { .card { padding: 26px 18px; border-radius: 20px; } .wrap { padding-top: 32px; } }

/* ---------- progreso ---------- */
.progress { display: flex; gap: 8px; margin-bottom: 22px; }
.progress .seg { flex: 1; height: 6px; border-radius: 99px; background: var(--white-10); overflow: hidden; }
.progress .seg.on { background: linear-gradient(to right, var(--cyan), var(--teal)); }
.stepname { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin: 0 0 22px; }

/* ---------- campos ---------- */
.field { margin-bottom: 22px; }
label.l, .legend { display: block; font-weight: 600; font-size: .875rem; color: rgba(255, 255, 255, 0.92); margin-bottom: 6px; }
.req { color: var(--cyan); }
.help { display: block; font-weight: 400; font-size: .78rem; color: rgba(255, 255, 255, 0.62); margin-top: 2px; }

input[type=text], input[type=email], select, textarea {
  width: 100%;
  font: inherit; font-size: .875rem; font-weight: 400;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--white-10);
  border-radius: 8px;
  padding: 12px;
  outline: none;
  transition: border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
select option { color: #11153d; }
textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus {
  border-color: var(--cyan); background: rgba(255, 255, 255, 0.08); box-shadow: 0 0 0 3px rgba(60, 214, 255, 0.22);
}
input::placeholder, textarea::placeholder { color: rgba(255, 255, 255, 0.4); }
.invalid { border-color: var(--danger) !important; }
.err { color: var(--danger); font-size: .8rem; margin-top: 6px; display: none; }
.err.show { display: block; }
.count { text-align: right; font-size: .75rem; color: rgba(255, 255, 255, 0.6); margin-top: 4px; }
.count.over { color: var(--danger); font-weight: 600; }

/* opciones seleccionables (como los pases del sitio) */
.opts { display: flex; flex-wrap: wrap; gap: 10px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.opt span {
  display: inline-block;
  padding: 11px 18px;
  border-radius: 12px;
  border: 1px solid var(--white-10);
  background: rgba(255, 255, 255, 0.05);
  font-size: .875rem; font-weight: 500;
  transition: all .3s var(--ease);
}
.opt:hover span { border-color: rgba(60, 214, 255, 0.5); background: rgba(255, 255, 255, 0.09); }
.opt input:checked + span {
  background: var(--cyan); border-color: var(--cyan); color: var(--dark); font-weight: 700;
  box-shadow: 0 10px 15px -3px rgba(60, 214, 255, 0.25);
}
.opt input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }

/* archivos */
.drop {
  border: 1.5px dashed rgba(255, 255, 255, 0.25);
  border-radius: 16px; padding: 18px;
  display: flex; gap: 16px; align-items: center;
  background: rgba(255, 255, 255, 0.04);
  transition: border-color .3s var(--ease);
}
.drop:hover { border-color: rgba(60, 214, 255, 0.6); }
.drop.invalid { border-color: var(--danger); }
.drop .thumb { width: 84px; height: 84px; border-radius: 14px; background: rgba(255, 255, 255, 0.08) center/cover no-repeat; flex: none; display: grid; place-items: center; font-size: 1.6rem; }
.drop .info { flex: 1; min-width: 0; font-size: .85rem; color: rgba(255, 255, 255, 0.75); word-break: break-word; }
.drop input[type=file] { display: none; }

/* ---------- botones (píldora, como el sitio) ---------- */
.btn {
  font: inherit; font-weight: 700; font-size: .75rem; letter-spacing: .05em; text-transform: uppercase;
  border: 0; border-radius: 9999px; padding: 16px 32px; cursor: pointer;
  background: var(--dark); color: #fff;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -4px rgba(0, 0, 0, 0.2);
  transition: all .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 22px -4px rgba(0, 0, 0, 0.35); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.cyan {
  background: linear-gradient(to right, var(--cyan), var(--cyan-soft)); color: var(--dark); font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.2); padding: 16px 28px;
  box-shadow: 0 10px 15px -3px rgba(60, 214, 255, 0.15), 0 4px 6px -4px rgba(60, 214, 255, 0.15);
}
.btn.cyan:hover { box-shadow: 0 14px 24px -4px rgba(60, 214, 255, 0.4); }
.btn.ghost { background: transparent; border: 1px solid rgba(255, 255, 255, 0.35); box-shadow: none; }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--cyan); box-shadow: none; }
.btn.small { padding: 10px 18px; font-size: .7rem; }
.btn.danger { background: #8a1f2b; }
a.btn { text-decoration: none; display: inline-block; }
.nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: .875rem; font-weight: 400; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--cyan); flex: none; }
details.priv { margin-top: 8px; font-size: .8rem; color: rgba(255, 255, 255, 0.75); }
details.priv summary { cursor: pointer; color: var(--cyan-soft); font-weight: 600; }
details.priv[open] summary { margin-bottom: 10px; }
.priv-body {
  max-height: 380px; overflow-y: auto; padding: 18px 20px;
  background: rgba(11, 13, 38, 0.55); border: 1px solid var(--white-10); border-radius: 16px;
  font-size: .82rem; font-weight: 300; line-height: 1.65; color: rgba(255, 255, 255, 0.85);
}
.priv-body h4 { font-family: var(--font-title); font-weight: 800; font-size: 1.05rem; line-height: 1.3; color: #fff; margin: 0 0 10px; }
.priv-body h5 { font-size: .82rem; font-weight: 700; color: var(--cyan); margin: 18px 0 4px; }
.priv-body p { margin: 0 0 10px; }
.priv-body ul { margin: 0 0 10px; padding-left: 20px; }
.priv-body li { margin-bottom: 6px; }
.priv-body a { color: var(--cyan-soft); }
.priv-body strong { font-weight: 600; color: #fff; }

.banner { background: rgba(255, 210, 54, 0.15); border: 1px solid #ffd236; color: #ffe9a0; padding: 10px 14px; border-radius: 12px; font-size: .82rem; margin-bottom: 18px; }
.hidden { display: none !important; }
.hp { position: absolute; left: -9999px; }

.done { text-align: center; padding: 48px 20px; }
.done .tick { width: 76px; height: 76px; border-radius: 50%; background: var(--cyan); color: var(--dark); display: grid; place-items: center; font-size: 2.2rem; margin: 0 auto 18px; box-shadow: 0 10px 25px -5px rgba(60, 214, 255, 0.5); }

/* ---------- introducción del formulario de ponentes ---------- */
#intro { margin-bottom: 30px; }
#intro .intro-lead { font-size: 1.25rem; font-weight: 400; color: #fff; margin: 0 0 16px; max-width: none; line-height: 1.5; }
#intro .intro-p { font-size: 1rem; font-weight: 300; color: rgba(255, 255, 255, 0.82); margin: 0 0 16px; max-width: 68ch; line-height: 1.65; }
#intro .notice {
  margin: 24px 0 0; max-width: 68ch; padding: 18px 22px;
  background: rgba(18, 76, 148, 0.25); border: 1px solid var(--cyan); border-radius: 16px;
  color: #fff; font-size: .92rem; font-weight: 400;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}
#intro .notice strong { color: var(--cyan); font-weight: 700; }

/* ---------- panel de administración ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; align-items: center; }
.toolbar input, .toolbar select { width: auto; flex: 1 1 180px; padding: 10px 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.pcard {
  background: rgba(17, 21, 61, 0.55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--white-10); border-radius: 24px; overflow: hidden; cursor: pointer;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.pcard:hover { transform: translateY(-4px); border-color: var(--cyan); }
.pcard .ph { aspect-ratio: 1; background: rgba(255, 255, 255, 0.08) center/cover no-repeat; display: grid; place-items: center; font-size: 2rem; }
.pcard .b { padding: 16px 18px 18px; }
.pcard h3 { margin: 0 0 2px; font-size: 1rem; font-weight: 700; color: #fff; }
.pcard p { margin: 0; font-size: .8rem; color: rgba(255, 255, 255, 0.7); }
.chip { display: inline-block; font-size: .68rem; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: rgba(60, 214, 255, 0.18); color: var(--cyan-soft); margin: 6px 4px 0 0; }
.stat { color: var(--cyan-soft); font-size: .85rem; }

.modal { position: fixed; inset: 0; background: rgba(7, 9, 30, 0.8); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); display: flex; align-items: flex-start; justify-content: center; padding: 24px 12px; overflow: auto; z-index: 30; }
.modal .box { background: var(--dark); border: 1px solid var(--white-15); border-radius: 24px; width: 100%; max-width: 720px; padding: 30px; position: relative; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); }
.modal .x { position: absolute; top: 14px; right: 16px; background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; }
.modal .top { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.modal .top .ph { width: 110px; height: 110px; border-radius: 20px; background: rgba(255, 255, 255, 0.08) center/cover no-repeat; flex: none; }
dl.det { margin: 0; display: grid; grid-template-columns: 170px 1fr; gap: 10px 16px; font-size: .88rem; }
dl.det dt { color: var(--cyan-soft); font-weight: 600; }
dl.det dd { margin: 0; white-space: pre-wrap; word-break: break-word; font-weight: 400; }
@media (max-width: 520px) { dl.det { grid-template-columns: 1fr; gap: 2px; } dl.det dd { margin-bottom: 10px; } }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

.actions .btn { text-transform: none; letter-spacing: .02em; font-size: .8rem; }

/* Imprimir el resumen de un ponente (botón "Imprimir resumen" del panel): solo la ficha, limpia y en una página.
   @page margin 0 quita el encabezado y pie del navegador (fecha, título y dirección web). */
@page { size: A4; margin: 0; }
@media print {
  html, body { background: #fff !important; min-height: 0 !important; height: auto !important; margin: 0; }
  body > *:not(#modal) { display: none !important; }
  #modal { position: static; display: block !important; width: 100%; padding: 0; background: none; overflow: visible; -webkit-backdrop-filter: none; backdrop-filter: none; }
  #modal .box { max-width: none; background: #fff; color: #000; border: 0; border-radius: 0; box-shadow: none; padding: 9mm 11mm; }
  #modal .box * { color: #000 !important; text-shadow: none !important; }
  #modal .top { margin-bottom: 8px; gap: 14px; }
  #modal .top h2 { font-size: 16pt; }
  #modal .top .ph { width: 24mm; height: 24mm; border-radius: 10px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #modal dl.det { grid-template-columns: 30mm 1fr; gap: 3px 10px; font-size: 8pt; line-height: 1.25; }
  #modal dl.det dt { color: #124c94 !important; }
  #modal .box, #modal dl.det { break-inside: avoid; page-break-inside: avoid; }
  #modal .x, #modal .actions { display: none; }
}

/* Gestión del equipo (panel de administración) */
.team-row { display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--white-15); font-size: .9rem; }
.team-btns .btn, .toolbar .btn { text-transform: none; letter-spacing: .02em; font-size: .8rem; }
.team-btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.team-msg { background: rgba(60, 214, 255, .12); border-radius: 12px; padding: 10px 14px; font-size: .88rem; }
