/* === IMPORTACIÓN DE FUENTES === */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700&family=Roboto:wght@300;400;500&display=swap');

/* === VARIABLES DE DISEÑO === */
:root {
  --color-primario: #FF821C;
  --color-primario-hover: #CC6817;
  --color-secundario: #FFE6CC;
  --color-fondo: #F9F9F9;
  --color-texto: #2C2C2C;
  --color-acento: #6C63FF;
  --color-borde: #D9D9D9;

  --font-titulos: 'Montserrat', sans-serif;
  --font-texto: 'Roboto', sans-serif;

   --paid-bg: #d1fae5;
  --paid-text: #0f5132;
  --unpaid-bg: #ffe5e5;
  --unpaid-text: #842029;
}

/* === RESET & BASE === */
body {
  background-color: var(--color-fondo);
  font-family: var(--font-texto);
  color: var(--color-texto);
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-titulos);
  font-weight: 600;
  color: var(--color-texto);
}

/* === BOTONES === */
.btn-kmmel {
  background-color: var(--color-primario);
  color: white;
  border: none;
  border-radius: 0.5rem;
  padding: 0.6rem 1.2rem;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.btn-kmmel:hover {
  background-color: var(--color-primario-hover);
}

.btn-kmmel-secundario {
  background-color: var(--color-acento);
  color: white;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-weight: 500;
}

.btn-kmmel-secundario:hover {
  opacity: 0.85;
}

.btn-kmmel-outline {
  background-color: white;
  color: var(--color-primario);
  border: 1px solid var(--color-primario);
  border-radius: 0.75rem;
  padding: 0.4rem 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-kmmel-outline:hover {
  background-color: var(--color-primario);
  color: white;
}

.btn-kmmel-danger {
  background-color: #ffffff;
  color: #dc3545;
  border: 1px solid #dc3545;
  border-radius: 0.75rem;
  padding: 0.4rem 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-kmmel-danger:hover {
  background-color: #dc3545;
  color: white;
}

/* === FORMULARIOS === */
input, textarea, select {
  border: 1px solid var(--color-borde);
  border-radius: 0.375rem;
  padding: 0.6rem;
  font-family: var(--font-texto);
  font-size: 1rem;
  width: 100%;
  background-color: white;
  color: var(--color-texto);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--color-acento);
  box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.2);
}

/* === FILTROS === */
.filter-input,
.filter-select {
  max-width: 240px;
  border: 1px solid var(--color-borde);
  border-radius: 10px;
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
}

/* === TARJETAS DE PROYECTOS === */
.project-title {
  font-family: var(--font-titulos);
  font-size: 1.1rem;
  font-weight: 600;
  color: #001e00;
  margin-bottom: 0.3rem;
}

.project-description {
  font-size: 0.95rem;
  color: #5e6d55;
  margin-bottom: 0.6rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  background: var(--color-borde);
  color: var(--color-texto);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.project-budget {
  font-size: 0.9rem;
  color: var(--color-texto);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.tag-clickable {
  cursor: pointer;
  transition: background-color 0.2s;
}

.tag-clickable:hover {
  background-color: var(--color-acento);
  color: white;
}

/* === BOTÓN LIMPIAR FILTROS === */
.clear-filters {
  color: var(--color-acento);
  cursor: pointer;
  font-weight: 500;
  transition: color 0.2s;
}

.clear-filters:hover {
  color: var(--color-primario);
}

/* === TARJETAS === */
.card-kmmel {
  background-color: white;
  border: 1px solid var(--color-borde);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.card-kmmel:hover {
  transform: translateY(-4px);
}


/*HEADER*/
.navbar .dropdown-menu {
    min-width: 200px;
    font-size: 0.95rem;
  }
  
/* === LAYOUT Y UTILIDADES === */
.section-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.bg-secundario {
  background-color: var(--color-secundario);
}

.text-acento {
  color: var(--color-acento);
}

/* === COMPONENTES CHAT MEJORADO === */
.btn-kmmel-filter {
  background-color: #d9d9d9;
  border-radius: 999px;
  padding: 0.4rem 1.2rem;
  border: none;
  font-size: 0.9rem;
}

.btn-kmmel-filter.active {
  background-color: var(--color-primario);
  color: white;
}

.chat-list-item {
  border-bottom: 1px solid var(--color-borde);
  cursor: pointer;
}

.kmmel-chat-active {
  background-color: #ffe5cc;
}

.kmmel-scroll {
  overflow-y: auto;
  height: calc(100vh - 180px);
}

.kmmel-full-height {
  height: 100vh;
}

.chat-message {
  max-width: 60%;
  padding: 10px 15px;
  border-radius: 1rem;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.chat-left {
  background-color: #e9e9e9;
  align-self: flex-start;
}

.chat-right {
  background-color: var(--color-primario);
  color: white;
  align-self: flex-end;
}

.kmmel-menu {
  width: 240px;
  min-width: 220px;
  padding: 10px 0;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  font-size: 0.95rem;
}

.kmmel-menu li {
  padding: 10px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background 0.2s ease;
}

.kmmel-menu li:hover {
  background-color: #f1f1f1;
}

.kmmel-menu li i {
  margin-right: 12px;
  font-size: 1rem;
}


/* Estilos del menú adjunto */
    .adjuntos-menu {
      position: absolute;
      bottom: 60px;
      left: 15px;
      background: #fff;
      border-radius: 1rem;
      box-shadow: 0 8px 20px rgba(0,0,0,0.2);
      z-index: 1000;
      width: 220px;
      display: none;
      flex-direction: column;
      padding: 0.8rem 0;
    }

    .adjunto-item {
      display: flex;
      align-items: center;
      gap: 0.8rem;
      padding: 0.6rem 1.2rem;
      cursor: pointer;
      transition: background 0.2s;
    }

    .adjunto-item:hover {
      background-color: #f8f9fa;
    }

    .adjunto-item i {
      font-size: 1.2rem;
    }

    .dropdown-menu-chat {
      min-width: 220px;
    }
    .dropdown-menu-chat i {
      width: 20px;
    }
    .dropdown-menu-chat .dropdown-item {
      font-size: 0.9rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .chat-container { display: none; }
    .chat-active .chat-container { display: flex; }
    .chat-active .chat-placeholder { display: none; }
    .dropdown-menu.show { display: block; position: absolute; top: 100%; right: 0; z-index: 999; }
    .chat-list-item { cursor: pointer; }
    .dropdown-menu { display: none; }
    
    .menu-opciones,
  .menu-adjuntos {
    min-width: 270px; /* Más ancho */
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    padding: 10px 0;
    z-index: 1000;
    font-family: 'Inter', sans-serif;
  }

  .menu-opciones ul,
  .menu-adjuntos ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .menu-opciones li,
  .menu-adjuntos li {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    font-size: 15.5px;
    color: #333;
    cursor: pointer;
    transition: background 0.2s ease;
  }

  .menu-opciones li:hover,
  .menu-adjuntos li:hover {
    background: #f6f6f6;
  }

  .menu-opciones li i,
  .menu-adjuntos li i {
    font-size: 18px;
    margin-right: 14px;
    color: #555;
  }

  .menu-opciones li.separator {
    border-top: 1px solid #eee;
    margin: 6px 0;
    padding: 0;
  }

  /* === NOTIFICACIONES ESTILO GMAIL === */
  .notificaciones-gmail {
    overflow: hidden;
  }

  .notificacion-gmail {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-borde);
    cursor: pointer;
    transition: background-color 0.2s;
  }

  .notificacion-gmail:hover {
    background-color: #f1f1f1;
  }

  .notificacion-gmail.unread {
    background-color: var(--color-secundario);
  }

  .notificacion-gmail .icono i {
    font-size: 1.3rem;
  }

  .notificacion-gmail .contenido {
    flex-grow: 1;
  }

  .notificacion-gmail .titulo {
    font-weight: 600;
    color: var(--color-texto);
    margin-bottom: 0.2rem;
  }

  .notificacion-gmail .detalle {
    font-size: 0.9rem;
    color: #666;
  }

  .notificacion-gmail .hora {
    font-size: 0.75rem;
    color: #999;
    white-space: nowrap;
  }

  @media (max-width: 576px) {
    .notificacion-gmail {
      flex-direction: column;
      align-items: flex-start;
    }

    .notificacion-gmail .hora {
      margin-top: 0.5rem;
    }
  }

  /* === ACCIONES DE TEXTO EN NOTIFICACIONES === */
  .accion-kmmel {
    color: var(--color-primario);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: color 0.2s;
  }

  .accion-kmmel:hover {
    text-decoration: underline;
    color: var(--color-primario-hover);
  }

  .accion-kmmel-danger {
    color: #dc3545;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: color 0.2s;
  }

  .accion-kmmel-danger:hover {
    text-decoration: underline;
    color: #a50e1c;
  }

  /*INFORMACION DE PROYECTO*/
  .info-label {
    font-size: 0.85rem;
    color: #777;
    font-weight: 600; /* <-- Esto aplica la negrita */
  }

  /* === FLUJO FREELANCER CON LÍNEA === */
  .progress-freelancer {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    position: relative;
    padding-bottom: 2rem;
    margin-top: 2rem;
  }

  .progress-freelancer::before {
    content: "";
    position: absolute;
    top: 30px; /* vertical center of steps */
    left: 0;
    right: 0;
    height: 4px;
    background-color: var(--color-borde);
    z-index: 0;
    margin: 0 auto;
    width: 100%;
  }

  .paso-wrapper {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
    min-width: 120px;
  }

  .paso {
    width: 60px;
    height: 60px;
    margin: 0 auto 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    border: 3px solid var(--color-borde);
    color: #999;
    background-color: white;
    transition: all 0.3s ease;
    z-index: 1;
    position: relative;
  }

  .paso.completado {
    border-color: var(--color-primario);
    background-color: var(--color-primario);
    color: white;
  }

  .paso.activo {
    border-color: var(--color-primario);
    color: var(--color-primario);
    background-color: white;
  }

  .paso-label {
    font-size: 0.85rem;
    font-weight: 600;
  }

  /* Tarjetas de trabajo */
  .job-card {
    background: #fff;
    border-left: 4px solid var(--color-primario);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
  }

  .job-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  }

  .job-title {
    font-size: 1.1rem;
    font-weight: 600;
  }

  .job-meta {
    font-size: 0.85rem;
    color: #888;
  }

  .job-description {
    margin: 0.75rem 0 1rem;
    font-size: 0.95rem;
    color: #444;
  }

  .badge-paid {
    background-color: var(--paid-bg);
    color: var(--paid-text);
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
  }

  .badge-unpaid {
    background-color: var(--unpaid-bg);
    color: var(--unpaid-text);
  }

  /*SUBIR PROYECTO*/
  textarea.auto-grow {
    resize: none;
    overflow-y: hidden;
  }


  /*SUBIR PROYECTO*/
  .dropzone {
    background-color: #f8f9fa;
    border: 2px dashed #e4e4e7;
    border-radius: 10px;
    min-height: 180px;
  }
    .file-entry {
      background: #f8f9fa;
      border-radius: 8px;
      padding: 10px;
      margin-bottom: 10px;
      position: relative;
    }
    .file-entry strong {
      display: block;
    }
    .progress {
      height: 10px;
      margin-top: 6px;
    }
    .btn-remove {
      position: absolute;
      top: 10px;
      right: 10px;
      color: #dc3545;
      background: none;
      border: none;
      font-size: 1rem;
      cursor: pointer;
    }
    .btn-agregar-carpeta {
  top: 0.5rem;
  right: 0.5rem;
  z-index: 10;
  padding: 6px;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 20%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  color: #6c63ff;
  display: none;
  position: absolute;
}


  /* === MEDIA QUERIES === no borrar*/
  @media (max-width: 768px) {
    .section-title {
      font-size: 1.4rem;
    }

    .btn-kmmel, .btn-kmmel-secundario {
      padding: 0.5rem 1rem;
    }
  }
