* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

:root {
  --bg-light: #f8fafc;
  --bg-mid: #eef2f7;
  --bg-dark: #e8eef6;

  --card: rgba(255, 255, 255, 0.96);
  --text: #0f172a;
  --muted: #64748b;
  --border: rgba(203, 213, 225, 0.75);

  --primary: #0f172a;
  --primary-hover: #1e293b;

  --blue: #2563eb;
  --red: #dc2626;
  --green: #16a34a;
  --yellow: #facc15;
  --orange: #f59e0b;
  --violet: #6366f1;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;

  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);

  background:
    radial-gradient(circle at top left, rgba(220, 38, 38, 0.07), transparent 32%),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 30%),
    linear-gradient(180deg, var(--bg-light) 0%, var(--bg-mid) 55%, var(--bg-dark) 100%);
}

/* LOGIN */

.login-container {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 430px;
  background: var(--card);
  backdrop-filter: blur(12px);
  padding: 40px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.10);
}

.login-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.login-logo {
  width: 92px;
  height: 92px;
  object-fit: contain;
  border-radius: 22px;
  background: white;
  padding: 6px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.login-card h1 {
  margin: 0;
  text-align: center;
  font-size: 42px;
  letter-spacing: -1px;
}

.login-card h2 {
  margin: 8px 0 30px;
  text-align: center;
  font-size: 18px;
  font-weight: normal;
  color: var(--muted);
}

/* FORMULARIOS */

form {
  display: flex;
  flex-direction: column;
}

label {
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
}

input,
textarea,
select {
  width: 100%;
  padding: 14px 15px;
  margin-bottom: 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  font-size: 15px;
  font-family: Arial, Helvetica, sans-serif;
  background: rgba(255, 255, 255, 0.95);
  transition: 0.2s;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--blue);
  background: white;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* BOTONES */

button {
  border: none;
  padding: 14px 20px;
  border-radius: 14px;
  background: var(--primary);
  color: white;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}

button:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.error {
  margin-top: 16px;
  text-align: center;
  color: #dc2626;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

/* LAYOUT */

.panel-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px 28px;
  padding-top: 140px;
}

/* HEADER */

.panel-header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 1000;

  width: 100%;
  max-width: 1180px;
  transform: translateX(-50%);

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;

  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);

  padding: 20px 30px;
  border-radius: 0 0 26px 26px;
  border: 1px solid rgba(255, 255, 255, 0.70);

  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 20px;
  background: white;
  padding: 6px;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.10);
  flex-shrink: 0;
}

.panel-header h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -1px;
}

.panel-header p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.logout-btn {
  width: auto;
  padding: 13px 20px;
  flex-shrink: 0;
}

/* CONTENIDO */

.panel-content {
  margin-top: 34px;
  background: var(--card);
  backdrop-filter: blur(14px);
  padding: 32px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.07);
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}

.section-title-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-icon {
  width: 50px;
  height: 50px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  flex-shrink: 0;
  box-shadow: 0 12px 24px rgba(99, 102, 241, 0.22);
}

.section-title-row h2,
.panel-content h2 {
  margin: 0;
  font-size: 27px;
  letter-spacing: -0.6px;
}

.section-title-row p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.filtro-area {
  max-width: 240px;
  margin: 0;
  cursor: pointer;
  background: white;
}

/* CHECKBOX */

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 22px;
  font-weight: 700;
  color: #334155;
}

.checkbox-label input {
  width: 18px;
  height: 18px;
  margin: 0;
}

/* LISTA */

.novedades-lista {
  display: grid;
  gap: 18px;
}

/* PROPUESTA CARD */

.propuesta-card {
  position: relative;
  overflow: hidden;

  display: grid;
  grid-template-columns: 68px 1fr 205px;
  gap: 20px;
  align-items: center;

  padding: 24px;
  border-radius: 22px;

  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(203, 213, 225, 0.68);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045);

  transition: 0.24s;
}

.propuesta-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 34px rgba(15, 23, 42, 0.08);
}

.propuesta-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;

  width: 5px;
  height: 100%;

  background: #94a3b8;
}

.propuesta-card.estado-en-tratamiento::before {
  background: var(--orange);
}

.propuesta-card.estado-en-analisis::before {
  background: var(--blue);
}

.propuesta-card.estado-aprobada::before {
  background: var(--green);
}

.propuesta-card.estado-postergada::before,
.propuesta-card.estado-rechazada::before {
  background: var(--red);
}

.propuesta-card.estado-finalizada::before {
  background: #64748b;
}

.propuesta-card.destacado {
  background:
    linear-gradient(180deg, rgba(255, 251, 235, 0.98), rgba(255, 248, 220, 0.98));
  border-color: rgba(250, 204, 21, 0.62);
}

/* ICONO */

.propuesta-icono {
  width: 58px;
  height: 58px;
  border-radius: 15px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(248, 250, 252, 0.94);
  border: 1px solid rgba(203, 213, 225, 0.75);

  font-size: 28px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

/* INFO PRINCIPAL */

.propuesta-main {
  min-width: 0;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.45px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Badges suaves */

.destacado-badge {
  background: #facc15;
  color: #111827;
}

.relevancia-alta {
  background: #fee2e2;
  color: #b91c1c;
}

.relevancia-media {
  background: #dbeafe;
  color: #1d4ed8;
}

.relevancia-baja {
  background: #dcfce7;
  color: #15803d;
}

/* Estado más protagonista */

.estado-badge-en-tratamiento {
  background: var(--orange);
  color: white;
}

.estado-badge-en-analisis {
  background: #dbeafe;
  color: #1d4ed8;
}

.estado-badge-aprobada {
  background: var(--green);
  color: white;
}

.estado-badge-postergada,
.estado-badge-rechazada {
  background: var(--red);
  color: white;
}

.estado-badge-finalizada {
  background: #64748b;
  color: white;
}

.propuesta-card h3 {
  margin: 0 0 7px;
  font-size: 23px;
  line-height: 1.18;
  letter-spacing: -0.5px;
  color: var(--text);
}

.categoria {
  margin: 0 0 13px;
  font-size: 14px;
  font-weight: 800;
  color: var(--blue);
}

.propuesta-descripcion {
  margin: 0 0 14px;
  color: #1e293b;
  line-height: 1.55;
  font-size: 15px;
}

.ultima-novedad {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-left: 3px solid var(--blue);
  border-radius: 10px;
  background: rgba(239, 246, 255, 0.7);
  color: #334155;
  font-size: 14px;
  line-height: 1.45;
}

.ultima-novedad strong {
  color: #1e3a8a;
}

.propuesta-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  color: var(--muted);
  font-size: 13.5px;
}

/* SEGUIMIENTO */

.seguimiento-panel {
  align-self: stretch;
  padding: 16px;
  border-radius: 16px;

  background: rgba(248, 250, 252, 0.82);
  border: 1px solid rgba(203, 213, 225, 0.65);

  display: grid;
  align-content: center;
  gap: 10px;
}

.seguimiento-panel h4 {
  margin: 0 0 2px;
  font-size: 15px;
  color: #0f172a;
}

.seguimiento-item {
  display: grid;
  gap: 3px;
  padding-top: 8px;
  border-top: 1px solid rgba(203, 213, 225, 0.65);
}

.seguimiento-item:first-of-type {
  border-top: none;
  padding-top: 0;
}

.seguimiento-item span {
  font-size: 12.5px;
  color: var(--muted);
}

.seguimiento-item strong {
  font-size: 13.5px;
  color: #334155;
}

.seguimiento-en-tratamiento {
  background: rgba(255, 247, 237, 0.9);
  border-color: rgba(251, 146, 60, 0.32);
}

.seguimiento-en-analisis {
  background: rgba(239, 246, 255, 0.92);
  border-color: rgba(96, 165, 250, 0.32);
}

.seguimiento-aprobada {
  background: rgba(240, 253, 244, 0.92);
  border-color: rgba(74, 222, 128, 0.32);
}

.seguimiento-postergada,
.seguimiento-rechazada {
  background: rgba(254, 242, 242, 0.92);
  border-color: rgba(248, 113, 113, 0.32);
}

.seguimiento-finalizada {
  background: rgba(248, 250, 252, 0.92);
}

/* ADMIN */

.admin-actions {
  margin-top: 18px;
}

.btn-editar,
.btn-eliminar {
  width: auto;
  padding: 11px 16px;
  margin-right: 8px;
  font-size: 14px;
}

.btn-editar {
  background: var(--blue);
}

.btn-editar:hover {
  background: #1d4ed8;
}

.btn-eliminar {
  background: var(--red);
}

.btn-eliminar:hover {
  background: #991b1b;
}

/* INFO / EMPTY / FOOTER */

.info-box {
  margin-top: 20px;
  padding: 17px 20px;
  border-radius: 16px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  background: rgba(239, 246, 255, 0.75);
  color: #1e3a8a;
  display: grid;
  gap: 4px;
  font-size: 14px;
}

.info-box span {
  color: #334155;
}

.empty-state {
  text-align: center;
  padding: 36px 24px;
  border: 1px dashed rgba(100, 116, 139, 0.35);
  border-radius: 20px;
  background: rgba(248, 250, 252, 0.7);
}

.empty-state h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

.footer {
  margin: 26px 0 0;
  padding: 18px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* RESPONSIVE */

@media (max-width: 1000px) {
  .propuesta-card {
    grid-template-columns: 58px 1fr;
  }

  .seguimiento-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .panel-container {
    padding: 0 16px 16px;
    padding-top: 165px;
  }

  .panel-header {
    width: 100%;
    top: 0;
    padding: 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    border-radius: 0 0 22px 22px;
  }

  .logout-btn {
    width: 100%;
  }

  .panel-content {
    padding: 22px;
  }

  .section-title-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-title-left {
    align-items: flex-start;
  }

  .filtro-area {
    max-width: 100%;
  }

  .login-card {
    padding: 30px;
  }

  .login-card h1 {
    font-size: 36px;
  }

  .login-logo {
    width: 78px;
    height: 78px;
  }

  .logo {
    width: 66px;
    height: 66px;
  }

  .panel-header h1 {
    font-size: 26px;
  }

  .panel-header p {
    font-size: 15px;
  }

  .propuesta-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 22px;
  }

  .propuesta-icono {
    width: 54px;
    height: 54px;
    font-size: 25px;
  }

  .propuesta-card h3 {
    font-size: 22px;
  }

  .propuesta-meta {
    flex-direction: column;
    gap: 9px;
  }

  .seguimiento-panel {
    padding: 15px;
  }
}