
/* Contenedor circular blanco */
.logo {
    position: fixed;
    top: 10px;
    left: 20px;

    width: 55px;
    height: 55px;

    background: #fff;
    border: 2px solid #dbe5f5;
    border-radius: 50%;

    display: flex;
    justify-content: center;
    align-items: center;

    box-sizing: border-box;
    z-index: 9999;
    overflow: hidden;
    text-decoration: none;
}

/* Imagen circular */
.logo img {
    width: 100%;
    height: 100%;
    padding: 5px;
    box-sizing: border-box;

    border-radius: 50%;
    object-fit: contain;
    display: block;
}

/* Adaptación para celulares */
@media (max-width: 600px) {
    .logo {
        top: 8px;
        left: 8px;
        width: 44px;
        height: 44px;
    }

    .logo img {
        padding: 4px;
    }
}

/* Adaptación para tablets */
@media (min-width: 601px) and (max-width: 1024px) {
    .logo {
        width: 50px;
        height: 50px;
        top: 10px;
        left: 10px;
    }
}
/* ===== PASO 1: variables de color y reset ===== */
:root {
  --azul: #0a47a0;
  --azul-oscuro: #06285e;
  --amarillo: #ffc400;
  --verde: #d9f5e4;
  --verde-txt: #146c3b;
  --pend: #fdf0b8;
  --pend-txt: #7a5200;
  --gris: #6b7a99;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", Arial, sans-serif; color: var(--azul-oscuro); background: #f3f6fc; }
.hidden { display: none !important; }

/* ===== PASO 2: barra superior ===== */
.topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center; padding: 12px 20px;
}
.logo { width: 44px; height: 44px; border-radius: 50%; background: var(--azul); color: #fff;
  display: grid; place-items: center; font-weight: 700; margin-left: auto; margin-right: 0; order: 2; }
.topbar > div:last-child { order: 1; margin-left: auto; }
.topbar .logo { order: 0; margin: 0; }
.btn-ghost { background: #fff; border: 1px solid #dbe3f3; border-radius: 20px; padding: 6px 14px; cursor: pointer; font-weight: 600; color: var(--azul); }
.badge { background: #d6e6ff; color: var(--azul); border-radius: 12px; padding: 4px 10px; font-size: 13px; margin-right: 8px; }

/* ===== PASO 3: layout de dos paneles ===== */
.layout { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.panel-azul { background: var(--azul); display: flex; justify-content: center; align-items: flex-start; padding: 70px 20px 30px;
  position: relative; overflow: hidden; }

/* Círculos decorativos del panel azul */
.panel-azul::before {            /* círculo superior derecho */
  content: ""; position: absolute; top: -72px; right: -40px;
  width: 232px; height: 232px; border-radius: 50%;
  background: rgba(255, 190, 120, .25); pointer-events: none;
}
.panel-azul::after {             /* círculo inferior izquierdo */
  content: ""; position: absolute; bottom: -80px; left: -52px;
  width: 160px; height: 160px; border-radius: 50%;
  background: rgba(255, 255, 255, .25); pointer-events: none;
}
.panel-azul .card-form { position: relative; z-index: 1; }
.panel-claro { background: linear-gradient(135deg, #fff, #e8eefb); display: flex; justify-content: center; align-items: center; padding: 70px 20px 30px; }

/* ---- formulario ---- */
.card-form { width: 100%; max-width: 520px; background: #032a63; color: #fff; padding: 22px; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.card-form h1 { margin: 0; font-size: 22px; }
.sub { margin: 4px 0 14px; font-size: 13px; }
.card-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.card-form input, .card-form select, .card-form textarea {
  width: 100%; margin-top: 4px; padding: 10px; border-radius: 8px; border: 1px solid #1d4a8f;
  background: #0a3a7e; color: #fff; font-family: inherit;
}
.card-form input[type=file] { background: #0a3a7e; }
.fila { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btn-enviar { width: 100%; padding: 12px; border: 0; border-radius: 8px; background: #7db9ff; font-weight: 700; color: var(--azul-oscuro); cursor: pointer; font-size: 15px; }
.msg { margin: 8px 0 0; font-size: 13px; min-height: 18px; }
.msg.ok { color: #7dffa8; } .msg.err { color: #ffb0b0; }
.modal .msg.ok { color: var(--verde-txt); } .modal .msg.err { color: #b00020; }

/* ---- tarjeta verificar ---- */
.card-verificar { width: 100%; max-width: 520px; background: #fff; padding: 24px; border-radius: 18px; box-shadow: 0 10px 30px rgba(10,71,160,.15); }
.pill { display: inline-block; background: #d6e6ff; color: var(--azul); font-weight: 700; font-size: 12px; padding: 5px 12px; border-radius: 14px; }
.card-verificar h2 { text-align: center; font-size: 20px; margin: 14px 0; }
.fila-verificar { display: flex; gap: 10px; margin-bottom: 10px; }
.fila-verificar input { flex: 1; padding: 12px; border-radius: 10px; border: 1px solid #cfdaf3; background: #eaf0fc; font-size: 15px; }
.btn-amarillo { background: var(--amarillo); border: 0; border-radius: 10px; padding: 12px 22px; font-weight: 700; cursor: pointer; color: var(--azul-oscuro); }
.btn-amarillo.ancho { width: 100%; margin-top: 8px; }
.chip { display: inline-block; background: #e6eefc; border-radius: 12px; font-size: 12px; padding: 4px 10px; margin-bottom: 12px; }

/* ===== PASO 4: tablas (usuario y superusuario) ===== */
.tabla-wrap { overflow-x: auto; border: 1px solid #e1e6f0; border-radius: 14px; background: #fff; padding: 8px; }
.tabla { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabla thead tr:first-child th { background: var(--azul); color: #fff; text-align: left; padding: 12px 10px; }
.tabla td { padding: 12px 10px; border-bottom: 1px solid #e8ecf5; vertical-align: top; }
.tabla .filtros th { background: #f0f4fc; padding: 6px; }
.tabla .filtros input, .tabla .filtros select { width: 100%; padding: 6px; border: 1px solid #cfdaf3; border-radius: 6px; }
.estado { border-radius: 12px; padding: 3px 10px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.estado.Pendiente { background: var(--pend); color: var(--pend-txt); }
.estado.Atendido { background: var(--verde); color: var(--verde-txt); }
.sin-resp { color: var(--gris); }
.btn-num { background: #e6eefc; border: 1px solid #c3d3f2; color: var(--azul); border-radius: 8px; padding: 4px 10px; cursor: pointer; font-weight: 700; }
.btn-num:hover { background: #d0e0fb; }
.resp-box textarea { width: 100%; min-width: 200px; padding: 8px; border: 1px solid #cfdaf3; border-radius: 8px; font-family: inherit; }
.resp-box input[type=file] { margin: 6px 0; font-size: 12px; max-width: 220px; }
.btn-resp { background: #fff; border: 1px solid #c3cde0; border-radius: 8px; padding: 7px 16px; cursor: pointer; font-weight: 600; }
.link-dl { color: var(--azul); font-weight: 600; text-decoration: none; display: inline-block; margin-top: 4px; }
#resultadoVerificar { margin-top: 6px; }

/* ===== PASO 4b: panel admin ===== */
.admin { max-width: 1200px; margin: 0 auto; padding: 80px 20px 40px; }
.sub-admin { color: var(--gris); }

/* ===== PASO 5: modales ===== */
.overlay { position: fixed; inset: 0; background: rgba(0,20,50,.6); display: grid; place-items: center; z-index: 20; padding: 16px; }
.modal { position: relative; background: #fff; width: 100%; max-width: 640px; max-height: 90vh; overflow-y: auto; border-radius: 14px; padding: 0; }
.modal.pequeno { max-width: 360px; padding: 24px; }
.modal.pequeno label { display: block; font-weight: 600; font-size: 13px; margin-top: 10px; }
.modal.pequeno input { width: 100%; padding: 10px; margin-top: 4px; border: 1px solid #cfdaf3; border-radius: 8px; }
.cerrar { position: absolute; top: 10px; right: 12px; background: rgba(255,255,255,.9); border: 0; border-radius: 50%; width: 30px; height: 30px; cursor: pointer; font-size: 15px; z-index: 2; }

/* detalle (referencia imagen 5) */
.det-head { background: var(--azul); color: #fff; padding: 16px 20px; border-radius: 14px 14px 0 0; }
.det-head h3 { margin: 0; } .det-head p { margin: 2px 0 0; font-size: 13px; }
.det-sec { padding: 14px 20px; border-bottom: 1px solid #e8ecf5; }
.det-sec h4 { margin: 0 0 10px; }
.det-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.det-grid small { color: var(--gris); display: block; }
.det-grid b { font-weight: 600; }
.det-row { display: flex; justify-content: space-between; padding: 4px 0; gap: 10px; }

@media (max-width: 800px) { .layout { grid-template-columns: 1fr; } }

/* ===== NUEVO: eliminar FUT seleccionados ===== */
.barra-acciones { display: flex; justify-content: space-between; align-items: center; margin: 10px 0; }
#contSel { color: var(--gris); font-size: 14px; }
.btn-eliminar { background: #d93025; color: #fff; border: 0; border-radius: 8px; padding: 9px 16px; font-weight: 700; cursor: pointer; }
.btn-eliminar:disabled { background: #e3b4b0; cursor: not-allowed; }
.col-chk { width: 36px; text-align: center; }
.tabla td.col-chk { text-align: center; }
.tabla input[type=checkbox] { width: 17px; height: 17px; cursor: pointer; }
.tabla tr.fila-sel td { background: #fff4f3; }
