/* ============================================
   PERFIL FACEBOOK-STYLE
   ============================================ */
.ecop-wrap {
  max-width: 1000px;
  margin: 20px auto 60px;
  padding: 0 16px;
}
.ecop-header {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  border: 1px solid #eef0f2;
  margin-bottom: 20px;
}
.ecop-portada {
  position: relative;
  height: 320px;
  background: linear-gradient(135deg, #1f4d2c, #4CAF50);
  background-size: cover;
  background-position: center;
}
.ecop-portada-form {
  position: absolute;
  bottom: 16px;
  right: 16px;
  margin: 0;
  z-index: 3;
}
.ecop-portada-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,.6);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: .85rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
  transition: background .18s;
}
.ecop-portada-btn:hover { background: rgba(0,0,0,.8); }
.ecop-portada-borrar {
  position: absolute;
  top: 16px;
  right: 16px;
  margin: 0;
}
.ecop-portada-borrar button {
  background: rgba(0,0,0,.6);
  color: #fff;
  border: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  backdrop-filter: blur(6px);
}
.ecop-portada-borrar button:hover { background: rgba(198, 40, 40, .85); }

.ecop-topinfo {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  padding: 0 32px 20px;
  margin-top: -60px;
  position: relative;
  z-index: 2;
}
.ecop-avatar-wrap { position: relative; flex-shrink: 0; }
.ecop-avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid #fff;
  background: #f0f2f5;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.ecop-avatar-form { margin: 0; }
.ecop-avatar-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: #e4e6eb;
  color: #1a1a1a;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .18s;
  border: 3px solid #fff;
}
.ecop-avatar-btn:hover { background: #d5dade; }

.ecop-nombre-wrap { flex: 1; padding-bottom: 8px; min-width: 0; }
.ecop-nombre {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 6px;
  color: #1a1a1a;
  line-height: 1.15;
}
.ecop-bio-corta {
  color: #65676b;
  margin: 0 0 12px;
  font-size: .95rem;
  line-height: 1.4;
}
.ecop-stats {
  display: flex;
  gap: 24px;
  color: #65676b;
  font-size: .9rem;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.ecop-stats strong { color: #1a1a1a; font-weight: 700; }
.ecop-acciones { display: flex; gap: 10px; flex-wrap: wrap; }

.ecop-tabs {
  display: flex;
  border-top: 1px solid #eef0f2;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 20px;
}
.ecop-tabs::-webkit-scrollbar { display: none; }
.ecop-tab {
  padding: 16px 20px;
  color: #65676b;
  text-decoration: none;
  font-weight: 600;
  font-size: .92rem;
  border-bottom: 3px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ecop-tab:hover { background: #f0f2f5; color: #1a1a1a; }
.ecop-tab.activa {
  color: var(--color-acento, #4CAF50);
  border-bottom-color: var(--color-acento, #4CAF50);
}
.ecop-tab-num {
  background: #e4e6eb;
  color: #1a1a1a;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: .72rem;
  font-weight: 700;
}
.ecop-tab.activa .ecop-tab-num {
  background: rgba(76,175,80,.15);
  color: var(--color-acento, #4CAF50);
}

.ecop-body { display: block; }
.ecop-tab-content { display: flex; flex-direction: column; gap: 16px; }
.ecop-info-card {
  background: #fff;
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  border: 1px solid #eef0f2;
}
.ecop-info-card h3 {
  margin: 0 0 16px;
  font-size: 1.1rem;
  color: #1a1a1a;
}
.ecop-info-lista {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 10px 20px;
  margin: 0;
}
.ecop-info-lista dt {
  color: #65676b;
  font-size: .88rem;
  font-weight: 600;
}
.ecop-info-lista dd {
  margin: 0;
  color: #1a1a1a;
  font-size: .92rem;
}

.ecop-amigos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.ecop-amigo-card {
  display: block;
  text-decoration: none;
  color: #1a1a1a;
  background: #f6f7f9;
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  transition: background .15s, transform .15s;
  border: 1px solid #eef0f2;
}
.ecop-amigo-card:hover { background: #eef4ef; transform: translateY(-2px); }
.ecop-amigo-avatar {
  width: 90px; height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
}
.ecop-amigo-nombre { font-size: .88rem; font-weight: 600; }

.ecop-fotos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 6px;
}
.ecop-foto {
  display: block;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 6px;
  background: #f0f2f5;
}
.ecop-foto img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .25s;
}
.ecop-foto:hover img { transform: scale(1.05); }

.ecop-form-group { margin-bottom: 18px; }
.ecop-form-group label {
  display: block;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
  font-size: .92rem;
}
.ecop-form-group input,
.ecop-form-group textarea,
.ecop-form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #dadde1;
  border-radius: 10px;
  font-size: .95rem;
  font-family: inherit;
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
}
.ecop-form-group input:focus,
.ecop-form-group textarea:focus,
.ecop-form-group select:focus {
  border-color: var(--color-acento, #4CAF50);
  box-shadow: 0 0 0 3px rgba(76,175,80,.12);
}
.ecop-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.ecop-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #eef0f2;
}
.ecop-config-nav {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #eef0f2;
  overflow-x: auto;
  scrollbar-width: none;
  position: sticky;
  top: 76px;
  z-index: 5;
  margin-bottom: 4px;
}
.ecop-config-nav::-webkit-scrollbar { display: none; }
.ecop-config-link {
  padding: 10px 16px;
  border-radius: 8px;
  color: #1a1a1a;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background .15s;
}
.ecop-config-link:hover { background: #f0f2f5; }

@media (max-width: 800px) {
  .ecop-portada { height: 200px; }
  .ecop-topinfo {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 20px 20px;
    margin-top: -70px;
    gap: 14px;
  }
  .ecop-avatar { width: 130px; height: 130px; border-width: 5px; }
  .ecop-nombre { font-size: 1.5rem; }
  .ecop-stats { justify-content: center; gap: 16px; font-size: .85rem; }
  .ecop-acciones { justify-content: center; }
  .ecop-tabs { padding: 0 4px; }
  .ecop-tab { padding: 14px 12px; font-size: .85rem; }
  .ecop-info-lista { grid-template-columns: 1fr; gap: 4px; }
  .ecop-info-lista dt { margin-top: 8px; }
  .ecop-form-row { grid-template-columns: 1fr; }
}

/* Consejo de privacidad (tip box) */
.ecop-tip {
  display: block;
  padding: 14px 16px;
  background: #f6faf7;
  border-radius: 10px;
  border-left: 3px solid var(--color-acento, #4CAF50);
}
.ecop-tip-titulo { display: block; margin-bottom: 6px; }
.ecop-tip-desc { color: #65676b; line-height: 1.5; }

/* Notificaciones */
.ecop-notif-intro { color: #65676b; margin-bottom: 14px; }
.ecop-notif-toggle {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; background: #f0f2f5; border-radius: 10px;
}
.ecop-notif-toggle-dis { opacity: .6; cursor: not-allowed; }
.ecop-notif-toggle-titulo { font-weight: 600; }
.ecop-notif-toggle-desc { color: #65676b; }

/* Cerrar mi cuenta (reemplaza "Zona de peligro" alarmante) */
.ecop-cierre-desc { color: #65676b; margin-bottom: 14px; }
.ecop-cierre-lista { display: flex; flex-direction: column; gap: 12px; }
.ecop-cierre-box {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; background: #f6faf7; border-radius: 10px;
  border: 1px solid #e5efe8;
}
.ecop-cierre-info { flex: 1; }
.ecop-cierre-titulo { font-weight: 600; }
.ecop-cierre-hint { color: #65676b; }
