/* 
==========================================================================
   1. CONFIGURACIÓN GLOBAL, VARIABLES Y ESTRUCTURA
========================================================================== */
:root {
  --np-primary: #A4C900;
  --np-primary-dark: #8fb100;
  --np-dark: #353535;
  --np-darker: #2e2e2e;
  --np-text-light: #cfcfcf;
  --np-white: #ffffff;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(164, 201, 0, 0.05), rgba(255, 255, 255, 0) 420px),
    #f8f9fa;
}

main {
  flex: 1;
  padding-top: 100px;
}

.np-container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.np-section {
  padding: 56px 0;
}

@media (min-width: 992px) {
  main {
    padding-top: 140px;
  }

  .np-home-hero,
  .np-projects-hero,
  .np-profile-hero,
  .np-nomadas-hero {
    margin-top: 150px;
  }
}

/* 
==========================================================================
   2. COMPONENTES GLOBALES (Botones, Badges, Avatares)
========================================================================== */

/* Botón principal NomadParty */
.btn-np {
  background-color: var(--np-primary);
  color: #000;
  font-weight: bold;
  border: none;
  transition: all 0.2s ease;
}

.btn-np:hover {
  background-color: var(--np-primary-dark);
  color: #000;
  transform: translateY(-1px);
}

/* Badge personalizado */
.badge-np {
  background-color: var(--np-primary);
  color: #000;
  font-weight: 500;
}

/* Iconos NomadParty */
.icon-np {
  color: var(--np-primary);
}

/* Avatares estándar */
.avatar-img {
  object-fit: cover;
  border: 3px solid var(--np-primary);
}

/* 
==========================================================================
   3. HEADER (Navegación)
========================================================================== */
.np-header {
  background-color: var(--np-dark);
  color: var(--np-white);
  padding: 10px 0;
}

.np-header .np-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.np-header .nav-link {
  color: var(--np-white);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Removed .nav-link.party styles (feature deprecated) */

.np-header .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.35);
}

.hover-verde {
  background-color: var(--np-primary) !important;
}

@media (max-width: 991.98px) {
  .np-header .navbar-collapse {
    flex-basis: 100%;
    background-color: var(--np-dark);
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 10px;
  }

  .np-header .nav-link {
    text-align: center;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  /* Removed .nav-link.party responsive rule (feature deprecated) */

  .np-header .navbar-nav .nav-item {
    justify-content: center;
  }

  .np-header .navbar-nav .btn {
    margin: 12px auto 0;
  }
}

@media (max-width: 575.98px) {
  .np-header .navbar-brand img {
    height: 60px;
  }
}

/* 
==========================================================================
   4. COMPONENTES ESPECÍFICOS (Pills, etc)
========================================================================== */
.skill-pill {
  cursor: pointer;
  border: 1.5px solid #ced4da;
  border-radius: 50px;
  padding: 5px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.skill-pill.activo {
  background-color: var(--np-primary);
  border-color: var(--np-primary);
  color: #000;
}

/* 
==========================================================================
   5. FOOTER
========================================================================== */
.np-footer {
  background-color: var(--np-dark);
  color: var(--np-white);
  font-size: 15px;
  margin-top: auto;
}

.np-footer.np-section {
  padding-top: 40px;
  padding-bottom: 0;
}

.np-footer span {
  color: var(--np-primary);
}

.np-footer a {
  color: var(--np-text-light);
  text-decoration: none;
}

.np-footer a:hover,
.np-footer a.active {
  color: #ffffff;
}

.np-footer a.active {
  background-color: rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  padding: 4px 8px;
  color: var(--np-primary);
}

.np-footer span.footer-link {
  cursor: default;
  user-select: none;
}

.np-footer .copyright {
  background-color: var(--np-darker);
  padding: 10px 0;
  margin: 20px 0 0 0;
  text-align: center;
  font-size: 0.85rem;
}

/* 
==========================================================================
   6. ESTILOS POR PÁGINA
========================================================================== */

/* --- VISTA: INICIO --- */
/* Mantener el mismo espacio superior en todas las paginas con hero */

body.page-inicio main,
body.page-home main,
body.page-proyectos main,
body.page-mapa main,
body.page-checkin main,
body.page-eventos main,
body.page-perfil main {
  padding-top: 0 !important;
}

.np-home-hero,
.np-projects-hero,
.np-profile-hero,
.np-nomadas-hero {
  margin-bottom: 28px;
  position: relative;
}

.np-home-hero .np-container,
.np-projects-hero .np-container,
.np-profile-hero .np-container,
.np-nomadas-hero .np-container {
  background:
    linear-gradient(135deg, rgba(53, 53, 53, 0.98), rgba(42, 48, 39, 0.96));
  border-radius: 8px;
  color: var(--np-white);
  overflow: hidden;
  padding: 40px 44px;
  position: relative;
}

.np-home-hero .np-container::after,
.np-projects-hero .np-container::after,
.np-profile-hero .np-container::after,
.np-nomadas-hero .np-container::after {
  background: var(--np-primary);
  bottom: 0;
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
}

.np-home-hero h1,
.np-projects-hero h1,
.np-nomadas-hero h1 {
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.98;
  margin-bottom: 16px;
  max-width: 900px;
}

.np-home-hero p,
.np-projects-hero p,
.np-nomadas-hero p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  max-width: 720px;
}

.np-profile-title {
  max-width: 720px;
}

.np-profile-lead {
  font-size: 1.02rem;
}


.np-hero-brand {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  display: grid;
  gap: 24px;
  justify-items: center;
  padding: 34px;
}

.np-hero-brand img {
  max-height: 130px;
  max-width: 100%;
  object-fit: contain;
}

.np-hero-badge {
  align-items: center;
  background: rgba(164, 201, 0, 0.14);
  border: 1px solid rgba(164, 201, 0, 0.35);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.88);
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  width: 100%;
}

.np-hero-badge i {
  color: var(--np-primary);
}

.np-section-heading {
  margin-bottom: 28px;
  max-width: 760px;
}

.np-section-heading h2,
.np-info-panel h2 {
  color: var(--np-dark);
  font-weight: 800;
  letter-spacing: 0;
}

.np-info-panel,
.np-quote-card,
.np-nomad-card,
.np-project-card,
.np-empty-state {
  background: #ffffff;
  border: 1px solid rgba(53, 53, 53, 0.08);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(53, 53, 53, 0.06);
}

.np-info-panel {
  padding: 30px;
}

.np-info-panel p {
  color: #626962;
  margin: 18px 0 0;
}

.np-nomad-card,
.np-project-card {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.np-nomad-card:hover,
.np-project-card:hover {
  box-shadow: 0 18px 38px rgba(53, 53, 53, 0.11);
  transform: translateY(-4px);
}

.np-metrics-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.np-metrics-grid div {
  background: var(--np-dark);
  border-radius: 8px;
  color: var(--np-white);
  padding: 22px;
}

.np-metrics-grid strong {
  color: var(--np-primary);
  display: block;
  font-size: 2.2rem;
  line-height: 1;
}

.np-metrics-grid span {
  color: rgba(255, 255, 255, 0.72);
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 8px;
  text-transform: uppercase;
}

.np-testimonials {
  background: rgba(53, 53, 53, 0.035);
}

.np-testimonial-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 231, 0.9)),
    var(--np-white);
  border: 1px solid rgba(53, 53, 53, 0.08);
  border-radius: 24px;
  box-shadow: 0 16px 34px rgba(53, 53, 53, 0.08);
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
  padding: 24px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.np-testimonial-card::before {
  background: linear-gradient(135deg, rgba(164, 201, 0, 0.18), rgba(164, 201, 0, 0));
  content: "";
  height: 120px;
  pointer-events: none;
  position: absolute;
  right: -28px;
  top: -34px;
  width: 120px;
}

.np-testimonial-card:hover {
  box-shadow: 0 20px 40px rgba(53, 53, 53, 0.12);
  transform: translateY(-5px);
}

.np-testimonial-top {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.np-testimonial-tag {
  background: rgba(164, 201, 0, 0.14);
  border: 1px solid rgba(164, 201, 0, 0.32);
  border-radius: 999px;
  color: #4c5f00;
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  max-width: 75%;
  padding: 8px 12px;
  text-transform: uppercase;
}

.np-testimonial-quote {
  color: var(--np-primary);
  font-family: 'Oswald', sans-serif;
  font-size: 4rem;
  line-height: 0.8;
}

.np-testimonial-copy {
  color: #454d45;
  font-size: 1rem;
  line-height: 1.75;
  margin: 0;
  min-height: 132px;
  position: relative;
  z-index: 1;
}

.np-testimonial-footer {
  align-items: center;
  border-top: 1px solid rgba(53, 53, 53, 0.08);
  display: flex;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  position: relative;
  z-index: 1;
}

.np-testimonial-avatar {
  border: 2px solid rgba(164, 201, 0, 0.24);
  border-radius: 14px;
  flex-shrink: 0;
  height: 48px;
  object-fit: cover;
  width: 48px;
}

.np-testimonial-author {
  display: grid;
  gap: 3px;
}

.np-testimonial-name {
  color: var(--np-dark);
  font-size: 0.96rem;
}

.np-testimonial-role {
  color: #6f776f;
  font-size: 0.8rem;
}

.np-quote-card {
  padding: 26px;
}

.np-quote-card p {
  color: #565f55;
  font-size: 1rem;
}

.np-quote-card strong {
  color: var(--np-dark);
  display: block;
  margin-top: 18px;
}

.np-quote-card span {
  color: #6f776f;
  display: block;
  font-size: 0.85rem;
}

.np-empty-state {
  color: #6c757d;
  padding: 24px;
}

.np-nomad-card {
  background: var(--np-white);
  border: 1px solid rgba(53, 53, 53, 0.08);
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(53, 53, 53, 0.06);
  display: flex;
  flex-direction: column;
  padding: 24px;
  text-align: left;
}

.np-nomad-card-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.np-nomad-avatar {
  border: 2px solid rgba(164, 201, 0, 0.24);
  border-radius: 50%;
  object-fit: cover;
}

.np-nomad-role {
  background: rgba(164, 201, 0, 0.1);
  border: 1px solid rgba(164, 201, 0, 0.22);
  border-radius: 999px;
  color: #5f7007;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-left: auto;
  padding: 8px 12px;
}

.np-nomad-name {
  color: var(--np-dark);
  font-size: 1.15rem;
  line-height: 1.2;
  margin: 0 0 10px;
}

.np-nomad-copy {
  color: #5c645c;
  font-size: 0.94rem;
  line-height: 1.65;
  margin: 0;
  min-height: 96px;
}

.np-project-card {
  cursor: pointer;
  background: var(--np-white);
  border: 1px solid rgba(53, 53, 53, 0.08);
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(53, 53, 53, 0.06);
  color: var(--np-dark);
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.np-project-card-header {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.np-project-eyebrow {
  color: #7b827b;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-right: auto;
  text-transform: uppercase;
}

.np-project-avatar {
  border: 2px solid rgba(164, 201, 0, 0.22);
  border-radius: 50%;
  height: 42px;
  object-fit: cover;
  width: 42px;
}

.np-project-owner {
  display: grid;
  gap: 1px;
}

.np-project-owner-label {
  color: #8a918a;
  font-size: 0.72rem;
}

.np-project-owner-name {
  color: var(--np-dark);
  font-size: 0.9rem;
}

.np-project-title {
  color: var(--np-dark);
  font-size: 1.18rem;
  line-height: 1.25;
  margin: 0 0 12px;
}

.np-project-description {
  color: #5c645c;
  font-size: 0.94rem;
  line-height: 1.65;
  margin: 0 0 16px;
  min-height: 96px;
}

.np-project-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.np-soft-badge {
  background: #f4f7ec;
  border: 1px solid #e3ebcf;
  border-radius: 999px;
  color: #586700;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 7px 11px;
}

.np-collab-badge {
  background: rgba(164, 201, 0, 0.1);
  border: 1px solid rgba(164, 201, 0, 0.22);
  border-radius: 999px;
  color: #586700;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 7px 11px;
}

.np-project-footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.np-project-link {
  align-items: center;
  color: var(--np-dark);
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 600;
  gap: 6px;
  text-decoration: none;
}

.np-project-link::after {
  content: "↗";
}

.np-project-link:hover {
  color: var(--np-primary);
}

.np-project-link-muted {
  color: #8a918a;
}

.np-project-link-muted::after {
  content: "";
}

.np-card-arrow {
  align-items: center;
  background: var(--np-primary);
  border-radius: 50%;
  color: #111;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.np-project-modal {
  border: 0;
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(53, 53, 53, 0.18);
  overflow: hidden;
}

.np-project-modal-header,
.np-project-modal-footer {
  border-color: rgba(53, 53, 53, 0.08);
  padding-left: 24px;
  padding-right: 24px;
}

.np-project-modal-header {
  padding-top: 22px;
  padding-bottom: 18px;
}

.np-project-modal-body {
  padding: 8px 24px 24px;
}

.np-project-modal-author {
  align-items: center;
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
}

.np-project-modal-avatar {
  border: 2px solid rgba(164, 201, 0, 0.22);
  border-radius: 50%;
  object-fit: cover;
}

.np-project-modal-author-copy {
  display: grid;
  gap: 2px;
}

.np-project-modal-description {
  color: #586058;
  line-height: 1.7;
  margin-bottom: 18px;
}

.np-project-modal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.np-project-modal-textarea {
  border: 1px solid rgba(53, 53, 53, 0.1);
  border-radius: 16px;
  box-shadow: none;
  padding: 14px 16px;
}

.np-project-modal-textarea:focus {
  border-color: rgba(164, 201, 0, 0.7);
  box-shadow: 0 0 0 4px rgba(164, 201, 0, 0.12);
}

.np-project-modal-link {
  color: var(--np-dark);
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
  text-decoration: none;
}

.np-project-modal-link:hover {
  color: var(--np-primary-dark);
}

@media (max-width: 767.98px) {
  .np-nomad-card-header {
    align-items: flex-start;
  }

  .np-nomad-copy,
  .np-project-description {
    min-height: auto;
  }

  .np-project-card-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .np-testimonial-card {
    padding: 22px;
  }

  .np-testimonial-copy {
    min-height: auto;
  }

  .np-testimonial-tag {
    max-width: 100%;
  }

  .np-project-modal-header,
  .np-project-modal-footer,
  .np-project-modal-body {
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* --- VISTA: PAGINAS DEL FOOTER --- */
.page-aviso-legal h1,
.page-politica-privacidad h1,
.page-faq h1,
.page-politica-cookies h1,
.page-configuracion-cookies h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 2.4em;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 0.03em;
  color: var(--np-dark);
}

.page-aviso-legal main a,
.page-faq main a,
.page-politica-privacidad main a,
.page-politica-cookies main a,
.page-configuracion-cookies main a {
  color: #a4c900;
}

.page-aviso-legal h2,
.page-faq h2,
.page-politica-privacidad h2,
.page-politica-cookies h2,
.page-configuracion-cookies h2 {
  color: var(--np-primary);
}

/* --- VISTA: CONFIGURACIÓN DE COOKIES --- */
.page-configuracion-cookies .cookie-card {
  transition: all 0.3s ease;
}

.page-configuracion-cookies .cookie-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.page-configuracion-cookies .cookie-toggle {
  position: relative;
}

.page-configuracion-cookies .cookie-toggle input[type="checkbox"] {
  width: 1.2em;
  height: 1.2em;
}

.page-configuracion-cookies .cookie-toggle label {
  font-weight: 500;
  margin-left: 0.5rem;
}

.page-configuracion-cookies .alert-custom {
  border-radius: 8px;
  border: none;
}

.page-configuracion-cookies .cookie-icon {
  width: 40px;
  height: 40px;
}

/* VISTA: LOGIN */

.page-login .login-container {
  background-color: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 40px;
  max-width: 500px;
  width: 100%;
  text-align: center;
  margin: 35px auto;
}

.page-login .login-logo {
  max-width: 200px;
  margin-bottom: 20px;
}

.page-login .login-title {
  color: #333;
  font-weight: 700;
  margin-bottom: 15px;
}

.page-login .login-subtitle {
  color: #6c757d;
  margin-bottom: 25px;
}

.page-login .form-label span {
  display: block;
  text-align: left;
  margin-bottom: 5px;
  color: #6c757d;
  font-weight: 600;
}

.page-login .form-control {
  border-radius: 30px;
  padding: 10px 20px;
  margin-bottom: 15px;
}

.page-login .btn-custom {
  padding: 12px 30px;
  margin: 0 10px;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.page-login .btn-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-login .register-link {
  color: var(--np-primary-dark);
  text-decoration: none;
  font-weight: 600;
}

.page-login .register-link:hover {
  text-decoration: underline;
}

.page-login .powered-by {
  color: #6c757d;
  margin-top: 30px;
  font-weight: 600;
}

.page-login .powered-by img {
  max-height: 30px;
  margin-left: 10px;
  margin-bottom: 20px;
}

/* BOTÓN DE VISIBILIDAD DE CONTRASEÑA */
.form-label {
    position: relative;
    display: block;
}

.show-password {
    position: absolute;
    right: 5%;
    bottom: 29%;
    background: none;
    border: none;
    color: #666;
    z-index: 10;
    cursor: pointer;
    padding: 0;
}

#contrasenya {
    padding-right: 40px;
}


/* --- VISTA: PERFIL --- */
.page-perfil {
  background: transparent;
}

.np-profile-page {
  overflow: hidden;
}

.np-profile-hero .np-container {
  position: relative;
  z-index: 1;
}

.np-kicker {
  color: var(--np-primary);
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.np-profile-title {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 14px;
}

.np-profile-lead {
  color: rgba(255, 255, 255, 0.78);
  max-width: 640px;
}

.np-profile-stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.np-profile-tab {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: var(--np-white);
  cursor: pointer;
  min-height: 112px;
  padding: 16px;
  text-align: left;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.np-profile-tab:hover,
.np-profile-tab.active {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--np-primary);
  transform: translateY(-2px);
}

.np-profile-tab.active {
  box-shadow: inset 0 0 0 1px rgba(164, 201, 0, 0.4);
}

.np-profile-tab span {
  color: rgba(255, 255, 255, 0.68);
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.np-profile-tab.active span {
  color: var(--np-white);
}

.np-profile-tab strong {
  align-items: center;
  background: var(--np-primary);
  border-radius: 999px;
  color: #111;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.np-nomadas-page {
  background: #f5f6f8;
}

.np-nomadas-map {
  padding-top: 32px;
  scroll-margin-top: 150px;
}

.np-nomadas-map-card {
  background: #ffffff;
  border: 1px solid rgba(53, 53, 53, 0.08);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(53, 53, 53, 0.06);
  overflow: hidden;
  padding: 0;
}

.np-nomadas-map-summary {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(164, 201, 0, 0.12), rgba(255, 255, 255, 0));
  border-bottom: 1px solid rgba(53, 53, 53, 0.08);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 18px 20px;
}

.np-nomadas-map-summary strong {
  color: var(--np-dark);
  display: block;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.np-nomadas-map-summary span,
.np-nomadas-map-summary p {
  color: #6b7280;
  font-size: 0.9rem;
  margin: 0;
}

.np-nomadas-map-summary p {
  background: #f2f4f7;
  border-radius: 999px;
  padding: 8px 12px;
}

.np-nomadas-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  padding: 16px 20px;
}

.np-nomadas-toolbar .btn.active {
  background: var(--np-dark);
  border-color: var(--np-dark);
  color: var(--np-white);
}

.np-nomadas-toolbar .form-control {
  max-width: 170px;
  min-width: 138px;
}

.np-map-legend {
  align-items: center;
  border-top: 1px solid rgba(53, 53, 53, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px 20px 0;
}

.np-map-legend span {
  align-items: center;
  color: #667066;
  display: inline-flex;
  font-size: 0.84rem;
  font-weight: 600;
  gap: 8px;
}

.np-map-legend-dot {
  border-radius: 999px;
  display: inline-block;
  height: 12px;
  width: 12px;
}

.np-map-legend-dot-active {
  background: #74b816;
}

.np-map-legend-dot-idle {
  background: #8b9591;
}

.np-map-legend-dot-user {
  background: var(--np-dark);
}

.np-nomadas-map-canvas {
  background: #dbeafe;
  border-top: 1px solid #e2e6dc;
  min-height: min(680px, 72vh);
  width: 100%;
}

.np-map-status {
  color: #6b7280;
  font-size: 0.92rem;
  margin: 0;
  padding: 14px 20px 18px;
}

.np-map-status[data-status="error"] {
  color: #b42318;
}

.np-map-status[data-status="success"] {
  color: #4d5f00;
}

.np-map-marker {
  align-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  padding: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  position: relative; /* Necesario para posicionar el círculo de fondo */
}

.np-map-marker:hover {
  transform: translateY(-2px) scale(1.08);
  z-index: 10;
}

.np-map-marker-active {
  color: #1faf3c; /* Verde brillante/neón de alta visibilidad */
  filter: drop-shadow(0 4px 8px rgba(31, 175, 60, 0.45));
  z-index: 5;
}

/* Círculo blanco detrás de la cabeza del pin activo para darle contraste y cuerpo */
.np-map-marker-active::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  background-color: #ffffff;
  border-radius: 50%;
  z-index: -1;
  top: 38%; /* Alineado con la cabeza circular del pin */
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.1);
}

.np-map-marker-active[data-size="medium"]::before {
  width: 26px;
  height: 26px;
}

.np-map-marker-active[data-size="large"]::before {
  width: 30px;
  height: 30px;
}

.np-map-marker-idle {
  color: #1a1a1a; /* Negro suave */
  opacity: 0.45; /* Muy atenuado para dar sensación de inactivo */
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.np-map-marker-icon {
  display: inline-block;
  width: 34px; /* Un poco más grande para el activo base */
  height: 34px;
  mask: url('../img/posicionAnfitrion.png') no-repeat center / contain;
  -webkit-mask: url('../img/posicionAnfitrion.png') no-repeat center / contain;
  background-color: currentColor;
  pointer-events: none;
  transition: width 0.18s ease, height 0.18s ease;
}

/* Reducir el tamaño de los iconos inactivos */
.np-map-marker-idle .np-map-marker-icon {
  width: 26px;
  height: 26px;
}

.np-map-marker-active[data-size="medium"] .np-map-marker-icon {
  width: 40px;
  height: 40px;
}

.np-map-marker-active[data-size="large"] .np-map-marker-icon {
  width: 46px;
  height: 46px;
}

.np-map-user-marker {
  background: var(--np-dark);
  border: 3px solid #ffffff;
  border-radius: 999px;
  box-shadow: 0 0 0 8px rgba(53, 53, 53, 0.16);
  display: block;
  height: 18px;
  width: 18px;
}

.np-map-popup {
  color: var(--np-dark);
  min-width: 220px;
}

.np-map-popup-top {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 8px;
}

.np-map-popup strong,
.np-map-popup p,
.np-map-popup small,
.np-map-popup span {
  display: block;
}

.np-map-popup strong {
  font-size: 0.98rem;
}

.np-map-popup-badge {
  background: rgba(116, 184, 22, 0.12);
  border: 1px solid rgba(116, 184, 22, 0.25);
  border-radius: 999px;
  color: #4b7600;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 10px;
  text-transform: uppercase;
}

.np-map-popup p {
  margin: 4px 0 6px;
}

.np-map-popup small {
  color: #6b7280;
}

.np-map-popup-action {
  margin-top: 14px;
  width: 100%;
}

.np-map-popup-login {
  color: #6b7280;
  display: block;
  line-height: 1.5;
  margin-top: 12px;
}

.np-map-panel,
.np-sitio-modal-place {
  background: #ffffff;
  border: 1px solid rgba(53, 53, 53, 0.08);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(53, 53, 53, 0.06);
}

.np-map-panel {
  height: 100%;
  padding: 28px;
}

.np-map-panel h3,
.np-map-panel-head h3 {
  color: var(--np-dark);
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 6px;
}

.np-map-panel p,
.np-map-panel-note span,
.np-establecimiento-card p {
  color: #677067;
  line-height: 1.65;
  margin: 0;
}

.np-sitio-message {
  background: #f5f7f8;
  border: 1px solid #e1e6e8;
  border-radius: 16px;
  color: #5e6761;
  font-size: 0.92rem;
  margin-top: 18px;
  padding: 14px 16px;
}

.np-sitio-message[data-status="success"] {
  background: #edf7e8;
  border-color: #d2e6c7;
  color: #466100;
}

.np-sitio-message[data-status="warning"] {
  background: #fff8e6;
  border-color: #f1deab;
  color: #8b6600;
}

.np-sitio-message[data-status="error"] {
  background: #fef3f2;
  border-color: #f6c7c2;
  color: #b42318;
}

.np-map-panel-highlight {
  background:
    linear-gradient(135deg, rgba(164, 201, 0, 0.11), rgba(255, 255, 255, 0) 52%),
    #ffffff;
}

.np-map-panel-note {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.np-map-panel-note i {
  color: var(--np-primary);
  margin-top: 1px;
}

.np-map-guest-banner {
  align-items: flex-start;
  background: #fff8e6;
  border: 1px solid #f1deab;
  border-radius: 16px;
  color: #6b5c1b;
  display: grid;
  gap: 6px;
  margin: 16px 20px 20px;
  padding: 16px 18px;
}

.np-map-guest-banner strong {
  color: #8b6600;
}

.np-map-guest-banner a {
  color: #6b5c1b;
  font-weight: 700;
}

.np-map-panel-head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 22px;
}

.np-establecimiento-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(244, 247, 239, 0.95));
  border: 1px solid rgba(53, 53, 53, 0.08);
  border-radius: 20px;
  box-shadow: 0 14px 30px rgba(53, 53, 53, 0.06);
  height: 100%;
  padding: 22px;
}

.np-establecimiento-card-top {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.np-establecimiento-card strong {
  color: var(--np-dark);
  display: block;
  font-size: 1.02rem;
  margin-bottom: 4px;
}

.np-establecimiento-card span {
  color: #6b7280;
  display: block;
  font-size: 0.84rem;
}

.np-establecimiento-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.np-establecimiento-pill {
  background: #f4f7ec;
  border: 1px solid #e3ebcf;
  border-radius: 999px;
  color: #586700;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 7px 11px;
}

.np-establecimiento-pill-idle {
  background: rgba(53, 53, 53, 0.08);
  border-color: rgba(53, 53, 53, 0.12);
  color: #5f6660;
}

.np-sitio-modal {
  border: 0;
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(53, 53, 53, 0.18);
  overflow: hidden;
}

.np-sitio-modal-header,
.np-sitio-modal-footer {
  border-color: rgba(53, 53, 53, 0.08);
  padding-left: 24px;
  padding-right: 24px;
}

.np-sitio-modal-header {
  padding-bottom: 18px;
  padding-top: 22px;
}

.np-sitio-modal-body {
  padding: 8px 24px 24px;
}

.np-sitio-modal-place {
  display: grid;
  gap: 2px;
  margin-bottom: 20px;
  padding: 16px 18px;
}

.np-sitio-modal-place strong {
  color: var(--np-dark);
  font-size: 1.05rem;
}

.np-sitio-modal-place span {
  color: #6b7280;
  font-size: 0.88rem;
}

.np-sitio-form .form-label {
  color: #4f574f;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.np-sitio-form .form-control,
.np-sitio-form .form-select {
  background: #fbfcf8;
  border: 1px solid #dbe2d2;
  border-radius: 16px;
  box-shadow: none;
  min-height: 52px;
  padding: 0.9rem 1rem;
}

.np-sitio-form .form-control:focus,
.np-sitio-form .form-select:focus {
  background: #ffffff;
  border-color: rgba(164, 201, 0, 0.7);
  box-shadow: 0 0 0 4px rgba(164, 201, 0, 0.12);
}

.np-sitio-textarea {
  min-height: 116px !important;
  resize: vertical;
}

.np-evento-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(243, 247, 236, 0.95));
  border: 1px solid rgba(53, 53, 53, 0.08);
  border-radius: 20px;
  box-shadow: 0 14px 30px rgba(53, 53, 53, 0.06);
  height: 100%;
  padding: 24px;
}

.np-evento-card-top {
  align-items: flex-start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.np-evento-card-top strong {
  color: var(--np-dark);
  display: block;
  font-size: 1.08rem;
  margin-bottom: 4px;
}

.np-evento-card-top span:not(.np-soft-badge) {
  color: #6f776f;
  font-size: 0.88rem;
}

.np-evento-card p {
  color: #555e55;
  line-height: 1.7;
  margin: 0;
}

.np-evento-actions {
  align-items: center;
  border-top: 1px solid rgba(53, 53, 53, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 16px;
}

.page-perfil .card {
  border-radius: 8px;
}

.page-perfil .np-profile-card,
.page-perfil .np-panel-card {
  border: 1px solid rgba(53, 53, 53, 0.08) !important;
  overflow: hidden;
}

.page-perfil .np-panel-card {
  background: rgba(255, 255, 255, 0.96);
}

.np-profile-card {
  background:
    linear-gradient(180deg, rgba(164, 201, 0, 0.08), rgba(255, 255, 255, 0) 160px),
    #ffffff;
}

.np-avatar-wrap {
  margin-top: 4px;
}

.np-avatar-status {
  background: var(--np-primary);
  border: 4px solid var(--np-white);
  border-radius: 50%;
  bottom: 12px;
  height: 22px;
  position: absolute;
  right: 12px;
  width: 22px;
}

.np-contact-list {
  border-bottom: 1px solid #eef0ea;
  border-top: 1px solid #eef0ea;
  display: grid;
  gap: 12px;
  margin: 6px 0 22px;
  padding: 18px 0;
}

.np-contact-list span:last-child {
  color: #5f665a;
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.np-contact-icon,
.np-section-icon {
  align-items: center;
  background: rgba(164, 201, 0, 0.14);
  border-radius: 50%;
  color: #5a6e00;
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: center;
}

.np-contact-icon {
  height: 36px;
  width: 36px;
}

.np-section-icon {
  font-size: 1rem;
  height: 42px;
  width: 42px;
}

.np-about-box {
  background: #fbfcf8;
  border: 1px solid #edf1df;
  border-radius: 8px;
  padding: 18px;
}

.np-match-card {
  background: #ffffff;
  border: 1px solid #e8ecdf;
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(33, 37, 32, 0.06);
  padding: 18px;
}

.np-match-main {
  align-items: flex-start;
  display: flex;
  gap: 16px;
}

.np-match-avatar {
  border: 3px solid rgba(164, 201, 0, 0.22);
  border-radius: 50%;
  flex: 0 0 auto;
  height: 62px;
  object-fit: cover;
  width: 62px;
}

.np-match-info {
  min-width: 0;
  width: 100%;
}

.np-match-top {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.np-match-eyebrow {
  color: #6f7d55;
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.np-match-title {
  color: var(--np-dark);
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0;
  overflow-wrap: anywhere;
}

.np-match-description {
  color: #657064;
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 10px 0 14px;
}

.np-match-person {
  background: #fbfcf8;
  border: 1px solid #edf1df;
  border-radius: 8px;
  display: grid;
  gap: 2px;
  margin-bottom: 12px;
  padding: 12px;
}

.np-match-person strong {
  color: var(--np-dark);
  font-size: 0.98rem;
}

.np-match-person span {
  color: #657064;
  font-size: 0.84rem;
}

.np-match-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 14px;
}

.np-match-meta-item {
  align-items: center;
  color: #657064;
  display: inline-flex;
  font-size: 0.82rem;
  gap: 6px;
  overflow-wrap: anywhere;
}

.np-match-meta-item i {
  color: #6f8300;
}

.np-match-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.np-proyecto-card {
  background: #ffffff;
  border: 1px solid #e8ecdf;
  border-radius: 10px;
  box-shadow: 0 14px 32px rgba(33, 37, 32, 0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
}

.np-proyecto-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.np-proyecto-title {
  color: var(--np-dark);
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0;
}

.np-proyecto-status {
  font-size: 0.74rem;
  font-weight: 700;
}

.np-proyecto-description {
  color: #657064;
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

.np-proyecto-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.np-proyecto-tag {
  background: rgba(164, 201, 0, 0.2);
  border-radius: 999px;
  color: #5a6e00;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
}

.np-proyecto-link {
  background: #f1f3ea;
  border-radius: 999px;
  color: #5a6e00;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  text-decoration: none;
}

.np-proyecto-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.np-solicitud-card {
  background: #ffffff;
  border: 1px solid #e8ecdf;
  border-radius: 10px;
  box-shadow: 0 14px 32px rgba(33, 37, 32, 0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
}

.np-solicitud-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.np-solicitud-title {
  color: var(--np-dark);
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0;
}

.np-solicitud-status {
  font-size: 0.74rem;
  font-weight: 700;
}

.np-solicitud-person {
  background: #fbfcf8;
  border: 1px solid #edf1df;
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.np-solicitud-person strong {
  color: var(--np-dark);
  font-size: 0.98rem;
}

.np-solicitud-person span {
  color: #657064;
  font-size: 0.84rem;
}

.np-solicitud-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: #657064;
  font-size: 0.82rem;
}

.np-solicitud-meta i {
  color: #6f8300;
  margin-right: 6px;
}

.np-solicitud-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.np-solicitud-message {
  color: #657064;
  font-size: 0.9rem;
}

.np-solicitud-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 575.98px) {
  .np-match-main {
    flex-direction: column;
  }

  .np-match-top {
    flex-direction: column;
  }
}

.btn-outline-np {
  border-color: var(--np-primary);
  color: #5a6e00;
  font-size: 0.75rem;
  font-weight: 700;
}

.btn-outline-np:hover {
  background: var(--np-primary);
  border-color: var(--np-primary);
  color: #111;
}

.page-perfil #perfilAvatar {
  background: var(--np-white);
  border: 5px solid var(--np-white);
  box-shadow: 0 12px 30px rgba(53, 53, 53, 0.14);
  height: 136px;
  outline: 4px solid var(--np-primary);
  width: 136px;
}

.page-perfil .icon-fixed-width {
  width: 16px;
  text-align: center;
}

.page-perfil .form-control,
.page-perfil .form-select {
  border-color: #dfe5d2;
  border-radius: 8px;
}

.page-perfil .form-control:focus,
.page-perfil .form-select:focus {
  border-color: var(--np-primary);
  box-shadow: 0 0 0 0.2rem rgba(164, 201, 0, 0.18);
}

.page-perfil .form-check-input:checked {
  background-color: var(--np-primary);
  border-color: var(--np-primary);
}

.np-inline-form {
  background: #fbfcf8;
  border: 1px solid #e4ebd5;
  border-radius: 8px;
}

.page-perfil #proyectosList > div,
.page-perfil #solicitudesList > div {
  background: #ffffff;
  border: 1px solid #e8ede0 !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 24px rgba(53, 53, 53, 0.06);
}

.page-perfil #proyectosList > p,
.page-perfil #solicitudesList > p {
  background: #fbfcf8;
  border: 1px dashed #d9e3c2;
  border-radius: 8px;
  margin: 0;
  padding: 16px;
}

.page-perfil #skillsSelectedWrapper {
  background: #fbfcf8;
  border: 1px solid #edf1df;
  border-radius: 8px;
  padding: 16px;
}

.skill-pill {
  background: #ffffff;
}

.page-perfil .skill-pill:hover {
  border-color: var(--np-primary);
  color: #3f4f00;
  transform: translateY(-1px);
}

.page-perfil .skill-pill.activo {
  box-shadow: 0 8px 18px rgba(164, 201, 0, 0.24);
}

.np-map-actions .form-control {
  min-width: 150px;
  width: auto;
}

.page-perfil #map {
  border: 1px solid #dfe5d2;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  height: 430px;
  width: 100%;
}

@media (min-width: 992px) {
  .np-home-hero,
  .np-projects-hero,
  .np-profile-hero,
  .np-nomadas-hero {
    padding: 28px 0 0;
  }

  .np-sticky-card {
    position: sticky;
    top: 160px;
  }
}

@media (max-width: 767.98px) {
  .np-section {
    padding: 38px 0;
  }

  .np-home-hero,
  .np-projects-hero,
  .np-profile-hero,
  .np-nomadas-hero {
    margin-top: 92px;
    margin-bottom: 22px;
    padding: 14px 0 0;
  }

  .np-home-hero h1,
  .np-projects-hero h1,
  .np-nomadas-hero h1 {
    font-size: 2.35rem;
  }

  .np-home-hero .np-container,
  .np-projects-hero .np-container,
  .np-profile-hero .np-container,
  .np-nomadas-hero .np-container {
    padding: 24px 20px;
  }

  .np-hero-brand {
    padding: 24px;
  }

  .np-metrics-grid {
    grid-template-columns: 1fr;
  }

  .np-profile-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .np-profile-tab {
    min-height: 98px;
    padding: 14px;
  }

  .np-map-actions,
  .np-map-actions .form-control,
  .np-map-actions .btn {
    width: 100%;
  }

  .np-nomadas-map-summary,
  .np-nomadas-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .np-map-panel {
    padding: 22px;
  }

  .np-nomadas-map-summary p,
  .np-map-legend span,
  .np-nomadas-toolbar .form-control,
  .np-nomadas-toolbar .btn {
    max-width: none;
    width: 100%;
  }

  .np-nomadas-map-canvas {
    min-height: 340px;
  }

  .page-perfil #map {
    height: 340px;
  }
}

.np-avatar-stack {
  display: flex;
  align-items: center;
}

.np-avatar-stack img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  margin-left: -8px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(53, 53, 53, 0.12);
  transition: all 0.2s ease;
}

.np-avatar-stack img:first-child {
  margin-left: 0;
}

.np-avatar-stack img:hover {
  transform: translateY(-2px);
  z-index: 10;
}
